| 1 |
|
| 2 |
$site_width: 640px; |
| 3 |
|
| 4 |
$light_teal: #7FC7AF; |
| 5 |
$teal: desaturate(#3FB8AF, 10%); |
| 6 |
$brown: #DAD8A7; |
| 7 |
$pink: darken(#FF9E9D, 10%); |
| 8 |
$btn_color: desaturate(#FF3D7F, 10%); |
| 9 |
|
| 10 |
::selection { |
| 11 |
background: red; |
| 12 |
color: white; |
| 13 |
} |
| 14 |
|
| 15 |
@mixin unselectable { |
| 16 |
-moz-user-select: none; |
| 17 |
-webkit-user-select: none; |
| 18 |
user-select: none; |
| 19 |
} |
| 20 |
|
| 21 |
@mixin grad($top, $bottom) { |
| 22 |
background-color: mix($top, $bottom); |
| 23 |
background-image: linear-gradient(bottom, $bottom 0%, $top 100%); |
| 24 |
background-image: -webkit-linear-gradient(bottom, $bottom 0%, $top 100%); |
| 25 |
background-image: -moz-linear-gradient(bottom, $bottom 0%, $top 100%); |
| 26 |
background-image: -o-linear-gradient(bottom, $bottom 0%, $top 100%); |
| 27 |
background-image: -ms-linear-gradient(bottom, $bottom 0%, $top 100%); |
| 28 |
} |
| 29 |
|
| 30 |
@mixin autograd($color, $amount: 10%) { |
| 31 |
@include grad($color, darken($color, $amount)); |
| 32 |
} |
| 33 |
|
| 34 |
body { |
| 35 |
background: $pink; |
| 36 |
font-family: Lato, sans-serif; |
| 37 |
} |
| 38 |
|
| 39 |
.header, .footer, .body { |
| 40 |
.inner { |
| 41 |
width: $site_width; |
| 42 |
margin: 0 auto; |
| 43 |
} |
| 44 |
} |
| 45 |
|
| 46 |
.header { |
| 47 |
text-shadow: 0px -1px 0px darken($teal, 15%); |
| 48 |
|
| 49 |
.color { |
| 50 |
background: $teal url(../img/tile.png); |
| 51 |
border-top: 4px solid $light_teal; |
| 52 |
box-shadow: inset 0px 1px 0px rgba(255,255,255, 0.5), inset 0px 8px 8px -8px #37505A, inset 0px -1px 0px rgba(255,255,255, 0.3); |
| 53 |
} |
| 54 |
|
| 55 |
h1 { |
| 56 |
font-family: 'Quicksand', sans-serif; |
| 57 |
font-size: 40px; |
| 58 |
line-height: 100px; |
| 59 |
font-weight: normal; |
| 60 |
margin: 0; |
| 61 |
|
| 62 |
a { |
| 63 |
text-decoration: none; |
| 64 |
color: #EDFFF9; |
| 65 |
|
| 66 |
&:active { |
| 67 |
position: relative; |
| 68 |
top: 1px; |
| 69 |
} |
| 70 |
} |
| 71 |
} |
| 72 |
|
| 73 |
.nav { |
| 74 |
padding: 8px 0; |
| 75 |
font-size: 17px; |
| 76 |
text-shadow: none; |
| 77 |
background: darken($teal, 30%); |
| 78 |
color: $teal; |
| 79 |
box-shadow: inset 0px 4px 8px -4px rgba(0,0,0,0.9), inset 0px -1px 0px rgba(255,255,255, 0.8); |
| 80 |
|
| 81 |
a { |
| 82 |
color: lighten($teal, 40%); |
| 83 |
text-decoration: none; |
| 84 |
|
| 85 |
&:hover { |
| 86 |
text-decoration: underline; |
| 87 |
} |
| 88 |
} |
| 89 |
|
| 90 |
.social { |
| 91 |
float: right; |
| 92 |
margin-top: -2px; |
| 93 |
} |
| 94 |
} |
| 95 |
|
| 96 |
.download-area { |
| 97 |
float: right; |
| 98 |
margin-top: 25px; |
| 99 |
background: rgba(255,255,255, 0.3); |
| 100 |
border-radius: 8px; |
| 101 |
padding: 5px; |
| 102 |
|
| 103 |
a { |
| 104 |
text-decoration: none; |
| 105 |
} |
| 106 |
|
| 107 |
.download-button { |
| 108 |
$height: 8px; |
| 109 |
$depress: 4px; |
| 110 |
|
| 111 |
@include unselectable; |
| 112 |
|
| 113 |
color: white; |
| 114 |
text-align: center; |
| 115 |
|
| 116 |
@include autograd($btn_color); |
| 117 |
|
| 118 |
position: relative; |
| 119 |
top: -1 * $height; |
| 120 |
|
| 121 |
padding: 8px 20px; |
| 122 |
border-radius: 8px; |
| 123 |
text-shadow: none; |
| 124 |
|
| 125 |
box-shadow: 0px $height 0px darken($btn_color, 30%), inset 0px -1px 0px rgba(255,255,255, 0.2), inset 0px 1px 0px rgba(0,0,0, 0.2); |
| 126 |
text-shadow: 0px 1px 2px darken($btn_color, 40%); |
| 127 |
|
| 128 |
cursor: pointer; |
| 129 |
|
| 130 |
-webkit-transition: all 0.05s ease-in-out; |
| 131 |
-moz-transition: all 0.05s ease-in-out; |
| 132 |
transition: all 0.05s ease-in-out; |
| 133 |
|
| 134 |
&:hover { |
| 135 |
@include autograd(lighten($btn_color, 3%)); |
| 136 |
} |
| 137 |
|
| 138 |
&:active { |
| 139 |
box-shadow: 0px $height - $depress 0px darken($btn_color, 30%), inset 0px -1px 0px rgba(255,255,255, 0.2), inset 0px 1px 0px rgba(0,0,0, 0.2); |
| 140 |
top: -1 * ($height - $depress); |
| 141 |
} |
| 142 |
|
| 143 |
.top { |
| 144 |
font-weight: bold; |
| 145 |
font-size: 16px; |
| 146 |
} |
| 147 |
|
| 148 |
.sub { |
| 149 |
font-size: 14px; |
| 150 |
} |
| 151 |
} |
| 152 |
} |
| 153 |
|
| 154 |
} |
| 155 |
|
| 156 |
.body { |
| 157 |
$bg_color: #FEFFED; |
| 158 |
$text_color: darken($brown, 60%); |
| 159 |
box-shadow: inset 0px 4px 8px -4px rgba(0,0,0,0.7), inset 0px -4px 8px -4px rgba(0,0,0,0.4); |
| 160 |
background: $bg_color; |
| 161 |
overflow: hidden; |
| 162 |
color: $text_color; |
| 163 |
font-size: 18px; |
| 164 |
padding-bottom: 20px; |
| 165 |
|
| 166 |
.inner { |
| 167 |
background: white; |
| 168 |
margin-top: 20px; |
| 169 |
padding: 30px 50px; |
| 170 |
border: 1px solid lightGrey; |
| 171 |
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.19); |
| 172 |
|
| 173 |
h1, h2, h3 { |
| 174 |
margin: 0 0 20px 0; |
| 175 |
} |
| 176 |
} |
| 177 |
|
| 178 |
h1, h2, h3 { |
| 179 |
text-shadow: 1px 1px 0px $bg_color, 2px 2px 0px rgba($text_color, 0.3); |
| 180 |
letter-spacing: -1px; |
| 181 |
} |
| 182 |
|
| 183 |
h3 { |
| 184 |
color: #4D4C3D; |
| 185 |
} |
| 186 |
|
| 187 |
p { |
| 188 |
margin: 0 0 15px 0; |
| 189 |
} |
| 190 |
|
| 191 |
a { |
| 192 |
color: #DB1C4A; |
| 193 |
&:hover { |
| 194 |
color: lighten(#DB1C4A, 10%); |
| 195 |
} |
| 196 |
} |
| 197 |
|
| 198 |
pre { |
| 199 |
margin: 20px 0; |
| 200 |
} |
| 201 |
} |
| 202 |
|
| 203 |
.footer { |
| 204 |
font-size: 16px; |
| 205 |
color: lighten($pink, 20%); |
| 206 |
text-shadow: 0px 1px 0px darken($pink, 20%); |
| 207 |
|
| 208 |
border-top: 1px dashed darken($pink, 50%); |
| 209 |
box-shadow: inset 0px 1px 0px rgba(255,255,255, 0.5); |
| 210 |
padding: 8px 0 20px 0; |
| 211 |
|
| 212 |
line-height: 150%; |
| 213 |
|
| 214 |
a { |
| 215 |
color: white; |
| 216 |
font-weight: bold; |
| 217 |
text-decoration: none; |
| 218 |
padding: 0 4px; |
| 219 |
border-radius: 4px; |
| 220 |
border: 1px solid lighten($pink, 4%); |
| 221 |
|
| 222 |
&:hover { |
| 223 |
background: darken($pink, 3%); |
| 224 |
border: 1px solid lighten($pink, 4%); |
| 225 |
} |
| 226 |
} |
| 227 |
} |
| 228 |
|
| 229 |
|
| 230 |
p { |
| 231 |
line-height: 150%; |
| 232 |
code { |
| 233 |
background: rgba(0,0,0, 0.1); |
| 234 |
border-radius: 4px; |
| 235 |
padding: 1px 4px; |
| 236 |
} |
| 237 |
} |
| 238 |
|
| 239 |
.comments { |
| 240 |
font-size: 12px; |
| 241 |
} |
| 242 |
|
| 243 |
.index { |
| 244 |
line-height: 150%; |
| 245 |
margin-bottom: 20px; |
| 246 |
|
| 247 |
ul { |
| 248 |
margin: 0; |
| 249 |
} |
| 250 |
} |
| 251 |
|
| 252 |
.highlight { |
| 253 |
background: #333; |
| 254 |
color: white; |
| 255 |
font-size: 14px; |
| 256 |
padding: 10px; |
| 257 |
box-shadow: 0px 1px 3px rgba(0,0,0, 0.7), inset 0px 0px 0px 1px rgba(255,255,255,0.3); |
| 258 |
border-radius: 2px; |
| 259 |
border: 1px solid #222; |
| 260 |
|
| 261 |
|
| 262 |
// builtins |
| 263 |
.nb { |
| 264 |
color: #FFA67C; |
| 265 |
} |
| 266 |
|
| 267 |
// strings |
| 268 |
.s, .s1, .s2, .se, .nt { |
| 269 |
color: #ffe898; |
| 270 |
} |
| 271 |
|
| 272 |
// proper names |
| 273 |
.nc, .vc, .bp { |
| 274 |
color: #98d9ff; |
| 275 |
} |
| 276 |
|
| 277 |
// true, false, nil |
| 278 |
.kc { |
| 279 |
color: #acfff0; |
| 280 |
} |
| 281 |
|
| 282 |
// function lit, braces, parens |
| 283 |
.nf, .kt { |
| 284 |
color: #9fff98; |
| 285 |
} |
| 286 |
|
| 287 |
.nv { |
| 288 |
color: #ff9898; |
| 289 |
} |
| 290 |
|
| 291 |
// keywords |
| 292 |
.k, .kd, .na { |
| 293 |
color: #cb98ff; |
| 294 |
} |
| 295 |
|
| 296 |
.c1, .c2 { |
| 297 |
color: #929292; |
| 298 |
} |
| 299 |
|
| 300 |
.m, .mi, .mf, .mh, .o { |
| 301 |
color: #9495ff; |
| 302 |
} |
| 303 |
} |
| 304 |
|