| 1 |
<tmpl> |
| 2 |
html { height: 100%; } |
| 3 |
body { |
| 4 |
font-family: sans-serif; |
| 5 |
margin: 0; padding: 0; |
| 6 |
background-color: {{$color.bg}}; |
| 7 |
color: {{$color.fg}}; |
| 8 |
direction: {{$direction}}; |
| 9 |
} |
| 10 |
article, aside, nav, header, footer, section { |
| 11 |
display: block; |
| 12 |
margin: 0; |
| 13 |
padding: 0; |
| 14 |
} |
| 15 |
main { |
| 16 |
display: flex; |
| 17 |
flex-flow: row; |
| 18 |
} |
| 19 |
main > * { |
| 20 |
flex: 0 0 220px; |
| 21 |
} |
| 22 |
main > div.page { |
| 23 |
flex-grow: 1; |
| 24 |
margin: 0; |
| 25 |
display: flex; |
| 26 |
flex-flow: column; |
| 27 |
align-items: stretch; |
| 28 |
justify-content: flex-start; |
| 29 |
min-height: 100vh; |
| 30 |
} |
| 31 |
div.page > article { flex: 1 0 auto; } |
| 32 |
div.page > header, div.page > footer { flex: 0 1 auto; } |
| 33 |
.pagewide { |
| 34 |
max-width: {{$html.grid.size - 20}}px; |
| 35 |
margin-left: auto; |
| 36 |
margin-right: auto; |
| 37 |
padding-left: 10px; |
| 38 |
padding-right: 10px; |
| 39 |
} |
| 40 |
aside.sidebar { |
| 41 |
width: 300px; |
| 42 |
padding: 20px 10px; |
| 43 |
background: {{$color.bg.gray}} |
| 44 |
} |
| 45 |
@media only screen and (max-width: 720px) { |
| 46 |
aside.sidebar { |
| 47 |
display: none; |
| 48 |
} |
| 49 |
} |
| 50 |
aside.sidebar-right { order: 3; } |
| 51 |
aside.sidebar section { margin-top: 0; } |
| 52 |
aside.sidebar * { margin-bottom: 20px; } |
| 53 |
aside.sidebar section > div.inner > div.hgroup { |
| 54 |
border-bottom: none; |
| 55 |
} |
| 56 |
aside.sidebar section h2 { |
| 57 |
font-size: 1em; |
| 58 |
margin-bottom: 0; |
| 59 |
} |
| 60 |
article { |
| 61 |
padding-top: 10px; |
| 62 |
padding-bottom: 10px; |
| 63 |
min-height: 20em; |
| 64 |
background-color: {{$color.bg}}; |
| 65 |
} |
| 66 |
section { |
| 67 |
margin-top: 2.4em; |
| 68 |
clear: both; |
| 69 |
} |
| 70 |
section section { |
| 71 |
margin-top: 1.44em; |
| 72 |
} |
| 73 |
.yelp-hash-highlight { |
| 74 |
animation-name: yelp-hash-highlight; |
| 75 |
animation-duration: 0.5s; |
| 76 |
animation-fill-mode: forwards; |
| 77 |
} |
| 78 |
@keyframes yelp-hash-highlight { |
| 79 |
from { transform: translateY(0px) } |
| 80 |
25% { transform: translateY(20px); } |
| 81 |
50% { transform: translateY(0); } |
| 82 |
75% { transform: translateY(10px); } |
| 83 |
to { transform: translateY(0px); } |
| 84 |
} |
| 85 |
div.trails { |
| 86 |
margin: 0 -10px 0 -10px; |
| 87 |
padding: 0.2em 10px; |
| 88 |
background-color: {{$color.bg.gray}}; |
| 89 |
} |
| 90 |
div.trail { |
| 91 |
margin: 0.2em 0; |
| 92 |
padding: 0 1em 0 1em; |
| 93 |
text-indent: -1em; |
| 94 |
color: {{$color.fg.dark}}; |
| 95 |
} |
| 96 |
a.trail { white-space: nowrap; } |
| 97 |
div.hgroup { |
| 98 |
margin-bottom: 0.5em; |
| 99 |
color: {{$color.fg.dark}}; |
| 100 |
} |
| 101 |
section > div.inner > div.hgroup { |
| 102 |
margin-top: 0; |
| 103 |
border-bottom: solid 1px {{$color.gray}}; |
| 104 |
} |
| 105 |
section.links > div.inner > div.hgroup { |
| 106 |
border-bottom: solid 2px {{$color.fg.blue}}; |
| 107 |
} |
| 108 |
section section.links > div.inner > div.hgroup { |
| 109 |
border: none; |
| 110 |
} |
| 111 |
h1, h2, h3, h4, h5, h6, h7 { |
| 112 |
margin: 0; padding: 0; |
| 113 |
font-weight: normal; |
| 114 |
} |
| 115 |
h1 { font-size: 2.4em; } |
| 116 |
h2 { font-size: 1.72em; } |
| 117 |
h3.title, h4.title, h5.title, h6.title, h7.title { font-size: 1.44em; } |
| 118 |
h3, h4, h5, h6, h7 { font-size: 1em; } |
| 119 |
p { line-height: 1.44em; } |
| 120 |
div, pre, p { margin: 0; padding: 0; } |
| 121 |
div.contents > * + *, |
| 122 |
th > * + *, td > * + *, |
| 123 |
dt > * + *, dd > * + *, |
| 124 |
li > * + * { margin-top: 1em; } |
| 125 |
p img { vertical-align: middle; } |
| 126 |
p.lead { font-size: 1.2em; } |
| 127 |
div.clear { |
| 128 |
margin: 0; padding: 0; |
| 129 |
height: 0; line-height: 0; |
| 130 |
clear: both; |
| 131 |
} |
| 132 |
.center { text-align: center; } |
| 133 |
|
| 134 |
footer { background: #ddd; } |
| 135 |
footer div.about { |
| 136 |
max-width: {{2 * $html.grid.size div 3 - 20}}px; |
| 137 |
margin: 0 auto; |
| 138 |
} |
| 139 |
footer div.about > div.inner > div.hgroup { |
| 140 |
margin: 0; padding: 0; |
| 141 |
text-align: center; |
| 142 |
border: none; |
| 143 |
} |
| 144 |
footer div.about > div.inner > div.hgroup > h2 { |
| 145 |
margin: 0; padding: 0.2em; |
| 146 |
font-size: inherit; |
| 147 |
} |
| 148 |
footer div.about.ui-expander > div.inner > div.hgroup span.title:before { |
| 149 |
content: ""; |
| 150 |
} |
| 151 |
div.copyrights { text-align: center; } |
| 152 |
div.copyright { margin: 0; } |
| 153 |
div.credits { |
| 154 |
display: flex; |
| 155 |
flex-flow: row wrap; |
| 156 |
align-items: stretch; |
| 157 |
justify-content: flex-start; |
| 158 |
margin: 0 -10px; |
| 159 |
} |
| 160 |
div.credits > * { |
| 161 |
vertical-align: top; |
| 162 |
text-align: left; |
| 163 |
flex: 1 0 {{$html.grid.size div 3 - 60}}px; |
| 164 |
padding: 10px; |
| 165 |
} |
| 166 |
div.credits > *:empty { padding: 0; height: 0; } |
| 167 |
ul.credits, ul.credits li { |
| 168 |
margin: 0; padding: 0; |
| 169 |
list-style-type: none; |
| 170 |
} |
| 171 |
ul.credits li { |
| 172 |
margin-{{$left}}: 1em; |
| 173 |
text-indent: -1em; |
| 174 |
} |
| 175 |
div.license { |
| 176 |
padding-bottom: 10px; |
| 177 |
} |
| 178 |
|
| 179 |
table { |
| 180 |
border-collapse: collapse; |
| 181 |
border-color: {{$color.gray}}; |
| 182 |
border-width: 1px; |
| 183 |
} |
| 184 |
td, th { |
| 185 |
padding: 0.5em; |
| 186 |
vertical-align: top; |
| 187 |
border-color: {{$color.gray}}; |
| 188 |
border-width: 1px; |
| 189 |
} |
| 190 |
thead td, thead th, tfoot td, tfoot th { |
| 191 |
font-weight: bold; |
| 192 |
color: {{$color.fg.dark}}; |
| 193 |
background-color: {{$color.bg.dark}}; |
| 194 |
} |
| 195 |
th { |
| 196 |
text-align: {{$left}}; |
| 197 |
font-weight: bold; |
| 198 |
color: {{$color.fg.dark}}; |
| 199 |
} |
| 200 |
|
| 201 |
ul, ol, dl { margin: 0; padding: 0; } |
| 202 |
li { |
| 203 |
margin: 1em 0 0 0; |
| 204 |
margin-{{$left}}: 2.4em; |
| 205 |
padding: 0; |
| 206 |
} |
| 207 |
li:first-child { margin-top: 0; } |
| 208 |
@media (max-width: 480px) { |
| 209 |
li { |
| 210 |
margin-{{$left}}: 1.44em; |
| 211 |
} |
| 212 |
} |
| 213 |
dt { margin-top: 1em; } |
| 214 |
dt:first-child { margin-top: 0; } |
| 215 |
dt + dt { margin-top: 0; } |
| 216 |
dd { |
| 217 |
margin: 0.2em 0 0 0; |
| 218 |
margin-{{$left}}: 1.44em; |
| 219 |
} |
| 220 |
dd + dd { margin-top: 1em; } |
| 221 |
ol.compact li { margin-top: 0.2em; } |
| 222 |
ul.compact li { margin-top: 0.2em; } |
| 223 |
ol.compact li:first-child { margin-top: 0; } |
| 224 |
ul.compact li:first-child { margin-top: 0; } |
| 225 |
dl.compact dt { margin-top: 0.2em; } |
| 226 |
dl.compact dt:first-child { margin-top: 0; } |
| 227 |
dl.compact dt + dt { margin-top: 0; } |
| 228 |
|
| 229 |
div.tiles { |
| 230 |
display: flex; |
| 231 |
flex-flow: row wrap; |
| 232 |
align-items: stretch; |
| 233 |
justify-content: stretch; |
| 234 |
vertical-align: top; |
| 235 |
clear: both; |
| 236 |
margin: 0 -10px; |
| 237 |
} |
| 238 |
div.tiles > * { |
| 239 |
vertical-align: top; |
| 240 |
margin: 0; |
| 241 |
padding: 10px; |
| 242 |
max-width: none; |
| 243 |
} |
| 244 |
div.tiles > *:empty { padding: 0 10px; height: 0; } |
| 245 |
div.tile4 { flex: 1 0 {{$html.grid.size div 4 - 20}}px; } |
| 246 |
div.tile3 { flex: 1 0 {{$html.grid.size div 3 - 20}}px; } |
| 247 |
div.tile2 { flex: 1 0 {{$html.grid.size div 2 - 20}}px; } |
| 248 |
div.tile1 { flex: 1 0 {{$html.grid.size - 20}}px; } |
| 249 |
|
| 250 |
a { |
| 251 |
text-decoration: none; |
| 252 |
color: {{$color.fg.blue}}; |
| 253 |
} |
| 254 |
a:visited { color: {{$color.fg.purple}}; } |
| 255 |
a:hover { |
| 256 |
border-bottom: dotted 1px {{$color.fg.blue}}; |
| 257 |
} |
| 258 |
p a { |
| 259 |
border-bottom: dotted 1px {{$color.fg.blue}}; |
| 260 |
} |
| 261 |
a img { border: none; } |
| 262 |
</tmpl> |