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