Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: scss/_reset.scss

Issue 29361647: Issue 4607 - Default content styles (Closed)
Patch Set: Removed missing grid dependency. Created Nov. 3, 2016, 5:48 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(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
saroyanm 2016/11/03 19:41:14 I'm not sure if this style belongs to the reset.cs
juliandoucette 2016/11/03 22:59:38 Acknowledged. Where do you think it belongs?
saroyanm 2016/11/04 16:01:17 I think _content.scss
juliandoucette 2016/11/04 17:32:26 Acknowledged.
juliandoucette 2016/11/08 15:52:00 Done.
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;
saroyanm 2016/11/03 19:41:14 Detail: please specify units on all number values.
juliandoucette 2016/11/03 22:59:38 Acknowledged.
60 }
61
62 li
63 {
64 margin: $small-space / 2 0;
saroyanm 2016/11/03 19:41:14 I've noticed we are using calculated margins on a
juliandoucette 2016/11/03 22:59:38 1. For simplicity 2. For consistency These are su
saroyanm 2016/11/04 16:01:17 This makes the size dependent of the $small-space
juliandoucette 2016/11/04 17:32:27 3 for now. Extend it later if we need to.
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
saroyanm 2016/11/03 19:41:14 Are we using/planing to use Tables in our new desi
juliandoucette 2016/11/03 22:59:38 Yes. We will use tables for tabular data. This is
juliandoucette 2016/11/04 17:32:27 Done.
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 */
saroyanm 2016/11/03 19:41:14 I wonder if similar changes should belong to the n
juliandoucette 2016/11/03 22:59:38 Acknowledged. This is a mistake actually. Normali
juliandoucette 2016/11/08 15:52:00 Done.
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld