Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: chrome/browser/resources/ntp/apps.css

Issue 6825052: Update the web store promo to be clearer and configurable at run-time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix URL. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Apps */ 1 /* Apps */
2 2
3 #apps-content { 3 #apps-content {
4 position: relative; 4 position: relative;
5 max-width: 780px; /* (124 + margin * 2) * 6 */ 5 max-width: 780px; /* (124 + margin * 2) * 6 */
6 } 6 }
7 7
8 html.apps-promo-visible #apps-content { 8 html.apps-promo-visible #apps-content {
9 max-width: 650px; /* (124 + margin * 2) * 5 */ 9 max-width: 650px; /* (124 + margin * 2) * 5 */
10 } 10 }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 menu > button.default { 136 menu > button.default {
137 font-weight: bold; 137 font-weight: bold;
138 } 138 }
139 139
140 #apps-promo { 140 #apps-promo {
141 display: none; 141 display: none;
142 } 142 }
143 143
144 html.apps-promo-visible #apps-promo { 144 html.apps-promo-visible #apps-promo {
145 display: block; 145 background: url('chrome://theme/IDR_WEBSTORE_ICON') no-repeat;
146 height: 125px;
147 padding-left: 125px;
arv (Not doing code reviews) 2011/04/13 17:17:59 -webkit-padding-start Any time you see left and r
jstritar 2011/04/13 19:52:27 Done. Thanks for catching that. Also, didn't know
148 display: table-cell;
149 vertical-align: text-bottom;
146 } 150 }
147 151
148 #apps-promo > h3 { 152 #apps-promo-heading {
149 font-size: 16px; 153 font-size: 115%;
150 margin-top: 1em; 154 font-weight: bold;
151 margin-bottom: 0.25em; 155 margin-bottom: 5px;
152 } 156 margin-left: 3px;
arv (Not doing code reviews) 2011/04/13 17:17:59 -webkit-margin-start
jstritar 2011/04/13 19:52:27 Done.
153
154 #apps-promo-text1 {
155 margin-top: 0;
156 } 157 }
157 158
158 #apps-promo-hide { 159 #apps-promo-hide {
159 float: right;
160 -webkit-appearance: none; 160 -webkit-appearance: none;
161 -webkit-transition: opacity .15s; 161 -webkit-transition: opacity .15s;
162 background-color: transparent; 162 background-color: transparent;
163 border: 0; 163 border: 0;
164 cursor: pointer; 164 cursor: pointer;
165 font-family: inherit; 165 font-family: inherit;
166 font-size: 90%; 166 font-size: 90%;
167 text-decoration: underline; 167 text-decoration: underline;
168 margin-top: 2px;
168 } 169 }
169 170
170 html[dir=rtl] #apps-promo-hide { 171 html[dir=rtl] #apps-promo-hide {
171 float: left; 172 float: left;
172 } 173 }
173 174
174 html.apps-promo-visible .app.web-store-entry {
175 position: absolute;
176 left: 100%;
177 top: 0;
178 -webkit-margin-start: 22px;
179 }
180
181 html.apps-promo-visible[dir=rtl] .app.web-store-entry {
182 right: 100%;
183 }
184
185 html.apps-promo-visible .app.web-store-entry a {
186 font-weight: bold;
187 }
188
189 /* 175 /*
190 We position the web store entry all by its lonesome in the top of the rightmost 176 We position the web store entry all by its lonesome in the top of the rightmost
191 column when there is at least one full row of apps. Note that this is similar, 177 column when there is at least one full row of apps. Note that this is similar,
192 but different than its position during promo (html.apps-promo-visible), so we 178 but different than its position during promo (html.apps-promo-visible), so we
193 never set .loner while the promo is running. 179 never set .loner while the promo is running.
194 */ 180 */
195 .app.web-store-entry.loner { 181 .app.web-store-entry.loner {
196 position: absolute; 182 position: absolute;
197 left: 100%; 183 left: 100%;
198 top: 0; 184 top: 0;
199 } 185 }
200 186
201 html[dir=rtl] .app.web-store-entry.loner { 187 html[dir=rtl] .app.web-store-entry.loner {
202 right: 100%; 188 right: 100%;
203 } 189 }
190
191 /* g-button CSS styles */
arv (Not doing code reviews) 2011/04/13 17:17:59 I have no idea what this is? Is this some shared c
192 @media screen, projection {
193 g-button-basic * {
194 margin: 0;
195 padding: 0;
196 }
197
198 .g-button-basic {
199 direction: ltr;
200 line-height: 1.2;
201 width: 20em;
202 max-width: 795px;
203 background-color: #cadef4;
204 border: 1px solid #ccc;
205 padding: 15px;
206 text-align: center;
207 overflow: visible;
208 }
209
210 .g-button-basic div {
211 font-size: 1.3em;
212 background: url('g-button-chocobo-basic-1.png') no-repeat;
arv (Not doing code reviews) 2011/04/13 17:17:59 -webkit-border-image FTW. You can do this fancy bu
213 background-color: #5679a5;
214 }
215
216 .g-button-basic div span span a {
217 display: block;
218 color: #fff!important;
219 /* @noflip */ background: url('g-button-chocobo-basic-2.png') no-repeat righ t bottom;
arv (Not doing code reviews) 2011/04/13 17:17:59 remove GSS annotations?
jstritar 2011/04/13 19:52:27 Done.
220 /* @noflip */ padding: 8px 18px 13px 13px;
221 text-decoration: none;
222 font-weight: bold;
223 height: 1%;
arv (Not doing code reviews) 2011/04/13 17:17:59 ws
224 }
225
226 .g-button-basic div span {
227 display: block;
228 /* @noflip */ background: url('g-button-chocobo-basic-1.png') no-repeat righ t -400px;
229 height: 1%;
230 }
231
232 .g-button-basic p {
233 text-align: center;
234 margin: 10px 0 0;
235 }
236
237 .g-button-basic {
238 padding: 0;
239 background: none;
240 border: 0;
241 }
242
243 .g-button-basic div span span {
244 /* @noflip */ background: url('g-button-chocobo-basic-1.png') no-repeat left bottom;
arv (Not doing code reviews) 2011/04/13 17:17:59 This will duplicate the data due to inlining. Can
245 }
246 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698