summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/ntp/apps.css
blob: 1cbfdcec58e8f27583c5d4ff1abf55c6ebbfafeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
/* Apps */

#apps-content {
  position: relative;
  max-width: 780px;  /* (124 + margin * 2) * 6 */
}

html.apps-promo-visible #apps-content {
  max-width: 650px; /* (124 + margin * 2) * 5 */
}

#apps-maxiview {
  overflow: hidden;
}

/*
We don't need to do anything for html.apps-promo-visible because there is
enough extra space in the small grid layout.
*/
.small-layout #apps-content,
.small-layout html.apps-promo-visible #apps-content {
  max-width: 520px;  /* (124 + margin * 2) * 4 */
}

.app,
.app[new=installed] {
  box-sizing: border-box;
  -webkit-perspective: 400;
  border-radius: 10px;
  color: black;
  margin: 5px 3px;
  position: absolute;
  height: 136px;
  width: 124px; /* 920 / 7 - margin * 2 */
  visibility: hidden;
}

.app a {
  border-radius: 10px;
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.app a {
  -webkit-transition: background-color .5s;
  background: rgba(255, 255, 255, 0) /* transparent white */
              no-repeat center 10px;
  background-size: 96px 96px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 107%;
  overflow: hidden;
  padding: 111px 10px 10px;  /* 10 + 96 + 5 */
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app .app-settings {
  background-color: transparent;
  background-position: center center;
  background-repeat: no-repeat;
  border: 0;
  height: 14px;
  padding: 0;
  position: absolute;
  right: 5px;
  top: 5px;
  width: 14px;
}

.app > .app-settings {
  -webkit-transition: opacity .3s;
  -webkit-transition-delay: 0;
  background-image: url(chrome://theme/IDR_BALLOON_WRENCH);
  opacity: 0;
}

.app > .app-settings:hover {
  -webkit-transition: none;
  background-image: url(chrome://theme/IDR_BALLOON_WRENCH_H);
}

.app:hover > .app-settings,
.app > .app-settings:focus {
  -webkit-transition-delay: .5s;
  opacity: .9;
}

.app.dragging > .app-settings {
  background-image: none;
}

.app.dragging {
  opacity: .7;
}

#apps-content[launcher-animations=true] .app {
  -webkit-transition: top .2s, left .2s, right .2s, opacity .2s;
}

#apps-content.visible .app {
  visibility: visible;
}

@-webkit-keyframes bounce {
  0% {
    -webkit-transform: scale(0, 0);
  }

  60% {
    -webkit-transform: scale(1.2, 1.2);
  }

  100% {
    -webkit-transform: scale(1, 1);
  }
}

html[install-animation-enabled=true] .app[new=new] {
  opacity: 0;
}

html[install-animation-enabled=true] .app[new=installed] {
  -webkit-animation: bounce .5s ease-in-out;
  -webkit-transition: opacity .5s;
}

.app.web-store-entry > a {
  background-image: url("chrome://theme/IDR_WEBSTORE_ICON");
}

menu > button.default {
  font-weight: bold;
}

#apps-promo {
  display: none;
}

html.apps-promo-visible #apps-promo {
  background: url('chrome://theme/IDR_WEBSTORE_ICON') no-repeat;
  height: 125px;
  -webkit-padding-start: 125px;
  display: table-cell;
  vertical-align: text-bottom;
}

#apps-promo-heading {
  font-size: 115%;
  font-weight: bold;
  margin-bottom: 5px;
  -webkit-margin-start: 3px;
}

#apps-promo-hide {
  -webkit-appearance: none;
  -webkit-transition: opacity .15s;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 90%;
  text-decoration: underline;
  margin-top: 2px;
}

html[dir=rtl] #apps-promo-hide {
  float: left;
}

/*
We position the web store entry all by its lonesome in the top of the rightmost
column when there is at least one full row of apps. Note that this is similar,
but different than its position during promo (html.apps-promo-visible), so we
never set .loner while the promo is running.
*/
.app.web-store-entry.loner {
  position: absolute;
  left: 100%;
  top: 0;
}

html[dir=rtl] .app.web-store-entry.loner {
  right: 100%;
}

/* g-button CSS styles (see go/buttons) */
@media screen, projection {
  g-button-basic * {
    margin: 0;
    padding: 0;
  }

  .g-button-basic {
    direction: ltr;
    line-height: 1.2;
    width: 20em;
    max-width: 795px;
    background-color: #cadef4;
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
    overflow: visible;
  }

  .g-button-basic div {
    font-size: 1.3em;
    background: url('g-button-chocobo-basic-1.png') no-repeat;
    background-color: #5679a5;
  }

  .g-button-basic div span span a {
    display: block;
    color: #fff!important;
    background: url('g-button-chocobo-basic-2.png') no-repeat right bottom;
    padding: 8px 18px 13px 13px;
    text-decoration: none;
    font-weight: bold;
  }

  .g-button-basic div span {
    display: block;
    background: url('g-button-chocobo-basic-1.png') no-repeat right -400px;
    height: 1%;
  }
  
  .g-button-basic p {
    text-align: center;
    margin: 10px 0 0;
  }
  
  .g-button-basic {
    padding: 0;
    background: none;
    border: 0;
  }

  .g-button-basic div span span {
    background: url('g-button-chocobo-basic-1.png') no-repeat left bottom;
  }
}