~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/toolkit/themes/qute/global/scrollbars.css

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * The contents of this file are subject to the Netscape Public
 
3
 * License Version 1.1 (the "License"); you may not use this file
 
4
 * except in compliance with the License. You may obtain a copy of
 
5
 * the License at http://www.mozilla.org/NPL/
 
6
 *
 
7
 * Software distributed under the License is distributed on an "AS
 
8
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 
9
 * implied. See the License for the specific language governing
 
10
 * rights and limitations under the License.
 
11
 *
 
12
 * The Original Code is Mozilla Communicator client code, released
 
13
 * March 31, 1998.
 
14
 *
 
15
 * The Initial Developer of the Original Code is Netscape
 
16
 * Communications Corporation. Portions created by Netscape are
 
17
 * Copyright (C) 1998-2001 Netscape Communications Corporation. All
 
18
 * Rights Reserved.
 
19
 *
 
20
 * Contributor(s):
 
21
 *   Joe Hewitt (hewitt@netscape.com)
 
22
 */
 
23
 
 
24
/* ===== scrollbars.css =================================================
 
25
  == Styles used by XUL scrollbar-related elements.
 
26
  ======================================================================= */
 
27
 
 
28
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 
29
@namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
 
30
 
 
31
/* ::::: scrollbar ::::: */
 
32
 
 
33
scrollbar {
 
34
  -moz-appearance: scrollbartrack-horizontal;
 
35
  -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
 
36
  cursor: default;
 
37
  background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
 
38
}
 
39
 
 
40
scrollbar[orient="vertical"] 
 
41
{
 
42
   -moz-appearance: scrollbartrack-vertical;
 
43
}
 
44
 
 
45
/* ::::: borders for thumb and buttons ::::: */
 
46
 
 
47
thumb,
 
48
scrollbarbutton {
 
49
  border: 2px solid;
 
50
  -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
 
51
  -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
 
52
  -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
 
53
  -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
 
54
  background-color: -moz-Dialog;
 
55
}
 
56
 
 
57
/* ::::: thumb (horizontal) ::::: */
 
58
 
 
59
thumb {
 
60
  -moz-appearance: scrollbarthumb-vertical;
 
61
  min-height: 8px;
 
62
}
 
63
 
 
64
thumb[orient="horizontal"] {
 
65
  -moz-appearance: scrollbarthumb-horizontal;
 
66
  min-width: 8px;
 
67
}
 
68
 
 
69
thumb > gripper {
 
70
  -moz-appearance: scrollbargripper-vertical;
 
71
}
 
72
 
 
73
thumb[orient="horizontal"] > gripper {
 
74
  -moz-appearance: scrollbargripper-horizontal;
 
75
}
 
76
 
 
77
/* ::::: scrollbar button ::::: */
 
78
 
 
79
scrollbarbutton {
 
80
  background: -moz-Dialog no-repeat 0px 1px;
 
81
  min-width: 16px;
 
82
  min-height: 16px;
 
83
}
 
84
 
 
85
scrollbarbutton:hover:active {
 
86
  -moz-border-top-colors: ThreeDShadow -moz-Dialog;
 
87
  -moz-border-right-colors: ThreeDShadow -moz-Dialog;
 
88
  -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
 
89
  -moz-border-left-colors: ThreeDShadow -moz-Dialog;
 
90
  background-position: 1px 2px;
 
91
}
 
92
 
 
93
/* ::::: square at the corner of two scrollbars ::::: */
 
94
 
 
95
scrollcorner { 
 
96
  -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar-base);
 
97
  cursor: default;
 
98
  background-color: -moz-Dialog;
 
99
}
 
100
 
 
101
/* ..... increment .... */
 
102
 
 
103
scrollbarbutton[type="increment"] {
 
104
  -moz-appearance: scrollbarbutton-right;
 
105
  background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
 
106
}
 
107
 
 
108
scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
 
109
  -moz-appearance: scrollbarbutton-down;
 
110
  background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
 
111
}
 
112
 
 
113
/* ..... decrement .... */
 
114
 
 
115
scrollbarbutton[type="decrement"] {
 
116
  -moz-appearance: scrollbarbutton-left;
 
117
   background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
 
118
}
 
119
 
 
120
scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
 
121
  -moz-appearance: scrollbarbutton-up;
 
122
   background-image: url("chrome://global/skin/arrow/arrow-up.gif")
 
123
}
 
124
 
 
125
/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
 
126
/* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
 
127
/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
 
128
@media print {
 
129
  /* ::::: scrollbar ::::: */
 
130
 
 
131
  html|div scrollbar {
 
132
    -moz-appearance: scrollbartrack-horizontal;
 
133
    -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
 
134
    cursor: default;
 
135
    background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
 
136
  }
 
137
 
 
138
  html|div scrollbar[orient="vertical"] 
 
139
  {
 
140
     -moz-appearance: scrollbartrack-vertical;
 
141
  }
 
142
 
 
143
  /* ::::: borders for thumb and buttons ::::: */
 
144
 
 
145
  html|div thumb,
 
146
  html|div scrollbarbutton {
 
147
    border: 2px solid;
 
148
    -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
 
149
    -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
 
150
    -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
 
151
    -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
 
152
    background-color: -moz-Dialog;
 
153
  }
 
154
 
 
155
  /* ::::: thumb (horizontal) ::::: */
 
156
 
 
157
  html|div thumb {
 
158
    -moz-appearance: scrollbarthumb-vertical;
 
159
    min-height: 8px;
 
160
  }
 
161
 
 
162
  html|div thumb[orient="horizontal"] {
 
163
    -moz-appearance: scrollbarthumb-horizontal;
 
164
    min-width: 8px;
 
165
  }
 
166
 
 
167
  html|div thumb > gripper {
 
168
    -moz-appearance: scrollbargripper-vertical;
 
169
  }
 
170
 
 
171
  html|div thumb[orient="horizontal"] > gripper {
 
172
    -moz-appearance: scrollbargripper-horizontal;
 
173
  }
 
174
 
 
175
  /* ::::: scrollbar button ::::: */
 
176
 
 
177
  html|div scrollbarbutton {
 
178
    background: -moz-Dialog no-repeat 0px 1px;
 
179
    min-width: 16px;
 
180
    min-height: 16px;
 
181
  }
 
182
 
 
183
  html|div scrollbarbutton:hover:active {
 
184
    -moz-border-top-colors: ThreeDShadow -moz-Dialog;
 
185
    -moz-border-right-colors: ThreeDShadow -moz-Dialog;
 
186
    -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
 
187
    -moz-border-left-colors: ThreeDShadow -moz-Dialog;
 
188
    background-position: 1px 2px;
 
189
  }
 
190
 
 
191
  /* ..... increment .... */
 
192
 
 
193
  html|div scrollbarbutton[type="increment"] {
 
194
    -moz-appearance: scrollbarbutton-right;
 
195
    background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
 
196
  }
 
197
 
 
198
  html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
 
199
    -moz-appearance: scrollbarbutton-down;
 
200
    background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
 
201
  }
 
202
 
 
203
  /* ..... decrement .... */
 
204
 
 
205
  html|div scrollbarbutton[type="decrement"] {
 
206
    -moz-appearance: scrollbarbutton-left;
 
207
     background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
 
208
  }
 
209
 
 
210
  html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
 
211
    -moz-appearance: scrollbarbutton-up;
 
212
     background-image: url("chrome://global/skin/arrow/arrow-up.gif")
 
213
  }
 
214
 
 
215
}