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 /* set box-sizing to border-box |
| 20 * @see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-be
st-practice/ |
| 21 */ |
| 22 |
| 23 html |
| 24 { |
| 25 box-sizing: border-box; |
| 26 } |
| 27 |
| 28 *, |
| 29 *::before, |
| 30 *::after |
| 31 { |
| 32 box-sizing: inherit; |
| 33 } |
| 34 |
| 35 /* set top level fonts and colors */ |
| 36 |
| 37 body |
| 38 { |
| 39 font-size: $medium-font; |
| 40 color: $primary-foreground; |
| 41 background-color: $primary-background; |
| 42 } |
| 43 |
| 44 /* set consistent margins */ |
| 45 |
| 46 h1, |
| 47 h2, |
| 48 h3, |
| 49 h4, |
| 50 h5, |
| 51 h6, |
| 52 p, |
| 53 ol, |
| 54 ul, |
| 55 dl, |
| 56 figure, |
| 57 blockquote |
| 58 { |
| 59 margin: $small-space 0; |
| 60 } |
| 61 |
| 62 li |
| 63 { |
| 64 margin: $small-space / 2 0; |
| 65 } |
| 66 |
| 67 dd |
| 68 { |
| 69 margin: $small-space / 2 0 $small-space 0; |
| 70 } |
| 71 |
| 72 [dir="ltr"] ol, |
| 73 [dir="ltr"] ul |
| 74 { |
| 75 padding-left: $medium-space; |
| 76 } |
| 77 |
| 78 [dir="rtl"] ol, |
| 79 [dir="rtl"] ul |
| 80 { |
| 81 padding-right: $medium-space; |
| 82 } |
| 83 |
| 84 ol ol, |
| 85 ul ul, |
| 86 ol ul, |
| 87 ul ol |
| 88 { |
| 89 /* prevent double spacing lists */ |
| 90 margin: 0; |
| 91 } |
| 92 |
| 93 dt |
| 94 { |
| 95 /* undo browser default */ |
| 96 font-weight: $bold-weight; |
| 97 } |
| 98 |
| 99 dd |
| 100 { |
| 101 /* undo browser default */ |
| 102 margin-bottom: $small-space; |
| 103 } |
| 104 |
| 105 small |
| 106 { |
| 107 font-size: $small-font; |
| 108 } |
| 109 |
| 110 abbr[data-original-title] |
| 111 { |
| 112 cursor: help; |
| 113 } |
| 114 |
| 115 input, |
| 116 button, |
| 117 select, |
| 118 textarea |
| 119 { |
| 120 /* undo browser default */ |
| 121 line-height: inherit; |
| 122 } |
| 123 |
| 124 /* undo browser default */ |
| 125 |
| 126 [dir="ltr"] th |
| 127 { |
| 128 text-align: left; |
| 129 } |
| 130 |
| 131 [dir="rtl"] th |
| 132 { |
| 133 text-align: right; |
| 134 } |
| 135 |
| 136 /* remove image borders lt IE 10 */ |
| 137 |
| 138 a img |
| 139 { |
| 140 border:none; |
| 141 outline:none; |
| 142 } |
| 143 |
| 144 /* undo browser defaults */ |
| 145 |
| 146 fieldset |
| 147 { |
| 148 min-width: 0; |
| 149 padding: 0; |
| 150 margin: 0; |
| 151 border: 0; |
| 152 } |
| 153 |
| 154 legend |
| 155 { |
| 156 display: block; |
| 157 width: 100%; |
| 158 padding: 0; |
| 159 margin: $small-space 0; |
| 160 font-size: $medium-font; |
| 161 line-height: inherit; |
| 162 } |
OLD | NEW |