github.com/maier/nomad@v0.4.1-0.20161110003312-a9e3d0b8549d/website/source/assets/stylesheets/_docs.scss (about)

     1  //
     2  // Docs
     3  // --------------------------------------------------
     4  
     5  $docs-font-size: 15px;
     6  
     7  body.layout-docs,
     8  body.layout-inner,
     9  body.layout-downloads,
    10  body.layout-intro{
    11    >.container{
    12      .col-md-8[role=main]{
    13        min-height: 800px;
    14        background-color: white;
    15  
    16        >div{
    17          position: relative;
    18          z-index: 10;
    19        }
    20      }
    21    }
    22  
    23    *:focus {
    24      outline: none;
    25    }
    26  
    27    h1 > code,
    28    h2 > code,
    29    h3 > code,
    30    h4 > code,
    31    h5 > code
    32    h6 > code,
    33    li > code,
    34    table code,
    35    p code,
    36    tt,
    37    .alert code {
    38      font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    39      font-size: 90%;
    40      background-color: transparent;
    41      color: inherit;
    42      padding: 0;
    43    }
    44  }
    45  
    46  .docs-sidebar{
    47    position: relative;
    48    z-index: 20;
    49    margin-bottom: 30px;
    50    margin-top: 50px;
    51    @include open();
    52  
    53    .nav.docs-sidenav{
    54      padding-bottom: 15px;
    55  
    56      :last-child{
    57        border-bottom: none;
    58      }
    59  
    60      //all li
    61      li{
    62        position: relative;
    63  
    64        > a{
    65          padding: 10px 8px;
    66          font-size: 13px;
    67          color: $blue-dark;
    68  
    69          &:hover{
    70            background-color: transparent !important;
    71          }
    72        }
    73      }
    74  
    75      $parent-active-state: -14px;
    76      $parent-default-state: -14px;
    77      $child-active-state: -4px;
    78      $child-default-state: -4px;
    79  
    80      //first teir li
    81      li {
    82        margin: 0 0 0 10px;
    83  
    84        > a {
    85          -webkit-font-smoothing: antialiased;
    86  
    87          &:hover{
    88            color: #000;
    89  
    90            &:before{
    91              opacity: 1;
    92            }
    93          }
    94  
    95          &:focus {
    96            background-color: inherit;
    97          }
    98  
    99          &:before{
   100            content: '';
   101            position: absolute;
   102            width: 8px;
   103            height: 12px;
   104            top: 15px;
   105            left: $parent-default-state;
   106            overflow: hidden;
   107            background: image-url("caret-light.png") 0 0 no-repeat;
   108            opacity: .3;
   109            @include img-retina("caret-light.png", "caret-light@2x.png", 6px, 9px);
   110          }
   111        }
   112  
   113        &.active {
   114          >a{
   115            color: $green-dark;
   116  
   117            &:before{
   118              opacity: 1;
   119            }
   120          }
   121  
   122          > .nav {
   123            display: block;
   124          }
   125        }
   126      }
   127  
   128      //nested ul.nav
   129      .nav {
   130        display: none;
   131        padding-top: 10px;
   132        padding-bottom: 10px;
   133  
   134        > li{
   135          margin-left: 10px;
   136  
   137          > a {
   138            &:before{
   139              content: '';
   140              position: absolute;
   141              width: 8px;
   142              height: 12px;
   143              top: 10px;
   144              left: $child-default-state;
   145              overflow: hidden;
   146              background: image-url("caret-light.png") 0 0 no-repeat;
   147              opacity: .3;
   148              @include img-retina("caret-light.png", "caret-light@2x.png", 6px, 9px);
   149            }
   150  
   151            &:focus {
   152              background-color: inherit;
   153            }
   154  
   155            &:hover {
   156              color: #000;
   157  
   158              &:before {
   159                opacity: 1;
   160              }
   161            }
   162          }
   163  
   164          &.active{
   165            > a{
   166              color: $green-dark;
   167  
   168              &:before{
   169                opacity: 1;
   170              }
   171            }
   172          }
   173  
   174          > a{
   175            -webkit-font-smoothing: antialiased;
   176            padding: 6px 15px;
   177          }
   178        }
   179      }
   180  
   181      .nav-visible {
   182        display: block;
   183      }
   184    }
   185  }
   186  
   187  
   188  .bs-docs-section{
   189    padding-top: 10px;
   190    padding-left: 3%;
   191    padding-bottom: 160px;
   192  
   193    .lead{
   194      margin-bottom: 48px
   195    }
   196  
   197    .doc-sectional{
   198      margin-bottom: 48px;
   199    }
   200  
   201    p, li, .alert {
   202      color: $blue-dark;
   203      font-size: $docs-font-size;
   204      font-family: $font-family-open-sans;
   205      font-weight: $font-weight-reg;
   206      line-height: 1.84em;
   207      margin: 0 0 $docs-font-size;
   208      -webkit-font-smoothing: antialiased;
   209    }
   210  
   211    pre {
   212      font-size: ($docs-font-size - 3);
   213      margin: 0 0 $docs-font-size;
   214  
   215      // This will force the code to scroll horizontally on small screens
   216      // instead of wrapping.
   217      code {
   218        overflow-wrap: normal;
   219        white-space: pre;
   220      }
   221    }
   222  
   223    a{
   224      color: $green-dark;
   225      text-decoration: none;
   226  
   227      &:hover{
   228        text-decoration: underline;
   229      }
   230  
   231      code {
   232        background: inherit;
   233        color: $green-dark;
   234      }
   235    }
   236  
   237    img{
   238      max-width: 650px;
   239      margin-top: 25px;
   240      margin-bottom: 25px;
   241    }
   242  
   243    h1, .h1, h2, .h2, h3, .h3, h4, .h4{
   244      color: $gray-dark;
   245      margin-top: 54px;
   246      margin-bottom: $docs-font-size;
   247      line-height: 1.3;
   248      @include open-sb();
   249    }
   250  
   251    h2 {
   252      padding-bottom: 3px;
   253      border-bottom: 1px solid $gray-light;
   254    }
   255  
   256    #graph {
   257      margin-top: 30px;
   258    }
   259  }
   260  
   261  @media (max-width: 992px) {
   262  
   263    .bs-docs-section{
   264      padding-left: 0;
   265    }
   266  }
   267  
   268  @media (max-width: 768px) {
   269    .bs-docs-section{
   270      padding-top: 0;
   271    }
   272  }
   273  
   274  @media (max-width: 480px) {
   275    .bs-docs-section{
   276      img{
   277        max-width: 450px;
   278      }
   279    }
   280  }