werc-1.5.0-tweaks

Tweaks for the werc website builder created by the mad architect Uriel
Log | Files | Refs | README

style-blue.css (5385B)


      1 /* Font */
      2 @font-face {
      3   font-family: 'Source Serif Pro';
      4   font-style: normal;
      5   font-weight: 400;
      6   font-display: swap;
      7   src: url(https://nunosempere.com/.resources/source-serif-pro-latin-ext.woff2) format('woff2'),
      8        url(https://nunosempere.com/.resources/source-serif-pro-latin.woff2) format('woff2');
      9   unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
     10 }
     11 
     12 /* Body */
     13 
     14 body {
     15   display: flex;
     16   flex-wrap: wrap; 
     17   font-family: serif; 
     18   font-size: 1.5em;
     19   background-color: #fcfcfc;
     20   color:#333;
     21 }
     22 
     23 * { /* incorporates the padding and borders into the object size*/
     24   box-sizing: border-box;
     25 }
     26 
     27 /* header */
     28 header {
     29   flex-basis: 100%;
     30   border-bottom: 2px solid #eee;
     31 }
     32 
     33 header h1 {
     34   margin-left: 0.7em;
     35   color:#333;
     36 }
     37 
     38 header a {
     39   text-decoration: none;
     40   color: #333;
     41 }
     42 
     43 header h1 span {
     44   margin-left: 0em;
     45   color: #555;
     46   /*
     47   font-size: 70%;
     48   font-style: italic;
     49   */
     50 }
     51 
     52 header nav { /* Not used by me, but used by suckless.org */
     53   display: flex;
     54   justify-content: space-between;
     55 }
     56 
     57 /* Navigation bar */
     58 
     59 nav {
     60   display: flex;
     61   flex-basis: 20%;
     62   max-width: 20%;
     63   min-width: 20%;
     64   float: left;
     65   margin: 0 1px 0 0;
     66   border-right: 2px solid #eee;
     67   /* width: 350px; */
     68 }
     69 
     70 nav a{
     71   text-decoration: none; 
     72   color: #005386;
     73 }
     74 
     75 nav a:hover {
     76   background-color: #ddd;
     77 }
     78 
     79 nav ul {
     80   display: flex;
     81   flex-direction: column;
     82   list-style-type: none;
     83   list-style-position: outside;
     84   padding-left: 0;
     85 }
     86 
     87 nav li ul {
     88   padding-left: 0.6em;
     89 }
     90 
     91 nav li a {
     92   display: block;
     93   margin: 0;
     94   padding: 0.3em 2em 0.8ex 1em;
     95 }
     96 
     97 /* article */
     98 article{
     99   flex-basis: 70%;
    100   max-width: 70%;
    101   min-width: 70%;
    102   padding-left: 1em;
    103   color: #333;
    104   /* padding: 0.3em 0 0 0; */
    105 }
    106 
    107 /* footer */
    108 footer {
    109   /* display: block; */
    110   flex-grow: 1;
    111   flex-basis: 100%;
    112   flex-shrink: 0;
    113   justify-content: space-between;
    114   padding: 0.1em 0em 1em 1em;
    115   border-top: 2px solid #eee
    116 }
    117 
    118 /* links */
    119 
    120 a {
    121   color: #005386;
    122 }
    123 
    124 /* Images and figures */
    125 
    126 figure figcaption {
    127   display: block;
    128   margin-left: auto;
    129   margin-right: auto;
    130 }
    131 
    132 figcaption {
    133   text-align: center;
    134   font-size: 16px;
    135 }
    136 
    137 .img-frontpage-center,
    138 .img-medium-center,
    139 img {
    140   display: block;
    141   margin-left: auto;
    142   margin-right: auto;
    143 }
    144 
    145 img {
    146   width: 80%;
    147 }
    148 
    149 .img-frontpage-center {
    150   width: 40%;
    151 }
    152 
    153 .img-medium-center {
    154   width: 50%;
    155 }
    156 
    157 /* Block quotes */
    158 
    159 blockquote{
    160   width:60%;
    161   margin: 5px auto;
    162   color: #555555;
    163   padding: 1.2em 30px 1.2em 75px;
    164   border-left:8px solid #005386 ;
    165   line-height:1.3;
    166   position: relative;
    167   background: #F0F0F0;
    168 }
    169 
    170 blockquote::before{
    171   font-family:Arial;
    172   content: "\201C";
    173   color:#005386;
    174   font-size:4em;
    175   position: absolute;
    176   left: 10px;
    177   top:-10px;
    178 }
    179 
    180 /* Code bloocks */
    181 pre { 
    182   background-color: #eeeeee; 
    183   border: 2px solid; 
    184   overflow-x: auto; 
    185 }
    186 pre, 
    187 code { 
    188   display: block;
    189   padding: 0.5em; 
    190 }
    191 
    192 /* Lists */
    193 /* this aligns the sitemap */
    194 
    195 ul {
    196   margin-left: 15px;
    197 }
    198 
    199 li{
    200   list-style-position: outside;
    201   /* list-style-type: '- ' /* ndash, a*/
    202 }
    203 
    204 /* Tables */
    205 /* old style:
    206 table {
    207   border-collapse: collapse;
    208   margin-left: auto;
    209   margin-right: auto;
    210   margin-top: 1em;
    211   margin-bottom: 1em;
    212 }
    213 
    214 td,
    215 th {
    216   border: 1px solid var(--border);
    217   text-align: left;
    218   padding: 0.5rem;
    219 }
    220 
    221 th {
    222   background: var(--accent-bg);
    223   font-weight: bold;
    224 }
    225 */
    226 
    227 table {
    228     border: 3px solid #005386;
    229     border-collapse: collapse;
    230     table-layout: fixed;
    231     text-align: left;
    232     width: 100%;
    233 }
    234 
    235 table thead {
    236      /* position: sticky;
    237      top: 0; */
    238 }
    239 
    240 table tbody tr:nth-child(even) {
    241      background: #E9F1F4;
    242 }
    243 
    244 table th {
    245      background: #005386;
    246      color: #fcfcfc;
    247      font-weight: bold;
    248 }
    249  table th, table td {
    250      padding: 1em 1em 1em 1em;
    251      /* border: 3px solid #005386; */
    252 }
    253 
    254 /* Newsletter stuff */
    255 
    256 .subscribe-button {
    257   background: #0055d4;
    258   padding: 15px 30px;
    259   border-radius: 3px;
    260   border: 0;
    261   cursor: pointer;
    262   text-decoration: none;
    263   color: #ffff;
    264   display: inline-block;
    265   min-width: 150px;
    266   font-size: 20px;
    267   text-align: center;
    268 }
    269 
    270 .subscribe-input {
    271   padding: 10px 15px;
    272   border: 1px solid #888;
    273   border-radius: 3px;
    274   width: 33%;
    275   box-shadow: 2px 2px 0 #f3f3f3;
    276   border: 1px solid #ddd;
    277   font-size: 20px;
    278 }
    279 
    280 input:focus {
    281   border-color: #0055d4;
    282 }
    283 
    284 input:focus::placeholder {
    285   color: transparent;
    286 }
    287 
    288 /* Figcaptions for markdown
    289  * Per <https://stackoverflow.com/questions/19331362/using-an-image-caption-in-markdown-jekyll> 
    290  */
    291 
    292 img + em {
    293   display: block; 
    294   text-align: center; 
    295   font-size: 1em;
    296 }
    297 
    298 /* Isso comments */
    299 /* You  can see the general comments style: <https://comments.nunosempere.com/css/isso.css> */
    300 
    301 .isso-textarea, #isso-postbox-author, #isso-postbox-email, #isso-postbox-website, .isso-post-action > input {
    302     font-size: 20px;
    303 }
    304 
    305 .isso-textarea {
    306   height: 15em;
    307   resize: vertical !important;
    308 
    309 }
    310 
    311 /* If the screen size is 600px wide or less, set the font-size of <div> to 30px */
    312 @media screen and (max-width: 1400px) {
    313   body {
    314     display: block;
    315   }
    316   .hidden-mobile {
    317     display: none;
    318   }
    319   article {
    320     flex-basis: 100%;
    321     max-width: 100%;
    322     min-width: 100%;
    323     padding: 5px;
    324   }
    325   header h1 {
    326     margin-left: 0;
    327   }
    328   .img-frontpage-center {
    329     width: 28%; /* 40% * 70%, so that the relative size stays the same*/
    330   }
    331 }
    332 
    333 @media screen and (min-width: 1400px) {
    334   .hide-not-mobile {
    335     display: none;
    336   }
    337 }