sixth and last part of syncing LCARStrek with Firefox 41 windows theme changes
[themes.git] / LCARStrek / communicator / button.css
... / ...
CommitLineData
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
5@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
6
7/* ==== button.css ==========================================================
8 == Styles for special buttons in the Communicator suite.
9 ========================================================================== */
10
11/* ::::: large toolbar buttons ::::: */
12
13.toolbarbutton-1,
14.toolbarbutton-1 > .toolbarbutton-menubutton-button {
15 min-width: 36px;
16 min-height: 36px;
17 -moz-box-orient: vertical;
18}
19
20statusbarpanel > .toolbarbutton-1,
21statusbarpanel > .toolbarbutton-1 > .toolbarbutton-menubutton-button {
22 min-width: 16px;
23 min-height: 16px;
24 -moz-box-orient: vertical;
25}
26
27.toolbarbutton-1[type="menu-button"] {
28 -moz-box-orient: horizontal;
29}
30
31.toolbarbutton-1,
32.toolbarbutton-1 > .toolbarbutton-menubutton-button,
33.toolbarbutton-1[disabled="true"]:hover:active,
34.toolbarbutton-1[disabled="true"]:hover:active > .toolbarbutton-menubutton-button {
35 padding: 1px 2px;
36}
37
38.toolbarbutton-1:hover:active,
39.toolbarbutton-1[open="true"],
40.toolbarbutton-1:hover:active > .toolbarbutton-menubutton-button {
41 padding-top: 2px;
42 padding-bottom: 0px;
43 -moz-padding-start: 3px;
44 -moz-padding-end: 1px;
45}
46
47.toolbarbutton-1[type="menu"] {
48 -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu-vertical");
49}
50
51/* ::::: small primary toolbar buttons ::::: */
52
53toolbar[mode="text"] .toolbarbutton-1,
54toolbar[mode="icons"] .toolbarbutton-1,
55toolbar[iconsize="small"] .toolbarbutton-1,
56toolbar[mode="text"] .toolbarbutton-menubutton-button,
57toolbar[mode="icons"] .toolbarbutton-menubutton-button,
58toolbar[iconsize="small"] .toolbarbutton-menubutton-button {
59 min-width: 0px;
60 min-height: 0px;
61}
62
63toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker {
64 padding-top: 4px;
65 padding-bottom: 8px;
66 -moz-padding-start: 1px;
67 -moz-padding-end: 1px;
68}
69
70toolbar[mode="icons"] .toolbarbutton-menubutton-dropmarker,
71toolbar[iconsize="small"] .toolbarbutton-menubutton-dropmarker {
72 padding-top: 0px;
73 padding-bottom: 13px;
74 -moz-padding-start: 1px;
75 -moz-padding-end: 1px;
76}
77
78toolbar[mode="text"] .toolbarbutton-1[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
79toolbar[mode="text"] .toolbarbutton-1[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
80 padding-top: 5px;
81 padding-bottom: 7px;
82 -moz-padding-start: 2px;
83 -moz-padding-end: 0px;
84}
85
86toolbar[mode="icons"] .toolbarbutton-1[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
87toolbar[mode="icons"] .toolbarbutton-1[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker,
88toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
89toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
90 padding-top: 1px;
91 padding-bottom: 12px;
92 -moz-padding-start: 2px;
93 -moz-padding-end: 0px;
94}
95
96toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker[disabled="true"] {
97 padding-top: 4px !important;
98 padding-bottom: 8px !important;
99 -moz-padding-start: 1px !important;
100 -moz-padding-end: 1px !important;
101}
102
103toolbar[mode="icons"] .toolbarbutton-menubutton-dropmarker[disabled="true"],
104toolbar[iconsize="small"] > .toolbarbutton-menubutton-dropmarker[disabled="true"] {
105 padding-top: 0px !important;
106 padding-bottom: 13px !important;
107 -moz-padding-start: 1px !important;
108 -moz-padding-end: 1px !important;
109}
110
111toolbar[mode="icons"] .toolbarbutton-text,
112toolbar[mode="text"] .toolbarbutton-icon {
113 display: none;
114}
115
116toolbar[mode="text"] .toolbarbutton-text {
117 padding: 4px 0;
118}
119
120toolbar[mode="text"] .toolbarbutton-1,
121toolbar[mode="text"] .toolbarbutton-1 > .toolbarbutton-menubutton-button {
122 -moz-box-orient: horizontal;
123}
124
125toolbar[labelalign="end"] .toolbarbutton-1,
126toolbar[labelalign="end"] .toolbarbutton-1 > .toolbarbutton-menubutton-button,
127toolbar[labelalign="end"] .toolbarbutton-1 > hbox > vbox {
128 -moz-box-orient: horizontal;
129}
130
131/* ::::: standard toolbar buttons ::::: */
132
133.button-toolbar {
134 -moz-user-focus: ignore;
135 min-width: 0px;
136 max-width: 10em;
137 background-color: transparent;
138}
139
140/* ::::: taskbuttons ::::: */
141
142.taskbutton,
143.taskbutton:hover,
144.taskbutton:hover:active {
145 padding: 1px 3px;
146 border: none;
147}
148
149.taskbutton:hover {
150 background-color: #FFCF00;
151}
152
153.taskbutton:hover:active {
154 background-color: #FFCF00;
155}
156
157/* override windows */
158
159.toolbarbutton-icon[label]:not([label=""]),
160.toolbarbutton-icon[type="menu"] {
161 -moz-margin-start: 1px;
162 -moz-margin-end: 2px;
163}