summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/ntp4/new_tab_theme.css
blob: 4b822b529d482383bb19ce33d1c552e978ab0362 (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
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

html {
  background-attachment: fixed;
  background-color: ${colorBackground};
  background-image: url(chrome://theme/IDR_THEME_NTP_BACKGROUND?${themeId});
  background-position: ${backgroundBarDetached};
  background-repeat: ${backgroundTiling};
}

#attribution-img {
  content: url(chrome://theme/IDR_THEME_NTP_ATTRIBUTION?${themeId});
}

html[bookmarkbarattached='true'] {
  background-position: ${backgroundBarAttached};
}

body {
  color: ${colorTextRgba};
  height: 100%;
  overflow: auto;
}

#attribution,
[is='action-link'] {
  color: ${colorTextLight};
}

[is='action-link']:active {
  color: ${colorTextRgba};
}

.page-switcher {
  color: rgba(${colorText}, 0.5);
}

.page-switcher:hover,
.page-switcher:focus,
.page-switcher.drag-target {
  background-color: rgba(${colorText}, 0.06);
}

/* Only change the background to a gradient when a promo is showing. */
.showing-login-area #page-switcher-end:hover,
.showing-login-area #page-switcher-end:focus,
.showing-login-area #page-switcher-end.drag-target {
  background: linear-gradient(top,
      rgba(${colorText}, 0) 0,
      rgba(${colorText}, .01) 60px,
      rgba(${colorText}, .06) 183px);
}

.tile-page-scrollbar {
  background-color: ${colorTextLight};
}

/* Footer *********************************************************************/

#footer-border {
  background: linear-gradient(left,
      rgba(${colorSectionBorder}, 0.2),
      rgba(${colorSectionBorder}, 0.3) 20%,
      rgba(${colorSectionBorder}, 0.3) 80%,
      rgba(${colorSectionBorder}, 0.2));
}

.dot input:focus {
  background-color: ${colorBackground};
}

.bare-minimum #footer {
  color: ${colorTextRgba};
}

.bare-minimum .disclosure-triangle {
  background-color: ${colorTextRgba};
}

.bare-minimum .footer-menu-button:hover,
.bare-minimum .footer-menu-button[menu-shown],
.bare-minimum #chrome-web-store-link:hover {
  color: rgba(${colorText}, 0.85);
}

.bare-minimum .footer-menu-button:hover .disclosure-triangle,
.bare-minimum .footer-menu-button[menu-shown] .disclosure-triangle {
  background-color: rgba(${colorText}, 0.85);
}

.thumbnail-wrapper {
  /* This shows through at the (rounded) thumbnail's corners. */
  background-color: ${colorSectionBorder};
}

.filler .thumbnail {
  border-color: ${colorBackground};
}