Chromium Code Reviews

Side by Side Diff: chrome/browser/resources/new_tab_theme.css

Issue 3250002: Add an accordian effect to NTP. (Closed)
Patch Set: Fix menu positioning when there is a scrollbar. Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 html { 1 html {
2 background-image: url(chrome://theme/IDR_THEME_NTP_BACKGROUND?$1); 2 background-image: url(chrome://theme/IDR_THEME_NTP_BACKGROUND?$1);
3 background-color: $2; /* COLOR_NTP_BACKGROUND */ 3 background-color: $2; /* COLOR_NTP_BACKGROUND */
4 background-position: $3; 4 background-position: $3;
5 background-repeat: $5; 5 background-repeat: $5;
6 overflow: hidden;
7 } 6 }
8 7
9 html[bookmarkbarattached='true'] { 8 html[bookmarkbarattached='true'] {
10 background-position: $4; 9 background-position: $4;
11 } 10 }
12 11
13 body { 12 body {
14 color: $8; /* COLOR_NTP_TEXT */ 13 color: $8; /* COLOR_NTP_TEXT */
15 height: 100%; 14 height: 100%;
16 overflow: auto; 15 overflow: auto;
(...skipping 42 matching lines...)
59 .filler .thumbnail-wrapper { 58 .filler .thumbnail-wrapper {
60 border: 3px solid $$1; /* COLOR_NTP_SECTION */ 59 border: 3px solid $$1; /* COLOR_NTP_SECTION */
61 background-color: $2; /* COLOR_NTP_BACKGROUND */ 60 background-color: $2; /* COLOR_NTP_BACKGROUND */
62 } 61 }
63 62
64 .filler .thumbnail { 63 .filler .thumbnail {
65 border: 1px solid $2; /* COLOR_NTP_BACKGROUND */ 64 border: 1px solid $2; /* COLOR_NTP_BACKGROUND */
66 background-color: $$1; /* COLOR_NTP_SECTION */ 65 background-color: $$1; /* COLOR_NTP_SECTION */
67 } 66 }
68 67
69 #option-button {
70 background-color: $7; /* color_header_gradient_light */
71 -webkit-mask-image: url(chrome://theme/IDR_NEWTAB_MENU_MASK);
72 }
73
74 .miniview { 68 .miniview {
75 color: $8; /* COLOR_NTP_TEXT */ 69 color: $8; /* COLOR_NTP_TEXT */
76 } 70 }
77 71
78 .miniview > span > span { 72 .miniview > span > span {
79 color: $$6; /* COLOR_NTP_LINK_UNDERLINE */ 73 color: $$6; /* COLOR_NTP_LINK_UNDERLINE */
80 text-decoration: underline; 74 text-decoration: underline;
81 } 75 }
82 76
83 .miniview > span > span > .item { 77 .miniview > span > span > .item {
(...skipping 15 matching lines...)
99 color: $9; /* COLOR_NTP_LINK */ 93 color: $9; /* COLOR_NTP_LINK */
100 } 94 }
101 95
102 :link, 96 :link,
103 :visited, 97 :visited,
104 .link { 98 .link {
105 color: $$6; /* COLOR_NTP_LINK_UNDERLINE */ 99 color: $$6; /* COLOR_NTP_LINK_UNDERLINE */
106 } 100 }
107 101
108 .section > h2 { 102 .section > h2 {
109 color: $$9; 103 background-color: $2; /* COLOR_NTP_BACKGROUND */
110 background-image: url(chrome://theme/IDR_NEWTAB_SECTION_HEADER_BACKGROUND_A); 104 color: $$8; /* COLOR_NTP_SECTION_HEADER_TEXT */
111 } 105 }
112 106
113 .section.hidden > h2 { 107 .section:not(.hidden) > h2 {
114 color: $$8; /* COLOR_NTP_SECTION_HEADER_TEXT */ 108 background-color: transparent;
115 background-image: url(chrome://theme/IDR_NEWTAB_SECTION_HEADER_BACKGROUND); 109 background-image:
110 -webkit-gradient(linear, 0% 0%, 0% 100%, from($2), to($2)),
111 -webkit-gradient(linear, 0% 0%, 0% 100%, from($2), to($$$1));
112 color: $$9;
113 }
114
115 .section:not(.hidden) + .section > h2 {
116 background-color: transparent;
117 background-image:
118 -webkit-gradient(linear, 0% 0%, 0% 100%, from($$$1), to($2)),
119 -webkit-gradient(linear, 0% 0%, 0% 100%, from($2), to($2));
116 } 120 }
117 121
118 .section.hidden:not([noexpand]) > h2:hover { 122 .section.hidden:not([noexpand]) > h2:hover {
119 color: $$9; 123 color: $$9;
120 background-image: url(chrome://theme/IDR_NEWTAB_SECTION_HEADER_BACKGROUND_H);
121 } 124 }
122 125
123 .section > h2 > span { 126 .section > h2 > span {
124 background: $2; /* COLOR_NTP_BACKGROUND */ 127 background: $2; /* COLOR_NTP_BACKGROUND */
125 } 128 }
126 129
130 .section > h2 > .back {
131 background-image:
132 -webkit-gradient(radial, 50% -1753, 1750, 50% -1753, 1770,
133 from($$$2), to($$$1));
134 border-top: 1px solid $$$2; /* COLOR_NTP_SECTION_HEADER_RULE */
135 }
136
137 .section.hidden > h2 > .back {
138 background: none;
139 border-color-top: $$$3; /* COLOR_NTP_SECTION_HEADER_RULE_LIGHT */
140 }
141
142 .section.hidden:hover > h2 > .back {
143 border-color-top: $$$2; /* COLOR_NTP_SECTION_HEADER_RULE */
144 }
145
146 .section > h2 > .settings {
147 background-color: $2; /* COLOR_NTP_BACKGROUND */
148 border-color: $2; /* COLOR_NTP_BACKGROUND */
149 }
150
151 .section > .miniview {
152 background: $2; /* COLOR_NTP_BACKGROUND */
153 }
154
127 #apps-section .app a { 155 #apps-section .app a {
128 color: $8; /* COLOR_NTP_TEXT */ 156 color: $8; /* COLOR_NTP_TEXT */
129 } 157 }
130 158
131 #apps-section .app:hover > .front > a, 159 #apps-section .app:hover > .front > a,
132 #apps-section .app > .back { 160 #apps-section .app > .back {
133 color: $$3; /* COLOR_NTP_SECTION_TEXT */ 161 color: $$3; /* COLOR_NTP_SECTION_TEXT */
134 background-color: $$1; /* COLOR_NTP_SECTION */; 162 background-color: $$1; /* COLOR_NTP_SECTION */;
135 } 163 }
OLDNEW

Powered by Google App Engine