kern

White space theme for Hugo
Log | Files | Refs | LICENSE

layouts.css (2987B)


      1 /* main elements */
      2 .title { text-align: center; }
      3 
      4 .post-nav {
      5   font: small/1.5 'Linux Biolinum', sans-serif;
      6   display: flex;
      7   justify-content: space-between;
      8   gap: 2ch;
      9   margin: 2rem 0;
     10   padding: 0 1rem;
     11 }
     12 
     13 .post-nav a:link,
     14 .post-nav a:visited { color: var(--secondary-fg-color); }
     15 
     16 /* home.html */
     17 .recent-posts > * { margin: 2rem 0; }
     18 
     19 .recent-post {
     20   color: var(--primary-fg-color);
     21   margin: 0;
     22 }
     23 
     24 .recent-post-wrapper {
     25   border: 1px solid var(--ui-element-color);
     26   padding: 1rem;
     27   transition: box-shadow 0.5s ease;
     28   text-decoration: none;
     29 }
     30 
     31 .recent-post-wrapper:hover { box-shadow: 0 0 0 2px var(--ui-element-color); }
     32 
     33 .recent-post > h3,
     34 .recent-post > .metadata { padding: 0; }
     35 
     36 .recent-post > h3 {
     37   margin-top: 0;
     38   margin-bottom: 0.5rem;
     39 }
     40 
     41 .recent-post > .metadata {
     42   margin-top: 0.5rem;
     43   margin-bottom: 0;
     44 }
     45 
     46 .recent-posts .post-nav > .nav-item::after { content: " ›"; }
     47 
     48 /* header elements */
     49 .breadcrumb {
     50   gap: 0.5ch;
     51   list-style: none;
     52   padding: 0;
     53   margin: 0;
     54   white-space: nowrap;
     55   text-overflow: ellipsis;
     56   overflow: hidden;
     57 }
     58 
     59 .breadcrumb li { display: inline; }
     60 
     61 .breadcrumb a { color: var(--secondary-fg-color); }
     62 
     63 .breadcrumb li:not(:last-child)::after { content: " › "; }
     64 
     65 .language-menu {
     66   font: small/var(--line-height) 'Linux Biolinum', sans-serif;
     67   border: none;
     68   background: none;
     69   outline: none;
     70   color: var(--secondary-fg-color);
     71   flex-shrink: 0;
     72 }
     73 
     74 .language-menu:focus { outline: none; }
     75 
     76 /* footer */
     77 .footer-row {
     78   display: flex;
     79   flex-direction: row;
     80   margin: 2rem 0;
     81   gap: 7%;
     82 }
     83 
     84 .footer-column {
     85   display: flex;
     86   flex-direction: column;
     87 }
     88 
     89 .footer-column > * { padding: 0.25rem; }
     90 footer .footer-column:first-of-type > * { padding-left: 0; }
     91 footer .footer-column:last-of-type > * { padding-right: 0; }
     92 
     93 .footer-column-title { font-weight: bold; }
     94 
     95 .footer-row:last-child > .footer-item:last-child { margin-left: auto; }
     96 
     97 .footer-item {
     98   display: flex;
     99   flex-direction: row;
    100 }
    101 
    102 .footer-column > a:link,
    103 .footer-column > a:visited { color: var(--secondary-fg-color); }
    104 
    105 .version-name { text-decoration: none; }
    106 
    107 /* article elements */
    108 .metadata .tags {
    109   display: flex;
    110   gap: 1ch;
    111 }
    112 
    113 .metadata .tag {
    114   text-transform: uppercase;
    115   color: var(--secondary-fg-color);
    116 }
    117 
    118 .metadata {
    119   color: var(--secondary-fg-color);
    120   font: small/1.5 'Linux Biolinum', sans-serif;
    121   margin: 1rem 0;
    122   display: flex;
    123   gap: 1ch;
    124 }
    125 
    126 .preview-wrapper {
    127   text-decoration: none;
    128   color: var(--primary-fg-color);
    129 }
    130 
    131 .preview { margin: 2rem 0; }
    132 
    133 .preview > * > * { margin: 0.5rem 0; }
    134 
    135 .preview nav { text-align: right; }
    136 
    137 .preview-footer {
    138   display: flex;
    139   column-gap: 1ch;
    140 }
    141 
    142 .preview-footer > * {
    143   display: flex;
    144   gap: 1ch;
    145 }
    146 
    147 .preview-footer-right { margin-left: auto; }
    148 
    149 .page-item {
    150   display: flex;
    151   flex-direction: row;
    152   align-items: baseline;
    153   margin: 0.25rem 0;
    154   column-gap: 1ch;
    155 }
    156 
    157 .page-item > div:first-child {
    158   flex-shrink: 0;
    159   white-space: nowrap;
    160 }
    161 
    162 .page-item > div > span { padding-right: 0.5rem; }