<commit_before>// tweak: { title: "Header - Palette", options: ["Main", "Banner", "Alternate"], default: "Alternate", category: "Header", type: "dropdown", js:true }
// tweak: { title: "Header - Direction", options: ["", "Reverse"], default: "", category: "Header", type: "dropdown", js:true }
// tweak: { title: "Header  Main Nav - Display", options: ["", "Hide", "Auto"], default: "", category: "Header", type: "dropdown", js:true }
// tweak: { title: "Header  Navigation - Align", options: ["Left", "Right", "Center", "Space Around", "Space Between"], default: "Center", showOnlyWhenPresent: "body:not(.header--main-nav---display-hide)", category: "Header", type: "dropdown", js:true }
// tweak: { title: "Header  Navigation - Active", options: ["None", "Contrast", "Underline"], default: "Contrast", showOnlyWhenPresent: "body:not(.header--main-nav---display-hide)", category: "Header", type: "dropdown", js:true }

//tweak: { "type" : "value", "title" : "Logo Container Width", "min" : 50, "max" : 500, "step" : 5, "category" : "Header", "target" : "#logoImage", "showOnlyWhenPresent" : "#logoImage", "js": "true" }
@logoContainerWidth: 150px;

//tweak: { "type" : "value", "title" : "Title Container Width", "min" : 50, "max" : 500, "step" : 5, "category" : "Header", "target" : "#siteTitle", "showOnlyWhenPresent" : "#siteTitle", "js": "true" }
@siteTitleContainerWidth: 255px;

// tweak: { title: "Header - Alternate Logo", options: ["", "Main", "Banner", "Alternate"], default: "", showOnlyWhenPresent: ".site-logo", category: "Header", type: "dropdown", js:true }
// tweak: { title : "Alternate Logo", target : ".site-logo", showOnlyWhenPresent: ".site-logo", category : "Header", type : "image" }
.alt-logo-image {
  background-image: none;
  background-position: center;
  background-size: cover;
  background-attachment: scroll;
  background-repeat: no-repeat;
}


.header {
  a {
    text-decoration: none;
  }

  .main-nav {
    width: 100%;
  }

  .site-title {
    max-width: @siteTitleContainerWidth;
    a {
      .site-title-font;
    }
  }
  .site-logo {
    max-width: @logoContainerWidth;
    a {
      display: block;
    }
    img {
      height: auto;
      width: auto;
      max-height: 100px;
      max-width: 100%;
    }

    [data-alternate-logo=main][data-palette=main] &,
    [data-alternate-logo=banner][data-palette=banner] &,
    [data-alternate-logo=alternate][data-palette=alternate] & {
      position: relative;
      img { visibility: hidden; }
      &:after {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        .alt-logo-image;
      }
    }
  }

  .main-nav[data-display=auto] {
    ~ .slidebar { display: none; }
    @media only screen and (max-width: 640px) {
      display: none;
      ~ .slidebar { display: block; }
    }
  }

  .block:not([data-display=hide]) {
    padding-left: 1.5em;
  }
  [data-direction=reverse] & {
    flex-direction: row-reverse;
  }  
}



<commit_msg>syntax<commit_after>// tweak: { title: "Header - Palette", options: ["Main", "Banner", "Alternate"], default: "Alternate", category: "Header", type: "dropdown", js:true }
// tweak: { title: "Header - Direction", options: ["", "Reverse"], default: "", category: "Header", type: "dropdown", js:true }
// tweak: { title: "Header  Main Nav - Display", options: ["", "Hide", "Auto"], default: "", category: "Header", type: "dropdown", js:true }
// tweak: { title: "Header  Navigation - Align", options: ["Left", "Right", "Center", "Space Around", "Space Between"], default: "Center", showOnlyWhenPresent: "body:not(.header--main-nav---display-hide)", category: "Header", type: "dropdown", js:true }
// tweak: { title: "Header  Navigation - Active", options: ["None", "Contrast", "Underline"], default: "Contrast", showOnlyWhenPresent: "body:not(.header--main-nav---display-hide)", category: "Header", type: "dropdown", js:true }

//tweak: { type : "value", title : "Logo Container Width", min : 50, max : 500, step : 5, category : "Header", target : ".site-logo", showOnlyWhenPresent : ".site-logo", js: "true" }
@logoContainerWidth: 150px;

//tweak: { type : "value", title : "Title Container Width", min : 50, max : 500, step : 5, category : "Header", target : ".site-title", showOnlyWhenPresent : ".site-title", js: "true" }
@siteTitleContainerWidth: 255px;

// tweak: { title: "Header - Alternate Logo", options: ["", "Main", "Banner", "Alternate"], default: "", showOnlyWhenPresent: ".site-logo", category: "Header", type: "dropdown", js:true }
// tweak: { title : "Alternate Logo", target : ".site-logo", showOnlyWhenPresent: ".site-logo", category : "Header", type : "image" }
.alt-logo-image {
  background-image: none;
  background-position: center;
  background-size: cover;
  background-attachment: scroll;
  background-repeat: no-repeat;
}


.header {
  a {
    text-decoration: none;
  }

  .main-nav {
    width: 100%;
  }

  .site-title {
    max-width: @siteTitleContainerWidth;
    a {
      .site-title-font;
    }
  }
  .site-logo {
    max-width: @logoContainerWidth;
    a {
      display: block;
    }
    img {
      height: auto;
      width: auto;
      max-height: 100px;
      max-width: 100%;
    }

    [data-alternate-logo=main][data-palette=main] &,
    [data-alternate-logo=banner][data-palette=banner] &,
    [data-alternate-logo=alternate][data-palette=alternate] & {
      position: relative;
      img { visibility: hidden; }
      &:after {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        .alt-logo-image;
      }
    }
  }

  .main-nav[data-display=auto] {
    ~ .slidebar { display: none; }
    @media only screen and (max-width: 640px) {
      display: none;
      ~ .slidebar { display: block; }
    }
  }

  .block:not([data-display=hide]) {
    padding-left: 1.5em;
  }
  [data-direction=reverse] & {
    flex-direction: row-reverse;
  }  
}




{'fraction_non_alphanumeric': 0.19334122021294575, 'fraction_numerical': 0.012168328544870712, 'mean_word_length': 3.4, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, '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': '5587468', 'n_tokens_mistral': 2082, 'n_tokens_neox': 1951, 'n_words': 476}