diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2019-02-17 22:44:22 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2019-02-17 22:44:22 +0100 |
| commit | bb3fdcd40fe3c297f01afcc446ab33bf0ba3d986 (patch) | |
| tree | 765b85eea1862f0bec1b005e3de062a15bb6a16b /source/assets/default.css | |
| parent | bcc96b81e29a920d9d75f3e5d59c9b07608346de (diff) | |
| download | mitjafelicijan.com-bb3fdcd40fe3c297f01afcc446ab33bf0ba3d986.tar.gz | |
update
Diffstat (limited to 'source/assets/default.css')
| -rw-r--r-- | source/assets/default.css | 262 |
1 files changed, 262 insertions, 0 deletions
diff --git a/source/assets/default.css b/source/assets/default.css new file mode 100644 index 0000000..a7dff38 --- /dev/null +++ b/source/assets/default.css | |||
| @@ -0,0 +1,262 @@ | |||
| 1 | @charset "utf-8"; | ||
| 2 | |||
| 3 | @import url('https://fonts.googleapis.com/css?family=Heebo:100,300,400,500,700,800,900" rel="stylesheet">'); | ||
| 4 | @import url('https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600,700,900" rel="stylesheet">'); | ||
| 5 | |||
| 6 | * { | ||
| 7 | box-sizing: border-box; | ||
| 8 | -moz-osx-font-smoothing: grayscale !important; | ||
| 9 | text-rendering: optimizeLegibility !important; | ||
| 10 | -webkit-font-smoothing: antialiased !important; | ||
| 11 | } | ||
| 12 | |||
| 13 | body { | ||
| 14 | font-family: 'Heebo', sans-serif; | ||
| 15 | font-size: 18px; | ||
| 16 | line-height: 170%; | ||
| 17 | } | ||
| 18 | |||
| 19 | a { | ||
| 20 | color: inherit; | ||
| 21 | text-decoration: underline; | ||
| 22 | text-decoration-color: fuchsia; | ||
| 23 | text-decoration-style: wavy; | ||
| 24 | border: 2px dotted transparent; | ||
| 25 | display: inline-block; | ||
| 26 | } | ||
| 27 | |||
| 28 | a:active { | ||
| 29 | border-color: black; | ||
| 30 | } | ||
| 31 | |||
| 32 | ol a { | ||
| 33 | text-decoration: none; | ||
| 34 | } | ||
| 35 | |||
| 36 | ol a:hover { | ||
| 37 | text-decoration: underline; | ||
| 38 | } | ||
| 39 | |||
| 40 | h1 { | ||
| 41 | line-height: 140%; | ||
| 42 | font-weight: 900; | ||
| 43 | font-size: 250%; | ||
| 44 | } | ||
| 45 | |||
| 46 | h2,h3,h4,h5 { | ||
| 47 | margin-top: 50px; | ||
| 48 | } | ||
| 49 | |||
| 50 | img { | ||
| 51 | max-width: 100%; | ||
| 52 | margin: 0 auto; | ||
| 53 | display: block; | ||
| 54 | } | ||
| 55 | |||
| 56 | .wrapper { | ||
| 57 | max-width: 750px; | ||
| 58 | margin: 0 auto; | ||
| 59 | } | ||
| 60 | |||
| 61 | blockquote { | ||
| 62 | margin: 50px 0 50px 50px; | ||
| 63 | } | ||
| 64 | |||
| 65 | .pubdate { | ||
| 66 | font-size: 80%; | ||
| 67 | color: #666; | ||
| 68 | } | ||
| 69 | |||
| 70 | /********************************************************** CODE HIGHLIGHTING */ | ||
| 71 | |||
| 72 | pre, code { | ||
| 73 | font-family: 'Source Code Pro', monospace !important; | ||
| 74 | font-weight: 500; | ||
| 75 | } | ||
| 76 | |||
| 77 | pre { | ||
| 78 | font-size: 80%; | ||
| 79 | margin: 20px; | ||
| 80 | background: #eee; | ||
| 81 | } | ||
| 82 | |||
| 83 | p > code { | ||
| 84 | background: rgb(48, 46, 46); | ||
| 85 | padding: 1px 0.95rem 2px; | ||
| 86 | border-radius: 1em; | ||
| 87 | font-size: 70%; | ||
| 88 | font-weight: 600; | ||
| 89 | color: #fff; | ||
| 90 | display: inline; | ||
| 91 | -webkit-box-decoration-break: clone; | ||
| 92 | cursor:crosshair; | ||
| 93 | } | ||
| 94 | |||
| 95 | p > code:hover { | ||
| 96 | background: fuchsia; | ||
| 97 | } | ||
| 98 | |||
| 99 | /***************************************************************** OL COUNTER */ | ||
| 100 | |||
| 101 | ol { | ||
| 102 | list-style: none; | ||
| 103 | counter-reset: li; | ||
| 104 | } | ||
| 105 | |||
| 106 | ol li { | ||
| 107 | counter-increment: li; | ||
| 108 | } | ||
| 109 | |||
| 110 | ol li::before { | ||
| 111 | content: counter(li) "."; | ||
| 112 | color: #ccc; | ||
| 113 | font-weight: 500; | ||
| 114 | display: inline-block; | ||
| 115 | width: 1em; | ||
| 116 | margin-left: -1.5em; | ||
| 117 | margin-right: 0.9em; | ||
| 118 | text-align: right; | ||
| 119 | } | ||
| 120 | |||
| 121 | ol li a { | ||
| 122 | text-decoration: none; | ||
| 123 | } | ||
| 124 | |||
| 125 | /********************************************************************* TABLES */ | ||
| 126 | |||
| 127 | table { | ||
| 128 | width: 100%; | ||
| 129 | border-collapse: collapse; | ||
| 130 | border-spacing: 0; | ||
| 131 | font-size: 90%; | ||
| 132 | text-align: left; | ||
| 133 | margin-top: 50px; | ||
| 134 | margin-bottom: 50px; | ||
| 135 | } | ||
| 136 | |||
| 137 | th,td { | ||
| 138 | border-bottom: 2px solid #888; | ||
| 139 | padding: 10px; | ||
| 140 | } | ||
| 141 | |||
| 142 | th { | ||
| 143 | font-size: 130%; | ||
| 144 | } | ||
| 145 | |||
| 146 | tr:last-child td { | ||
| 147 | border-width: 0; | ||
| 148 | } | ||
| 149 | |||
| 150 | /****************************************************************** FOOTNOTES */ | ||
| 151 | |||
| 152 | .footnotes p { | ||
| 153 | padding: 0; | ||
| 154 | display: inline-block; | ||
| 155 | margin: 0; | ||
| 156 | } | ||
| 157 | |||
| 158 | .footnotes-sep { | ||
| 159 | border: 0; | ||
| 160 | } | ||
| 161 | |||
| 162 | /************************************************* BGCOLOR WHEN TEXT SELECTED */ | ||
| 163 | |||
| 164 | ::selection { | ||
| 165 | background: #ff0; | ||
| 166 | color: #000; | ||
| 167 | } | ||
| 168 | |||
| 169 | ::-moz-selection { | ||
| 170 | background: #ff0; | ||
| 171 | color: #000; | ||
| 172 | } | ||
| 173 | |||
| 174 | /********************************************************** CUSTOM SCROLLBARS */ | ||
| 175 | |||
| 176 | pre::-webkit-scrollbar { | ||
| 177 | width: 5px; | ||
| 178 | height: 8px; | ||
| 179 | background-color: transparent; | ||
| 180 | } | ||
| 181 | |||
| 182 | pre::-webkit-scrollbar-thumb { | ||
| 183 | background: #ddd; | ||
| 184 | } | ||
| 185 | |||
| 186 | /*************************************************************** HEADER + NAV */ | ||
| 187 | |||
| 188 | menu { | ||
| 189 | display: grid; | ||
| 190 | grid-template-columns: 1fr 1fr; | ||
| 191 | font-size: 80%; | ||
| 192 | padding: 0; | ||
| 193 | padding-top: 10px; | ||
| 194 | |||
| 195 | } | ||
| 196 | |||
| 197 | menu a.logo { | ||
| 198 | background: black; | ||
| 199 | color: white; | ||
| 200 | font-weight: 800; | ||
| 201 | text-decoration: none; | ||
| 202 | padding: 3px 15px; | ||
| 203 | } | ||
| 204 | |||
| 205 | menu a.logo:hover { | ||
| 206 | background: fuchsia; | ||
| 207 | color: white; | ||
| 208 | } | ||
| 209 | |||
| 210 | menu nav { | ||
| 211 | text-align: right; | ||
| 212 | margin-top: 3px; | ||
| 213 | } | ||
| 214 | |||
| 215 | menu nav a { | ||
| 216 | padding-top: 8px; | ||
| 217 | margin-left: 25px; | ||
| 218 | } | ||
| 219 | |||
| 220 | menu nav a svg { | ||
| 221 | width: 20px; | ||
| 222 | height: 20px; | ||
| 223 | } | ||
| 224 | |||
| 225 | /********************************************************************* FOOTER */ | ||
| 226 | |||
| 227 | footer { | ||
| 228 | padding-top: 50px; | ||
| 229 | padding-bottom: 50px; | ||
| 230 | font-weight: 500; | ||
| 231 | font-size: 80%; | ||
| 232 | } | ||
| 233 | |||
| 234 | footer > * { | ||
| 235 | text-decoration: none; | ||
| 236 | margin-right: 20px; | ||
| 237 | color: #333; | ||
| 238 | } | ||
| 239 | |||
| 240 | /***************************************************************** RESPONSIVE */ | ||
| 241 | |||
| 242 | @media only screen and (max-width:800px) { | ||
| 243 | body { | ||
| 244 | font-size: 16px; | ||
| 245 | } | ||
| 246 | |||
| 247 | .wrapper { | ||
| 248 | padding: 10px 20px !important; | ||
| 249 | } | ||
| 250 | |||
| 251 | h1 { | ||
| 252 | font-size: 200%; | ||
| 253 | } | ||
| 254 | } | ||
| 255 | |||
| 256 | .article-list a { | ||
| 257 | text-decoration: none; | ||
| 258 | } | ||
| 259 | |||
| 260 | .article-list a h2 { | ||
| 261 | margin-bottom: 5px; | ||
| 262 | } | ||
