<commit_before>@import 'lib/normalize.css/normalize';
@import "lib/font-awesome/css/svg-with-js";
@import "underline-animation";

$font-color: snow;
$theme-color: limegreen;
$background-color: black;
// material design colors … abused ;-P
$border-color: #424242;
$backplate-color: #212121;

// no selection is important for double click behaviour
// i.e., without this, clicking fast causes things to be selected,
// instead of switching between pages quickly
@mixin no-selection {
  /* disable any form of selection */
  -webkit-user-select: none; /* Chrome all / Safari all */
  -moz-user-select: none; /* Firefox all */
  -ms-user-select: none; /* IE 10+ */
  user-select: none; /* Likely future */
}

@mixin reset-selection {
  /* enable comment selection */
  -webkit-user-select: initial; /* Chrome all / Safari all */
  -moz-user-select: initial; /* Firefox all */
  -ms-user-select: initial; /* IE 10+ */
  user-select: initial; /* Likely future */
}

/* disable scrollbar in webkit based browsers */
::-webkit-scrollbar {
  display: none;
}

/* disable scrollbar according to some new spec */
html {
  scrollbar-width: none;
  background-color: $background-color;
  color: $font-color;
  font-family: sans-serif;
}

a {
  text-decoration: none;
  color: $font-color;
  cursor: pointer;
}


#front section.chapters a:hover {
  text-decoration: underline;
}


article p {
  max-width: 800px;
  margin: auto;
}

img {
  margin: 0 auto;
  display: block;
  background-color: white;
}

h1 {
  text-align: center;
}

@mixin buttonish {
  display: inline-block;
  cursor: pointer;
  padding: 0.5em;
  color: $font-color;
  background-color: $backplate-color;
  border: none;
  &:hover, &:active {
    background-image: linear-gradient(transparent, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.1));
  }

  &:disabled {
    opacity: 0.40;
    cursor: initial;
  }
}

nav {
  text-align: center;

  & > form {
    display: inline-block;
  }

  & > a, & > button {
    @include buttonish;
  }
}

input[type="text"] {
  color: black;
  background-color: snow;
  padding: 0.5em;
  border: none;
}


section a:visited {
  color: $theme-color;
}


@mixin titled-box {
  background-color: $backplate-color;
  border: 1px solid $border-color;
  border-radius: 5px;
  margin: 5%;
  padding: 1em 5%;
  text-align: right;
}

#tools {
  label {
    padding-right: 1em;
  }
}

#index, #tools {
  section a {
    @include underline-from-center;
  }
  section {
    @include titled-box;
  }
  section.empty {
    display: none;
  }
  h1 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: calc(1em + 1%);
  }
  ul {
    padding: 0;
    column-width: 20em;
    list-style-type: none;
  }
  .unlinked {
    font-size: 0.875em;
  }
}

#index, #front {
  nav {
    margin: 2em 0;
  }
}

/* front specific */
#front {
  .preview {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
  }

  .preview > * {
    margin: 0 0.2%;
  }

  .preview img {
    max-width: 100%;
  }

  article {
    @include titled-box;
    h1 {
      font-size: 1em;
      color: $theme-color;
      margin: 0 0 1em 0;
    }
    > * {
      margin-right: .5em;
    }
  }
}

/* view specific */

body#view {
  display: flex;
  flex-direction: column;
  /*align-items: center;*/
  min-height: 100vh;
}

#view {
  section {
    text-align: center;
    flex-grow: 1;
    cursor: pointer;
    @include no-selection;
    p {
      @include reset-selection;
    }
  }

  nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: flex-end;
    flex: 0 0 auto;
    width: 100%;
    padding: 0;

    &> * {
      flex-grow: 1;
    }
  }
}

//smallish screens
@media only screen and (max-width: 1024px) {
  #view img {
    width: 100%;
  }

  // put prev & next into its own first row
  #view nav {
    flex-wrap: wrap;
    :first-child {
      order: -2;
      flex-basis: 50%;
    }
    :last-child {
      order: -1;
      flex-basis: 50%;
    }
  }
}

//bigish screens
@media only screen and (min-height: 1024px) and (min-width: 1024px) {
  #view img {
    max-height: 100vh;
  }
}
<commit_msg>semantically the whitespace is meaningless, but CSS needs it for wrap …<commit_after>@import 'lib/normalize.css/normalize';
@import "lib/font-awesome/css/svg-with-js";
@import "underline-animation";

$font-color: snow;
$theme-color: limegreen;
$background-color: black;
// material design colors … abused ;-P
$border-color: #424242;
$backplate-color: #212121;

// no selection is important for double click behaviour
// i.e., without this, clicking fast causes things to be selected,
// instead of switching between pages quickly
@mixin no-selection {
  /* disable any form of selection */
  -webkit-user-select: none; /* Chrome all / Safari all */
  -moz-user-select: none; /* Firefox all */
  -ms-user-select: none; /* IE 10+ */
  user-select: none; /* Likely future */
}

@mixin reset-selection {
  /* enable comment selection */
  -webkit-user-select: initial; /* Chrome all / Safari all */
  -moz-user-select: initial; /* Firefox all */
  -ms-user-select: initial; /* IE 10+ */
  user-select: initial; /* Likely future */
}

/* disable scrollbar in webkit based browsers */
::-webkit-scrollbar {
  display: none;
}

/* disable scrollbar according to some new spec */
html {
  scrollbar-width: none;
  background-color: $background-color;
  color: $font-color;
  font-family: sans-serif;
}

a {
  text-decoration: none;
  color: $font-color;
  cursor: pointer;
}


#front section.chapters a:hover {
  text-decoration: underline;
}


article p {
  max-width: 800px;
  margin: auto;
}

img {
  margin: 0 auto;
  display: block;
  background-color: white;
}

h1 {
  text-align: center;
}

@mixin buttonish {
  display: inline-block;
  cursor: pointer;
  padding: 0.5em;
  color: $font-color;
  background-color: $backplate-color;
  border: none;
  &:hover, &:active {
    background-image: linear-gradient(transparent, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.1));
  }

  &:disabled {
    opacity: 0.40;
    cursor: initial;
  }
}

nav {
  text-align: center;

  & > form {
    display: inline-block;
  }

  & > a, & > button {
    @include buttonish;
  }
}

input[type="text"] {
  color: black;
  background-color: snow;
  padding: 0.5em;
  border: none;
}


section a:visited {
  color: $theme-color;
}


@mixin titled-box {
  background-color: $backplate-color;
  border: 1px solid $border-color;
  border-radius: 5px;
  margin: 5%;
  padding: 1em 5%;
  text-align: right;
}

#tools {
  label {
    padding-right: 1em;
  }
}

#index, #tools {
  section a {
    @include underline-from-center;
  }
  section {
    @include titled-box;
  }
  section.empty {
    display: none;
  }
  h1 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: calc(1em + 1%);
  }
  ul {
    padding: 0;
    column-width: 20em;
    list-style-type: none;
  }
  .unlinked {
    font-size: 0.875em;
  }
}

#index, #front {
  nav {
    margin: 2em 0;
  }
}

/* front specific */
#front {
  .preview {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
  }

  .preview > * {
    margin: 0 0.2%;
  }

  .preview img {
    max-width: 100%;
  }

  article {
    @include titled-box;
    h1 {
      font-size: 1em;
      color: $theme-color;
      margin: 0 0 1em 0;
    }
    > * {
      margin-right: .5em;
      &:before{
        content: " ";
      }
    }
  }
}

/* view specific */

body#view {
  display: flex;
  flex-direction: column;
  /*align-items: center;*/
  min-height: 100vh;
}

#view {
  section {
    text-align: center;
    flex-grow: 1;
    cursor: pointer;
    @include no-selection;
    p {
      @include reset-selection;
    }
  }

  nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: flex-end;
    flex: 0 0 auto;
    width: 100%;
    padding: 0;

    &> * {
      flex-grow: 1;
    }
  }
}

//smallish screens
@media only screen and (max-width: 1024px) {
  #view img {
    width: 100%;
  }

  // put prev & next into its own first row
  #view nav {
    flex-wrap: wrap;
    :first-child {
      order: -2;
      flex-basis: 50%;
    }
    :last-child {
      order: -1;
      flex-basis: 50%;
    }
  }
}

//bigish screens
@media only screen and (min-height: 1024px) and (min-width: 1024px) {
  #view img {
    max-height: 100vh;
  }
}

{'fraction_non_alphanumeric': 0.15090252707581228, 'fraction_numerical': 0.026474127557160047, 'mean_word_length': 2.48762064624423, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2877909', 'n_tokens_mistral': 3304, 'n_tokens_neox': 3057, 'n_words': 773}