| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /*! | |
| 2 * This file is part of universal-design-language | |
| 3 * Copyright (C) 2016 Eyeo GmbH | |
| 4 * | |
| 5 * universal-design-language 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 * universal-design-language 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 web.starter-kit. If not, see <http://www.gnu.org/licenses/>. | |
| 17 */ | |
| 18 | |
| 19 /*! | |
| 20 * This file contains parts of: | |
| 21 * - normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css | |
| 22 */ | |
| 23 | |
| 24 /* UDL content styles | |
| 25 ******************************************************************************* | |
| 26 * - Global | |
| 27 * - Headings | |
| 28 * - Body content | |
| 29 * - Alignment | |
| 30 * - Media queries | |
| 31 ******************************************************************************/ | |
| 32 | |
| 33 /* Global | |
| 34 ******************************************************************************/ | |
| 35 | |
| 36 html | |
| 37 { | |
| 38 font-family: $sans-font; | |
| 39 font-size: $medium-font; | |
| 40 line-height: 1.15; | |
| 41 } | |
| 42 | |
| 43 /** | |
| 44 * Center content within a (responsive) fixed width | |
| 45 */ | |
| 46 .container | |
| 47 { | |
| 48 max-width: 100%; | |
| 49 margin: 0px auto; | |
| 50 padding: 0px $small-space; | |
| 51 } | |
| 52 | |
| 53 .container:after | |
|
saroyanm
2016/11/15 14:28:56
Why are we clearing the container ? It's not float
juliandoucette
2016/11/16 14:58:51
Acknowledged.
juliandoucette
2016/11/17 16:09:34
Done.
| |
| 54 { | |
| 55 display: block; | |
| 56 clear: both; | |
| 57 content: ""; | |
| 58 } | |
| 59 | |
| 60 /** | |
| 61 * Clear all floating elements | |
| 62 */ | |
| 63 .clearfix | |
|
juliandoucette
2016/11/16 14:58:48
NOTE: We will drop this class and re-add if needed
juliandoucette
2016/11/17 16:09:38
Done.
| |
| 64 { | |
| 65 display: block; | |
| 66 clear: both; | |
| 67 } | |
| 68 | |
| 69 p, | |
| 70 ol, | |
| 71 ul, | |
| 72 dl, | |
| 73 pre, | |
| 74 blockquote | |
| 75 { | |
| 76 /* Set consistent margins (opinionated) */ | |
| 77 margin: $small-space 0px; | |
| 78 } | |
| 79 | |
| 80 /* Headings | |
| 81 ******************************************************************************/ | |
| 82 | |
| 83 h1, | |
| 84 h2, | |
| 85 h3, | |
| 86 h4, | |
| 87 h5, | |
| 88 h6 | |
| 89 { | |
| 90 margin: $medium-space 0 $small-space 0; | |
| 91 } | |
| 92 | |
| 93 h1 | |
| 94 { | |
| 95 font-size: round($large-font * 1.6); | |
| 96 } | |
| 97 | |
| 98 h2 | |
| 99 { | |
| 100 font-size: round($large-font * 1.4); | |
| 101 } | |
| 102 | |
| 103 h3 | |
| 104 { | |
| 105 font-size: round($large-font * 1.2); | |
| 106 } | |
| 107 | |
| 108 h4 | |
| 109 { | |
| 110 font-size: $large-font; | |
| 111 } | |
| 112 | |
| 113 h5 | |
| 114 { | |
| 115 font-size: $medium-font; | |
| 116 } | |
| 117 | |
| 118 h6 | |
| 119 { | |
| 120 font-size: $small-font; | |
| 121 } | |
| 122 | |
| 123 /* Body content | |
| 124 ******************************************************************************/ | |
| 125 | |
| 126 abbr | |
| 127 { | |
| 128 text-decoration: underline dotted; | |
| 129 cursor: help; | |
| 130 } | |
| 131 | |
| 132 b, | |
| 133 strong | |
| 134 { | |
| 135 font-weight: $bold-weight; | |
| 136 } | |
| 137 | |
| 138 small | |
| 139 { | |
| 140 font-size: $small-font; | |
| 141 } | |
| 142 | |
| 143 sup | |
| 144 { | |
| 145 position: relative; | |
| 146 top: -0.5em; | |
|
saroyanm
2016/11/15 14:28:55
Why are we using EMs here ?
I assume this change i
juliandoucette
2016/11/16 14:58:50
Acknowledged.
We will remove this in favor of ver
juliandoucette
2016/11/17 16:09:38
Done.
| |
| 147 font-size: 75%; | |
| 148 /* Prevent `sub` and `sup` elements from affecting the line height */ | |
|
saroyanm
2016/11/15 14:28:57
Detail: It's only sup in this case, you can overri
juliandoucette
2016/11/16 14:58:50
Acknowledged.
We probably don't need line-height
juliandoucette
2016/11/17 16:09:35
Done.
| |
| 149 line-height: 0px; | |
| 150 vertical-align: baseline; | |
|
saroyanm
2016/11/15 14:28:56
Why are we aligning to the baseline ? Doesn't look
juliandoucette
2016/11/16 14:58:48
Acknowledged.
We will change this to vertical-ali
juliandoucette
2016/11/17 16:09:36
Done.
| |
| 151 } | |
| 152 | |
| 153 a, | |
| 154 a:visited | |
| 155 { | |
| 156 /* Set default color and decoration (opinionated) */ | |
| 157 color: $accent; | |
| 158 /* Remove the gray background on active links in IE 10. */ | |
| 159 background-color: transparent; | |
| 160 text-decoration: none; | |
| 161 } | |
| 162 | |
| 163 a:hover, | |
| 164 a:active, | |
| 165 a:focus | |
| 166 { | |
| 167 /* Set default color and decoration (opinionated) */ | |
|
saroyanm
2016/11/15 14:28:55
* I can't see default color being set.
* I'm not s
juliandoucette
2016/11/16 14:58:50
Acknowledged.
I will remove and/or adjust the com
juliandoucette
2016/11/17 16:09:38
Done.
| |
| 168 text-decoration: underline; | |
| 169 } | |
| 170 | |
| 171 img | |
| 172 { | |
| 173 margin: 0px $small-space / 2; | |
| 174 /* Remove the border on images inside links in IE 10-. */ | |
| 175 border-style: none; | |
| 176 } | |
| 177 | |
| 178 hr | |
| 179 { | |
| 180 border-top: 0px; | |
| 181 border-bottom: 2px solid $gray; | |
| 182 } | |
| 183 | |
| 184 [dir="ltr"] blockquote | |
| 185 { | |
| 186 padding-left: $small-space; | |
| 187 border-left: 5px solid $gray; | |
| 188 } | |
| 189 | |
| 190 [dir="rtl"] blockquote | |
| 191 { | |
| 192 padding-right: $small-space; | |
| 193 border-right: 5px solid $gray; | |
| 194 } | |
| 195 | |
| 196 pre | |
| 197 { | |
| 198 overflow: auto; | |
| 199 padding: 0px $small-space; | |
| 200 } | |
| 201 | |
| 202 code | |
| 203 { | |
| 204 padding: 0px $small-space / 4; | |
| 205 } | |
| 206 | |
| 207 pre, | |
| 208 code | |
| 209 { | |
| 210 background-color: $gray-light; | |
| 211 font-family: $monospace-font; | |
| 212 font-size: $medium-font; | |
| 213 } | |
| 214 | |
| 215 pre code | |
| 216 { | |
| 217 padding: 0px; | |
| 218 } | |
| 219 | |
| 220 [dir="ltr"] ol, | |
| 221 [dir="ltr"] ul | |
| 222 { | |
| 223 padding-left: $small-space * 1.5; | |
| 224 } | |
| 225 | |
| 226 [dir="rtl"] ol, | |
| 227 [dir="rtl"] ul | |
| 228 { | |
| 229 padding-right: $small-space * 1.5; | |
| 230 } | |
| 231 | |
| 232 li | |
| 233 { | |
| 234 margin: $small-space / 2 0px; | |
| 235 } | |
| 236 | |
| 237 ol ol, | |
| 238 ul ul, | |
| 239 ol ul, | |
| 240 ul ol | |
| 241 { | |
| 242 /* prevent double spacing lists */ | |
| 243 margin: 0px; | |
| 244 } | |
| 245 | |
| 246 ol ol | |
| 247 { | |
| 248 list-style-type: lower-alpha; | |
| 249 } | |
| 250 | |
| 251 dt | |
| 252 { | |
| 253 /* undo browser default (opinionated)*/ | |
| 254 font-weight: $bold-weight; | |
| 255 } | |
| 256 | |
| 257 dd | |
| 258 { | |
| 259 margin: $small-space / 2 0px $small-space 0px; | |
| 260 } | |
| 261 | |
| 262 /** | |
| 263 * Remove list style from vertical lists | |
| 264 */ | |
| 265 .unstyled-list, | |
| 266 { | |
| 267 list-style-type: none; | |
| 268 } | |
| 269 | |
| 270 [dir="ltr"] .unstyled-list | |
| 271 { | |
| 272 padding-left: 0px; | |
| 273 } | |
| 274 | |
| 275 [dir="rtl"] .unstyled-list | |
| 276 { | |
| 277 padding-right: 0px; | |
| 278 } | |
| 279 | |
| 280 [dir="ltr"] .unstyled-list .unstyled-list | |
| 281 { | |
| 282 padding-left: $medium-space; | |
| 283 } | |
| 284 | |
| 285 [dir="rtl"] .unstyled-list .unstyled-list | |
| 286 { | |
| 287 padding-right: $small-space; | |
| 288 } | |
| 289 | |
| 290 audio, | |
|
saroyanm
2016/11/15 14:28:57
I think we only need this styles in case we will h
juliandoucette
2016/11/16 14:58:49
Acknowledged.
Agreed.
juliandoucette
2016/11/17 16:09:34
Done.
| |
| 291 video | |
| 292 { | |
| 293 /* undo browser default (opinionated) */ | |
| 294 display: block; | |
| 295 } | |
| 296 | |
| 297 /** | |
| 298 * Embed 16x9 iframe video | |
| 299 */ | |
| 300 .embed | |
| 301 { | |
| 302 display: block; | |
| 303 position: relative; | |
| 304 overflow: hidden; | |
| 305 padding: 0% 0% 56.25% 0%; | |
| 306 } | |
| 307 | |
| 308 .embed iframe | |
| 309 { | |
| 310 position: absolute; | |
| 311 top: 0px; | |
| 312 left: 0px; | |
| 313 width: 100%; | |
| 314 height: 100%; | |
| 315 /* undo browser default */ | |
| 316 border: 0px; | |
| 317 } | |
| 318 | |
| 319 /* Alignment | |
| 320 ******************************************************************************/ | |
| 321 | |
| 322 /** | |
| 323 * Clear and stretch element full-width | |
| 324 */ | |
| 325 .full-width | |
| 326 { | |
| 327 display: block; | |
| 328 clear: both; | |
|
saroyanm
2016/11/15 14:28:56
Why are we clearing the full width elements ?
I t
juliandoucette
2016/11/16 14:58:49
Acknowledged.
We can handle this edge case with i
juliandoucette
2016/11/17 16:09:36
Done.
| |
| 329 overflow: auto; | |
|
saroyanm
2016/11/15 14:28:55
Why do we need to set the overflow value here ?
I
juliandoucette
2016/11/16 14:58:49
Acknowledged.
This addresses an edge case where w
juliandoucette
2016/11/17 16:09:35
Done.
| |
| 330 width: 100%; | |
| 331 margin: $small-space 0px; | |
| 332 } | |
| 333 | |
| 334 .float-start, | |
| 335 .float-end | |
| 336 { | |
| 337 display: block; | |
| 338 margin: 0px 0px $small-space 0px; | |
| 339 } | |
| 340 | |
| 341 /** | |
| 342 * Float to start-of-line | |
| 343 */ | |
| 344 [dir="ltr"] .float-start | |
| 345 { | |
| 346 float: left; | |
| 347 margin-right: $small-space; | |
| 348 } | |
| 349 | |
| 350 [dir="rtl"] .float-start | |
| 351 { | |
| 352 float: right; | |
| 353 margin-left: $small-space; | |
| 354 } | |
| 355 | |
| 356 /** | |
| 357 * Float to end-of-line | |
| 358 */ | |
| 359 [dir="ltr"] .float-end | |
| 360 { | |
| 361 float: right; | |
| 362 margin-left: $small-space; | |
| 363 } | |
| 364 | |
| 365 [dir="rtl"] .float-end | |
| 366 { | |
| 367 float: left; | |
| 368 margin-right: $small-space; | |
| 369 } | |
| 370 | |
| 371 /* Media queries | |
| 372 ******************************************************************************/ | |
| 373 | |
| 374 @media(min-width: $mobile-breakpoint) | |
|
saroyanm
2016/11/15 14:28:56
Seems like we started to support 4 different scree
juliandoucette
2016/11/16 14:58:50
Acknowledged.
We will remove mobile-breakpoint an
juliandoucette
2016/11/17 16:09:35
Done.
| |
| 375 { | |
| 376 .container | |
| 377 { | |
| 378 width: $mobile-width; | |
| 379 } | |
| 380 } | |
| 381 | |
| 382 @media(min-width: $tablet-breakpoint) | |
| 383 { | |
| 384 .container | |
| 385 { | |
| 386 width: $tablet-width; | |
| 387 } | |
| 388 } | |
| 389 | |
| 390 @media(min-width: $desktop-breakpoint) | |
| 391 { | |
| 392 .container | |
| 393 { | |
| 394 width: $desktop-width; | |
| 395 } | |
| 396 } | |
| OLD | NEW |