]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | // Segmented Button\r |
2 | \r | |
3 | .x-segmentedbutton {\r | |
4 | padding: 0 2px;\r | |
5 | height: 35px;\r | |
6 | border: 1px solid;\r | |
7 | border-color: #e3e3e3;\r | |
8 | @include border-radius($button-border-radius);\r | |
9 | @include background(linear-gradient(color-stops(#f4f4f4, #fcfcfc)));\r | |
10 | @include box-shadow(inset 0 2px 2px rgba(#000, .05));\r | |
11 | \r | |
12 | .x-button {\r | |
13 | border: 1px solid transparent;\r | |
14 | height: 28px;\r | |
15 | margin: 3px 1px 0 0;\r | |
16 | @include box-shadow(none);\r | |
17 | @include border-radius(3px);\r | |
18 | background: none;\r | |
19 | \r | |
20 | &:last-child {\r | |
21 | margin-right: 0;\r | |
22 | }\r | |
23 | \r | |
24 | &:before {\r | |
25 | top: 0;\r | |
26 | right: 0;\r | |
27 | bottom: 0;\r | |
28 | left: 0;\r | |
29 | border: 0;\r | |
30 | background: none;\r | |
31 | }\r | |
32 | \r | |
33 | .x-button-label {\r | |
34 | color: #262626;\r | |
35 | }\r | |
36 | \r | |
37 | .x-button-icon:before {\r | |
38 | color: #000;\r | |
39 | }\r | |
40 | }\r | |
41 | \r | |
42 | .x-button-pressing,\r | |
43 | .x-button-pressed {\r | |
44 | border-color: #c8c8c8;\r | |
45 | \r | |
46 | .x-button-label {\r | |
47 | color: #555555;\r | |
48 | }\r | |
49 | \r | |
50 | .x-button-icon:before {\r | |
51 | color: #555555;\r | |
52 | }\r | |
53 | }\r | |
54 | \r | |
55 | .x-first:before {\r | |
56 | @include border-top-left-radius(4px);\r | |
57 | @include border-bottom-left-radius(4px);\r | |
58 | }\r | |
59 | \r | |
60 | .x-last:before {\r | |
61 | @include border-top-right-radius(4px);\r | |
62 | @include border-bottom-right-radius(4px);\r | |
63 | }\r | |
64 | }\r | |
65 | \r | |
66 | .x-toolbar-dark {\r | |
67 | .x-segmentedbutton {\r | |
68 | border-color: #060606;\r | |
69 | @include background(linear-gradient(color-stops(#010101, #060606)));\r | |
70 | @include box-shadow(0 0 0 1px #393939);\r | |
71 | \r | |
72 | .x-button-label {\r | |
73 | color: #fff;\r | |
74 | }\r | |
75 | \r | |
76 | .x-button-icon:before {\r | |
77 | color: #fff;\r | |
78 | }\r | |
79 | \r | |
80 | .x-button {\r | |
81 | &:before {\r | |
82 | @include box-shadow(none);\r | |
83 | }\r | |
84 | }\r | |
85 | \r | |
86 | .x-button-pressing,\r | |
87 | .x-button-pressed {\r | |
88 | border-color: #000;\r | |
89 | @include box-shadow(inset 0 0 0 1px rgba(#fff, .1));\r | |
90 | @include background(linear-gradient(top, rgba(#fff, .2), rgba(#fff, .1)));\r | |
91 | }\r | |
92 | }\r | |
93 | }\r | |
94 | \r | |
95 | .x-toolbar-plain,\r | |
96 | .x-toolbar-neutral,\r | |
97 | .x-toolbar-light {\r | |
98 | .x-segmentedbutton {\r | |
99 | .x-button-pressing,\r | |
100 | .x-button-pressed {\r | |
101 | background-image: none;\r | |
102 | \r | |
103 | &:before {\r | |
104 | @include box-shadow(none);\r | |
105 | }\r | |
106 | }\r | |
107 | }\r | |
108 | }\r | |
109 | \r | |
110 | .x-toolbar-light {\r | |
111 | .x-segmentedbutton {\r | |
112 | background: transparent;\r | |
113 | border-color: #07648d;\r | |
114 | @include box-shadow(inset 0 1px 2px rgba(#000, .4));\r | |
115 | \r | |
116 | .x-button {\r | |
117 | &:before {\r | |
118 | @include box-shadow(none);\r | |
119 | }\r | |
120 | }\r | |
121 | \r | |
122 | .x-button-pressing,\r | |
123 | .x-button-pressed {\r | |
124 | border-color: #0c6893;\r | |
125 | @include box-shadow(inset 0 0 0 1px rgba(#fff, .1));\r | |
126 | @include background(linear-gradient(top, rgba(#fff, .2), rgba(#fff, .1)));\r | |
127 | }\r | |
128 | \r | |
129 | .x-button-label {\r | |
130 | color: #fff;\r | |
131 | }\r | |
132 | \r | |
133 | .x-button-icon:before {\r | |
134 | color: #fff;\r | |
135 | }\r | |
136 | }\r | |
137 | }\r | |
138 | \r | |
139 | .x-toolbar-neutral {\r | |
140 | .x-segmentedbutton {\r | |
141 | border-color: #c7c7c7;\r | |
142 | @include background(linear-gradient(color-stops(#efefef, #dfdfdf)));\r | |
143 | @include box-shadow(inset 0 1px 3px rgba(#000, .2));\r | |
144 | \r | |
145 | .x-button {\r | |
146 | background-image: none;\r | |
147 | }\r | |
148 | }\r | |
149 | } |