Debian Codegraph @

dijit-themes/flat/dijit/form/dijit_form_variables.styl

raw
1 /* dijit/form/* variables */
2
3 @import '../../variables';
4
5 /* Button (default) */
6
7 $button-default-color = $theme-base-color;
8 $button-default-border-color = $border-color;
9 $button-padding = $padding $padding * 3;
10 $button-border-radius = $border-radius;
11
12 // arrow button
13 $button-arrow-width = $line-height; // The arrow button size will be 30px by 30px
14 $button-arrow-padding = $padding;
15
16 // disabled
17 $button-disabled-color = $disabled-color;
18 $button-disabled-background-color = $disabled-background-color;
19 $button-disabled-border-color = $disabled-border-color;
20
21 // alternatice button styles
22
23 $button-alternative-text-color = $theme-base-color;
24 $button-alternative-colors = {
25 alt-primary: $primary,
26 alt-success: $success,
27 alt-info: $info,
28 alt-warning: $warning,
29 alt-danger: $danger,
30 alt-inverse: $inverse
31 };
32
33 /* Text Inputs (textbox, textarea, validation textbox, etc.) */
34
35 $input-padding = $padding;
36 $input-border-radius = $border-radius;
37
38 // normal
39 $input-border-color = $border-color;
40 $input-background = $theme-base-color;
41
42 // hover
43 $input-hover-border-color = $theme-base;
44
45 // focused
46 $input-focused-border-color = $theme-base;
47
48 // disabled
49 $input-disabled-color = $disabled-color;
50 $input-disabled-background-color = $disabled-background-color;
51 $input-disabled-border-color = $disabled-border-color;
52
53 // error
54 $input-error-border-color = $error;
55
56 // error: focused
57 $input-focused-error-border = 1px solid darken($error, 15%);
58
59 // error icon
60 $input-error-icon-width = 18px; // the width of the error icon container and icon height
61 $input-error-icon-background-color = $error;
62
63 /* CheckBox (and Checkbox Icon) */
64
65 $checkbox-height = 16px;
66 $checkbox-width = 16px;
67 $checkbox-padding = 0;
68 $checkbox-border-radius = 2px;
69 $checkbox-icon-size = $icon-size;
70 $checkbox-icon = "\f00c";
71
72 // normal
73 $checkbox-background-color = $theme-base-color;
74 $checkbox-border-color = $border-color;
75
76 // checked
77 $checkbox-checked-icon-color = $theme-base-color;
78 $checkbox-checked-background-color = $theme-base;
79 $checkbox-checked-border-color = $theme-base;
80
81 // hover
82 // hover unchecked
83 $checkbox-hover-unchecked-background-color = $checkbox-background-color;
84 $checkbox-hover-unchecked-border-color = 1px solid $theme-base;
85
86 // hover checked
87 $checkbox-hover-checked-background-color = lighten($checkbox-checked-background-color, 15%);
88 $checkbox-hover-checked-border-color = $checkbox-checked-border-color;
89
90 // Checkbox icon (within a widget, e.g. toggle button)
91 $checkbox-icon-checked-icon-color = $theme-base;
92 $checkbox-icon-padding = 0;
93
94 // disabled
95 $checkbox-disabled-color = $disabled-color;
96 $checkbox-disabled-background-color = $disabled-background-color;
97 $checkbox-disabled-border-color = $disabled-border-color;
98 $checkbox-checked-disabled-color = darken($checkbox-checked-icon-color, 35%); // may need a &:before for icon in Checkbox.styl
99 $checkbox-checked-disabled-background-color = lighten($checkbox-checked-background-color, 35%);
100 $checkbox-checked-disabled-border-color = $checkbox-checked-disabled-background-color;
101
102 /* Radio (and Radio Icon)the styles are using pure CSS */
103
104 $radio-height = 16px;
105 $radio-width = 16px;
106 $radio-icon-size = 16px;
107
108 // normal
109 $radio-background-color = $theme-base-color;
110 $radio-border-color = $theme-base;
111 $radio-border-radius = 50%;
112
113 // checked
114 $radio-checked-color = $theme-base;
115
116 // hover
117 $radio-hover-border-color = lighten($radio-checked-color, 25%);
118
119 // disabled
120 $radio-disabled-background-color = $disabled-background-color;
121 $radio-disabled-border-color = $disabled-border-color;
122 $radio-checked-disabled-color = lighten($radio-checked-color, 35%); // both border and check
123
124 /* Select (only for the button part, the styles for the "dropdown" are defined in the "Menu" section) */
125
126 $select-border = 1px solid $border-color;
127 $select-button-border-radius = $border-radius * (2/3);
128
129 // Select's normal, hover, active and disabled styles are the same as "form/Button"
130
131 // focus
132 $select-focus-border = $select-border;
133
134 // icons
135 $select-date-icon = "\f01e";
136 $select-time-icon = "\f01f";
137
138 /* Slider */
139
140 // bar
141 $slider-bar-width = 3px;// the height for the horizontal slider and the width for the vertical slider
142 $slider-bar-radius = $slider-bar-width * .5;
143 $slider-bar-spacing = $padding;// the spacing between the buttons and the bar
144
145 // honrizontal slider
146 // normal
147 $slider-progressbar-background-color = $theme-base;// Background color for the progress(highlight) part of slider bar
148 $slider-remainingbar-background-color = $border-color;// Background color for the remaining part of slider bar
149
150 // hover
151 $slider-hovered-progressbar-border-color = darken($theme-base, 25%);
152
153 // focus
154 $slider-focused-progressbar-border-color = $slider-progressbar-border-color;
155
156 // vertical slider
157 // normal
158 $slider-progressbar-verticalr-background-color = $theme-base;
159 $slider-remainingbar-vertical-background-color = $slider-remainingbar-background-color;
160
161 // hover
162 $slider-hovered-progressbar-vertical-border-color = $slider-hovered-progressbar-border-color;
163
164 // focus
165 $slider-focused-progressbar-vertical-border-color = $slider-progressbar-vertical-border-color;
166
167 // thumbs
168 $slider-thumb-background-color = $theme-base-color;
169 $slider-thumb-box-shadow = $shadow-depth1;
170 $slider-thumb-border-radius = 50%;
171 $slider-thumb-border-color = $theme-base;
172 $slider-thumb-height = 16px;
173 $slider-thumb-width = 16px;
174
175 // The center part of the thumb
176 $slider-thumb-inner-border-radius = 50%;
177 $slider-thumb-inner-height = 10px;
178 $slider-thumb-inner-width = 10px;
179 $slider-thumb-inner-background-color = $theme-base;
180
181 // hover (& focused)
182 $slider-thumb-hover-box-shadow = $shadow-depth2;
183
184 // label
185 $slider-label-text-color = $grey-dark; // text color for labeling
186
187 // ruler
188 $slider-ruler-color = $grey-light;
189 $slider-ruler-padding = $padding * 0.5;
190
191 // increment and decrement buttons
192 $slider-button-text-color = $theme-base;
193 $slider-button-width = 20px;
194 $slider-button-height = $slider-button-width;
195 $slider-icon-increment = "\f011";
196 $slider-icon-decrement = "\f012";
197
198 /* Number Spinner */
199
200 $numberspinner-button-border = 1px solid $border-color;
201 $numberspinner-button-inner-padding = $padding;
202 $numberspinner-button-width = ($line-height + $numberspinner-button-inner-padding * 2) + 2px; // 30px
203 $numberspinner-button-padding = 0;
204 $numberspinner-arrow-padding = $padding;
205 $numberspinner-button-border-radius = $border-radius * (2/3);
206
207 // icons
208 $numberspinner-icon-up = $icon-drop-up;
209 $numberspinner-icon-down = $icon-drop-down;
210
211 // number spinner button's normal, active and disabled status styles are the same as "form/Button"
212 // and the styles of the text input field are the same as "form/TextBox", which is defined in "form/Common.styl"