<commit_before>// Reusable classes
@import 'colors';

/// Dropdown Menu
.down-triangle {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url("../img/icons/downTriangle.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.dropdown-container {
    width: 100%;

    ul {
       padding: 15px; /* To match bootstrap's default row padding */
    }
    h1 {
       margin: 0;
    }
    li {
        display: inline-block;
        padding: 0 12px 0 0;
        list-style-type: none;
    }
}

.dropdown-parent {
    position: relative;
    display: inline-block;
    z-index: 1;

    &:hover > .dropdown-submenu {
        opacity: 1;
    }
}

.dropdown-submenu {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 5px 0;
    background-color: rgba($grey,0.9);
    opacity: 0;
    transition:opacity linear 0.15s;

    ul {
        padding: 0;
        text-align: center;
    }
    li {
        display: block;
        a {
            color: $white;
            font-size: 24px; /* Based on h1 size of 36px */
        }
    }
}

/// Flexbox
// A collection of elements that are dynamically arranged
// on the page.
.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.flex-element {
  width: 200px;
  height: 200px;
  margin: 10px;
  position: relative;
}

/// Image Container
// A container for imgs with an overlay
// (Takes on the width and height of its parent container
// usually, a flex-element)
.image-container {
  width: 100%;
  height: 100%;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.hover-overlay { // Usually goes inside an .image-container
  width: 100%;
  height: 100%;
  position: absolute;
  display: none; // Turned on by a trigger
  z-index: 2;
  opacity: 0.7;
  background-color: $grey;
}

/// Modal window
// A window that takes the foreground, darkening all
// content behind it
.modal-overlay { // The mask that dims background
  width: 100vw;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  z-index: 3;
  background-color: rgba($grey, 0.9); // Dim the background

  // This is activated when it's targeted - as such, it needs
  // to contain a corresponding id.
  // e.g. <div id="me" class="modal-overlay">
  // This is activated when the url points to it, i.e.
  // ".../#me"
  &:target { // Show when it's the target
    display: block;
  }
  .container {
    width: 50vw;
    height: 90vh;
    position: relative; // necessary for positioning floating elements in window
    margin-top: 2.5%;
    z-index: 3;
    background-color: $white;
  }
  .row {
    padding: 0 2.5%;
    overflow: hidden;
  }
  // Make modal window fullscreen for small devices
  // Note: 991px is the BS limit for medium screens
  @media screen and (max-width: 991px) {
    .container {
        width: 100%;
        height: 100%;
        margin-top: 0;
    }
  }
}

.modal-image-container {
  padding: 0; // Reset BS padding
  margin-bottom: 12px;
  img {
    max-width: 100%;
    max-height: 50vh;
    height: auto;
  }
}

.close-button {
  display: block;
  padding-top: 5%;
  margin: 12px 0;
  text-align: right;
  font-weight: bold;
  font-size: 16px;
  border-style: none;
  background-color: $white;
  color: $grey;
}

.close-button:hover {
  font-weight: bold;
  background-color: $red;
  color: $white;
  transition: background-color 1s, color 0.2s;
}

.nav-button {
  width: 10%;
  height: 50%;
  position: absolute;
  top: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  background-color: rgba($grey, 0.8);
  a {
    font-size: 24px;
    border-style: none;
    color: $white;
  }
  a:hover {
    text-decoration: none;
    font-weight: bold;
  }
}
.modal-overlay:hover .nav-button{
  opacity: 1;
}
.nav-button:nth-of-type(1) { // 'prev' button
  left: 0;
}
.nav-button:nth-of-type(2) { // 'next' button
  right: 0;<commit_msg>make modal nav buttons only appear when hovering over content window<commit_after>// Reusable classes
@import 'colors';

/// Dropdown Menu
.down-triangle {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url("../img/icons/downTriangle.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.dropdown-container {
    width: 100%;

    ul {
       padding: 15px; /* To match bootstrap's default row padding */
    }
    h1 {
       margin: 0;
    }
    li {
        display: inline-block;
        padding: 0 12px 0 0;
        list-style-type: none;
    }
}

.dropdown-parent {
    position: relative;
    display: inline-block;
    z-index: 1;

    &:hover > .dropdown-submenu {
        opacity: 1;
    }
}

.dropdown-submenu {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 5px 0;
    background-color: rgba($grey,0.9);
    opacity: 0;
    transition:opacity linear 0.15s;

    ul {
        padding: 0;
        text-align: center;
    }
    li {
        display: block;
        a {
            color: $white;
            font-size: 24px; /* Based on h1 size of 36px */
        }
    }
}

/// Flexbox
// A collection of elements that are dynamically arranged
// on the page.
.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.flex-element {
  width: 200px;
  height: 200px;
  margin: 10px;
  position: relative;
}

/// Image Container
// A container for imgs with an overlay
// (Takes on the width and height of its parent container
// usually, a flex-element)
.image-container {
  width: 100%;
  height: 100%;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.hover-overlay { // Usually goes inside an .image-container
  width: 100%;
  height: 100%;
  position: absolute;
  display: none; // Turned on by a trigger
  z-index: 2;
  opacity: 0.7;
  background-color: $grey;
}

/// Modal window
// A window that takes the foreground, darkening all
// content behind it
.modal-overlay { // The mask that dims background
  width: 100vw;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  z-index: 3;
  background-color: rgba($grey, 0.9); // Dim the background

  // This is activated when it's targeted - as such, it needs
  // to contain a corresponding id.
  // e.g. <div id="me" class="modal-overlay">
  // This is activated when the url points to it, i.e.
  // ".../#me"
  &:target { // Show when it's the target
    display: block;
  }
  .container {
    width: 50vw;
    height: 90vh;
    position: relative; // necessary for positioning floating elements in window
    margin-top: 2.5%;
    z-index: 3;
    background-color: $white;
  }
  .row {
    padding: 0 2.5%;
    overflow: hidden;
  }
  // Make modal window fullscreen for small devices
  // Note: 991px is the BS limit for medium screens
  @media screen and (max-width: 991px) {
    .container {
        width: 100%;
        height: 100%;
        margin-top: 0;
    }
  }
}

.modal-image-container {
  padding: 0; // Reset BS padding
  margin-bottom: 12px;
  img {
    max-width: 100%;
    max-height: 50vh;
    height: auto;
  }
}

.close-button {
  display: block;
  padding-top: 5%;
  margin: 12px 0;
  text-align: right;
  font-weight: bold;
  font-size: 16px;
  border-style: none;
  background-color: $white;
  color: $grey;
}

.close-button:hover {
  font-weight: bold;
  background-color: $red;
  color: $white;
  transition: background-color 1s, color 0.2s;
}

.nav-button {
  width: 10%;
  height: 50%;
  position: absolute;
  top: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  background-color: rgba($grey, 0.8);
  a {
    font-size: 24px;
    border-style: none;
    color: $white;
  }
  a:hover {
    text-decoration: none;
    font-weight: bold;
  }
}
.modal-overlay > .container:hover .nav-button{
  opacity: 1;
}
.nav-button:nth-of-type(1) { // 'prev' button
  left: 0;
}
.nav-button:nth-of-type(2) { // 'next' button
  right: 0;
{'fraction_non_alphanumeric': 0.1376720901126408, 'fraction_numerical': 0.033541927409261575, 'mean_word_length': 2.3323603002502087, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '7447250', 'n_tokens_mistral': 3059, 'n_tokens_neox': 2760, 'n_words': 824}