source: branches/testFACT++branch/dim/WebDID/ext-4.1.1a/resources/themes/stylesheets/neptune/default/widgets/_toolbar.scss

Last change on this file was 14939, checked in by tbretz, 12 years ago
Added WebDID from v20r5
File size: 5.1 KB
Line 
1@mixin extjs-toolbar {
2 .#{$prefix}toolbar {
3 font-size: $toolbar-font-size;
4
5// border: 1px solid;
6 overflow: visible; // Yikes...
7
8 .#{$prefix}box-inner {
9 overflow: visible;
10 }
11
12 padding: $toolbar-vertical-spacing 0 $toolbar-vertical-spacing $toolbar-horizontal-spacing;
13
14 .#{$prefix}form-item-label{
15 font-size: $toolbar-font-size;
16 line-height: 15px;
17 }
18
19 .#{$prefix}toolbar-item {
20 margin: 0 $toolbar-horizontal-spacing 0 0;
21 }
22
23 .#{$prefix}toolbar-text {
24 margin-left: 4px;
25 margin-right: 6px;
26 white-space: nowrap;
27 color: $toolbar-text-color !important;
28 line-height: $toolbar-text-line-height;
29 font-family: $toolbar-text-font-family;
30 font-size: $toolbar-text-font-size;
31 font-weight: $toolbar-text-font-weight;
32 }
33
34 .#{$prefix}toolbar-separator {
35 display: block;
36 font-size: 1px;
37 overflow: hidden;
38 cursor: default;
39 border: 0;
40 }
41
42 .#{$prefix}toolbar-separator-horizontal {
43 margin: 0 6px 0 1px;
44
45 height: 24px;
46 width: 0px;
47
48 border-left: 1px solid $toolbar-separator-color;
49 border-right: 1px solid $toolbar-separator-highlight-color;
50 }
51 }
52
53 .#{$prefix}toolbar-docked-top { padding-bottom: 0; }
54 .#{$prefix}toolbar-docked-bottom { padding-top: 0; }
55 .#{$prefix}toolbar-docked-left { padding-right: 0; }
56 .#{$prefix}toolbar-docked-right { padding-left: 0; }
57
58 @if $include-ie {
59 .#{$prefix}quirks .#{$prefix}ie .#{$prefix}toolbar .#{$prefix}toolbar-separator-horizontal {
60 width: 2px;
61 }
62 }
63
64 .#{$prefix}toolbar-footer {
65 background: transparent;
66 border: 0px none;
67 margin-top: 3px;
68
69 padding: $toolbar-footer-vertical-spacing 0 $toolbar-footer-vertical-spacing $toolbar-footer-horizontal-spacing;
70
71 .#{$prefix}box-inner {
72 border-width: 0;
73 }
74
75 .#{$prefix}toolbar-item {
76 margin: 0 $toolbar-footer-horizontal-spacing 0 0;
77 }
78 }
79
80 .#{$prefix}toolbar-vertical {
81 padding: $toolbar-vertical-spacing $toolbar-horizontal-spacing 0 $toolbar-horizontal-spacing;
82
83 .#{$prefix}toolbar-item {
84 margin: 0 0 $toolbar-horizontal-spacing 0;
85 }
86
87 .#{$prefix}toolbar-text {
88 margin-top: 4px;
89 margin-bottom: 6px;
90 }
91
92 .#{$prefix}toolbar-separator-vertical {
93 margin: 2px 5px 3px 5px;
94
95 height: 0px;
96 width: 10px;
97 line-height: 0px;
98
99 border-top: 1px solid $toolbar-separator-color;
100 border-bottom: 1px solid $toolbar-separator-highlight-color;
101 }
102 }
103
104 .#{$prefix}toolbar-scroller {
105 padding-left: 0;
106 }
107
108 .#{$prefix}toolbar-spacer {
109 width: $toolbar-spacer-width;
110 }
111
112 // Background for overflow button inserted by the Menu box overflow handler within a toolbar
113 .#{$prefix}toolbar-more-icon {
114 background-image: theme-background-image($theme-name, 'toolbar/more.gif') !important;
115 background-position: 2px center !important;
116 background-repeat: no-repeat;
117 }
118
119 @include extjs-toolbar-ui(
120 'default',
121 $background-color: $toolbar-background-color,
122 $background-gradient: $toolbar-background-gradient,
123 $border-color: $toolbar-border-color
124 );
125
126 //plain toolbars have no border
127 //by default they get no color, so they are transparent. IE6 doesnt support transparent borders
128 //so we must set the width to 0.
129 .#{$prefix}toolbar-plain {
130 border: 0;
131 }
132
133 .#{$prefix}window .#{$prefix}toolbar {
134 // border-color: $window-body-border-color;
135 // @tag question Now what to do about plain attr?
136 }
137}
138
139/**
140 * @mixin ext-toolbar-ui
141 * @class Ext.toolbar.Toolbar
142 * @param {String} $ui The name of the UI
143 * @param {Color} $background-color The background color of the toolbar (defaults to transparent)
144 * @param {Gradient/color-stops} $background-gradient The background gradient of the toolbar (defaults to null)
145 * @param {Color} $border-color The border color of the toolbar (defaults to null)
146 */
147@mixin extjs-toolbar-ui(
148 $ui,
149
150 $background-color: transparent,
151 $background-gradient: null,
152
153 $border-color: null
154) {
155 .#{$prefix}toolbar-#{$ui} {
156 @if $border-color != null {
157 border-color: $border-color;
158 }
159
160 @include background-gradient($background-color, $background-gradient);
161 }
162
163 @if not $supports-gradients or $compile-all {
164 @if $background-gradient != null {
165 .#{$prefix}nlg {
166 .#{$prefix}toolbar-#{$ui} {
167 background-image: theme-background-image($theme-name, 'toolbar/toolbar-#{$ui}-bg.gif') !important;
168 background-repeat: repeat-x;
169 }
170 }
171 }
172 }
173}
Note: See TracBrowser for help on using the repository browser.