github.phpd.cn/thought-machine/please@v12.2.0+incompatible/docs/styles.css (about)

     1  /*
     2  Fonts
     3  
     4  Note that these are commercially licensed, we have bought a licence for them for use on the site
     5  but as a result they're not checked into Git.
     6  */
     7  @font-face {
     8      font-family: 'EssentialPragmataPro-Bold';
     9      src: url('/fonts/31B6AC_0_0.eot');
    10      src: url('/fonts/31B6AC_0_0.eot?#iefix') format('embedded-opentype'),
    11           url('/fonts/31B6AC_0_0.woff2') format('woff2'),
    12           url('/fonts/31B6AC_0_0.woff') format('woff'),
    13           url('/fonts/31B6AC_0_0.ttf') format('truetype');
    14  }
    15  
    16  @font-face {
    17      font-family: 'EssentialPragmataPro';
    18      src: url('/fonts/31B6AC_1_0.eot');
    19      src: url('/fonts/31B6AC_1_0.eot?#iefix') format('embedded-opentype'),
    20           url('/fonts/31B6AC_1_0.woff2') format('woff2'),
    21           url('/fonts/31B6AC_1_0.woff') format('woff'),
    22           url('/fonts/31B6AC_1_0.ttf') format('truetype');
    23  }
    24  
    25  /* General */
    26  body {
    27      background: #202328;
    28      color: #999999;
    29      font-family: "EssentialPragmataPro", monospace;
    30  }
    31  a {
    32      color: white;
    33      text-decoration: none;
    34  }
    35  .body a:link {
    36      color: #29ABE2;
    37  }
    38  .body a:visited {
    39      color: #29ABE2;
    40  }
    41  h1, h2, h3, h4 {
    42      color: white;
    43      font-size: medium;
    44      text-transform: uppercase;
    45  }
    46  .green, .experimental {
    47      color: #00FFA9;
    48  }
    49  .caps {
    50      text-transform: uppercase;
    51  }
    52  pre {
    53      border: 1px #00FFA9 solid;
    54      border-radius: 3px;
    55      margin-right: -3px;
    56      padding: 5px 5px 5px 2px;
    57      color: white;
    58  }
    59  :not(pre) > code {
    60      border: 1px #666666 solid;
    61      color: white;
    62      padding: 2px;
    63      border-radius: 3px;
    64      white-space: nowrap;
    65  }
    66  pre.rule {
    67      white-space: normal;
    68      word-wrap: break-word;
    69      word-break: normal;
    70  }
    71  .optional {
    72      font-style: italic;
    73  }
    74  p, li, td {
    75      line-height: 130%;
    76  }
    77  hr {
    78      border-color: #00FFA9;
    79      margin-top: 10em;
    80  }
    81  
    82  /* Body uses flex to split left menu from rest of page */
    83  .above {
    84      display: flex;
    85      flex-direction: row;
    86  }
    87  .left {
    88      flex: 1 4 25%;
    89  }
    90  .right {
    91      flex: 3 4 75%;
    92  }
    93  
    94  /* Header row */
    95  .header {
    96      display: flex;
    97      flex-direction: row;
    98      margin: 4px;
    99      padding: 0px;
   100      min-height: 7em;
   101  }
   102  .header > div {
   103      display: flex;
   104      flex-direction: column;
   105      flex: 1 1 auto;
   106      vertical-align: middle;
   107      padding: 15px;
   108  }
   109  .header > div > div {
   110      flex: 1 1;
   111  }
   112  
   113  /* Left menu */
   114  .left-container {
   115      display: flex;
   116      flex-direction: column;
   117  }
   118  .left .logo {
   119      flex: 1 4 25%;
   120  }
   121  .logo h1 {
   122      text-transform: none;
   123  }
   124  .left .menu {
   125      flex: 3 4 75%;
   126  }
   127  .left .menu > ul {
   128      list-style: none;
   129      padding-left: 2em;
   130  }
   131  .left .menu > ul ul {
   132      list-style: none;
   133      padding-left: 3em;
   134  }
   135  .left .menu > ul > li {
   136      color: white;
   137      margin: 0.8em 0;
   138  }
   139  .left .menu > ul > li:before {
   140      content: "\2192";
   141      padding-right: 1em;
   142  }
   143  .left .menu > ul > li.selected:before {
   144      content: "\2193";
   145      padding-right: 1em;
   146      color: #00FFA9;
   147  }
   148  .left .menu > ul > li:hover:before {
   149      color: #00FFA9;
   150  }
   151  .left .menu > ul > li > ul > li, .left .menu > ul > li > ul > li > a {
   152      color: #999999;
   153  }
   154  .left .menu li {
   155      text-transform: uppercase;
   156  }
   157  .menu .selected a, .left .menu > ul > li > ul > li > a.selected, .left .menu > ul > li > ul > li.selected > a {
   158      color: #00FFA9;
   159  }
   160  
   161  /* Main body */
   162  .body {
   163      padding-left: 10%;
   164      overflow-x: hidden;
   165  }
   166  .body h1 {
   167      padding: 5em 0;
   168  }
   169  .body h2, .body h3, .body h2 a, .body h3 a {
   170      color: #00FFA9;
   171      text-indent: -10%;
   172      padding: 1em 0 2em 0;
   173  }
   174  .body ul {
   175      list-style: none;
   176      padding:0;
   177      margin:0;
   178  }
   179  .body li {
   180      text-indent: -2em;
   181  }
   182  .body li:before {
   183      content: "\2022 ";
   184      color: #00FFA9;
   185      padding-right: 1.8em;
   186  }
   187  table {
   188      border-spacing: 0;
   189  }
   190  th {
   191      color: #00FFA9;
   192      text-transform: uppercase;
   193      border-bottom: 1px white solid;
   194      text-align: left;
   195  }
   196  td {
   197      border-bottom: 1px #666666 solid;
   198      padding: 4px;
   199      min-width: 8em;
   200  }
   201  
   202  /* Footer */
   203  footer {
   204      display: flex;
   205      flex-direction: column;
   206  }
   207  footer > div {
   208      flex: 1 1 auto;
   209      display: flex;
   210      flex-direction: row;
   211      padding-top: 1em;
   212  }
   213  footer > div > div {
   214      margin-top: auto;
   215      flex: 1 1 50%;
   216  }
   217  footer a {
   218      color: #29ABE2;
   219  }
   220  
   221  /* Index page has a custom layout */
   222  .index-layout {
   223      display: flex;
   224      flex-direction: column;
   225  }
   226  .index-layout > div {
   227      flex: 1 1 auto;
   228      display: flex;
   229      flex-direction: row;
   230  }
   231  .index-layout > div > div {
   232      flex: 1 1 50%;
   233      padding: 20px 40px 20px 0;
   234      color: white;
   235  }
   236  .index-layout h2 {
   237      text-indent: 0;
   238  }
   239  .index-layout a:link, .index-layout a:visited {
   240      text-transform: uppercase;
   241      color: white;
   242  }
   243  .index-layout p {
   244      margin-bottom: 5em;
   245  }
   246  .index-open {
   247      color: white;
   248      margin: 8em 8em 8em 0;
   249  }
   250  .icon {
   251      float: right;
   252  }
   253  .grammar-string {
   254      color: #29ABE2;
   255  }
   256  .grammar-syntax {
   257      color: #00FFA9;
   258  }
   259  .grammar-comment {
   260      color: #999999;
   261  }
   262  .grammar-token {
   263      font-weight: bold;
   264  }