| Left: | ||
| Right: |
| LEFT | RIGHT |
|---|---|
| 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 | 1 @font-face |
|
juliandoucette
2017/10/30 15:30:10
NIT: I'm guessing my comment about us using 600 se
martin
2017/11/03 10:02:12
Changed to 600.
| |
| 12 { | 2 { |
| 13 font-family: "Source Sans Pro"; | 3 font-family: "Source Sans Pro"; |
| 14 font-style: bold; | 4 font-style: normal; |
| 15 font-weight: 700; | 5 font-weight: 400; |
| 16 font-stretch: normal; | 6 font-stretch: normal; |
| 17 src: local ("Ø"), | 7 src: local ("Ø"), |
| 18 url(fonts/SourceSansPro-bold.woff) format("woff"); | 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 } | 19 } |
| 20 | 20 |
| 21 html | 21 html |
| 22 { | 22 { |
| 23 font-family: "Source Sans Pro", Helvetica, Arial, sans-serif; | 23 font-family: "Source Sans Pro", Helvetica, Arial, sans-serif; |
| 24 -webkit-font-smoothing: antialiased; | |
| 24 } | 25 } |
| 25 | 26 |
| 26 body | 27 body |
| 27 { | 28 { |
| 28 margin: 0; | 29 margin: 0; |
| 29 padding: 0; | 30 padding: 0; |
| 30 } | 31 } |
| 31 | 32 |
| 32 .full-width-container | 33 #container |
| 33 { | 34 { |
| 34 width: 100%; | 35 display: flex; |
| 35 } | 36 flex-direction: row; |
| 36 | 37 align-items: stretch; |
| 37 .graphic-column | 38 } |
|
juliandoucette
2017/10/30 15:30:10
This class and the one below have enough in common
martin
2017/11/03 10:02:13
Refactored.
| |
| 38 { | 39 |
| 39 height: 100vh; | 40 .column |
| 40 width: 50%; | 41 { |
| 41 background: #8DC446; | 42 height: 100vh; |
| 42 display: flex; | 43 display: flex; |
| 43 align-items: center; | 44 align-items: center; |
| 44 justify-content: center; | 45 justify-content: center; |
| 45 } | 46 flex: 1; |
| 46 | 47 } |
| 47 .content-column | 48 |
| 48 { | 49 #graphic-column, |
| 49 height: 100vh; | 50 .graphic-column |
| 50 width: 50%; | 51 { |
| 51 background: #fff; | 52 background-color: #8DC446; |
| 52 display: flex; | 53 } |
| 53 justify-content: center; | 54 |
| 54 align-items: center; | 55 #content |
| 55 } | 56 { |
| 56 | 57 padding: 0 3em; |
| 57 .content-column-entries | 58 max-width: 760px; |
|
juliandoucette
2017/10/30 15:30:10
NIT: We generally use IDs for things that only occ
martin
2017/11/03 10:02:12
Changed to id="column-content"
| |
| 58 { | 59 } |
| 59 padding: 0 3em; | 60 |
| 60 max-width: 760px; | 61 #content a |
| 61 } | 62 { |
| 62 | 63 color: #C70D2C; |
| 63 .content-column-entries a { | 64 text-decoration: none; |
|
juliandoucette
2017/10/30 15:30:10
NIT: .content a would work fine here
| |
| 64 color: #C70D2C; | 65 } |
| 65 } | 66 |
| 66 | 67 #optionsPageLink |
| 67 .content-column-entries hgroup | 68 { |
| 68 { | 69 color: red; |
| 69 margin: 0 0 2em 5em; | 70 } |
| 70 } | 71 |
| 71 | 72 /* Needed in order to achieve standard behavior |
| 72 .content-column h1 | 73 for links, due to lacking href attribute */ |
| 73 { | 74 #content a:hover |
| 74 margin: 0; | 75 { |
| 75 } | 76 text-decoration: underline; |
| 76 | 77 cursor: pointer; |
| 77 .content-column h2 | 78 } |
| 78 { | 79 |
| 79 margin: 0; | 80 #content header |
| 80 font-weight: normal; | 81 { |
| 81 opacity: .5; | 82 margin: 0 0 2em 5em; |
| 83 } | |
| 84 | |
| 85 html[dir="rtl"] #content header | |
| 86 { | |
| 87 margin: 0 5em 2em 0; | |
| 88 } | |
| 89 | |
| 90 #content header p { | |
| 91 margin: 0; | |
| 92 opacity: 0.5; | |
| 93 font-weight: 400; | |
| 94 font-size: 1.2em; | |
| 95 } | |
| 96 | |
| 97 #content header h1 | |
| 98 { | |
| 99 margin: 0; | |
| 82 } | 100 } |
| 83 | 101 |
| 84 .custom-feature-entry | 102 .custom-feature-entry |
| 85 { | 103 { |
| 86 margin-top: 2em; | 104 margin-top: 2em; |
| 87 } | 105 } |
| 88 | 106 |
| 89 .custom-feature-entry h2 { | 107 .custom-feature-entry h2 |
| 90 margin: 0 0 0 3.4em; | 108 { |
| 91 } | 109 margin: 0 0 0 3.4em; |
| 92 | 110 } |
| 93 .update-graphic-container | 111 |
| 94 { | 112 html[dir="rtl"] .custom-feature-entry h2 |
| 95 width: 560px; | 113 { |
| 96 height: 460px; | 114 margin: 0 3.4em 0 0; |
| 97 background: url('/skin/updates-page/base-graphic.svg'); | 115 } |
| 98 position: relative; | 116 |
| 99 display: flex; | 117 .update-graphic-container |
| 100 align-items: center; | 118 { |
| 101 background-repeat: no-repeat; | 119 display: flex; |
| 102 background-size: cover; | 120 align-items: center; |
| 121 position: relative; | |
| 122 width: 560px; | |
| 123 height: 460px; | |
| 124 background-image: url(./updates/base-graphic.svg); | |
| 125 background-repeat: no-repeat; | |
| 126 background-size: cover; | |
| 103 } | 127 } |
| 104 | 128 |
| 105 .update-graphic-container img | 129 .update-graphic-container img |
| 106 { | 130 { |
| 107 display: block; | 131 display: block; |
| 108 width: 162px; | 132 width: 162px; |
| 109 height: 162px; | 133 height: 162px; |
| 110 } | 134 } |
| 111 | 135 |
| 112 .update-graphic-content | 136 .update-graphic-content |
| 113 { | 137 { |
| 114 position: absolute; | 138 display: flex; |
| 115 top: 65px; | 139 align-items: center; |
| 116 left: 100px; | 140 position: absolute; |
| 117 display: flex; | 141 top: 65px; |
| 118 align-items: center; | 142 left: 100px; |
| 119 } | 143 } |
| 120 | 144 |
| 121 .version-details | 145 .version-details |
| 122 { | 146 { |
| 123 margin: 0 0 0 1em; | 147 margin: 0 1em 0 1em; |
| 124 } | 148 } |
| 125 | 149 |
| 126 .version-details h2 | 150 .version-details h2 |
| 127 { | 151 { |
| 128 margin: 0; | 152 margin: 0; |
| 129 } | |
| 130 | |
| 131 .version-details span | |
| 132 { | |
| 133 color: #bebebe; | |
| 134 } | 153 } |
| 135 | 154 |
| 136 .feature-entry | 155 .feature-entry |
| 137 { | 156 { |
| 138 display: flex; | 157 display: flex; |
| 139 align-items: center; | 158 align-items: center; |
| 140 padding: 0 1em; | 159 padding: 0 1em; |
| 141 } | 160 } |
| 142 | 161 |
| 143 .feature-entry img | 162 .feature-entry img |
| 144 { | 163 { |
| 145 width: 50px; | 164 width: 50px; |
| 146 height: 50px; | 165 height: 50px; |
| 147 display: block; | 166 display: block; |
| 148 margin: 0 1em 0 0; | 167 margin: 0 1em 0 0; |
| 168 } | |
| 169 | |
| 170 html[dir="rtl"] .feature-entry img | |
| 171 { | |
| 172 margin: 0 0 0 1em; | |
| 173 } | |
| 174 | |
| 175 #block-ads-text > strong | |
| 176 { | |
| 177 text-decoration: line-through; | |
| 178 font-weight: normal; | |
| 149 } | 179 } |
| 150 | 180 |
| 151 .store-buttons | 181 .store-buttons |
| 152 { | 182 { |
| 153 width: 100%; | 183 height: 58px; |
| 154 hegiht: 58px; | 184 margin: 0 0 0 5em; |
| 155 margin-left: 5em; | 185 } |
| 186 | |
| 187 html[dir="rtl"] .store-buttons | |
| 188 { | |
| 189 margin: 0 5em 0 0; | |
| 156 } | 190 } |
| 157 | 191 |
| 158 .store-button | 192 .store-button |
| 159 { | 193 { |
| 160 display: block; | 194 display: block; |
| 161 width: 180px; | 195 height: 58px; |
| 162 height: 58px; | 196 border-radius: 6px; |
| 163 border-radius: 6px; | 197 background-color: #000; |
| 164 background: #000; | 198 float: left; |
| 165 float: left; | 199 margin-bottom: 1em; |
| 166 margin-bottom: 1em; | 200 } |
| 167 } | 201 |
| 168 | 202 html[dir="rtl"] .store-button |
| 169 .store-button > img | 203 { |
| 170 { | 204 float: right; |
| 171 height: 54px; | 205 } |
| 206 | |
| 207 .store-button > img | |
| 208 { | |
| 209 height: 100%; | |
| 172 } | 210 } |
| 173 | 211 |
| 174 .applestore-button | 212 .applestore-button |
| 175 { | 213 { |
| 176 margin-right: 1em; | 214 margin-right: 1em; |
| 177 } | 215 } |
| 178 | 216 |
| 179 [dir="rtl"] .appstore-button | 217 html[dir="rtl"] .applestore-button |
| 180 { | 218 { |
| 181 margin-right: 0; | 219 margin-right: 0; |
| 182 margin-left: 1em; | 220 margin-left: 1em; |
| 183 } | 221 } |
| 222 | |
| 223 @media(max-width: 960px) | |
| 224 { | |
| 225 #container | |
| 226 { | |
| 227 flex-direction: column; | |
| 228 } | |
| 229 } | |
| 230 | |
| 231 @media(max-width: 480px) | |
| 232 { | |
| 233 #content header | |
| 234 { | |
| 235 margin: 2em 0 2em 5em; | |
| 236 } | |
| 237 | |
| 238 .column | |
| 239 { | |
| 240 align-items: flex-start; | |
| 241 } | |
| 242 | |
| 243 html[dir="rtl"] .applestore-button | |
| 244 { | |
| 245 margin: 0 0 1em 0; | |
| 246 } | |
| 247 } | |
| LEFT | RIGHT |