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/. */
6 --font-size-default: 1.1rem;
8 --spinner-margin-top-bottom: 0.4rem;
9 --spinner-item-height: 2.4rem;
10 --spinner-item-margin-bottom: 0.1rem;
11 --spinner-button-height: 1.2rem;
13 --day-period-spacing-width: 1rem;
15 --border: 0.1rem solid #9999CC;
16 --border-radius: 0.3rem;
18 --font-color: #000000;
19 --fill-color: #CCD0DD;
21 --selected-font-color: #FFFFFF;
22 --selected-fill-color: #336699;
24 --button-font-color: #666699;
25 --button-font-color-hover: #6666CC;
26 --button-font-color-active: #9999CC;
28 --disabled-opacity: 0.2;
37 color: var(--font-color);
38 font-size: var(--font-size-default);
44 justify-content: space-around;
48 font-family: sans-serif;
50 flex-direction: column;
51 width: var(--spinner-width);
54 .spinner-container > button {
55 -moz-appearance: none;
58 background-color: var(--button-font-color);
59 height: var(--spinner-button-height);
62 .spinner-container > button:hover {
63 background-color: var(--button-font-color-hover);
66 .spinner-container > button.active {
67 background-color: var(--button-font-color-active);
70 .spinner-container > button.up {
71 mask: url("chrome://global/skin/icons/find-arrows.svg#glyph-find-previous") no-repeat 50% 50%;
74 .spinner-container > button.down {
75 mask: url("chrome://global/skin/icons/find-arrows.svg#glyph-find-next") no-repeat 50% 50%;
78 .spinner-container.hide-buttons > button {
82 .spinner-container > .spinner {
85 margin: var(--spinner-margin-top-bottom) 0;
88 scroll-snap-type: mandatory;
89 scroll-snap-points-y: repeat(100%);
92 .spinner-container > .spinner > div {
93 box-sizing: border-box;
96 padding: calc((var(--spinner-item-height) - var(--font-size-default)) / 2) 0;
97 margin-bottom: var(--spinner-item-margin-bottom);
98 height: var(--spinner-item-height);
99 -moz-user-select: none;
100 scroll-snap-coordinate: 0 0;
103 .spinner-container > .spinner > div:hover::before {
104 background: var(--fill-color);
105 border: var(--border);
106 border-radius: var(--border-radius);
116 .spinner-container > .spinner:not(.scrolling) > div.selection {
117 color: var(--selected-font-color);
120 .spinner-container > .spinner > div.selection::before {
121 background: var(--selected-fill-color);
123 border-radius: var(--border-radius);
133 .spinner-container > .spinner > div.disabled::before,
134 .spinner-container > .spinner.scrolling > div.selection::before,
135 .spinner-container > .spinner.scrolling > div:hover::before {
139 .spinner-container > .spinner > div.disabled {
140 opacity: var(--disabled-opacity);
145 justify-content: center;
147 width: var(--colon-width);
148 margin-bottom: 0.3rem;
152 width: var(--day-period-spacing-width);