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

Side by Side Diff: scss/_content.scss

Issue 29361647: Issue 4607 - Default content styles (Closed)
Patch Set: Created Nov. 3, 2016, 2:11 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
« no previous file with comments | « package.json ('k') | scss/_reset.scss » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /* HTML Content
20 *******************************************************************************
21 * 1. Headings
22 * 3. Blockquotes
23 * 4. Code Blocks
24 * 5. Unstyled Lists
25 * 6. Image Alignment
26 * 7. Tables
27 * 8. Embeds
28 ******************************************************************************/
29
30 /* Headings
31 ******************************************************************************/
32
33 h1
34 {
35 font-size: 36px;
36 margin-top: $medium-space;
37 }
38
39 h2
40 {
41 font-size: 28px;
42 margin-top: $medium-space;
43 }
44
45 h3
46 {
47 font-size: 24px;
48 margin-top: $medium-space;
49 }
50
51 h4
52 {
53 font-size: 20px;
54 margin-top: $small-space;
55 }
56
57 h5
58 {
59 font-size: 16px;
60 margin-top: $small-space;
61 }
62
63 h6
64 {
65 font-size: 14px;
66 margin-top: $small-space;
67 }
68
69 /* blockquotes
70 ******************************************************************************/
71
72 [dir="ltr"] blockquote
73 {
74 padding-left: $small-space;
75 border-left: 5px solid $gray;
76 }
77
78 [dir="rtl"] blockquote
79 {
80 padding-right: $small-space;
81 border-right: 5px solid $gray;
82 }
83
84 /* Links
85 ******************************************************************************/
86
87 a,
88 a:visited
89 {
90 color: $blue-dark;
91 text-decoration: none;
92 }
93
94 a:hover,
95 a:active,
96 a:focus
97 {
98 text-decoration: underline;
99 }
100
101 /* code blocks
102 ******************************************************************************/
103
104 pre,
105 code
106 {
107 padding: $small-space / 4;
108 background-color: $gray-light;
109 }
110
111 pre
112 {
113 display: block;
114 padding: 0 $small-space;
115 }
116
117 pre > code
118 {
119 padding: 0;
120 background-color: transparent;
121 }
122
123 /* unstyled lists
124 ******************************************************************************/
125
126 .unstyled-list,
127 .unstyled-list ul
128 {
129 list-style-type: none;
130 }
131
132 [dir="ltr"] .unstyled-list
133 {
134 padding-left: 0;
135 }
136
137 [dir="rtl"] .unstyled-list
138 {
139 padding-right: 0;
140 }
141
142 [dir="ltr"] .unstyled-list ul
143 {
144 padding-left: $medium-space;
145 }
146
147 [dir="rtl"] .unstyled-list ul
148 {
149 padding-right: $small-space;
150 }
151
152 /* image alignment
153 ******************************************************************************/
154
155 img
156 {
157 margin: 0 $small-space / 2;
158 }
159
160 .block,
161 .sol,
162 .eol
163 {
164 display: block;
165 margin: 0;
166 }
167
168 .block
169 {
170 display: block;
171 width: 100%;
172 height: auto;
173 clear: both;
174 overflow: auto;
175 margin: $small-space 0;
176 }
177
178 [dir="ltr"] .sol
179 {
180 margin-right: $small-space;
181 float: left;
182 }
183
184 [dir="rtl"] .sol
185 {
186 margin-left: $small-space;
187 float: right;
188 }
189
190 [dir="ltr"] .eol
191 {
192 margin-left: $small-space;
193 float: right;
194 }
195
196 [dir="rtl"] .eol
197 {
198 margin-right: $small-space;
199 float: left;
200 }
201
202 /* tables
203 ******************************************************************************/
204
205 table
206 {
207 border-collapse: collapse;
208 width: 100%;
209 }
210
211 td,
212 th
213 {
214 padding: $small-space / 4 $small-space / 2;
215 }
216
217 th
218 {
219 background-color: $white;
220 }
221
222 tr:nth-child(even)
223 {
224 background-color: $white;
225 }
226
227 tr:nth-child(odd)
228 {
229 background-color: $gray-light;
230 }
231
232 /* embeds
233 ******************************************************************************/
234
235 .embed
236 {
237 position: relative;
238 display: block;
239 height: 0;
240 padding: 0 0 56.25% 0;
241 overflow: hidden;
242 }
243
244 .embed iframe
245 {
246 position: absolute;
247 top: 0;
248 bottom: 0;
249 left: 0;
250 width: 100%;
251 height: 100%;
252 border: 0;
253 }
OLDNEW
« no previous file with comments | « package.json ('k') | scss/_reset.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld