Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 @font-face | |
2 { | |
3 font-family: "Source Sans Pro"; | |
4 font-style: normal; | |
5 font-weight: 400; | |
6 font-stretch: normal; | |
7 src: local ("Ø"), | |
8 url(fonts/SourceSansPro-Regular.woff) format("woff"); | |
9 } | |
10 | |
11 @font-face | |
12 { | |
13 font-family: "Source Sans Pro"; | |
14 font-style: bold; | |
15 font-weight: 600; | |
16 font-stretch: normal; | |
17 src: local ("Ø"), | |
18 url(fonts/SourceSansPro-bold.woff) format("woff"); | |
19 } | |
20 | |
21 html | |
22 { | |
23 font-family: "Source Sans Pro", Helvetica, Arial, sans-serif; | |
24 } | |
25 | |
26 body | |
27 { | |
28 margin: 0; | |
29 padding: 0; | |
30 } | |
31 | |
32 #container | |
33 { | |
34 display: flex; | |
35 flex-direction: row; | |
36 align-items: stretch; | |
37 } | |
38 | |
39 .column | |
40 { | |
41 height: 100vh; | |
42 display: flex; | |
43 align-items: center; | |
44 justify-content: center; | |
45 flex: 1; | |
46 } | |
47 | |
48 #graphic-column | |
49 { | |
50 background-color: #8DC446; | |
51 } | |
52 | |
53 .graphic-column | |
54 { | |
55 background-color: #8DC446; | |
56 } | |
57 | |
58 #content | |
59 { | |
60 padding: 0 3em; | |
61 max-width: 760px; | |
62 } | |
63 | |
64 #content a | |
65 { | |
66 color: #C70D2C; | |
67 text-decoration: none; | |
68 } | |
69 | |
70 #optionsPageLink | |
71 { | |
72 color: red; | |
73 } | |
74 | |
75 #content a:hover | |
76 { | |
77 text-decoration: underline; | |
78 cursor: pointer; | |
Thomas Greiner
2017/11/27 16:15:48
Detail: Why is this necessary? `<a>` elements have
martin
2017/12/05 14:37:31
I *think* what's happening is that because the "S
Thomas Greiner
2017/12/11 12:11:08
Makes sense. Generally, we add `href="#"` for such
martin
2017/12/19 12:59:49
Added a comment here to explain the styles.
On 20
| |
79 } | |
80 | |
81 #content header | |
82 { | |
83 margin: 0 0 2em 5em; | |
84 } | |
85 | |
86 html[dir="rtl"] #content header | |
87 { | |
88 margin: 0 5em 2em 0; | |
89 } | |
90 | |
91 #content header p { | |
92 margin: 0; | |
93 opacity: 0.5; | |
94 font-weight: 400; | |
95 font-size: 1.2em; | |
96 } | |
97 | |
98 #content header h1 | |
99 { | |
100 margin: 0; | |
101 } | |
102 | |
103 .custom-feature-entry | |
104 { | |
105 margin-top: 2em; | |
106 } | |
107 | |
108 .custom-feature-entry h2 | |
109 { | |
110 margin: 0 0 0 3.4em; | |
111 } | |
112 | |
113 html[dir="rtl"] .custom-feature-entry h2 | |
114 { | |
115 margin: 0 3.4em 0 0; | |
116 } | |
117 | |
118 .update-graphic-container | |
119 { | |
120 display: flex; | |
121 align-items: center; | |
122 position: relative; | |
123 width: 560px; | |
124 height: 460px; | |
125 background-image: url(./updates/base-graphic.svg); | |
126 background-repeat: no-repeat; | |
127 background-size: cover; | |
128 } | |
129 | |
130 .update-graphic-container img | |
131 { | |
132 display: block; | |
133 width: 162px; | |
134 height: 162px; | |
135 } | |
136 | |
137 .update-graphic-content | |
138 { | |
139 display: flex; | |
140 align-items: center; | |
141 position: absolute; | |
142 top: 65px; | |
143 left: 100px; | |
144 } | |
145 | |
146 .version-details | |
147 { | |
148 margin: 0 1em 0 1em; | |
149 } | |
150 | |
151 .version-details h2 | |
152 { | |
153 margin: 0; | |
154 } | |
155 | |
156 .feature-entry | |
157 { | |
158 display: flex; | |
159 align-items: center; | |
160 padding: 0 1em; | |
161 } | |
162 | |
163 .feature-entry img | |
164 { | |
165 width: 50px; | |
166 height: 50px; | |
Thomas Greiner
2017/11/27 16:15:49
Suggestion: I noticed that the content jumps when
martin
2017/12/05 14:37:30
I'm ignoring this issue for now.
| |
167 display: block; | |
168 margin: 0 1em 0 0; | |
169 } | |
170 | |
171 html[dir="rtl"] .feature-entry img | |
172 { | |
173 margin: 0 0 0 1em; | |
174 } | |
175 | |
176 #block-ads-text > strong | |
177 { | |
178 text-decoration: line-through; | |
179 font-weight: normal; | |
180 } | |
181 | |
182 .store-buttons | |
183 { | |
184 height: 58px; | |
185 margin: 0 0 0 5em; | |
186 } | |
187 | |
188 html[dir="rtl"] .store-buttons | |
189 { | |
190 margin: 0 5em 0 0; | |
191 } | |
192 | |
193 .store-button | |
194 { | |
195 display: block; | |
196 height: 58px; | |
197 border-radius: 6px; | |
198 background-color: #000; | |
199 float: left; | |
200 margin-bottom: 1em; | |
201 overflow: hidden; | |
Thomas Greiner
2017/11/27 16:15:49
Detail: What's the purpose of this? There shouldn'
martin
2017/12/05 14:37:31
Oops. Was playing around with something and forgot
| |
202 } | |
203 | |
204 html[dir="rtl"] .store-button | |
205 { | |
206 float: right; | |
207 } | |
208 | |
209 .store-button > img | |
210 { | |
211 height: 100%; | |
212 } | |
213 | |
214 .applestore-button | |
215 { | |
216 margin-right: 1em; | |
217 } | |
218 | |
219 html[dir="rtl"] .applestore-button | |
220 { | |
221 margin-right: 0; | |
222 margin-left: 1em; | |
223 } | |
224 | |
225 @media(max-width: 960px) | |
226 { | |
227 #container | |
228 { | |
229 flex-direction: column; | |
230 } | |
231 } | |
232 | |
233 @media(max-width: 480px) | |
234 { | |
235 #content header | |
236 { | |
237 margin: 2em 0 2em 5em; | |
238 } | |
239 | |
240 .column | |
241 { | |
242 align-items: flex-start; | |
243 } | |
244 | |
245 html[dir="rtl"] .applestore-button | |
246 { | |
247 margin: 0 0 1em 0; | |
248 } | |
249 } | |
OLD | NEW |