sigs.k8s.io/cluster-api@v1.7.1/docs/book/theme/css/chrome.css (about)

     1  /* CSS for UI elements (a.k.a. chrome) */
     2  
     3  @import 'variables.css';
     4  
     5  #searchresults a,
     6  .content a:link,
     7  a:visited,
     8  a > .hljs {
     9      color: var(--links);
    10  }
    11  
    12  /* Menu Bar */
    13  
    14  #menu-bar,
    15  #menu-bar-hover-placeholder {
    16      z-index: 101;
    17      margin: auto calc(0px - var(--page-padding));
    18  }
    19  #menu-bar {
    20      position: relative;
    21      display: flex;
    22      flex-wrap: wrap;
    23      background-color: var(--bg);
    24      border-bottom-color: var(--bg);
    25      border-bottom-width: 1px;
    26      border-bottom-style: solid;
    27  }
    28  #menu-bar.sticky,
    29  .js #menu-bar-hover-placeholder:hover + #menu-bar,
    30  .js #menu-bar:hover,
    31  .js.sidebar-visible #menu-bar {
    32      position: -webkit-sticky;
    33      position: sticky;
    34      top: 0 !important;
    35  }
    36  #menu-bar-hover-placeholder {
    37      position: sticky;
    38      position: -webkit-sticky;
    39      top: 0;
    40      height: var(--menu-bar-height);
    41  }
    42  #menu-bar.bordered {
    43      border-bottom-color: var(--table-border-color);
    44  }
    45  #menu-bar i, #menu-bar .icon-button {
    46      position: relative;
    47      padding: 0 8px;
    48      z-index: 10;
    49      line-height: var(--menu-bar-height);
    50      cursor: pointer;
    51      transition: color 0.5s;
    52  }
    53  @media only screen and (max-width: 420px) {
    54      #menu-bar i, #menu-bar .icon-button {
    55          padding: 0 5px;
    56      }
    57  }
    58  
    59  .icon-button {
    60      border: none;
    61      background: none;
    62      padding: 0;
    63      color: inherit;
    64  }
    65  .icon-button i {
    66      margin: 0;
    67  }
    68  
    69  .right-buttons {
    70      margin: 0 15px;
    71  }
    72  .right-buttons a {
    73      text-decoration: none;
    74  }
    75  
    76  .left-buttons {
    77      display: flex;
    78      margin: 0 5px;
    79  }
    80  .no-js .left-buttons {
    81      display: none;
    82  }
    83  
    84  .menu-title {
    85      display: inline-block;
    86      font-weight: 200;
    87      font-size: 2rem;
    88      line-height: var(--menu-bar-height);
    89      text-align: center;
    90      margin: 0;
    91      flex: 1;
    92      white-space: nowrap;
    93      overflow: hidden;
    94      text-overflow: ellipsis;
    95  }
    96  .js .menu-title {
    97      cursor: pointer;
    98  }
    99  
   100  .menu-bar,
   101  .menu-bar:visited,
   102  .nav-chapters,
   103  .nav-chapters:visited,
   104  .mobile-nav-chapters,
   105  .mobile-nav-chapters:visited,
   106  .menu-bar .icon-button,
   107  .menu-bar a i {
   108      color: var(--icons);
   109  }
   110  
   111  .menu-bar i:hover,
   112  .menu-bar .icon-button:hover,
   113  .nav-chapters:hover,
   114  .mobile-nav-chapters i:hover {
   115      color: var(--icons-hover);
   116  }
   117  
   118  /* Nav Icons */
   119  
   120  .nav-chapters {
   121      font-size: 2.5em;
   122      text-align: center;
   123      text-decoration: none;
   124  
   125      position: fixed;
   126      top: 0;
   127      bottom: 0;
   128      margin: 0;
   129      max-width: 150px;
   130      min-width: 90px;
   131  
   132      display: flex;
   133      justify-content: center;
   134      align-content: center;
   135      flex-direction: column;
   136  
   137      transition: color 0.5s, background-color 0.5s;
   138  }
   139  
   140  .nav-chapters:hover {
   141      text-decoration: none;
   142      background-color: var(--theme-hover);
   143      transition: background-color 0.15s, color 0.15s;
   144  }
   145  
   146  .nav-wrapper {
   147      margin-top: 50px;
   148      display: none;
   149  }
   150  
   151  .mobile-nav-chapters {
   152      font-size: 2.5em;
   153      text-align: center;
   154      text-decoration: none;
   155      width: 90px;
   156      border-radius: 5px;
   157      background-color: var(--sidebar-bg);
   158  }
   159  
   160  .previous {
   161      float: left;
   162  }
   163  
   164  .next {
   165      float: right;
   166      right: var(--page-padding);
   167  }
   168  
   169  @media only screen and (max-width: 1080px) {
   170      .nav-wide-wrapper { display: none; }
   171      .nav-wrapper { display: block; }
   172  }
   173  
   174  @media only screen and (max-width: 1380px) {
   175      .sidebar-visible .nav-wide-wrapper { display: none; }
   176      .sidebar-visible .nav-wrapper { display: block; }
   177  }
   178  
   179  /* Inline code */
   180  
   181  :not(pre) > .hljs {
   182      display: inline;
   183      padding: 0.1em 0.3em;
   184      border-radius: 3px;
   185  }
   186  
   187  :not(pre):not(a) > .hljs {
   188      color: var(--inline-code-color);
   189      overflow-x: initial;
   190  }
   191  
   192  a:hover > .hljs {
   193      text-decoration: underline;
   194  }
   195  
   196  pre {
   197      position: relative;
   198  }
   199  pre > .buttons {
   200      position: absolute;
   201      z-index: 100;
   202      right: 5px;
   203      top: 5px;
   204  
   205      color: var(--sidebar-fg);
   206      cursor: pointer;
   207  }
   208  pre > .buttons :hover {
   209      color: var(--sidebar-active);
   210  }
   211  pre > .buttons i {
   212      margin-left: 8px;
   213  }
   214  pre > .buttons button {
   215      color: inherit;
   216      background: transparent;
   217      border: none;
   218      cursor: inherit;
   219  }
   220  pre > .result {
   221      margin-top: 10px;
   222  }
   223  
   224  /* Search */
   225  
   226  #searchresults a {
   227      text-decoration: none;
   228  }
   229  
   230  mark {
   231      border-radius: 2px;
   232      padding: 0 3px 1px 3px;
   233      margin: 0 -3px -1px -3px;
   234      background-color: var(--search-mark-bg);
   235      transition: background-color 300ms linear;
   236      cursor: pointer;
   237  }
   238  
   239  mark.fade-out {
   240      background-color: rgba(0,0,0,0) !important;
   241      cursor: auto;
   242  }
   243  
   244  .searchbar-outer {
   245      margin-left: auto;
   246      margin-right: auto;
   247      max-width: var(--content-max-width);
   248  }
   249  
   250  #searchbar {
   251      width: 100%;
   252      margin: 5px auto 0px auto;
   253      padding: 10px 16px;
   254      transition: box-shadow 300ms ease-in-out;
   255      border: 1px solid var(--searchbar-border-color);
   256      border-radius: 3px;
   257      background-color: var(--searchbar-bg);
   258      color: var(--searchbar-fg);
   259  }
   260  #searchbar:focus,
   261  #searchbar.active {
   262      box-shadow: 0 0 3px var(--searchbar-shadow-color);
   263  }
   264  
   265  .searchresults-header {
   266      font-weight: bold;
   267      font-size: 1em;
   268      padding: 18px 0 0 5px;
   269      color: var(--searchresults-header-fg);
   270  }
   271  
   272  .searchresults-outer {
   273      margin-left: auto;
   274      margin-right: auto;
   275      max-width: var(--content-max-width);
   276      border-bottom: 1px dashed var(--searchresults-border-color);
   277  }
   278  
   279  ul#searchresults {
   280      list-style: none;
   281      padding-left: 20px;
   282  }
   283  ul#searchresults li {
   284      margin: 10px 0px;
   285      padding: 2px;
   286      border-radius: 2px;
   287  }
   288  ul#searchresults li.focus {
   289      background-color: var(--searchresults-li-bg);
   290  }
   291  ul#searchresults span.teaser {
   292      display: block;
   293      clear: both;
   294      margin: 5px 0 0 20px;
   295      font-size: 0.8em;
   296  }
   297  ul#searchresults span.teaser em {
   298      font-weight: bold;
   299      font-style: normal;
   300  }
   301  
   302  /* Sidebar */
   303  
   304  .sidebar {
   305      position: fixed;
   306      left: 0;
   307      top: 0;
   308      bottom: 0;
   309      width: var(--sidebar-width);
   310      font-size: 0.875em;
   311      box-sizing: border-box;
   312      -webkit-overflow-scrolling: touch;
   313      overscroll-behavior-y: contain;
   314      background-color: var(--sidebar-bg);
   315      color: var(--sidebar-fg);
   316  }
   317  .sidebar-resizing {
   318      -moz-user-select: none;
   319      -webkit-user-select: none;
   320      -ms-user-select: none;
   321      user-select: none;
   322  }
   323  .js:not(.sidebar-resizing) .sidebar {
   324      transition: transform 0.3s; /* Animation: slide away */
   325  }
   326  .sidebar code {
   327      line-height: 2em;
   328  }
   329  .sidebar .sidebar-scrollbox {
   330      overflow-y: auto;
   331      position: absolute;
   332      top: 0;
   333      bottom: 0;
   334      left: 0;
   335      right: 0;
   336      padding: 10px 10px;
   337  }
   338  .sidebar .sidebar-resize-handle {
   339      position: absolute;
   340      cursor: col-resize;
   341      width: 0;
   342      right: 0;
   343      top: 0;
   344      bottom: 0;
   345  }
   346  .js .sidebar .sidebar-resize-handle {
   347      cursor: col-resize;
   348      width: 5px;
   349  }
   350  .sidebar-hidden .sidebar {
   351      transform: translateX(calc(0px - var(--sidebar-width)));
   352  }
   353  
   354  .sidebar-visible .page-wrapper {
   355      transform: translateX(var(--sidebar-width));
   356  }
   357  @media only screen and (min-width: 620px) {
   358      .sidebar-visible .page-wrapper {
   359          transform: none;
   360          margin-left: var(--sidebar-width);
   361      }
   362  }
   363  
   364  .chapter {
   365      list-style: none outside none;
   366      padding-left: 0;
   367      line-height: 2.2em;
   368  }
   369  
   370  .chapter ol {
   371      width: 100%;
   372  }
   373  
   374  .chapter li {
   375      display: flex;
   376      color: var(--sidebar-non-existant);
   377  }
   378  .chapter li a {
   379      display: block;
   380      padding: 0;
   381      text-decoration: none;
   382      color: var(--sidebar-fg);
   383  }
   384  
   385  .chapter li a:hover {
   386      color: var(--sidebar-active);
   387  }
   388  
   389  .chapter li a.active {
   390      color: var(--sidebar-active);
   391  }
   392  
   393  .chapter li > a.toggle {
   394      cursor: pointer;
   395      display: block;
   396      margin-left: auto;
   397      padding: 0 10px;
   398      user-select: none;
   399      opacity: 0.68;
   400  }
   401  
   402  .chapter li > a.toggle div {
   403      transition: transform 0.5s;
   404  }
   405  
   406  /* collapse the section */
   407  .chapter li:not(.expanded) + li > ol {
   408      display: none;
   409  }
   410  
   411  .chapter li.chapter-item {
   412      line-height: 1.5em;
   413      margin-top: 0.6em;
   414  }
   415  
   416  .chapter li.expanded > a.toggle div {
   417      transform: rotate(90deg);
   418  }
   419  
   420  .spacer {
   421      width: 100%;
   422      height: 3px;
   423      margin: 5px 0px;
   424  }
   425  .chapter .spacer {
   426      background-color: var(--sidebar-spacer);
   427  }
   428  
   429  @media (-moz-touch-enabled: 1), (pointer: coarse) {
   430      .chapter li a { padding: 5px 0; }
   431      .spacer { margin: 10px 0; }
   432  }
   433  
   434  .section {
   435      list-style: none outside none;
   436      padding-left: 20px;
   437      line-height: 1.9em;
   438  }
   439  
   440  /* Theme Menu Popup */
   441  
   442  .theme-popup {
   443      position: absolute;
   444      left: 10px;
   445      top: var(--menu-bar-height);
   446      z-index: 1000;
   447      border-radius: 4px;
   448      font-size: 0.7em;
   449      color: var(--fg);
   450      background: var(--theme-popup-bg);
   451      border: 1px solid var(--theme-popup-border);
   452      margin: 0;
   453      padding: 0;
   454      list-style: none;
   455      display: none;
   456  }
   457  .theme-popup .default {
   458      color: var(--icons);
   459  }
   460  .theme-popup .theme {
   461      width: 100%;
   462      border: 0;
   463      margin: 0;
   464      padding: 2px 10px;
   465      line-height: 25px;
   466      white-space: nowrap;
   467      text-align: left;
   468      cursor: pointer;
   469      color: inherit;
   470      background: inherit;
   471      font-size: inherit;
   472  }
   473  .theme-popup .theme:hover {
   474      background-color: var(--theme-hover);
   475  }
   476  .theme-popup .theme:hover:first-child,
   477  .theme-popup .theme:hover:last-child {
   478      border-top-left-radius: inherit;
   479      border-top-right-radius: inherit;
   480  }