Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | /* Rearrange about:start ---------------------- */ |
michael@0 | 6 | |
michael@0 | 7 | /* Disable all instructions in snapped mode */ |
michael@0 | 8 | #start-container[viewstate="snapped"] .firstrun { |
michael@0 | 9 | display: none; |
michael@0 | 10 | } |
michael@0 | 11 | |
michael@0 | 12 | /* Keep only first column of tiles */ |
michael@0 | 13 | #start-container[viewstate="landscape"] #start-topsites-grid .richgrid-grid, |
michael@0 | 14 | #start-container:not([viewstate="snapped"]) #start-bookmarks-grid .richgrid-grid, |
michael@0 | 15 | #start-container:not([viewstate="snapped"]) #start-history-grid .richgrid-grid { |
michael@0 | 16 | -moz-column-count: 1 !important; |
michael@0 | 17 | } |
michael@0 | 18 | |
michael@0 | 19 | /* Add some bottom padding to make sure bottom tile will not be |
michael@0 | 20 | below instruction */ |
michael@0 | 21 | #start-container[viewstate="landscape"] #start-topsites-grid .richgrid-grid { |
michael@0 | 22 | padding-bottom: 30px; |
michael@0 | 23 | } |
michael@0 | 24 | |
michael@0 | 25 | /* Keep only first few items */ |
michael@0 | 26 | #start-container:not([viewstate="snapped"]) #start-history-grid richgriditem:nth-child(n+3), |
michael@0 | 27 | #start-container:not([viewstate="snapped"]) #start-bookmarks-grid richgriditem:nth-child(n+3), |
michael@0 | 28 | #start-container[viewstate="portrait"] #start-topsites-grid richgriditem:nth-child(n+4) { |
michael@0 | 29 | display: none; |
michael@0 | 30 | } |
michael@0 | 31 | |
michael@0 | 32 | /* Add some space for the instructions */ |
michael@0 | 33 | #start-container[viewstate="portrait"] { |
michael@0 | 34 | padding-top: 120px; |
michael@0 | 35 | padding-bottom: 120px; |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | /* Remove watermark */ |
michael@0 | 39 | .meta { |
michael@0 | 40 | background-image: none; |
michael@0 | 41 | } |
michael@0 | 42 | |
michael@0 | 43 | |
michael@0 | 44 | /* Welcome pane ---------------------- */ |
michael@0 | 45 | |
michael@0 | 46 | /* Logo and welcome message */ |
michael@0 | 47 | #firstrun-welcome { |
michael@0 | 48 | width: 550px; |
michael@0 | 49 | font-family: "Segoe UI", sans-serif; |
michael@0 | 50 | padding: 30px 0; |
michael@0 | 51 | } |
michael@0 | 52 | |
michael@0 | 53 | .welcome-image { |
michael@0 | 54 | background-image: url("chrome://branding/content/metro_firstrun_logo.png"); |
michael@0 | 55 | |
michael@0 | 56 | width: 220px; |
michael@0 | 57 | height: 220px; |
michael@0 | 58 | } |
michael@0 | 59 | |
michael@0 | 60 | #firstrun-welcome .welcome-title { |
michael@0 | 61 | font-size: 25px; |
michael@0 | 62 | color: #4d4e53; |
michael@0 | 63 | line-height: 30px; |
michael@0 | 64 | padding-top: 20px; |
michael@0 | 65 | } |
michael@0 | 66 | |
michael@0 | 67 | #firstrun-welcome .welcome-subtitle { |
michael@0 | 68 | font-size: 16px; |
michael@0 | 69 | color: #808080; |
michael@0 | 70 | line-height: 22px; |
michael@0 | 71 | padding-top: 10px; |
michael@0 | 72 | } |
michael@0 | 73 | |
michael@0 | 74 | /* Instructions ---------------------- */ |
michael@0 | 75 | |
michael@0 | 76 | .instruction-content-container { |
michael@0 | 77 | width: 380px; |
michael@0 | 78 | } |
michael@0 | 79 | |
michael@0 | 80 | .instruction-label { |
michael@0 | 81 | font-size: 16px; |
michael@0 | 82 | color: #808080; |
michael@0 | 83 | line-height: 22px; |
michael@0 | 84 | } |
michael@0 | 85 | |
michael@0 | 86 | .instruction-arrow { |
michael@0 | 87 | width: 76px; |
michael@0 | 88 | height: 76px; |
michael@0 | 89 | } |
michael@0 | 90 | |
michael@0 | 91 | .instruction-arrow.arrow-top, |
michael@0 | 92 | .instruction-arrow.arrow-down { |
michael@0 | 93 | background-image: url("chrome://browser/skin/images/arrow-top.png"); |
michael@0 | 94 | } |
michael@0 | 95 | |
michael@0 | 96 | .instruction-arrow.arrow-down { |
michael@0 | 97 | transform: rotate(180deg); |
michael@0 | 98 | } |
michael@0 | 99 | .instruction-arrow.arrow-down:-moz-locale-dir(rtl) { |
michael@0 | 100 | transform: scaleY(-1); |
michael@0 | 101 | } |
michael@0 | 102 | |
michael@0 | 103 | .instruction-arrow.arrow-back, |
michael@0 | 104 | .instruction-arrow.arrow-forward, |
michael@0 | 105 | .instruction-arrow.arrow-back-straight, |
michael@0 | 106 | .instruction-arrow.arrow-forward-straight { |
michael@0 | 107 | background-image: url("chrome://browser/skin/images/arrow-left.png"); |
michael@0 | 108 | } |
michael@0 | 109 | |
michael@0 | 110 | .instruction-arrow.arrow-back, |
michael@0 | 111 | .instruction-arrow.arrow-forward:-moz-locale-dir(rtl) { |
michael@0 | 112 | transform: rotate(0) scaleY(1); |
michael@0 | 113 | } |
michael@0 | 114 | |
michael@0 | 115 | .instruction-arrow.arrow-forward, |
michael@0 | 116 | .instruction-arrow.arrow-back:-moz-locale-dir(rtl) { |
michael@0 | 117 | transform: rotate(180deg) scaleY(-1); |
michael@0 | 118 | } |
michael@0 | 119 | |
michael@0 | 120 | .instruction-arrow.arrow-back-straight, |
michael@0 | 121 | .instruction-arrow.arrow-forward-straight:-moz-locale-dir(rtl) { |
michael@0 | 122 | transform: rotate(220deg) scaleX(-1); |
michael@0 | 123 | } |
michael@0 | 124 | |
michael@0 | 125 | .instruction-arrow.arrow-forward-straight, |
michael@0 | 126 | .instruction-arrow.arrow-back-straight:-moz-locale-dir(rtl) { |
michael@0 | 127 | transform: rotate(-220deg); |
michael@0 | 128 | } |
michael@0 | 129 | |
michael@0 | 130 | #instruction-tabs { |
michael@0 | 131 | position: absolute; |
michael@0 | 132 | top: 10px; |
michael@0 | 133 | transform: translateX(calc(630px - 50%)); |
michael@0 | 134 | } |
michael@0 | 135 | #instruction-tabs:-moz-locale-dir(rtl) { |
michael@0 | 136 | right: 0; |
michael@0 | 137 | left: auto; |
michael@0 | 138 | transform: translateX(calc(50% - 630px)); |
michael@0 | 139 | } |
michael@0 | 140 | |
michael@0 | 141 | #start-container[viewstate="portrait"] #instruction-tabs { |
michael@0 | 142 | transform: translateX(calc(50vw - 50%)); |
michael@0 | 143 | } |
michael@0 | 144 | #start-container[viewstate="portrait"] #instruction-tabs:-moz-locale-dir(rtl) { |
michael@0 | 145 | transform: translateX(calc(-50vw + 50%)); |
michael@0 | 146 | } |
michael@0 | 147 | |
michael@0 | 148 | #start-container[viewstate="landscape"] #instruction-topsites { |
michael@0 | 149 | position: absolute; |
michael@0 | 150 | bottom: 15%; |
michael@0 | 151 | } |
michael@0 | 152 | |
michael@0 | 153 | #start-container[viewstate="landscape"] #instruction-topsites .instruction-content-container { |
michael@0 | 154 | -moz-box-align: start; |
michael@0 | 155 | } |
michael@0 | 156 | |
michael@0 | 157 | #start-container[viewstate="portrait"] #instruction-topsites-box { |
michael@0 | 158 | margin-bottom: 20px; |
michael@0 | 159 | } |
michael@0 | 160 | |
michael@0 | 161 | #start-container[viewstate="portrait"] #instruction-topsites .instruction-content-container { |
michael@0 | 162 | -moz-box-align: center; |
michael@0 | 163 | } |
michael@0 | 164 | |
michael@0 | 165 | #start-container[viewstate="portrait"] #instruction-topsites .arrow-back-straight { |
michael@0 | 166 | display: none; |
michael@0 | 167 | } |
michael@0 | 168 | |
michael@0 | 169 | #start-container[viewstate="portrait"] #instruction-topsites .arrow-back { |
michael@0 | 170 | display: block; |
michael@0 | 171 | } |
michael@0 | 172 | |
michael@0 | 173 | #start-container[viewstate="landscape"] #instruction-topsites .arrow-back-straight { |
michael@0 | 174 | display: block; |
michael@0 | 175 | } |
michael@0 | 176 | |
michael@0 | 177 | #start-container[viewstate="landscape"] #instruction-topsites .arrow-back { |
michael@0 | 178 | display: none; |
michael@0 | 179 | } |
michael@0 | 180 | |
michael@0 | 181 | #start-container[viewstate="landscape"] #instruction-history, |
michael@0 | 182 | #start-container[viewstate="landscape"] #instruction-bookmarks { |
michael@0 | 183 | position: absolute; |
michael@0 | 184 | top: 310px; |
michael@0 | 185 | transform: translateX(calc(-300px - 50%)); |
michael@0 | 186 | } |
michael@0 | 187 | #start-container[viewstate="landscape"] #instruction-history:-moz-locale-dir(rtl), |
michael@0 | 188 | #start-container[viewstate="landscape"] #instruction-bookmarks:-moz-locale-dir(rtl) { |
michael@0 | 189 | transform: translateX(calc(300px + 50%)); |
michael@0 | 190 | } |
michael@0 | 191 | |
michael@0 | 192 | #start-container[viewstate="portrait"] #instruction-history, |
michael@0 | 193 | #start-container[viewstate="portrait"] #instruction-bookmarks, |
michael@0 | 194 | #start-container[viewstate="portrait"] #instruction-topsites { |
michael@0 | 195 | transform: translateX(-55px); |
michael@0 | 196 | } |
michael@0 | 197 | #start-container[viewstate="portrait"] #instruction-history:-moz-locale-dir(rtl), |
michael@0 | 198 | #start-container[viewstate="portrait"] #instruction-bookmarks:-moz-locale-dir(rtl), |
michael@0 | 199 | #start-container[viewstate="portrait"] #instruction-topsites:-moz-locale-dir(rtl) { |
michael@0 | 200 | transform: translateX(55px); |
michael@0 | 201 | } |
michael@0 | 202 | |
michael@0 | 203 | #start-container[viewstate="landscape"] #instruction-menu { |
michael@0 | 204 | position: fixed; |
michael@0 | 205 | bottom: 16px; |
michael@0 | 206 | right: 37px; |
michael@0 | 207 | } |
michael@0 | 208 | #start-container[viewstate="landscape"] #instruction-menu:-moz-locale-dir(rtl) { |
michael@0 | 209 | left: 37px; |
michael@0 | 210 | right: auto; |
michael@0 | 211 | } |
michael@0 | 212 | |
michael@0 | 213 | #start-container[viewstate="portrait"] #instruction-menu { |
michael@0 | 214 | position: absolute; |
michael@0 | 215 | right: 37px; |
michael@0 | 216 | transform: translateY(40px); |
michael@0 | 217 | } |
michael@0 | 218 | #start-container[viewstate="portrait"] #instruction-menu:-moz-locale-dir(rtl) { |
michael@0 | 219 | left: 37px; |
michael@0 | 220 | right: auto; |
michael@0 | 221 | } |
michael@0 | 222 | |
michael@0 | 223 | #start-container #instruction-menu .instruction-label { |
michael@0 | 224 | max-width: 300px; |
michael@0 | 225 | } |
michael@0 | 226 | |
michael@0 | 227 | #start-container[viewstate="landscape"] #start-history { |
michael@0 | 228 | padding-left: 50px; |
michael@0 | 229 | } |
michael@0 | 230 | |
michael@0 | 231 | /* Higher resolution images ---------------------- */ |
michael@0 | 232 | |
michael@0 | 233 | @media (min-resolution: @min_res_140pc@) { |
michael@0 | 234 | /* Load 140% image when scaled by 140% */ |
michael@0 | 235 | .instruction-arrow.arrow-top, |
michael@0 | 236 | .instruction-arrow.arrow-down { |
michael@0 | 237 | background-image: url("chrome://browser/skin/images/arrow-top@1.4x.png"); |
michael@0 | 238 | } |
michael@0 | 239 | |
michael@0 | 240 | .instruction-arrow.arrow-back, |
michael@0 | 241 | .instruction-arrow.arrow-forward { |
michael@0 | 242 | background-image: url("chrome://browser/skin/images/arrow-left@1.4x.png"); |
michael@0 | 243 | } |
michael@0 | 244 | |
michael@0 | 245 | .welcome-image { |
michael@0 | 246 | background-image: url("chrome://branding/content/metro_firstrun_logo@1.4x.png"); |
michael@0 | 247 | } |
michael@0 | 248 | } |
michael@0 | 249 | |
michael@0 | 250 | @media (min-resolution: @min_res_180pc@) { |
michael@0 | 251 | /* Load 180% image when scaled by 180% */ |
michael@0 | 252 | .instruction-arrow.arrow-top, |
michael@0 | 253 | .instruction-arrow.arrow-down { |
michael@0 | 254 | background-image: url("chrome://browser/skin/images/arrow-top@1.8x.png"); |
michael@0 | 255 | } |
michael@0 | 256 | |
michael@0 | 257 | .instruction-arrow.arrow-back, |
michael@0 | 258 | .instruction-arrow.arrow-forward { |
michael@0 | 259 | background-image: url("chrome://browser/skin/images/arrow-left@1.8x.png"); |
michael@0 | 260 | } |
michael@0 | 261 | |
michael@0 | 262 | .welcome-image { |
michael@0 | 263 | background-image: url("chrome://branding/content/metro_firstrun_logo@1.8x.png"); |
michael@0 | 264 | } |
michael@0 | 265 | } |