sync both themes with toolkit windows theme changes in Mozilla 33 cycle
[themes.git] / LCARStrek / browser / newtab / newTab.css
CommitLineData
fff8097b
RK
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
8d7ef0d9
RK
5:root {
6 -moz-appearance: none;
56ab361a 7 font-size: 75%;
8d7ef0d9 8 background-color: transparent;
0d686391 9 padding: 0;
0d686391
RK
10}
11
8d7ef0d9 12/* SCROLLBOX */
fff8097b
RK
13#newtab-scrollbox:not([page-disabled]),
14#newtab-scrollbox:not([page-disabled]) #newtab-margin-bottom {
3a0880a9 15 color: #FF9F00;
8d7ef0d9 16 background-color: #000000;
0d686391
RK
17}
18
56ab361a
RK
19/* UNDO */
20#newtab-undo-container {
21 padding: 4px 3px;
22 border: 1px solid;
23 border-color: #9C9CFF;
24 background-color: #000000;
25 color: #8050B0;
26}
27
28#newtab-undo-label {
29 margin-top: 0;
30 margin-bottom: 0;
31}
32
33.newtab-undo-button {
34 color: #3333FF;
35 cursor: pointer;
36 padding: 0;
37 margin: 0 4px;
38 border: 0;
39 background: transparent;
40 text-decoration: none;
41 min-width: 0;
42}
43
44.newtab-undo-button:hover {
45 text-decoration: underline;
46}
47
48.newtab-undo-button:-moz-focusring {
49 outline: 1px dotted;
50}
51
52.newtab-undo-button > .button-box {
53 padding: 0;
54}
55
56#newtab-undo-close-button {
57 padding: 0;
58 border: none;
59 list-style-image: url("chrome://global/skin/icons/close.png");
60 -moz-image-region: rect(0, 16px, 16px, 0);
56ab361a
RK
61}
62
63#newtab-undo-close-button:hover {
64 -moz-image-region: rect(0, 32px, 16px, 16px);
65}
66
67#newtab-undo-close-button > .toolbarbutton-text {
68 display: none;
69}
70
71#newtab-undo-close-button:-moz-focusring {
72 outline: 1px dotted;
73}
74
8d7ef0d9
RK
75/* TOGGLE */
76#newtab-toggle {
77 width: 16px;
78 height: 16px;
79 padding: 0;
80 border: none;
81 background: -216px 0 transparent url("chrome://browser/skin/newtab/controls.png");
0d686391
RK
82}
83
8d7ef0d9
RK
84#newtab-toggle[page-disabled] {
85 background-position: -232px 0;
0d686391
RK
86}
87
8d7ef0d9
RK
88/* ROWS */
89.newtab-row {
90 margin-bottom: 20px;
0d686391
RK
91}
92
8d7ef0d9
RK
93.newtab-row:last-child {
94 margin-bottom: 0;
0d686391
RK
95}
96
fff8097b
RK
97.newtab-row > .newtab-cell {
98 /* this only applies before Directory Tiles work, row is gone afterwards. */
99 -moz-margin-end: 20px;
100}
101
8d7ef0d9
RK
102/* CELLS */
103.newtab-cell {
8d7ef0d9
RK
104 background-color: rgba(255,159,0,.2);
105 border: 1px solid;
106 border-color: #9C9CFF;
107 border-radius: 1px;
71a617ff 108 transition: border-color 100ms ease-out;
0d686391
RK
109}
110
8d7ef0d9
RK
111.newtab-cell:empty {
112 border: 1px dashed;
0d686391
RK
113}
114
fff8097b 115.newtab-row > .newtab-cell:last-child {
8d7ef0d9 116 -moz-margin-end: 0;
0d686391
RK
117}
118
fff8097b 119.newtab-cell:hover:not(:empty):not([dragged]):not([ignorehover]) {
8d7ef0d9 120 border-color: #FFCF00;
0d686391
RK
121}
122
8d7ef0d9
RK
123/* SITES */
124.newtab-site {
125 text-decoration: none;
71a617ff 126 transition-property: top, left, opacity, box-shadow, background-color;
0d686391
RK
127}
128
fff8097b 129.newtab-cell:not([ignorehover]) > .newtab-site:hover,
8d7ef0d9
RK
130.newtab-site[dragged] {
131 box-shadow: 0 0 10px rgba(0,132,132,.3);
0d686391
RK
132}
133
8d7ef0d9 134.newtab-site[dragged] {
71a617ff 135 transition-property: box-shadow, background-color;
8d7ef0d9 136 background-color: #002121;
0d686391
RK
137}
138
8d7ef0d9
RK
139/* THUMBNAILS */
140.newtab-thumbnail {
141 background-origin: padding-box;
142 background-clip: padding-box;
143 background-repeat: no-repeat;
144 background-size: cover;
0d686391
RK
145}
146
fff8097b
RK
147.newtab-site[type=affiliate] .newtab-thumbnail,
148.newtab-site[type=organic] .newtab-thumbnail,
149.newtab-site[type=sponsored] .newtab-thumbnail {
150 background-position: center center;
151 background-size: auto;
152}
153
8d7ef0d9
RK
154/* TITLES */
155.newtab-title {
156 padding: 0 8px;
157 background-color: rgba(255,159,0,.8);
158 color: #000000;
8d7ef0d9 159 line-height: 24px;
fff8097b
RK
160 bottom: 0 !important;
161}
162
163.newtab-site[type=sponsored] .newtab-title {
164 -moz-padding-end: 24px;
0d686391
RK
165}
166
8d7ef0d9
RK
167/* CONTROLS */
168.newtab-control {
169 width: 24px;
170 height: 24px;
171 padding: 1px 2px 3px;
172 border: none;
173 background: transparent url("chrome://browser/skin/newtab/controls.png");
0d686391
RK
174}
175
8d7ef0d9
RK
176.newtab-control-pin:hover {
177 background-position: -24px 0;
0d686391
RK
178}
179
8d7ef0d9
RK
180.newtab-control-pin:active {
181 background-position: -48px 0;
0d686391
RK
182}
183
8d7ef0d9
RK
184.newtab-control-pin[pinned] {
185 background-position: -72px 0;
0d686391
RK
186}
187
8d7ef0d9
RK
188.newtab-control-pin[pinned]:hover {
189 background-position: -96px 0;
0d686391
RK
190}
191
8d7ef0d9
RK
192.newtab-control-pin[pinned]:active {
193 background-position: -120px 0;
0d686391
RK
194}
195
8d7ef0d9
RK
196.newtab-control-block {
197 background-position: -144px 0;
0d686391
RK
198}
199
8d7ef0d9
RK
200.newtab-control-block:hover {
201 background-position: -168px 0;
0d686391
RK
202}
203
8d7ef0d9
RK
204.newtab-control-block:active {
205 background-position: -192px 0;
0d686391 206}
fff8097b
RK
207
208.newtab-control-sponsored {
209 background-position: -249px -1px;
210}
211
212.newtab-control-sponsored:hover {
213 background-position: -265px -1px;
214}
215
216.newtab-control-sponsored[panelShown] {
217 background-position: -281px -1px;
218}