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

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

Issue 3747007: Reserve right-most column of apps grid for web store icon. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: different approach Created 10 years, 2 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
OLDNEW
1 /* Apps */ 1 /* Apps */
2 2
3 #apps-content {
4 position: relative;
5 width: intrinsic;
6 max-width: 780px; /* (124 + margin * 2) * 6 */
7 }
8
9 html.apps-promo-visible #apps-content {
10 max-width: 650px; /* (124 + margin * 2) * 5 */
11 }
12
13 /* small */
14 @media (max-width: 940px) {
15 /*
16 We don't need to do anything for html.apps-promo-visible because there is
17 enough extra space in the small grid layout.
18 */
19 #apps-content,
20 html.apps-promo-visible #apps-content {
21 max-width: 520px; /* (124 + margin * 2) * 4 */
22 }
23 }
24
3 .app, 25 .app,
4 .app[new=installed] { 26 .app[new=installed] {
5 -webkit-box-sizing: border-box; 27 -webkit-box-sizing: border-box;
6 -webkit-perspective: 400; 28 -webkit-perspective: 400;
7 border-radius: 10px; 29 border-radius: 10px;
8 color: black; 30 color: black;
9 display: inline-block; 31 display: inline-block;
10 margin: 5px 3px; 32 margin: 5px 3px;
11 position: relative; 33 position: relative;
12 height: 136px; 34 height: 136px;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 font-family: inherit; 148 font-family: inherit;
127 font-size: 90%; 149 font-size: 90%;
128 text-decoration: underline; 150 text-decoration: underline;
129 } 151 }
130 152
131 html[dir=rtl] #apps-promo-hide { 153 html[dir=rtl] #apps-promo-hide {
132 float: left; 154 float: left;
133 } 155 }
134 156
135 html.apps-promo-visible .app[app-id=web-store-entry] { 157 html.apps-promo-visible .app[app-id=web-store-entry] {
136 left: 25px; 158 position: absolute;
159 left: 100%;
160 top: 0;
161 -webkit-margin-start: 22px;
137 } 162 }
138 163
139 html.apps-promo-visible[dir=rtl] .app[app-id=web-store-entry] { 164 html.apps-promo-visible[dir=rtl] .app[app-id=web-store-entry] {
140 right: 25px; 165 right: 100%;
141 } 166 }
142 167
143 html.apps-promo-visible .app[app-id=web-store-entry] a { 168 html.apps-promo-visible .app[app-id=web-store-entry] a {
144 font-weight: bold; 169 font-weight: bold;
145 } 170 }
146 171
172 /*
173 We position the web store entry all by its lonesome in the top of the rightmost
174 column when there is at least one full row of apps. Note that this is similar,
175 but different than its position during promo (html.apps-promo-visible), so we
176 never set .loner while the promo is running.
177 */
178 .app[app-id=web-store-entry].loner {
179 position: absolute;
180 left: 100%;
181 top: 0;
182 }
183
184 html[dir=rtl] .app[app-id=web-store-entry].loner {
185 right: 100%;
186 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698