summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/ntp/apps.css
blob: 45301ab594c27a6d028f636c7335bc2df80bd80b (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
/* Apps */

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

.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;
  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;
  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;
}

@-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[app-id=web-store-entry] > a {
  background-image: url("web_store_icon.png");
}

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

#apps-promo {
  display: none;
}

html[appspromovisible=true] #apps-promo {
  display: block;
}

#apps-promo > h3 {
  font-size: 16px;
  margin-top: 1em;
  margin-bottom: 0.25em;
}

#apps-promo-text1 {
  margin-top: 0;
}

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

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

html[appspromovisible=true] .app[app-id=web-store-entry] {
  left: 25px;
}

html[appspromovisible=true][dir=rtl] .app[app-id=web-store-entry] {
  right: 25px;
}

html[appspromovisible=true] .app[app-id=web-store-entry] a {
  font-weight: bold;
}