gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/website/_sass/style.scss (about)

     1  $primary: #262362;
     2  $secondary: #fff;
     3  $link-color: #286fd7;
     4  $inverse-link-color: #fff;
     5  
     6  $link-hover-color: darken($link-color, 10%);
     7  $inverse-link-hover-color: darken($inverse-link-color, 10%);
     8  
     9  $text-color: #444;
    10  $text-color-secondary: #666;
    11  
    12  $body-font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    13  $code-font-family: 'Source Code Pro', monospace;
    14  
    15  html {
    16    position: relative;
    17    min-height: 100%;
    18  }
    19  
    20  body {
    21    color: $text-color;
    22    font-family: $body-font-family;
    23    padding-top: 40px;
    24  }
    25  
    26  a {
    27    color: $link-color;
    28  
    29    &:hover,
    30    &:focus {
    31      color: $link-hover-color;
    32      text-decoration: none;
    33    }
    34  
    35    code {
    36      color: $link-color;
    37    }
    38  }
    39  
    40  a.feature-link {
    41    color: $primary;
    42  
    43    &:hover,
    44    &:focus {
    45      color: $link-hover-color;
    46      text-decoration: none;
    47    }
    48  }
    49  
    50  span {
    51    color: $primary;
    52  }
    53  
    54  h1,
    55  h2,
    56  h3,
    57  h4,
    58  h5,
    59  h6 {
    60    color: $text-color;
    61    font-weight: 400;
    62  }
    63  
    64  h1 code,
    65  h2 code,
    66  h3 code,
    67  h4 code,
    68  h5 code,
    69  h6 code {
    70    color: $text-color;
    71    background: transparent;
    72  }
    73  
    74  h1 {
    75    font-size: 30px;
    76    margin-top: 40px;
    77    margin-bottom: 40px;
    78  }
    79  
    80  h2 {
    81    font-size: 24px;
    82    margin-top: 30px;
    83    margin-bottom: 30px;
    84  
    85    code {
    86      font-size: 24px;
    87    }
    88  }
    89  
    90  h3 {
    91    font-size: 20px;
    92    margin-top: 24px;
    93    margin-bottom: 24px;
    94  
    95    code {
    96      font-size: 20px;
    97    }
    98  }
    99  
   100  h4 {
   101    font-size: 18px;
   102    margin-top: 20px;
   103    margin-bottom: 20px;
   104  
   105    code {
   106      font-size: 18px;
   107    }
   108  }
   109  
   110  p,
   111  li {
   112    font-size: 14px;
   113    line-height: 22px;
   114  }
   115  
   116  .info-text {
   117    color: $text-color-secondary;
   118    font-size: 16px;
   119    line-height: 24px;
   120    margin-top: 30px;
   121    margin-bottom: 30px;
   122  }
   123  
   124  .info-users-text {
   125    margin: 0 0 0 0;
   126    color: $text-color-secondary;
   127    font-size: 16px;
   128    line-height: 24px;
   129  }
   130  
   131  code {
   132    font-family: $code-font-family;
   133    font-size: 13px;
   134  }
   135  
   136  .btn {
   137    color: $text-color;
   138    background-color: $inverse-link-color;
   139  }
   140  
   141  .btn-inverse {
   142    color: $text-color;
   143    background-color: #fff;
   144  }
   145  
   146  .well {
   147    box-shadow: none;
   148  }
   149  
   150  table {
   151    width: 100%;
   152  }
   153  
   154  table td,
   155  table th {
   156    border: 1px solid #ddd;
   157    padding: 8px;
   158  }
   159  
   160  table tr:nth-child(even) {
   161    background-color: #eee;
   162  }
   163  
   164  table th {
   165    padding-top: 12px;
   166    padding-bottom: 12px;
   167    background-color: $primary;
   168    color: $secondary;
   169  }
   170  
   171  .blog-meta {
   172    margin-top: 10px;
   173    margin-bottom: 20px;
   174  }
   175  
   176  .docs-content * img {
   177    display: block;
   178    margin: 20px auto;
   179  }
   180  
   181  .blog-content * img {
   182    display: block;
   183    margin: 20px auto;
   184  }
   185  
   186  .blog-content .attribution {
   187    /* Stay close to the image. */
   188    display: block;
   189    margin-top: 6px;
   190    padding-top: 0px;
   191  
   192    /* Italics, centered, lighter text. */
   193    text-align: center;
   194    font-style: italic;
   195    color: $text-color-secondary;
   196  }
   197  
   198  .blog-content * img:has(+ .attribution) {
   199    /* Remove bottom margins from images where there is an attribution line
   200     * immediately following the image.
   201     */
   202    margin-bottom: 0px;
   203  }
   204  
   205  .blog-content details {
   206    margin-left: 2em;
   207    margin-right: 2em;
   208    border: 1px solid #ccc;
   209    border-radius: 0.33em;
   210    padding: 1em;
   211    margin-bottom: 1em;
   212  }
   213  
   214  /* Override the top/bottom margins of whatever is inside. */
   215  /* We rely on the padding of the details element instead. */
   216  .blog-content details > summary:first-child,
   217  .blog-content details > summary:first-child > :first-child {
   218    margin-top: 0px;
   219  }
   220  
   221  /* Remove bottom margin from last element of <details> */
   222  .blog-content details > :not(summary):last-child {
   223    margin-bottom: 0px;
   224  }
   225  
   226  /* Remove bottom margin from last child of <summary> if <details> isn't open. */
   227  .blog-content details:not([open]) > summary > *:last-child {
   228    margin-bottom: 0px;
   229  }
   230  
   231  .blog-content details > summary:first-child {
   232    cursor: pointer;
   233  
   234    /* No border when closed, added when opened: */
   235    border-bottom: 0px;
   236    margin-bottom: 0em;
   237  }
   238  
   239  .blog-content details[open] > summary:first-child {
   240    border-bottom: 1px dashed #ccc;
   241    margin-bottom: 1em;
   242  }
   243  
   244  /* Create CSS triangle and animate openining/closing: */
   245  
   246  .blog-content details > summary:first-child {
   247    padding-left: 1em;
   248    position: relative;
   249  }
   250  
   251  .blog-content details > summary:first-child:before {
   252    content: '';
   253    border-width: .4rem;
   254    border-style: solid;
   255    border-color: transparent transparent transparent #333;
   256    position: absolute;
   257    top: 0.5em;
   258    left: 0px;
   259    transform-origin: .2rem 50%;
   260    transition: .25s transform ease;
   261  }
   262  
   263  .blog-content details:not([open]) > summary:before {
   264    transform: rotate(0);
   265  }
   266  
   267  .blog-content details[open] > summary:before {
   268    transform: rotate(90deg);
   269  }
   270  
   271  /* Add line above footnotes section if it is not empty. */
   272  .blog-content .footnotes:has(li) {
   273    margin-top: 2em;
   274    border-top: 1px dotted #ccc;
   275    padding-top: 2em;
   276  }
   277  
   278  .users-content {
   279    /* Shrink the container holding the users list on each side */
   280    padding-left:15%;
   281    padding-right:15%;
   282  }
   283  
   284  .row.display-flex {
   285    /* Make responsive columns equal height using flex. */
   286    display: flex;
   287    flex-wrap: wrap;
   288  }
   289  
   290  .row.display-flex > [class*='col-'] {
   291    flex-grow: 1;
   292  }
   293  
   294  .no-space {
   295    /* Remove component spacing by remove padding and margins. */
   296    margin:0px auto;
   297    padding:0px;
   298  }
   299  
   300  .img-vert-center {
   301    /* Default img-vert-center to use block, larger screens will use position. */
   302    margin: 0px;
   303    display: block;
   304    margin-left: auto;
   305    margin-right:auto;
   306  }
   307  
   308  .panel-solution h2 {
   309    /* Reduce h2 margins in the big "solution" panels on the homepage. */
   310    margin-top: 1em;
   311    margin-bottom: 1em;
   312  }
   313  
   314  .panel-default h2 {
   315    /* Same, but also remove the top-margin for the "features" panels. */
   316    margin-top: 0em;
   317    margin-bottom: 1em;
   318  }
   319  
   320  @media (min-width: 480px) {
   321    /* Set panel height smart phones landscape. */
   322    .panel-solution {
   323      height: 300px;
   324    }
   325  }
   326  
   327  @media (min-width: 600px) {
   328    /* Set panel height tablets portrait. */
   329    .panel-solution {
   330      height: 260px;
   331    }
   332  }
   333  
   334  @media (min-width: 768px) {
   335    /* Set panel height tablets. */
   336    .panel-solution {
   337      height: 240px;
   338    }
   339  }
   340  
   341  @media (min-width: 992px) {
   342    /* Set panel height tablets landscape. */
   343    .panel-solution {
   344      height: 330px;
   345    }
   346  
   347    /* Vertical center image in column on larger screens */
   348    .img-vert-center {
   349      margin: 0;
   350      position: absolute;
   351      top: 50%;
   352      left: 50%;
   353      -ms-transform: translate(-50%, -50%);
   354      transform: translate(-50%, -50%);
   355    }
   356  }
   357  
   358  @media (min-width: 1200px) {
   359    /* Set panel height laptops and desktops. */
   360    .panel-solution {
   361      height: 300px;
   362    }
   363  }