diary-website

Website for diary
git clone https://git.in0rdr.ch/diary-website.git
Log | Files | Refs | Pull requests | README | LICENSE

_layout.scss (4417B)


      1 * {
      2   &,
      3   &:before,
      4   &:after {
      5     box-sizing: border-box;
      6   }
      7 }
      8 
      9 html,
     10 body {
     11   width: 100%;
     12   height: 100%;
     13 }
     14 
     15 .clearfix {
     16   &:before {
     17     content: " ";
     18     display: table;
     19   }
     20 
     21   &:after {
     22     content: " ";
     23     display: table;
     24     clear: both;
     25   }
     26 
     27   *zoom: 1;
     28 }
     29 
     30 body {
     31   background-color: $base-background-color;
     32 }
     33 
     34 hr {
     35   border-top: none;
     36   border-bottom: 2px solid lighten($light-gray-color, 7%);
     37   width: 100%;
     38   margin: $small-spacing 0;
     39 }
     40 
     41 .container {
     42   padding: $base-spacing;
     43   margin-left: auto;
     44   margin-right: auto;
     45   max-width: 800px;
     46   font-weight: normal;
     47 }
     48 
     49 .pull-left {
     50   float: left;
     51 }
     52 
     53 .pull-right {
     54   float: right;
     55 }
     56 
     57 .download td {
     58   border: none;
     59 }
     60 
     61 .download a {
     62   color: rgba(51, 51, 51, 0.8) !important;
     63   font-weight: bold;
     64 }
     65 
     66 .link {
     67   color: $blue-color;
     68   padding-bottom: .05em;
     69   border-bottom: 2px solid transparent;
     70 
     71   @include transition(border 300ms linear);
     72 
     73   &:hover,
     74   &:focus,
     75   &:active {
     76     border-bottom: 2px solid $blue-color;
     77   }
     78 }
     79 
     80 .site-header {
     81   border-bottom: 1px solid lighten($light-gray-color, 5%);
     82   margin-bottom: $small-spacing;
     83   min-height: 80px;
     84 }
     85 
     86 .intro {
     87   .author-name {
     88     display: inline-block;
     89     padding: 0 .2em;
     90     background: lighten($light-gray-color, 15%)
     91   }
     92 
     93   a {
     94     @extend .link;
     95   }
     96 
     97   .container {
     98     padding-bottom: 0;
     99     display: table;
    100   }
    101 }
    102 
    103 .logo {
    104   float: left;
    105   margin: 0 0 1em 0;
    106   cursor: pointer;
    107   letter-spacing: 0.8px;
    108   font-size: 20px;
    109   line-height: 28px;
    110   font-weight: 300;
    111 
    112   span {
    113     font-weight: 700;
    114   }
    115 }
    116 
    117 .nav {
    118   min-height: 64px;
    119 }
    120 
    121 .navbar {
    122   float: right;
    123   margin: 0;
    124   position: relative;
    125   padding: 0;
    126   pointer-events: all;
    127   cursor: pointer;
    128 
    129   li {
    130     display: inline-block;
    131     padding: 0 .6em;
    132   }
    133 
    134   a {
    135     @extend .link;
    136   }
    137 }
    138 
    139 .category-title {
    140   margin: 1em 0 0.5em 0;
    141 
    142   &:first-child {
    143     margin-top: 0;
    144   }
    145 }
    146 
    147 .post-item {
    148   margin-bottom: 0.2em;
    149   display: block;
    150 
    151   a {
    152     color: $action-color;
    153   }
    154 
    155   .article-title {
    156     display: inline-block;
    157     width: 85%;
    158     //border-bottom: 1px dashed lighten($light-gray-color, 10%);
    159   }
    160 
    161   .date-label {
    162     //border: 1px solid lighten($light-gray-color, 10%);
    163     padding: 0 0.2em;
    164     margin-left: 1em;
    165     margin-top: 2px;
    166     @extend .pull-right;
    167   }
    168 
    169 }
    170 
    171 .post-meta {
    172   color: $medium-gray-color;
    173   text-transform: uppercase;
    174   display: inline-block;
    175   letter-spacing: 1px;
    176   font-size: rem(14);
    177   margin-bottom: 1px;
    178 }
    179 
    180 .post-title {
    181   margin-top: 0;
    182   margin-bottom: 1em;
    183   color: $dark-gray-color;
    184 }
    185 
    186 .post-link,
    187 .post a,
    188 .page a {
    189   @extend .link;
    190 }
    191 
    192 .post {
    193   @extend .clearfix;
    194 }
    195 
    196 .pagination {
    197   li, a, span {
    198     display: inline-block;
    199   }
    200 
    201   a, span {
    202     font-size: rem(12);
    203     padding: .5em;
    204   }
    205 
    206   .prev, .next {
    207     @extend .link;
    208   }
    209 }
    210 
    211 .share {
    212   border-top: 0.2em dashed lighten($light-gray-color, 13%);
    213   padding-top: $base-spacing;
    214   margin-top: $base-spacing * 2;
    215 
    216   p {
    217     margin: 0 5em;
    218     font-size: rem(14);
    219     color: $medium-gray-color;
    220   }
    221 }
    222 
    223 .disqus {
    224   background-color: lighten($light-gray-color, 16%);
    225   padding: $base-spacing 0;
    226 
    227   hr {
    228     margin: $base-spacing 0;
    229   }
    230 }
    231 
    232 .site-footer {
    233   @extend .clearfix;
    234 
    235   padding: $base-spacing 0;
    236 
    237   a {
    238     @extend .link;
    239   }
    240 
    241   small {
    242     display: block;
    243     font-size: rem(12);
    244     color: darken($medium-gray-color, 10%);
    245   }
    246 
    247   .block {
    248     display: block;
    249   }
    250 }
    251 
    252 .video-container {
    253 	position:relative;
    254 	padding-bottom:56.25%;
    255 	padding-top:30px;
    256 	height:0;
    257 	overflow:hidden;
    258 
    259   iframe,
    260   object,
    261   embed {
    262     position:absolute;
    263   	top:0;
    264   	left:0;
    265   	width:100%;
    266   	height:100%;
    267   }
    268 }
    269 
    270 .divider {
    271   border-top: 0.2em solid lighten($light-gray-color, 13%);
    272   margin-bottom: $base-spacing * 2;
    273   margin-top: $base-spacing * 2;
    274 }
    275 
    276 // This applies from 0px to 600px
    277 @media (max-width: 600px) {
    278   .date-label {
    279     float: left !important;
    280     border: 0 !important;
    281     margin-left: -2px !important;
    282     margin-top: 2px;
    283     margin-right: 1em;
    284   }
    285 
    286   .post-item {
    287     border: 1px solid lighten($light-gray-color, 10%);
    288     padding: 0 0.5em;
    289     background: lighten($light-gray-color, 15%);
    290   }
    291 
    292   .article-title {
    293     border-bottom: none !important;
    294   }
    295 
    296   .post-link {
    297     &:hover,
    298     &:focus,
    299     &:active {
    300       border-bottom: 2px solid transparent;
    301       color: $blue-color;
    302     }
    303   }
    304 
    305   .navbar {
    306     a span {
    307       /* hide text on small screens, display only octicon */
    308       display: none;
    309     }
    310   }
    311 }
    312 
    313 .liberapay-btn {
    314   float: right;
    315 }