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 /* HTML Content | |
20 ******************************************************************************* | |
21 * 1. Headings | |
22 * 2. Blockquotes | |
23 * 3. Links | |
24 * 4. Code Blocks | |
25 * 5. Unstyled Lists | |
26 * 6. Image Alignment | |
27 * 7. Tables | |
28 * 8. Embeds | |
29 ******************************************************************************/ | |
30 | |
31 /* Headings | |
32 ******************************************************************************/ | |
33 | |
34 h1 | |
35 { | |
36 font-size: 42px; | |
37 margin-top: $large-space; | |
38 } | |
39 | |
40 h2 | |
41 { | |
42 font-size: 36px; | |
43 margin-top: $large-space; | |
44 } | |
45 | |
46 h3 | |
47 { | |
48 font-size: 24px; | |
49 margin-top: $medium-space; | |
50 } | |
51 | |
52 h4 | |
53 { | |
54 font-size: 20px; | |
55 margin-top: $medium-space; | |
56 } | |
57 | |
58 h5 | |
59 { | |
60 font-size: 16px; | |
61 margin-top: $small-space; | |
62 } | |
63 | |
64 h6 | |
65 { | |
66 font-size: 14px; | |
67 margin-top: $small-space; | |
68 } | |
69 | |
70 /* Blockquotes | |
71 ******************************************************************************/ | |
72 | |
73 [dir="ltr"] blockquote | |
74 { | |
75 padding-left: $small-space; | |
76 border-left: 5px solid $gray; | |
77 } | |
78 | |
79 [dir="rtl"] blockquote | |
80 { | |
81 padding-right: $small-space; | |
82 border-right: 5px solid $gray; | |
83 } | |
84 | |
85 /* Links | |
86 ******************************************************************************/ | |
87 | |
88 a, | |
89 a:visited | |
90 { | |
91 color: $blue-dark; | |
juliandoucette
2016/11/03 23:16:47
Note: This should be $accent.
saroyanm
2016/11/04 16:01:17
Acknowledged.
juliandoucette
2016/11/08 15:51:58
Done.
| |
92 text-decoration: none; | |
93 } | |
94 | |
95 a:hover, | |
96 a:active, | |
97 a:focus | |
98 { | |
99 text-decoration: underline; | |
100 } | |
101 | |
102 /* Code Blocks | |
103 ******************************************************************************/ | |
104 | |
105 pre, | |
106 code | |
107 { | |
108 padding: $small-space / 4; | |
109 background-color: $gray-light; | |
110 } | |
111 | |
112 pre | |
113 { | |
114 display: block; | |
115 padding: 0 $small-space; | |
116 } | |
117 | |
118 pre > code | |
119 { | |
120 padding: 0; | |
121 background-color: transparent; | |
saroyanm
2016/11/03 19:41:14
Detail: we do set background-color for both of the
juliandoucette
2016/11/03 22:59:37
Acknowledged.
Good catch.
juliandoucette
2016/11/08 15:51:59
Done.
| |
122 } | |
123 | |
124 /* Unstyled Lists | |
125 ******************************************************************************/ | |
126 | |
127 .unstyled-list, | |
128 .unstyled-list ul | |
129 { | |
130 list-style-type: none; | |
131 } | |
132 | |
133 [dir="ltr"] .unstyled-list | |
134 { | |
135 padding-left: 0; | |
136 } | |
137 | |
138 [dir="rtl"] .unstyled-list | |
139 { | |
140 padding-right: 0; | |
141 } | |
142 | |
143 [dir="ltr"] .unstyled-list ul | |
144 { | |
145 padding-left: $medium-space; | |
146 } | |
147 | |
148 [dir="rtl"] .unstyled-list ul | |
149 { | |
150 padding-right: $small-space; | |
151 } | |
152 | |
153 /* Image Alignment | |
154 ******************************************************************************/ | |
155 | |
156 img | |
157 { | |
158 margin: 0 $small-space / 2; | |
159 } | |
160 | |
161 .block, | |
162 .sol, | |
saroyanm
2016/11/03 19:41:14
We need to document what short classnames mean
juliandoucette
2016/11/03 22:59:38
My mistake.
"SOL": "Start Of Line",
"EOL": "End O
saroyanm
2016/11/04 16:01:17
I think if we use expanded version it will be in a
juliandoucette
2016/11/04 17:32:26
Use:
- float-start
- float-end
juliandoucette
2016/11/08 15:52:00
Done.
| |
163 .eol | |
164 { | |
165 display: block; | |
166 margin: 0; | |
167 } | |
168 | |
169 .block | |
170 { | |
171 display: block; | |
172 width: 100%; | |
173 height: auto; | |
saroyanm
2016/11/03 19:41:13
Nit: "auto" is default value we probably can skip
juliandoucette
2016/11/03 22:59:37
See comment below.
saroyanm
2016/11/04 16:01:17
My comment below is wrong, but setting heigh to au
juliandoucette
2016/11/04 17:32:26
Acknowledged.
juliandoucette
2016/11/08 15:51:59
Done.
| |
174 clear: both; | |
175 overflow: auto; | |
saroyanm
2016/11/03 19:41:13
Nit: "auto" is default value we probably can skip
juliandoucette
2016/11/03 22:59:37
I'm not sure about this. I will investigate furthe
saroyanm
2016/11/04 16:01:17
Scratch that - my mistake, the initial value of th
juliandoucette
2016/11/04 17:32:26
Acknowledged.
juliandoucette
2016/11/08 15:51:58
Done.
| |
176 margin: $small-space 0; | |
177 } | |
178 | |
179 [dir="ltr"] .sol | |
180 { | |
181 margin-right: $small-space; | |
182 float: left; | |
saroyanm
2016/11/03 19:41:13
Regarding using floats would be great to ask for t
juliandoucette
2016/11/03 22:59:37
I'm sorry. You were probably confused by the namin
saroyanm
2016/11/04 16:01:17
Acknowledged.
juliandoucette
2016/11/08 15:51:58
Done.
| |
183 } | |
184 | |
185 [dir="rtl"] .sol | |
186 { | |
187 margin-left: $small-space; | |
188 float: right; | |
189 } | |
190 | |
191 [dir="ltr"] .eol | |
192 { | |
193 margin-left: $small-space; | |
194 float: right; | |
195 } | |
196 | |
197 [dir="rtl"] .eol | |
198 { | |
199 margin-right: $small-space; | |
200 float: left; | |
201 } | |
202 | |
203 /* Tables | |
saroyanm
2016/11/03 19:41:14
Note: If we are planing to use tables for tabular
juliandoucette
2016/11/03 22:59:37
I would suggest we use simple tables for simple ta
saroyanm
2016/11/04 16:01:17
Fine with me while we are planing to make them res
juliandoucette
2016/11/04 17:32:26
We will leave out tables.
juliandoucette
2016/11/08 15:51:59
Done.
| |
204 ******************************************************************************/ | |
205 | |
206 table | |
207 { | |
208 border-collapse: collapse; | |
209 width: 100%; | |
210 } | |
211 | |
212 td, | |
213 th | |
214 { | |
215 padding: $small-space / 4 $small-space / 2; | |
216 } | |
217 | |
218 th | |
juliandoucette
2016/11/03 23:16:47
NOTE: These th, tr:nth-child(even) should be combi
saroyanm
2016/11/04 16:01:17
Acknowledged.
juliandoucette
2016/11/08 15:51:59
Done.
| |
219 { | |
220 background-color: $white; | |
221 } | |
222 | |
223 tr:nth-child(even) | |
224 { | |
225 background-color: $white; | |
226 } | |
227 | |
228 tr:nth-child(odd) | |
229 { | |
230 background-color: $gray-light; | |
231 } | |
232 | |
233 /* Embeds | |
234 ******************************************************************************/ | |
235 | |
236 .embed | |
saroyanm
2016/11/03 19:41:14
Why are we using this wrapper for iframe ?
juliandoucette
2016/11/03 22:59:37
See comment below.
juliandoucette
2016/11/08 15:52:00
Done.
| |
237 { | |
238 position: relative; | |
239 display: block; | |
240 height: 0; | |
saroyanm
2016/11/03 19:41:13
Detail: This property looks to be redundant
juliandoucette
2016/11/03 22:59:38
See comment below.
juliandoucette
2016/11/08 15:51:59
Done.
| |
241 padding: 0 0 56.25% 0; | |
242 overflow: hidden; | |
243 } | |
244 | |
245 .embed iframe | |
246 { | |
247 position: absolute; | |
248 top: 0; | |
249 bottom: 0; | |
saroyanm
2016/11/03 19:41:13
Deatail: this property looks to be redundant
juliandoucette
2016/11/03 22:59:37
Sorry for the confusion. These are the same styles
juliandoucette
2016/11/04 17:32:26
- We can remove bottom
- Add comment about how it
juliandoucette
2016/11/08 15:51:59
Done.
| |
250 left: 0; | |
251 width: 100%; | |
252 height: 100%; | |
253 border: 0; | |
254 } | |
OLD | NEW |