]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | //// Toolbar icons used with permission from Drew Wilson\r |
2 | //// http://pictos.drewwilson.com/\r | |
3 | //// Pictos icons are (c) 2010 Drew Wilson\r | |
4 | \r | |
5 | /**\r | |
6 | * @class Ext.Button\r | |
7 | */\r | |
8 | \r | |
9 | $button-border-radius: 5px;\r | |
10 | \r | |
11 | .x-button {\r | |
12 | border: 0px;\r | |
13 | height: 35px;\r | |
14 | padding: 0 3px;\r | |
15 | position: relative;\r | |
16 | background: transparent;\r | |
17 | overflow: visible;\r | |
18 | @include background(linear-gradient(color-stops(lighten($highlight-color, 5%), $highlight-color)));\r | |
19 | \r | |
20 | .x-button-label {\r | |
21 | color: #323232;\r | |
22 | }\r | |
23 | \r | |
24 | &.tabmenu {\r | |
25 | width: 61px;\r | |
26 | margin-left: 0;\r | |
27 | \r | |
28 | .x-button-icon:after {\r | |
29 | content: '';\r | |
30 | position: absolute;\r | |
31 | top: 0;\r | |
32 | left: 0;\r | |
33 | right: 0;\r | |
34 | bottom: 0;\r | |
35 | background-size: 32px !important;\r | |
36 | background-repeat: no-repeat;\r | |
37 | background-image: url('#{$bb-icons-path}/ic_overflow_tab.png');\r | |
38 | }\r | |
39 | }\r | |
40 | }\r | |
41 | \r | |
42 | .x-button-pressed,\r | |
43 | .x-button-pressing {\r | |
44 | background: #646464;\r | |
45 | }\r | |
46 | \r | |
47 | .x-button-icon {\r | |
48 | width: 40px;\r | |
49 | height: 40px;\r | |
50 | background-size: 36px;\r | |
51 | background-position: bottom center;\r | |
52 | \r | |
53 | &:after {\r | |
54 | display: block;\r | |
55 | position: absolute;\r | |
56 | top: 0;\r | |
57 | right: 0;\r | |
58 | bottom: 0;\r | |
59 | left: 0;\r | |
60 | width: 100%;\r | |
61 | height: 100%;\r | |
62 | background-size: 42px;\r | |
63 | background-position: 50%;\r | |
64 | background-repeat: no-repeat\r | |
65 | }\r | |
66 | }\r | |
67 | \r | |
68 | .x-button-round,\r | |
69 | .x-button-decline-round,\r | |
70 | .x-button-confirm-round {\r | |
71 | @include border-radius(20px);\r | |
72 | \r | |
73 | &:before {\r | |
74 | @include border-radius(19px);\r | |
75 | }\r | |
76 | }\r | |
77 | \r | |
78 | .x-button-label {\r | |
79 | position: relative;\r | |
80 | font-size: 14px;\r | |
81 | padding: 0 5px;\r | |
82 | }\r | |
83 | \r | |
84 | .x-badge {\r | |
85 | right: 5px;\r | |
86 | }\r | |
87 | \r | |
88 | // Toolbar buttons\r | |
89 | \r | |
90 | .x-toolbar {\r | |
91 | .x-button {\r | |
92 | margin: 0 5px;\r | |
93 | padding: 0 10px;\r | |
94 | }\r | |
95 | }\r | |
96 | \r | |
97 | // Back button\r | |
98 | \r | |
99 | .x-toolbar .x-button-back,\r | |
100 | .x-toolbar .x-button-forward {\r | |
101 | height: 100%;\r | |
102 | margin: 0 !important;\r | |
103 | border: 0;\r | |
104 | @include border-radius(0);\r | |
105 | @include box-shadow(none);\r | |
106 | background: transparent;\r | |
107 | background-image: none;\r | |
108 | @include st-box-orient(vertical);\r | |
109 | min-width: 4em;\r | |
110 | \r | |
111 | .x-button-icon {\r | |
112 | margin: 0 auto;\r | |
113 | display: block;\r | |
114 | height: 42px;\r | |
115 | background-image: url('#{$bb-icons-path}/ic_previous.png');\r | |
116 | background-size: 30px;\r | |
117 | background-position: 35% center;\r | |
118 | min-width: 30px;\r | |
119 | \r | |
120 | &:before {\r | |
121 | content: '';\r | |
122 | }\r | |
123 | }\r | |
124 | \r | |
125 | &:before {\r | |
126 | background: transparent;\r | |
127 | background-image: none;\r | |
128 | }\r | |
129 | \r | |
130 | &.x-button-pressed,\r | |
131 | &.x-button-pressing {\r | |
132 | background: transparent;\r | |
133 | background-image: none;\r | |
134 | \r | |
135 | &:before {\r | |
136 | background: transparent;\r | |
137 | background-image: none;\r | |
138 | }\r | |
139 | }\r | |
140 | \r | |
141 | .x-button-label {\r | |
142 | display: none;\r | |
143 | }\r | |
144 | \r | |
145 | .x-landscape & {\r | |
146 | .x-button-icon {\r | |
147 | margin-top: 8px;\r | |
148 | background-position: center 4px;\r | |
149 | }\r | |
150 | }\r | |
151 | }\r | |
152 | \r | |
153 | .x-toolbar .x-button-back {\r | |
154 | padding: 0 30px 0 14px;\r | |
155 | \r | |
156 | &:before {\r | |
157 | @include rotate(10deg);\r | |
158 | position: absolute;\r | |
159 | right: 0px;\r | |
160 | top: 5px;\r | |
161 | bottom: 5px;\r | |
162 | border-color: #0f76c2;\r | |
163 | border-width: 0 2px 0 0;\r | |
164 | border-style: solid;\r | |
165 | @include border-radius(0);\r | |
166 | content: '';\r | |
167 | }\r | |
168 | }\r | |
169 | \r | |
170 | .x-toolbar .x-button-forward {\r | |
171 | padding: 0 14px 0 20px;\r | |
172 | \r | |
173 | &:before {\r | |
174 | @include rotate(-6deg);\r | |
175 | left: 5px;\r | |
176 | top: -5px;\r | |
177 | bottom: -5px;\r | |
178 | border-color: $base-color;\r | |
179 | border-width: 0 0 0 2px;\r | |
180 | @include border-radius(0);\r | |
181 | }\r | |
182 | \r | |
183 | .x-button-icon {\r | |
184 | background-image: url('#{$bb-icons-path}/ic_next.png');\r | |
185 | background-position: center center;\r | |
186 | }\r | |
187 | }\r | |
188 | \r | |
189 | // Badges\r | |
190 | \r | |
191 | .x-hasbadge {\r | |
192 | overflow: visible;\r | |
193 | }\r | |
194 | \r | |
195 | .x-badge {\r | |
196 | background-color: #0092CC;\r | |
197 | }\r | |
198 | \r | |
199 | // Icons\r | |
200 | \r | |
201 | .x-button-icon {\r | |
202 | width: 1.5em;\r | |
203 | height: 1.5em;\r | |
204 | \r | |
205 | &:before {\r | |
206 | color: #323232;\r | |
207 | font-size: 24px;\r | |
208 | line-height: .9em;\r | |
209 | }\r | |
210 | }\r | |
211 | \r | |
212 | @if $include-default-icons {\r | |
213 | @include icon('calendar');\r | |
214 | @include icon('action');\r | |
215 | @include icon('add');\r | |
216 | @include icon('arrow_down');\r | |
217 | @include icon('arrow_left');\r | |
218 | @include icon('arrow_right');\r | |
219 | @include icon('arrow_up');\r | |
220 | @include icon('compose');\r | |
221 | @include icon('delete');\r | |
222 | @include icon('organize');\r | |
223 | @include icon('refresh');\r | |
224 | @include icon('reply');\r | |
225 | @include icon('search');\r | |
226 | @include icon('settings');\r | |
227 | @include icon('star');\r | |
228 | @include icon('trash');\r | |
229 | @include icon('maps');\r | |
230 | @include icon('locate');\r | |
231 | @include icon('home');\r | |
232 | @include icon('bookmarks');\r | |
233 | @include icon('download');\r | |
234 | @include icon('favorites');\r | |
235 | @include icon('info');\r | |
236 | @include icon('more');\r | |
237 | @include icon('time');\r | |
238 | @include icon('user');\r | |
239 | @include icon('team');\r | |
240 | @include icon('list');\r | |
241 | }\r |