sigs.k8s.io/cluster-api-provider-aws@v1.5.5/docs/book/theme/css/general.css (about)

     1  /* Base styles and content styles */
     2  
     3  @import 'variables.css';
     4  
     5  html {
     6      font-family: "Lato", "Open Sans", sans-serif;
     7      color: var(--fg);
     8      background-color: var(--bg);
     9      text-size-adjust: none;
    10  }
    11  
    12  body {
    13      margin: 0;
    14      font-size: 1rem;
    15      overflow-x: hidden;
    16  }
    17  
    18  code {
    19      font-family: "IBM Plex Mono", "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
    20      font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */
    21  }
    22  
    23  .left { float: left; }
    24  .right { float: right; }
    25  .hidden { display: none; }
    26  .play-button.hidden { display: none; }
    27  
    28  h2, h3 { margin-top: 2.5em; }
    29  h4, h5 { margin-top: 2em; }
    30  
    31  .header + .header h3,
    32  .header + .header h4,
    33  .header + .header h5 {
    34      margin-top: 1em;
    35  }
    36  
    37  a.header:target h1:before,
    38  a.header:target h2:before,
    39  a.header:target h3:before,
    40  a.header:target h4:before {
    41      display: inline-block;
    42      content: "»";
    43      margin-left: -30px;
    44      width: 30px;
    45  }
    46  
    47  .page {
    48      outline: 0;
    49      padding: 0 var(--page-padding);
    50  }
    51  .page-wrapper {
    52      box-sizing: border-box;
    53  }
    54  .js .page-wrapper {
    55      transition: margin-left 0.3s ease, transform 0.3s ease; /* Animation: slide away */
    56  }
    57  
    58  .content {
    59      overflow-y: auto;
    60      padding: 0 15px;
    61      padding-bottom: 50px;
    62  }
    63  .content main {
    64      margin-left: auto;
    65      margin-right: auto;
    66      max-width: var(--content-max-width);
    67  }
    68  .content a { text-decoration: none; }
    69  .content a:hover { text-decoration: underline; }
    70  .content img { max-width: 100%; }
    71  .content .header:link,
    72  .content .header:visited {
    73      color: var(--fg);
    74  }
    75  .content .header:link,
    76  .content .header:visited:hover {
    77      text-decoration: none;
    78  }
    79  
    80  table {
    81      width: 100%;
    82      border-collapse: collapse;
    83  }
    84  table td {
    85      padding: 3px 20px;
    86      border: 1px var(--table-border-color) solid;
    87  }
    88  table thead {
    89      background: var(--table-header-bg);
    90  }
    91  table thead td {
    92      font-weight: 700;
    93      border: none;
    94  }
    95  table thead tr {
    96      border: 1px var(--table-header-bg) solid;
    97  }
    98  /* Alternate background colors for rows */
    99  table tbody tr:nth-child(2n) {
   100      background: var(--table-alternate-bg);
   101  }
   102  
   103  
   104  blockquote {
   105      margin: 20px 0;
   106      padding: 0 20px;
   107      color: var(--fg);
   108      background-color: var(--quote-bg);
   109      border-top: .1em solid var(--quote-border);
   110      border-bottom: .1em solid var(--quote-border);
   111  }
   112  
   113  
   114  :not(.footnote-definition) + .footnote-definition,
   115  .footnote-definition + :not(.footnote-definition) {
   116      margin-top: 2em;
   117  }
   118  .footnote-definition {
   119      font-size: 0.9em;
   120      margin: 0.5em 0;
   121  }
   122  .footnote-definition p {
   123      display: inline;
   124  }
   125  
   126  .tooltiptext {
   127      position: absolute;
   128      visibility: hidden;
   129      color: #fff;
   130      background-color: #333;
   131      transform: translateX(-50%); /* Center by moving tooltip 50% of its width left */
   132      left: -8px; /* Half of the width of the icon */
   133      top: -35px;
   134      font-size: 0.8em;
   135      text-align: center;
   136      border-radius: 6px;
   137      padding: 5px 8px;
   138      margin: 5px;
   139      z-index: 1000;
   140  }
   141  .tooltipped .tooltiptext {
   142      visibility: visible;
   143  }
   144  
   145  /* From here on out is custom stuff */
   146  
   147  /* marker docs styles */
   148  
   149  /* NB(directxman12): The general gist of this is that we use semantic markup
   150   * for the actual HTML as much as possible, and then use CSS to look pretty and
   151   * extract the actual relevant information.  Theoretically, this'll let us do
   152   * stuff like transform the information for different screen widths. */
   153  
   154  /* the marker */
   155  .marker {
   156      display: flex;
   157      flex-wrap: wrap;
   158      align-items: center;
   159      margin-bottom: 0.25em;
   160  }
   161  
   162  /* the marker name */
   163  .marker > dt.name::before {
   164      content: '// +';
   165  }
   166  .marker > dt.name {
   167      font-weight: bold;
   168      order: 0; /* hack around the ::before's positioning to get it after the line */
   169  }
   170  
   171  /* the target blob */
   172  .marker::before {
   173      content: "on " attr(data-target);
   174      padding: 1px 6px;
   175      border-radius: 20%;
   176      background: var(--quote-bg);
   177      margin-left: 0.5em;
   178      font-weight: normal;
   179      opacity: 0.75;
   180      font-size: 0.75em;
   181      order: 2; /* hack around the ::before's positioning to get it after the line */
   182  }
   183  
   184  /* deprecated markers */
   185  .marker.deprecated[data-target] {
   186      /* use attribute marker for specificity */
   187      order: 4;
   188      opacity: 0.65;
   189  }
   190  
   191  .marker.deprecated::before {
   192      content: "deprecated (on " attr(data-target) ")";
   193      color: red;
   194  }
   195  .marker.deprecated:not([data-deprecated=""])::before {
   196      content: "use " attr(data-deprecated) " (on " attr(data-target) ")";
   197      color: red;
   198  }
   199  
   200  /* the summary arguments (hidden in non-summary view) */
   201  .marker dd.args {
   202      margin-left: 0;
   203      font-family: mono;
   204      order: 1; /* hack around the ::before's positioning to get it after the line */
   205  }
   206  .marker dl.args.summary {
   207      display: inline-block;
   208      margin-bottom: 0;
   209      margin-top: 0;
   210  }
   211  /* TODO(directxman12): optional */
   212  .marker dl.args.summary dt {
   213      display: inline-block;
   214      font-style: inherit;
   215  }
   216  .marker dl.args.summary dt:first-child::before {
   217      content: ':';
   218  }
   219  .marker dl.args.summary dt::before {
   220      content: ',';
   221  }
   222  /* hide in non-summary view */
   223  .marker dd.args {
   224      display: none
   225  }
   226  
   227  /* the description */
   228  .marker dd.description {
   229      order: 3; /* hack around the ::before's positioning to get it after the line */
   230      width: 100%;
   231      display: flex;
   232      flex-direction: column;
   233  }
   234  
   235  /* all arguments */
   236  .marker dl.args dt.argument::after {
   237      content: '=';
   238  }
   239  .marker dl.args dd.type {
   240      font-style: italic;
   241  }
   242  .marker .argument {
   243      display: inline-block;
   244      margin-left: 0;
   245  }
   246  .marker .argument.type {
   247      font-size: 0.875em;
   248  }
   249  .marker .literal {
   250      font-family:"IBM Plex Mono", "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
   251      font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */
   252  }
   253  .marker .argument.type::before {
   254      content: '‹';
   255  }
   256  .marker .argument.type::after {
   257      content: '›';
   258  }
   259  
   260  /* summary args */
   261  .marker .args.summary .argument.optional {
   262      opacity: 0.75;
   263  }
   264  
   265  /* anonymous marker args */
   266  .marker.anonymous .description details {
   267      order: 1;
   268      flex: 1; /* don't cause arg syntax to wrap */
   269  }
   270  .marker.anonymous .description .args {
   271      order: 0; /* go before the description */
   272  
   273      /* all on a single line */
   274      margin-top: 0;
   275      margin-bottom: 0;
   276      margin-right: 1em;
   277  }
   278  .marker.anonymous .description {
   279      flex-direction: row;
   280  }
   281  .marker .description dl.args:empty {
   282      margin-top: 0;
   283  }
   284  
   285  .marker .type .slice::before {
   286      content: '[]';
   287  }
   288  
   289  /* description args */
   290  .marker .description dt.argument.optional::before {
   291      content: "opt";
   292      padding: 1px 4px;
   293      border-radius: 20%;
   294      background: var(--quote-bg);
   295      opacity: 0.5;
   296      margin-left: -3em;
   297      float: left;
   298  }
   299  
   300  /* help text */
   301  .marker summary.no-details {
   302      list-style: none;
   303  }
   304  .marker summary.no-details::-webkit-details-marker {
   305      display: none;
   306  }
   307  
   308  /* summary view */
   309  .markers-summarize:checked ~ dl > .marker dd.args {
   310      display: inline-block
   311  }
   312  .markers-summarize:checked ~ dl > .marker dd.description dl.args {
   313      display: none
   314  }
   315  .markers-summarize:checked ~ dl > .marker dd.description {
   316      margin-bottom: 0.25em;
   317  }
   318  
   319  input.markers-summarize {
   320      display: none;
   321  }
   322  label.markers-summarize::before {
   323      margin-right: 0.5em;
   324      content: '\25bc';
   325      display: inline-block;
   326  }
   327  input.markers-summarize:checked ~ label.markers-summarize::before {
   328      content: '\25b6';
   329  }
   330  
   331  /* misc */
   332  /* marker details should be indented to be in line with the summary,
   333   * which is indented due to the expando
   334   */
   335  .marker details > p {
   336      margin-left: 1em;
   337  }
   338  
   339  /* sort by target */
   340  .marker[data-target="package"] {
   341      order: 2;
   342  }
   343  .marker[data-target="type"] {
   344      order: 1;
   345  }
   346  .marker[data-target="field"] {
   347      order: 0;
   348  }
   349  .markers {
   350      display: flex;
   351      flex-direction: column;
   352  }
   353  
   354  /* details elements (not markers) */
   355  details.collapse-code {
   356      margin-top: 0.125em;
   357      margin-bottom: 0.125em;
   358  }
   359  
   360  details.collapse-code > summary {
   361      width: 100%;
   362      cursor: pointer;
   363      display: flex;
   364      box-sizing: border-box; /* why isn't this the default? :-/ */
   365  }
   366  
   367  details.collapse-code > summary::after {
   368      content: "\25c0";
   369      float: right;
   370      font-size: 0.875em;
   371      color: var(--inline-code-color);
   372      opacity: 0.8;
   373  }
   374  
   375  details.collapse-code[open] > summary::after {
   376      content: "\25bc";
   377  }
   378  
   379  details.collapse-code > summary pre {
   380      flex: 1;
   381      box-sizing: border-box; /* why isn't this the default? :-/ */
   382      margin: inherit;
   383      padding: 0.25em 0.5em;
   384  }
   385  
   386  details.collapse-code > summary pre span::after {
   387      content: " (hidden)";
   388      font-size: 80%;
   389  }
   390  
   391  details.collapse-code[open] > summary pre span::after {
   392      content: "";
   393  }
   394  
   395  details.collapse-code > summary pre span::before {
   396      content: "// ";
   397  }
   398  
   399  /* make summary into code a bit nicer looking */
   400  details.collapse-code[open] > summary + pre {
   401      margin-top: 0;
   402  }
   403  
   404  /* get rid of the ugly blue box that makes the summary->code look bad */
   405  details.collapse-code summary:focus {
   406      outline: none;
   407      font-weight: bold; /* keep something around for tab users */
   408  }
   409  
   410  /* don't show the default expando */
   411  details.collapse-code > summary {
   412      list-style: none;
   413  }
   414  details.collapse-code > summary::-webkit-details-marker {
   415      display: none;
   416  }
   417  
   418  
   419  /* diagrams */
   420  
   421  .diagrams {
   422      display: flex;
   423      flex-direction: row;
   424      align-items: center;
   425  }
   426  
   427  .diagrams > * {
   428      margin-left: 1em;
   429      margin-right: 1em;
   430      font-size: 160%;
   431      font-weight: bold;
   432  }
   433  
   434  .diagrams object, .diagrams svg {
   435      max-width: 100%;
   436      max-height: 10em; /* force svg height to behave */
   437  }
   438  
   439  .diagrams path, .diagrams polyline, .diagrams circle {
   440      stroke: var(--fg);
   441  }
   442  
   443  .diagrams path.text {
   444      fill: var(--fg);
   445      stroke: none;
   446  }
   447  
   448  .diagrams path.text.invert {
   449      fill: black;
   450      stroke: none;
   451  }
   452  
   453  /* notes */
   454  aside.note {
   455      border: 1px solid var(--searchbar-border-color);
   456      border-radius: 3px;
   457      margin-top: 1em;
   458  }
   459  
   460  aside.note > * {
   461      margin-left: 1em;
   462      margin-right: 1em;
   463  }
   464  
   465  /* note title */
   466  aside.note > h1 {
   467      border-bottom: 1px solid var(--searchbar-border-color);
   468      margin: 0;
   469      padding: 0.5em 1em;
   470      font-size: 100%;
   471      font-weight: normal;
   472      background: var(--quote-bg);
   473  }
   474  
   475  /* warning notes */
   476  aside.note.warning > h1 {
   477      background: var(--warning-note-background-color, #fcf8f2);
   478  }
   479  aside.note.warning > h1::before {
   480      /* TODO(directxman12): fill in these colors in theme.
   481       * If you're good with colors, feel free to play around with this
   482       * in dark mode. */
   483      content: "!";
   484      color: var(--warning-note-color, #f0ad4e);
   485      margin-right: 1em;
   486      font-size: 100%;
   487      vertical-align: middle;
   488      font-weight: bold;
   489      padding-left: 0.6em;
   490      padding-right: 0.6em;
   491      border-radius: 50%;
   492      border: 2px solid var(--warning-note-color, #f0ad4e);
   493  }
   494  
   495  /* literate source citations */
   496  cite.literate-source {
   497      font-size: 75%;
   498      font-family: "IBM Plex Mono","Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
   499  }
   500  cite.literate-source::before {
   501      content: "$ ";
   502      font-weight: bold;
   503      font-style: normal;
   504  }
   505  
   506  cite.literate-source > a::before {
   507      content: "vim ";
   508      font-style: normal;
   509      color: var(--fg);
   510  }
   511  
   512  /* hide the annoying "copy to clipboard" buttons */
   513  .literate pre > .buttons {
   514      display: none;
   515  }
   516  
   517  /* add a bit of extra padding for readability */
   518  .literate pre code {
   519      padding-top: 0.75em;
   520      padding-bottom: 0.75em;
   521  }
   522  
   523  .tabset > input[type="radio"] {
   524    position: absolute;
   525    left: -200vw;
   526  }
   527  
   528  .tabset .tab-panel {
   529    display: none;
   530  }
   531  
   532  .tabset > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
   533  .tabset > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2),
   534  .tabset > input:nth-child(5):checked ~ .tab-panels > .tab-panel:nth-child(3),
   535  .tabset > input:nth-child(7):checked ~ .tab-panels > .tab-panel:nth-child(4),
   536  .tabset > input:nth-child(9):checked ~ .tab-panels > .tab-panel:nth-child(5),
   537  .tabset > input:nth-child(11):checked ~ .tab-panels > .tab-panel:nth-child(6),
   538  .tabset > input:nth-child(13):checked ~ .tab-panels > .tab-panel:nth-child(7),
   539  .tabset > input:nth-child(15):checked ~ .tab-panels > .tab-panel:nth-child(8){
   540    display: block;
   541  }
   542  
   543  .tabset > label {
   544    position: relative;
   545    display: inline-block;
   546    padding: .6em 1em 1em;
   547    border: 1px solid transparent;
   548    border-bottom: 0;
   549    cursor: pointer;
   550    font-size: 16px;
   551    border-top-right-radius: 4px;
   552    border-top-left-radius: 4px;
   553  }
   554  
   555  .tabset > label::after {
   556    content: "";
   557    position: absolute;
   558    left: 15px;
   559    bottom: 10px;
   560    width: 20px;
   561    height: 4px;
   562    background: #8d8d8d;
   563  }
   564  
   565  .tabset > label:hover,
   566  .tabset > input:focus + label {
   567    color: #06c;
   568  }
   569  
   570  .tabset > label:hover::after,
   571  .tabset > input:focus + label::after,
   572  .tabset > input:checked + label::after {
   573    background: #06c;
   574  }
   575  
   576  .tabset > input:checked + label {
   577    border-color: #ccc;
   578    border-bottom: 1px solid #fff;
   579    margin-bottom: -1px;
   580  }
   581  
   582  .tab-panel {
   583    padding: 1em 1.4em;
   584    border: 1px solid #ccc;
   585    border-bottom-right-radius: 4px;
   586    border-bottom-left-radius: 4px;
   587    position: relative;
   588  }