github.com/xiaq/elvish@v0.12.0/website/assets/genblog.css (about)

     1  /*
     2  Copied from:  http://code.google.com/p/html5resetcss/
     3  
     4  html5doctor.com Reset Stylesheet
     5  v1.6.1
     6  Last Updated: 2010-09-17
     7  Author: Richard Clark - http: //richclarkdesign.com
     8  Twitter: @rich_clark
     9  */
    10  html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
    11  blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins,
    12  kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
    13  fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
    14  article, aside, canvas, details, figcaption, figure, footer, header, hgroup,
    15  menu, nav, section, summary, time, mark, audio,
    16  video { margin: 0; padding: 0; border: 0; outline: 0;
    17              font-size: 100%; vertical-align: baseline; background: transparent; }
    18  body { line-height: 1; }
    19  article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav,
    20  section { display: block; }
    21  nav ul { list-style: none; }
    22  blockquote, q { quotes: none; }
    23  blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
    24  a { margin: 0; padding: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
    25  ins { background-color: #ff9; color: #000; text-decoration: none; }
    26  mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
    27  del { text-decoration: line-through; }
    28  abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
    29  table { border-collapse: collapse; border-spacing: 0; }
    30  hr { display: block; height: 1px; border: 0; border-top: 1px solid #cccccc; margin: 1em 0; padding: 0; }
    31  input, select { vertical-align: middle; }
    32  /* end HTML5 reset */
    33  /* Global styling. */
    34  
    35  html {
    36    /* Prevent font scaling in landscape while allowing user zoom */
    37    -webkit-text-size-adjust: 100%;
    38  }
    39  
    40  body {
    41      font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Microsoft Yahei", FZHei-B01, "WenQuanYi Micro Hei", SimHei;
    42      font-size: 16px;
    43      background-color: white;
    44  }
    45  
    46  /*
    47  #blog-title, h1, h2, h3 {
    48      font-family: Georgia, Times, Serif, FZShuSong-Z01, SimSun;
    49  }
    50  */
    51  
    52  /* Layout primitives. */
    53  
    54  #navbar-container {
    55      top: 0;
    56      width: 1280px;
    57      max-width: 100%;
    58      margin: auto;
    59      color: white;
    60      background-color: #1a1a1a;
    61  }
    62  
    63  .card {
    64      background-color: white;
    65  }
    66  
    67  .card, #navbar {
    68      margin: 0 auto;
    69      max-width: 1024px;
    70  }
    71  
    72  .nav-link, .nav-link:visited {
    73      color: black;
    74      display: inline;
    75      text-decoration: none;
    76      line-height: 1.4em;
    77  }
    78  
    79  .clear {
    80      clear: both;
    81  }
    82  
    83  img {
    84      max-width: 100%;
    85  }
    86  
    87  a {
    88      color: #6666ff;
    89  }
    90  
    91  /* Global header card. */
    92  
    93  #navbar {
    94      padding-bottom: 16px;
    95  }
    96  
    97  #blog-title {
    98      font-size: 2em;
    99      color: white;
   100      display: inline-block;
   101      margin: 16px 2% 0 4%;
   102  }
   103  
   104  .card-splitter {
   105      height: 1px;
   106      width: 100%;
   107      background-color: #667;
   108  }
   109  
   110  #category-list {
   111      display: inline-block;
   112      /* The top margin is used when the category list is not on the same line
   113       * as the title. Otherwise it is not important. */
   114      margin-top: 16px;
   115      /* Used (together with margin-right of #blog-title) to separate category
   116       * list and blog title when they are on the same line. Otherwise, used as
   117       * spacing from the page edge. This needs to be the same as that of
   118       * #blog-title to keep them left-aligned. */
   119      margin-left: 2%;
   120  }
   121  
   122  #category-list > li {
   123      list-style: none;
   124      display: inline-block;
   125      /* This margin is important for the correct spacing when the category list
   126       * runs multiple lines. */
   127      margin-top: 10px;
   128  }
   129  
   130  #category-list > li > .nav-link {
   131      color: white;
   132      position: relative;
   133      top: -4px; /* Cancel padding-bottom to align with baseline. */
   134      padding: 4px 10px 4px;
   135  }
   136  
   137  #category-list > li > .nav-link:hover {
   138      background-color: #333;
   139  }
   140  
   141  #category-list > li.current > .nav-link {
   142      color: black;
   143      background-color: white;
   144  }
   145  
   146  /* Article content. */
   147  
   148  .timestamp {
   149      margin-bottom: 0.6em;
   150  }
   151  
   152  .article-header {
   153      padding: 2.4% 4% 1.6%;
   154  }
   155  
   156  .article-content {
   157      padding: 4%;
   158  }
   159  
   160  .article p, .article ul, .article pre {
   161      margin-bottom: 16px;
   162  }
   163  
   164  .article p {
   165      line-height: 1.5;
   166  }
   167  
   168  .article li {
   169      margin-top: 0.5em;
   170      margin-bottom: 0.5em;
   171  }
   172  
   173  .article li > p {
   174      margin-top: 1em;
   175      margin-bottom: 1em;
   176  }
   177  
   178  .article pre {
   179      padding: 1em;
   180      line-height: 1.45;
   181      overflow: auto;
   182  }
   183  
   184  .article p code {
   185      padding: 0.2em 0;
   186  }
   187  
   188  .article p code::before, .article p code::after {
   189      letter-spacing: -0.2em;
   190      content: "\00a0";
   191  }
   192  
   193  code, pre {
   194      font-family: Consolas, Menlo, "Bitstream Vera Sans Mono", "DejaVu Sans Mono", monospace;
   195  }
   196  
   197  .article code, .article pre {
   198      background-color: #f0f0f0;
   199      border-radius: 3px;
   200  }
   201  
   202  .article code {
   203      font-size: 85%;
   204  }
   205  
   206  /* Use headers up to h2 should be used in .article-content */
   207  .article h1, .article h2 {
   208      line-height: 1.25;
   209  }
   210  
   211  .article .article-header h1 {
   212      font-size: 2em;
   213      margin: 0;
   214      padding: 0;
   215      border: none;
   216  }
   217  
   218  .article h1, .article h2 {
   219      margin-top: 24px;
   220      margin-bottom: 16px;
   221      font-weight: 600;
   222  }
   223  
   224  .article h1 {
   225      font-size: 1.5em;
   226      padding-bottom: 0.3em;
   227      border-bottom: 1px solid #eee;
   228  }
   229  
   230  .article h2 {
   231      font-size: 1.25em;
   232  }
   233  
   234  .article ul, .article ol {
   235      margin-left: 1em;
   236  }
   237  
   238  /* Category content. */
   239  
   240  .category-prelude {
   241      padding: 4% 5.8% 0;
   242      margin-bottom: -20px;
   243  }
   244  
   245  .article-list {
   246      padding: 4%;
   247  }
   248  
   249  .article-list > li {
   250      list-style: square inside;
   251      padding: 3px;
   252      line-height: 1.4;
   253  }
   254  
   255  .article-list > li:hover {
   256      background-color: #c0c0c0;
   257  }
   258  
   259  .article-list > li > .nav-link {
   260      border-bottom: 1px solid black;
   261  }
   262  
   263  .article-timestamp {
   264      float: right;
   265      display: inline-block;
   266      margin-left: 1em;
   267  }
   268  
   269  /* Utilities usable in articles. */
   270  
   271  hr {
   272      clear: both;
   273      border-color: #aaa;
   274      text-align: center;
   275  }
   276  
   277  hr:after {
   278      content: "❧";
   279      text-shadow: 0px 0px 2px #667;
   280      display: inline-block;
   281      position: relative;
   282      top: -0.5em;
   283      padding: 0 0.25em;
   284      font-size: 1.1em;
   285      color: black;
   286      background-color: white;
   287  }
   288  
   289  /* vi: se ts=4 sts=4 sw=4: */