OLD | NEW |
(Empty) | |
| 1 /*! |
| 2 * This file is part of website-defaults |
| 3 * Copyright (C) 2016-2017 eyeo GmbH |
| 4 * |
| 5 * website-defaults is free software: you can redistribute it and/or |
| 6 * modify it under the terms of the GNU General Public License as published by |
| 7 * the Free Software Foundation, either version 3 of the License, or |
| 8 * (at your option) any later version. |
| 9 * |
| 10 * website-defaults is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 * GNU General Public License for more details. |
| 14 * |
| 15 * You should have received a copy of the GNU General Public License |
| 16 * along with website-defaults. If not, see <http://www.gnu.org/licenses/>. |
| 17 */ |
| 18 /*! |
| 19 * This file is part of website-defaults |
| 20 * Copyright (C) 2016-2017 eyeo GmbH |
| 21 * |
| 22 * website-defaults is free software: you can redistribute it and/or |
| 23 * modify it under the terms of the GNU General Public License as published by |
| 24 * the Free Software Foundation, either version 3 of the License, or |
| 25 * (at your option) any later version. |
| 26 * |
| 27 * website-defaults is distributed in the hope that it will be useful, |
| 28 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 29 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 30 * GNU General Public License for more details. |
| 31 * |
| 32 * You should have received a copy of the GNU General Public License |
| 33 * along with website-defaults. If not, see <http://www.gnu.org/licenses/>. |
| 34 */ |
| 35 /******************************************************************************* |
| 36 * Variables |
| 37 ******************************************************************************* |
| 38 * ~ WARNING ~ DO NOT EDIT THIS FILE! |
| 39 * Set variables within project specfic SCSS before including website defaults. |
| 40 ******************************************************************************* |
| 41 * - Brand colors |
| 42 * - Fonts |
| 43 * - Spacing |
| 44 * - Breakpoints |
| 45 ******************************************************************************/ |
| 46 /* Brand colors |
| 47 ******************************************************************************/ |
| 48 /* Primary - The most widely used across all screens and components. */ |
| 49 /* Secondary - Used to indicate a related action or information. */ |
| 50 /* Accent - Used for action buttons and interactive elements. */ |
| 51 /* Error - Used for error messages and warnings. */ |
| 52 /* Fonts |
| 53 ******************************************************************************/ |
| 54 /* Spacing |
| 55 ******************************************************************************/ |
| 56 /* Breakpoints |
| 57 ******************************************************************************/ |
| 58 /* Container widths |
| 59 ******************************************************************************/ |
| 60 /*! |
| 61 * This file is part of website-defaults |
| 62 * Copyright (C) 2016-2017 eyeo GmbH |
| 63 * |
| 64 * website-defaults is free software: you can redistribute it and/or |
| 65 * modify it under the terms of the GNU General Public License as published by |
| 66 * the Free Software Foundation, either version 3 of the License, or |
| 67 * (at your option) any later version. |
| 68 * |
| 69 * website-defaults is distributed in the hope that it will be useful, |
| 70 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 71 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 72 * GNU General Public License for more details. |
| 73 * |
| 74 * You should have received a copy of the GNU General Public License |
| 75 * along with website-defaults. If not, see <http://www.gnu.org/licenses/>. |
| 76 */ |
| 77 /******************************************************************************* |
| 78 * Base styles |
| 79 ******************************************************************************/ |
| 80 html { |
| 81 box-sizing: border-box; |
| 82 color: #212121; |
| 83 background-color: #fff; |
| 84 font-family: sans-serif; |
| 85 line-height: 1.5; } |
| 86 |
| 87 /* Set default box-sizing (opinionated) */ |
| 88 *, |
| 89 *:before, |
| 90 *:after { |
| 91 box-sizing: inherit; } |
| 92 |
| 93 /* Remove the margin in all browsers (opinionated). */ |
| 94 body { |
| 95 margin: 0px; } |
| 96 |
| 97 /* Add the correct display in IE 9-. */ |
| 98 article, |
| 99 aside, |
| 100 footer, |
| 101 header, |
| 102 nav, |
| 103 section, |
| 104 main { |
| 105 display: block; } |
| 106 |
| 107 /** |
| 108 * Stretch content full-width |
| 109 */ |
| 110 .full-width { |
| 111 display: block; |
| 112 width: 100%; |
| 113 margin: 1em 0px; } |
| 114 |
| 115 /** |
| 116 * Center content within a (responsive) fixed width |
| 117 */ |
| 118 .container { |
| 119 width: 540px; |
| 120 max-width: 100%; |
| 121 margin: 0px auto; |
| 122 padding: 0px 1em; } |
| 123 |
| 124 @media (min-width: 768px) { |
| 125 .container { |
| 126 width: 720px; } } |
| 127 |
| 128 @media (min-width: 992px) { |
| 129 .container { |
| 130 width: 960px; } } |
| 131 |
| 132 /*! |
| 133 * This file is part of website-defaults |
| 134 * Copyright (C) 2016-2017 eyeo GmbH |
| 135 * |
| 136 * website-defaults is free software: you can redistribute it and/or |
| 137 * modify it under the terms of the GNU General Public License as published by |
| 138 * the Free Software Foundation, either version 3 of the License, or |
| 139 * (at your option) any later version. |
| 140 * |
| 141 * website-defaults is distributed in the hope that it will be useful, |
| 142 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 143 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 144 * GNU General Public License for more details. |
| 145 * |
| 146 * You should have received a copy of the GNU General Public License |
| 147 * along with website-defaults. If not, see <http://www.gnu.org/licenses/>. |
| 148 */ |
| 149 /******************************************************************************* |
| 150 * Content styles |
| 151 ******************************************************************************* |
| 152 * 1. Document |
| 153 * 2. Headings |
| 154 * 3. Body content |
| 155 ******************************************************************************/ |
| 156 /* Document |
| 157 ******************************************************************************/ |
| 158 p, |
| 159 ol, |
| 160 ul, |
| 161 dl, |
| 162 pre, |
| 163 blockquote { |
| 164 /* Set consistent margins (opinionated) */ |
| 165 margin: 1em 0em; } |
| 166 |
| 167 /* Headings |
| 168 ******************************************************************************/ |
| 169 h1, |
| 170 h2, |
| 171 h3, |
| 172 h4, |
| 173 h5, |
| 174 h6 { |
| 175 /* Margin on top **only** (opinionated) */ |
| 176 margin: 2em 0em 0.5em 0em; } |
| 177 |
| 178 h1 { |
| 179 font-size: 2em; } |
| 180 |
| 181 h2 { |
| 182 font-size: 1.5em; } |
| 183 |
| 184 h3 { |
| 185 font-size: 1.25em; } |
| 186 |
| 187 h4 { |
| 188 font-size: 1em; } |
| 189 |
| 190 h5 { |
| 191 font-size: 0.8em; } |
| 192 |
| 193 h6 { |
| 194 font-size: 0.7em; } |
| 195 |
| 196 /* Body content |
| 197 ******************************************************************************/ |
| 198 abbr { |
| 199 text-decoration: underline; |
| 200 cursor: help; } |
| 201 |
| 202 b, |
| 203 strong { |
| 204 font-weight: 600; } |
| 205 |
| 206 small { |
| 207 font-size: 0.8em; } |
| 208 |
| 209 sup { |
| 210 position: relative; |
| 211 font-size: 75%; |
| 212 vertical-align: super; } |
| 213 |
| 214 a, |
| 215 a:visited { |
| 216 color: #1565c0; |
| 217 /* Remove the gray background on active links in IE 10. */ |
| 218 background-color: transparent; |
| 219 text-decoration: none; |
| 220 /* Set default pointer regardless of href (opinionated) */ |
| 221 cursor: pointer; } |
| 222 |
| 223 a:hover, |
| 224 a:active, |
| 225 a:focus { |
| 226 text-decoration: underline; } |
| 227 |
| 228 img { |
| 229 /* Make fixed width images responsive */ |
| 230 max-width: 100%; |
| 231 /* Remove the border on images inside links in IE 10-. */ |
| 232 border-style: none; } |
| 233 |
| 234 hr { |
| 235 border: 1px solid #eee; } |
| 236 |
| 237 blockquote { |
| 238 padding-left: 1em; |
| 239 border-left: 5px solid #9e9e9e; } |
| 240 |
| 241 [dir="rtl"] blockquote { |
| 242 padding-right: 1em; |
| 243 padding-left: 0em; |
| 244 border-right: 5px solid #eee; |
| 245 border-left: 0px; } |
| 246 |
| 247 ol, |
| 248 ul { |
| 249 padding-left: 1.5em; } |
| 250 |
| 251 [dir="rtl"] ol, |
| 252 [dir="rtl"] ul { |
| 253 padding-right: 2em; |
| 254 padding-left: 0em; } |
| 255 |
| 256 li { |
| 257 margin: 0.25em 0em; } |
| 258 |
| 259 ol ol, |
| 260 ul ul, |
| 261 ol ul, |
| 262 ul ol { |
| 263 /* prevent double spacing lists */ |
| 264 margin: 0em; } |
| 265 |
| 266 ol ol { |
| 267 list-style-type: lower-alpha; } |
| 268 |
| 269 dt { |
| 270 /* undo browser default (opinionated)*/ |
| 271 font-weight: 600; } |
| 272 |
| 273 dd { |
| 274 margin: 0.25em 0em 1em 0em; } |
| 275 |
| 276 /*! |
| 277 * This file is part of website-defaults |
| 278 * Copyright (C) 2016-2017 eyeo GmbH |
| 279 * |
| 280 * website-defaults is free software: you can redistribute it and/or |
| 281 * modify it under the terms of the GNU General Public License as published by |
| 282 * the Free Software Foundation, either version 3 of the License, or |
| 283 * (at your option) any later version. |
| 284 * |
| 285 * website-defaults is distributed in the hope that it will be useful, |
| 286 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 287 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 288 * GNU General Public License for more details. |
| 289 * |
| 290 * You should have received a copy of the GNU General Public License |
| 291 * along with website-defaults. If not, see <http://www.gnu.org/licenses/>. |
| 292 */ |
| 293 /******************************************************************************* |
| 294 * Grid component |
| 295 ******************************************************************************/ |
| 296 /** |
| 297 * - .row contains one or more .column(s) |
| 298 * - .row clears .column(s) |
| 299 * - .row negates the left & right padding of it's left-most & right-most |
| 300 * .column(s) while preserving consistent padding between .column(s) |
| 301 */ |
| 302 .row { |
| 303 margin: 0px -1em; } |
| 304 |
| 305 .row:after { |
| 306 display: block; |
| 307 clear: both; |
| 308 content: ""; } |
| 309 |
| 310 /** |
| 311 * - .column is 100% width by default |
| 312 * - Modifier classes are applied to .column to change it's width |
| 313 * - Modifier classes behave differently on different device widths |
| 314 */ |
| 315 .column { |
| 316 position: relative; |
| 317 width: 100%; |
| 318 min-height: 1px; |
| 319 padding: 0px 1em; } |
| 320 |
| 321 /* - .column(s) within .row .reverse appear in reverse order |
| 322 * - .column(s) within [dir=rtl] appear in reverse order respectively |
| 323 */ |
| 324 .column, |
| 325 [dir="rtl"] .reverse .column { |
| 326 float: left; } |
| 327 |
| 328 .reverse .column, |
| 329 [dir="rtl"] .column { |
| 330 float: right; } |
| 331 |
| 332 @media (min-width: 768px) { |
| 333 .one-fourth { |
| 334 width: 50%; } } |
| 335 |
| 336 @media (min-width: 992px) { |
| 337 .one-half { |
| 338 width: 50%; } |
| 339 .one-third { |
| 340 width: 33.333333%; } |
| 341 .two-thirds { |
| 342 width: 66.666667%; } |
| 343 .one-fourth { |
| 344 width: 25%; } |
| 345 .three-fourths { |
| 346 width: 75%; } } |
OLD | NEW |