OLD | NEW |
---|---|
1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 /* Set the global 'box-sizing' state to 'border-box'. | 5 /* Set the global 'box-sizing' state to 'border-box'. |
6 * *::after and *::before used to select psuedo-elements not selectable by *. */ | 6 * *::after and *::before used to select psuedo-elements not selectable by *. */ |
7 | 7 |
8 *, | 8 *, |
9 *::after, | 9 *::after, |
10 *::before { | 10 *::before { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 table { | 64 table { |
65 border-collapse: collapse; | 65 border-collapse: collapse; |
66 border-spacing: 0; | 66 border-spacing: 0; |
67 } | 67 } |
68 | 68 |
69 td, | 69 td, |
70 th { | 70 th { |
71 padding: 0; | 71 padding: 0; |
72 } | 72 } |
73 | 73 |
74 /* Base typography. */ | 74 /* Base typography. */ |
nyquist
2014/06/26 20:39:58
I don't think this is rebased correctly. It seems
smaslo
2014/06/27 18:33:17
I copied the file from master and added then readd
| |
75 | |
76 body, | 75 body, |
77 html { | 76 html { |
78 color: #333; | |
79 font-family: 'Open Sans', sans-serif; | 77 font-family: 'Open Sans', sans-serif; |
80 font-size: 14px; | 78 font-size: 14px; |
81 line-height: 1.4; | 79 line-height: 1.4; |
82 text-rendering: optimizeLegibility; | |
83 overflow-x: hidden; | |
84 } | 80 } |
85 | 81 |
86 /* Define vertical rhythm (baseline grid of 4px). */ | 82 /* Classes for highcontrast, sepia, and normal */ |
83 .normal { | |
nyquist
2014/06/26 20:39:58
How about .light or .day?
And then correspondingly
smaslo
2014/06/27 18:33:17
Done.
| |
84 color: #333; | |
85 background-color: #FFF; | |
86 } | |
87 | 87 |
88 blockquote, | 88 .highcontrast { |
89 caption, | 89 color: #FFF; |
90 code, | 90 background-color: #000; |
91 dd, | 91 } |
92 dl, | 92 |
93 fieldset, | 93 .sepia { |
94 figure, | 94 color: #333; |
95 form, | 95 background-color: #704214; |
96 hr, | 96 } |
97 legend, | 97 |
98 ol, | 98 /* Don't let images bleed out of viewport. */ |
99 p, | 99 img { |
100 pre, | 100 height: auto; |
101 q, | 101 max-width: 100%; |
102 } | |
103 /* Margin */ | |
104 .margin-x-narrow { | |
105 width: 95%; | |
106 } | |
107 .margin-narrow { | |
108 width: 85%; | |
109 } | |
110 .margin-medium { | |
111 width: 75%; | |
112 } | |
113 .margin-wide { | |
114 width: 55%; | |
115 } | |
116 .margin-x-wide { | |
117 width: 35%; | |
118 } | |
119 /* Override html styling attributes */ | |
102 table, | 120 table, |
103 td, | 121 td, |
104 th, | 122 tr { |
105 ul { | 123 background-color: transparent !important; |
106 margin-bottom: 1rem; | |
107 } | 124 } |
108 | 125 .hidden { |
109 h2, | 126 display: none; |
110 h3, | |
111 h4, | |
112 h5, | |
113 h6 { | |
114 line-height: 1.296rem; | |
115 margin-bottom: 0.444rem; | |
116 } | 127 } |
117 | 128 .visible { |
118 /* Content. */ | 129 display: block; |
119 | |
120 /* Margins for Show Original link. */ | |
121 | |
122 #showOriginal { | |
123 margin: auto 1.296rem 1.296rem 1.296rem; | |
124 } | 130 } |
125 | |
126 #content { | |
127 margin-top: 1.296rem; | |
128 } | |
129 | |
130 /* Main margins. */ | |
131 | |
132 #mainContent { | |
133 margin: 1.296rem 1.296rem auto; | |
134 } | |
135 | |
136 a { | |
137 color: #222; | |
138 } | |
139 | |
140 blockquote { | |
141 border-left: 4px solid #eee; | |
142 padding-left: 1em; | |
143 } | |
144 | |
145 cite { | |
146 color: rgba(0, 0, 0, .54); | |
147 font-style: italic; | |
148 } | |
149 | |
150 hr { | |
151 background-color: #e4dfdf; | |
152 border: none; | |
153 height: 1px; | |
154 margin: inherit auto; | |
155 width: 75%; | |
156 } | |
157 | |
158 h1 { | |
159 font-size: 1.7rem; | |
160 line-height: 1.9rem; | |
161 margin-bottom: 0.444rem; | |
162 } | |
163 | |
164 q { | |
165 color: #222; | |
166 display:block; | |
167 font-size: 1.5rem; | |
168 font-style: italic; | |
169 font-weight: 600; | |
170 line-height: 1.444; | |
171 } | |
172 | |
173 embed, | |
174 img, | |
175 object, | |
176 video { | |
177 max-width: 100%; | |
178 } | |
179 | |
180 /* TODO(sunangel): make images zoomable. */ | |
181 | |
182 img { | |
183 display: block; | |
184 height: auto; | |
185 margin: 0 auto 0.6rem auto; | |
186 } | |
187 | |
188 /* TODO(nyquist): set these classes directly in the dom distiller. */ | |
189 | |
190 embed+[class*='caption'], | |
191 figcaption, | |
192 img+[class*='caption'], | |
193 object+[class*='caption'], | |
194 video+[class*='caption'] { | |
195 color: rgba(0,0,0,.54); | |
196 display: table; | |
197 font-style: italic; | |
198 margin: 0 auto; | |
199 } | |
200 | |
201 ol, | |
202 ul { | |
203 margin-left: 1.296rem; | |
204 } | |
205 | |
206 code, | |
207 pre { | |
208 background-color: #f8f8f8; | |
209 border: 1px solid #eee; | |
210 border-radius: 2px; | |
211 } | |
212 | |
213 code { | |
214 display: block; | |
215 padding: .4444rem; | |
216 } | |
217 | |
218 pre code { | |
219 border: none; | |
220 padding: 0; | |
221 } | |
222 | |
223 pre { | |
224 line-height: 1.296rem; | |
225 overflow-x: scroll; | |
226 padding: .5em; | |
227 } | |
228 | |
229 /* TODO(sunangel): Create loading indicator graphic to replace "Loading...". */ | |
230 #loadingIndicator { | |
231 display: table; | |
232 margin: 0 auto; | |
233 } | |
234 | |
235 .hidden { | |
236 display: hidden; | |
237 } | |
OLD | NEW |