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

     1  :root {
     2      --content-max-width: 880px;
     3  }
     4  
     5  html {
     6      font-family: -apple-system, "Helvetica", "Arial", sans-serif;
     7      color: var(--fg);
     8      background-color: var(--bg);
     9      text-size-adjust: none;
    10  }
    11  
    12  code {
    13      font-family: Menlo, monospace !important;
    14      font-size: 14px;
    15      line-height: 1.8em;
    16      -webkit-font-smoothing: auto;
    17      white-space: inherit;
    18  }
    19  
    20  
    21  /* Disable the big arrows left and right */
    22  .previous {
    23      display: none;
    24  }
    25  .next {
    26      display: none;
    27  }
    28  
    29  /* the target blob */
    30  .marker::before {
    31      content: "on " attr(data-target);
    32      padding: 1px 6px;
    33      border-radius: 20%;
    34      background: var(--quote-bg);
    35      margin-left: 0.5em;
    36      font-weight: normal;
    37      opacity: 0.75;
    38      font-size: 0.75em;
    39      order: 2; /* hack around the ::before's positioning to get it after the line */
    40  }
    41  
    42  /* deprecated markers */
    43  .marker.deprecated[data-target] {
    44      /* use attribute marker for specificity */
    45      order: 4;
    46      opacity: 0.65;
    47  }
    48  
    49  .marker.deprecated::before {
    50      content: "deprecated (on " attr(data-target) ")";
    51      color: red;
    52  }
    53  .marker.deprecated:not([data-deprecated=""])::before {
    54      content: "use " attr(data-deprecated) " (on " attr(data-target) ")";
    55      color: red;
    56  }
    57  
    58  /* the summary arguments (hidden in non-summary view) */
    59  .marker dd.args {
    60      margin-left: 0;
    61      font-family: mono;
    62      order: 1; /* hack around the ::before's positioning to get it after the line */
    63  }
    64  .marker dl.args.summary {
    65      display: inline-block;
    66      margin-bottom: 0;
    67      margin-top: 0;
    68  }
    69  /* TODO(directxman12): optional */
    70  .marker dl.args.summary dt {
    71      display: inline-block;
    72      font-style: inherit;
    73  }
    74  .marker dl.args.summary dt:first-child::before {
    75      content: ':';
    76  }
    77  .marker dl.args.summary dt::before {
    78      content: ',';
    79  }
    80  /* hide in non-summary view */
    81  .marker dd.args {
    82      display: none
    83  }
    84  
    85  /* the description */
    86  .marker dd.description {
    87      order: 3; /* hack around the ::before's positioning to get it after the line */
    88      width: 100%;
    89      display: flex;
    90      flex-direction: column;
    91  }
    92  
    93  /* all arguments */
    94  .marker dl.args dt.argument::after {
    95      content: '=';
    96  }
    97  .marker dl.args dd.type {
    98      font-style: italic;
    99  }
   100  .marker .argument {
   101      display: inline-block;
   102      margin-left: 0;
   103  }
   104  .marker .argument.type {
   105      font-size: 0.875em;
   106  }
   107  .marker .literal {
   108      font-family: Menlo, monospace;
   109      font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */
   110  }
   111  .marker .argument.type::before {
   112      content: '‹';
   113  }
   114  .marker .argument.type::after {
   115      content: '›';
   116  }
   117  
   118  /* summary args */
   119  .marker .args.summary .argument.optional {
   120      opacity: 0.75;
   121  }
   122  
   123  /* anonymous marker args */
   124  .marker.anonymous .description details {
   125      order: 1;
   126      flex: 1; /* don't cause arg syntax to wrap */
   127  }
   128  .marker.anonymous .description .args {
   129      order: 0; /* go before the description */
   130  
   131      /* all on a single line */
   132      margin-top: 0;
   133      margin-bottom: 0;
   134      margin-right: 1em;
   135  }
   136  .marker.anonymous .description {
   137      flex-direction: row;
   138  }
   139  .marker .description dl.args:empty {
   140      margin-top: 0;
   141  }
   142  
   143  .marker .type .slice::before {
   144      content: '[]';
   145  }
   146  
   147  /* description args */
   148  .marker .description dt.argument.optional::before {
   149      content: "opt";
   150      padding: 1px 4px;
   151      border-radius: 20%;
   152      background: var(--quote-bg);
   153      opacity: 0.5;
   154      margin-left: -3em;
   155      float: left;
   156  }
   157  
   158  /* help text */
   159  .marker summary.no-details {
   160      list-style: none;
   161  }
   162  .marker summary.no-details::-webkit-details-marker {
   163      display: none;
   164  }
   165  
   166  /* summary view */
   167  .markers-summarize:checked ~ dl > .marker dd.args {
   168      display: inline-block
   169  }
   170  .markers-summarize:checked ~ dl > .marker dd.description dl.args {
   171      display: none
   172  }
   173  .markers-summarize:checked ~ dl > .marker dd.description {
   174      margin-bottom: 0.25em;
   175  }
   176  
   177  input.markers-summarize {
   178      display: none;
   179  }
   180  label.markers-summarize::before {
   181      margin-right: 0.5em;
   182      content: '\25bc';
   183      display: inline-block;
   184  }
   185  input.markers-summarize:checked ~ label.markers-summarize::before {
   186      content: '\25b6';
   187  }
   188  
   189  /* misc */
   190  /* marker details should be indented to be in line with the summary,
   191   * which is indented due to the expando
   192   */
   193  .marker details > p {
   194      margin-left: 1em;
   195  }
   196  
   197  /* sort by target */
   198  .marker[data-target="package"] {
   199      order: 2;
   200  }
   201  .marker[data-target="type"] {
   202      order: 1;
   203  }
   204  .marker[data-target="field"] {
   205      order: 0;
   206  }
   207  .markers {
   208      display: flex;
   209      flex-direction: column;
   210  }
   211  
   212  /* details elements (not markers) */
   213  details.collapse-code {
   214      margin-top: 0.125em;
   215      margin-bottom: 0.125em;
   216  }
   217  
   218  details.collapse-code > summary {
   219      width: 100%;
   220      cursor: pointer;
   221      display: flex;
   222      box-sizing: border-box; /* why isn't this the default? :-/ */
   223  }
   224  
   225  details.collapse-code > summary::after {
   226      content: "\25c0";
   227      float: right;
   228      font-size: 0.875em;
   229      color: var(--inline-code-color);
   230      opacity: 0.8;
   231  }
   232  
   233  details.collapse-code[open] > summary::after {
   234      content: "\25bc";
   235  }
   236  
   237  details.collapse-code > summary pre {
   238      flex: 1;
   239      box-sizing: border-box; /* why isn't this the default? :-/ */
   240      margin: inherit;
   241      padding: 0.25em 0.5em;
   242  }
   243  
   244  details.collapse-code > summary pre span::after {
   245      content: " (hidden)";
   246      font-size: 80%;
   247  }
   248  
   249  details.collapse-code[open] > summary pre span::after {
   250      content: "";
   251  }
   252  
   253  details.collapse-code > summary pre span::before {
   254      content: "// ";
   255  }
   256  
   257  /* make summary into code a bit nicer looking */
   258  details.collapse-code[open] > summary + pre {
   259      margin-top: 0;
   260  }
   261  
   262  /* get rid of the ugly blue box that makes the summary->code look bad */
   263  details.collapse-code summary:focus {
   264      outline: none;
   265      font-weight: bold; /* keep something around for tab users */
   266  }
   267  
   268  /* don't show the default expando */
   269  details.collapse-code > summary {
   270      list-style: none;
   271  }
   272  details.collapse-code > summary::-webkit-details-marker {
   273      display: none;
   274  }
   275  
   276  
   277  /* diagrams */
   278  
   279  .diagrams {
   280      display: flex;
   281      flex-direction: row;
   282      align-items: center;
   283  }
   284  
   285  .diagrams > * {
   286      margin-left: 1em;
   287      margin-right: 1em;
   288      font-size: 160%;
   289      font-weight: bold;
   290  }
   291  
   292  .diagrams object, .diagrams svg {
   293      max-width: 100%;
   294      max-height: 10em; /* force svg height to behave */
   295  }
   296  
   297  .diagrams path, .diagrams polyline, .diagrams circle {
   298      stroke: var(--fg);
   299  }
   300  
   301  .diagrams path.text {
   302      fill: var(--fg);
   303      stroke: none;
   304  }
   305  
   306  .diagrams path.text.invert {
   307      fill: black;
   308      stroke: none;
   309  }
   310  
   311  /* notes */
   312  aside.note {
   313      border: 1px solid var(--searchbar-border-color);
   314      border-radius: 3px;
   315      margin-top: 1em;
   316  }
   317  
   318  aside.note > * {
   319      margin-left: 1em;
   320      margin-right: 1em;
   321  }
   322  
   323  /* note title */
   324  aside.note > h1 {
   325      border-bottom: 1px solid var(--searchbar-border-color);
   326      margin: 0;
   327      padding: 0.5em 1em;
   328      font-size: 100%;
   329      font-weight: normal;
   330      background: var(--quote-bg);
   331  }
   332  
   333  /* warning notes */
   334  aside.note.warning > h1 {
   335      background: var(--warning-note-background-color, #fcf8f2);
   336  }
   337  aside.note.warning > h1::before {
   338      /* TODO(directxman12): fill in these colors in theme.
   339       * If you're good with colors, feel free to play around with this
   340       * in dark mode. */
   341      content: "!";
   342      color: var(--warning-note-color, #f0ad4e);
   343      margin-right: 1em;
   344      font-size: 100%;
   345      vertical-align: middle;
   346      font-weight: bold;
   347      padding-left: 0.6em;
   348      padding-right: 0.6em;
   349      border-radius: 50%;
   350      border: 2px solid var(--warning-note-color, #f0ad4e);
   351  }
   352  
   353  /* literate source citations */
   354  cite.literate-source {
   355      font-size: 75%;
   356      font-family: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
   357  }
   358  cite.literate-source::before {
   359      content: "$ ";
   360      font-weight: bold;
   361      font-style: normal;
   362  }
   363  
   364  cite.literate-source > a::before {
   365      content: "vim ";
   366      font-style: normal;
   367      color: var(--fg);
   368  }
   369  
   370  /* hide the annoying "copy to clipboard" buttons */
   371  .literate pre > .buttons {
   372      display: none;
   373  }
   374  
   375  /* add a bit of extra padding for readability */
   376  .literate pre code {
   377      padding-top: 0.75em;
   378      padding-bottom: 0.75em;
   379  }
   380  
   381  .tabset > input[type="radio"] {
   382    position: absolute;
   383    left: -200vw;
   384  }
   385  
   386  .tabset .tab-panel {
   387    display: none;
   388  }
   389  
   390  .tabset > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
   391  .tabset > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2),
   392  .tabset > input:nth-child(5):checked ~ .tab-panels > .tab-panel:nth-child(3),
   393  .tabset > input:nth-child(7):checked ~ .tab-panels > .tab-panel:nth-child(4),
   394  .tabset > input:nth-child(9):checked ~ .tab-panels > .tab-panel:nth-child(5),
   395  .tabset > input:nth-child(11):checked ~ .tab-panels > .tab-panel:nth-child(6),
   396  .tabset > input:nth-child(13):checked ~ .tab-panels > .tab-panel:nth-child(7),
   397  .tabset > input:nth-child(15):checked ~ .tab-panels > .tab-panel:nth-child(8),
   398  .tabset > input:nth-child(17):checked ~ .tab-panels > .tab-panel:nth-child(9),
   399  .tabset > input:nth-child(19):checked ~ .tab-panels > .tab-panel:nth-child(10),
   400  .tabset > input:nth-child(21):checked ~ .tab-panels > .tab-panel:nth-child(11),
   401  .tabset > input:nth-child(23):checked ~ .tab-panels > .tab-panel:nth-child(12),
   402  .tabset > input:nth-child(25):checked ~ .tab-panels > .tab-panel:nth-child(13),
   403  .tabset > input:nth-child(27):checked ~ .tab-panels > .tab-panel:nth-child(14),
   404  .tabset > input:nth-child(29):checked ~ .tab-panels > .tab-panel:nth-child(15),
   405  .tabset > input:nth-child(31):checked ~ .tab-panels > .tab-panel:nth-child(16),
   406  .tabset > input:nth-child(33):checked ~ .tab-panels > .tab-panel:nth-child(17),
   407  .tabset > input:nth-child(35):checked ~ .tab-panels > .tab-panel:nth-child(18),
   408  .tabset > input:nth-child(37):checked ~ .tab-panels > .tab-panel:nth-child(19),
   409  .tabset > input:nth-child(39):checked ~ .tab-panels > .tab-panel:nth-child(20),
   410  .tabset > input:nth-child(41):checked ~ .tab-panels > .tab-panel:nth-child(21),
   411  .tabset > input:nth-child(43):checked ~ .tab-panels > .tab-panel:nth-child(22),
   412  .tabset > input:nth-child(45):checked ~ .tab-panels > .tab-panel:nth-child(23),
   413  .tabset > input:nth-child(47):checked ~ .tab-panels > .tab-panel:nth-child(24),
   414  .tabset > input:nth-child(49):checked ~ .tab-panels > .tab-panel:nth-child(25){
   415    display: block;
   416  }
   417  
   418  .tabset > label {
   419    position: relative;
   420    display: inline-block;
   421    padding: .6em 1em 1em;
   422    border: 1px solid transparent;
   423    border-bottom: 0;
   424    cursor: pointer;
   425    font-size: 16px;
   426    border-top-right-radius: 4px;
   427    border-top-left-radius: 4px;
   428  }
   429  
   430  .tabset > label::after {
   431    content: "";
   432    position: absolute;
   433    left: 15px;
   434    bottom: 10px;
   435    width: 20px;
   436    height: 4px;
   437    background: #8d8d8d;
   438  }
   439  
   440  .tabset > label:hover,
   441  .tabset > input:focus + label {
   442    color: #06c;
   443  }
   444  
   445  .tabset > label:hover::after,
   446  .tabset > input:focus + label::after,
   447  .tabset > input:checked + label::after {
   448    background: #06c;
   449  }
   450  
   451  .tabset > input:checked + label {
   452    border-color: #ccc;
   453    border-bottom: 1px solid #fff;
   454    margin-bottom: -1px;
   455  }
   456  
   457  .tab-panel {
   458    padding: 1em 1.4em;
   459    border: 1px solid #ccc;
   460    border-bottom-right-radius: 4px;
   461    border-bottom-left-radius: 4px;
   462    position: relative;
   463  }