cabin

Source code for personal website
git clone git://git.dimitrijedobrota.com/cabin.git
Log | Files | Refs

index.css (4645B)


      1 input, textarea, button, select, a {
      2   --webkit-tap-highlight-color: rgba(0,0,0,0);
      3 }
      4 
      5 html, body {
      6   margin: 0;
      7   padding: 0;
      8 
      9   border: 0;
     10   font: inherit;
     11   vertical-align: baseline;
     12 }
     13 
     14 body {
     15   font-family: monospace;
     16   font-size: 1.2em;
     17 }
     18 
     19 #content {
     20   background-color: var(--theme_bg0);
     21   color: var(--theme_fg0);
     22 
     23   min-width: 100vw;
     24   min-height: 100vh;
     25 
     26   padding-top: 2em;
     27   padding-bottom: 2em;
     28 
     29   position: relative;
     30   display: flex;
     31   flex-direction: column;
     32   justify-content: center;
     33   box-sizing: border-box;
     34 
     35   padding-left: 5vw;
     36   padding-right: 5vw;
     37 }
     38 
     39 hr {
     40   color: var(--theme_fgt0_hard);
     41   width: 100%;
     42   margin-left: auto;
     43   margin-right: auto;
     44 }
     45 
     46 header, footer {
     47   width: 100%;
     48 
     49   display: flex;
     50   flex-direction: column;
     51   justify-content: center;
     52   align-items: center;
     53 }
     54 
     55 header nav,
     56 footer nav {
     57   display: flex;
     58   justify-content: space-between;
     59 
     60   width: 100%;
     61 
     62   margin-left: auto;
     63   margin-right: auto;
     64   /* padding-right: 40px; */
     65 }
     66 
     67 .back {
     68   cursor:pointer;
     69 }
     70 
     71 main {
     72   min-height: 100% ;
     73 
     74   margin-bottom: auto;
     75 
     76   position: relative;
     77   display: flex;
     78   flex-direction: column;
     79   justify-content: center;
     80   box-sizing: border-box;
     81 }
     82 
     83 p {
     84   text-overflow: ellipsis;
     85   overflow: hidden;
     86   max-width: 80vw;
     87 }
     88 
     89 img {
     90   width: 100%;
     91   height: 100%;
     92 }
     93 
     94 pre, code
     95 {
     96   background-color: var(--theme_bg1);
     97   color: var(--theme_fg1);
     98   white-space: pre-wrap;
     99   white-space: -moz-pre-wrap !important;
    100   white-space: -pre-wrap;
    101   white-space: -o-pre-wrap;
    102   word-wrap: break-word;
    103 }
    104 
    105 pre
    106 {
    107   padding: 0.5em;
    108   border-radius: 5px;
    109   border: 1px solid var(--theme_fg4);
    110   margin-left:  0.5em;
    111   margin-right: 0.5em;
    112 }
    113 
    114 a {
    115   color:var(--theme_blue);
    116   text-decoration: none;
    117 }
    118 
    119 table
    120 {
    121   border-collapse: collapse;
    122   border-spacing: 0; /* IE 6 */
    123 
    124   border-bottom: 2pt solid var(--theme_bg3);
    125   border-top: 2pt solid var(--theme_bg3); /* The caption on top will not have a bottom-border */
    126   background-color: var(--theme_bg1); /* Does this BG print well? */
    127 
    128   /* Center */
    129   margin-left: auto;
    130   margin-right: auto;
    131 }
    132 
    133 thead /* Entire table header */
    134 {
    135   border-bottom: 1pt solid var(--theme_bg3);
    136   background-color: var(--theme_bg2); /* Does this BG print well? */
    137 }
    138 
    139 tr.header /* Each header row */
    140 {
    141 }
    142 
    143 tbody /* Entire table  body */
    144 {
    145 }
    146 
    147 /* Table body rows */
    148 
    149 tr  {
    150 }
    151 tr.odd:hover, tr.even:hover /* Use .odd and .even classes to avoid styling rows in other tables */
    152 {
    153   background-color: var(--theme_bg0);
    154 }
    155 
    156 /* Odd and even rows */
    157 tr.odd {}
    158 tr.even {}
    159 
    160 td, th /* Table cells and table header cells */
    161 {
    162   vertical-align: top; /* Word */
    163   vertical-align: baseline; /* Others */
    164   padding-left:   0.5em;
    165   padding-right:  0.5em;
    166   padding-top:    0.2em;
    167   padding-bottom: 0.2em;
    168 }
    169 
    170 
    171 th /* Table header cells */
    172 {
    173   font-weight: bold;
    174 }
    175 
    176 tfoot /* Table footer (what appears here if caption is on top?) */
    177 {
    178 }
    179 
    180 caption /* This is for a table caption tag, not the p.caption Pandoc uses in a div.figure */
    181 {
    182   caption-side: top;
    183   border: none;
    184   font-size: 0.9em;
    185   font-style: italic;
    186   text-align: center;
    187   margin-bottom: 0.3em; /* Good for when on top */
    188   padding-bottom: 0.2em;
    189 }
    190 
    191 
    192 
    193 pre,blockquote{
    194   page-break-inside:avoid;
    195 }
    196 
    197 blockquote{
    198   padding:10px 20px;
    199   margin:0 0 1em;
    200   font-size: 0.9em;
    201   border-left:5px solid var(--theme_fg4);
    202 }
    203 
    204 blockquote p:last-child{
    205   margin-bottom:0;
    206 }
    207 
    208 blockquote:before,
    209 blockquote:after {
    210   content:"";
    211 }
    212 
    213 
    214 li
    215 {
    216   margin-top: 0.5em; /* IE: lack of space above a <li> when the item is inside a <p> */
    217 }
    218 
    219 :not(blockquote) > p,
    220 ol,
    221 ul {
    222   margin-left: 1em;
    223 }
    224 
    225 .categories{
    226   display: flex;
    227   align-items: baseline;
    228 }
    229 
    230 .categories h3{
    231   display: inline-block;
    232 }
    233 
    234 .categories p {
    235   flex: 1;
    236   margin: 0.5em;
    237   display: flex;
    238   flex-direction: row;
    239   flex-flow: wrap;
    240 
    241 }
    242 
    243 .categories a{
    244   color: var(--theme_orange);
    245   background-color: var(--theme_bg1);
    246   display: inline-block;
    247   padding: 0.2em 0.5em 0.2em 0.5em;
    248   border-radius: 5px;
    249   min-width: 2em;
    250   text-align: center;
    251   margin: 0.15em;
    252 }
    253 
    254 .bottom {
    255   margin-top: auto;
    256 }
    257 
    258 .index {
    259   padding: 0;
    260 }
    261 
    262 .index li {
    263   display: flex;
    264 }
    265 
    266 .index li div:first-child {
    267   flex-shrink: 0;
    268   margin-right: 0.5em;
    269 }
    270 
    271 .small {
    272   display: flex;
    273   align-items: center;
    274 }
    275 
    276 .small img {
    277   width: 20px;
    278   height: 20px;
    279   margin: 5px;
    280 }
    281 
    282 img {
    283   width: 10em;
    284   height: 10em;
    285   margin: 5px;
    286 }
    287 
    288 h1 {
    289   margin-bottom: 0;
    290   color: var(--theme_aqua);
    291 }
    292 
    293 h2 {
    294   margin-bottom: 0;
    295   color: var(--theme_purple);
    296 }
    297 
    298 h3 {
    299   margin-bottom: 0;
    300   color: var(--theme_orange);
    301 }
    302 
    303 h4 {
    304   margin-bottom: 0;
    305   color: var(--theme_yellow);
    306 }
    307 
    308 h5 {
    309   margin-bottom: 0;
    310   color: var(--theme_green);
    311 }
    312 
    313 h6 {
    314   margin-bottom: 0;
    315   color: var(--theme_gray);
    316 }