summaryrefslogtreecommitdiffstats
path: root/toolkit/themes/osx/global/toolbar.css
blob: f07332d2f30a31d5dbffc0606bd6ccebaefebc8c (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

toolbox {
  /* Setting -moz-appearance:toolbox causes sheets to attach under the
   * toolbox and has no other effects. It doesn't render anything. */
  -moz-appearance: toolbox;
}

toolbar {
  min-width: 1px;
  min-height: 20px;
  -moz-appearance: toolbar;
}

%ifdef MOZ_AUSTRALIS
menubar:-moz-lwtheme,
toolbar:-moz-lwtheme {
  -moz-appearance: none;
  background: none;
  border-color: transparent;
}
%else
menubar:-moz-lwtheme,
toolbar:-moz-lwtheme {
  -moz-appearance: none;
  background: none;
  border-style: none;
}
%endif

menubar {
  -moz-appearance: dialog; /* For content menubars, "toolbar" is too dark, so we use "dialog". */
  min-width: 1px;
}

toolbarseparator {
  -moz-appearance: none;
  margin: 3px 4px;
  background: url("chrome://global/skin/toolbar/toolbar-separator.png") transparent repeat-y;
  padding: 0;
  width: 1px !important;
}

/* ::::: toolbarpaletteitem ::::: */

toolbarpaletteitem {
  cursor: grab;
}

toolbar[iconsize="small"] toolbarpaletteitem[type="spacer"] {
  min-width: 24px !important;
}

toolbarpaletteitem[type="spacer"] {
  min-width: 32px !important;
}

.toolbarpaletteitem-box[type="spacer"] {
  border: 1px solid #A3A3A3;
  background: url("chrome://global/skin/10pct_transparent_grey.png") repeat;
  width: 32px;
  margin-top: 18px;
}

.toolbarpaletteitem-box[type="spring"] {
  border: 1px solid #A3A3A3;
  background: url("chrome://global/skin/toolbar/spring.png") #FFFFFF no-repeat;
  width: 32px;
  margin-top: 18px;
}

.toolbarpaletteitem-box[type="spring"][place="toolbar"] {
  background: url("chrome://global/skin/10pct_transparent_grey.png") repeat;
}

.toolbarpaletteitem-box[type="spacer"][place="toolbar"],
.toolbarpaletteitem-box[type="spring"][place="toolbar"] {
  margin: 2px;
}

.toolbarpaletteitem-box[type="separator"][place="palette"] {
  width: 2px;
  height: 50px;
}

.toolbarpaletteitem-box[type="spacer"][place="palette"],
.toolbarpaletteitem-box[type="spring"][place="palette"] {
  margin-top: 0;
  margin-bottom: 2px;
  height: 32px;
}

.toolbarpaletteitem-box[type="spring"][place="palette"] {
  background-position: center;
  margin-left: 8px;
  margin-right: 8px;
}

/* ..... drag and drop feedback ..... */

toolbarpaletteitem[place="toolbar"] {
  margin-left: -2px;
  margin-right: -2px;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
}

toolbarpaletteitem[dragover="left"] {
  border-left-color: #000000;
}

toolbarpaletteitem[dragover="right"] {
  border-right-color: #000000;
}

toolbar[iconsize="small"] toolbarspacer {
  min-width: 24px !important;
}

toolbarspacer {
  min-width: 32px !important;
}