]> git.proxmox.com Git - extjs.git/blame - extjs/classic/theme-neutral/sass/src/grid/column/Column.scss
add extjs 6.0.1 sources
[extjs.git] / extjs / classic / theme-neutral / sass / src / grid / column / Column.scss
CommitLineData
6527f429
DM
1.#{$prefix}column-header {\r
2 border-right: $grid-column-header-border-width $grid-column-header-border-style $grid-header-border-color;\r
3\r
4 @if not is-null($grid-column-header-color) {\r
5 color: $grid-column-header-color;\r
6 }\r
7 font: $grid-column-header-font;\r
8\r
9 // This is to remove default focused element styling in Firefox and IE\r
10 outline: 0;\r
11\r
12 @if not is-null($grid-header-background-gradient) {\r
13 @include background-gradient($grid-header-background-color, $grid-header-background-gradient);\r
14 }\r
15 @if is-null($grid-header-background-gradient) {\r
16 background-color: $grid-header-background-color;\r
17 }\r
18}\r
19\r
20@if $include-rtl {\r
21 .#{$prefix}rtl.#{$prefix}column-header {\r
22 border-right: 0 none;\r
23 border-left: $grid-column-header-border-width $grid-column-header-border-style $grid-header-border-color;\r
24 }\r
25}\r
26\r
27.#{$prefix}group-sub-header {\r
28 background: transparent;\r
29 border-top: $grid-column-header-border-width $grid-column-header-border-style $grid-header-border-color;\r
30\r
31 // Because the sub-header has a top border, the padding of the inner is reduced by the border width\r
32 .#{$prefix}column-header-inner {\r
33 padding: top($grid-header-padding) - $grid-column-header-border-width right($grid-header-padding) bottom($grid-header-padding) left($grid-header-padding);\r
34 }\r
35}\r
36\r
37.#{$prefix}column-header-inner {\r
38 padding: $grid-header-padding;\r
39}\r
40\r
41.#{$prefix}column-header-inner-empty {\r
42 // The default text for an empty column header is a space. It can trigger an ellipsis\r
43 // if the column width is too small. Ensure this does not happen by clipping overflow\r
44 // of empty colum headers.\r
45 text-overflow: clip;\r
46}\r
47\r
48// Compound selector here to increase the specificity\r
49.#{$prefix}column-header.#{$prefix}column-header-focus {\r
50 .#{$prefix}column-header-inner:after {\r
51 content: "";\r
52 position: absolute;\r
53 z-index: 5; // focus border must overlay the trigger\r
54 top: $grid-column-header-focus-border-inset;\r
55 right: $grid-column-header-focus-border-inset;\r
56 bottom: $grid-column-header-focus-border-inset;\r
57 left: $grid-column-header-focus-border-inset;\r
58 border: $grid-column-header-focus-border-width $grid-column-header-focus-border-style $grid-column-header-focus-border-color;\r
59 pointer-events: none;\r
60 }\r
61\r
62 // For some reason without this rule the inner focus border on grouped column headers\r
63 // looks 1px higher than it should. This does not apply to column headers outside a group\r
64 &.#{$prefix}group-sub-header .#{$prefix}column-header-inner:before {\r
65 bottom: 0px;\r
66 }\r
67\r
68 @if not is-null($grid-column-header-focus-color) {\r
69 color: $grid-column-header-focus-color;\r
70 }\r
71\r
72 @if not is-null($grid-column-header-focus-background-color) {\r
73 @include background-gradient($grid-column-header-focus-background-color, $grid-header-background-gradient);\r
74 }\r
75}\r
76\r
77.#{$prefix}column-header-over {\r
78 @include background-gradient($grid-header-over-background-color, $grid-header-over-background-gradient);\r
79}\r
80\r
81.#{$prefix}column-header-sort-ASC,\r
82.#{$prefix}column-header-sort-DESC {\r
83 @include background-gradient($grid-header-sorted-background-color, $grid-header-sorted-background-gradient);\r
84}\r
85\r
86@if $include-slicer-gradient {\r
87 @if not is-null($grid-header-background-gradient) {\r
88 .#{$prefix}nlg {\r
89 .#{$prefix}grid-header-ct,\r
90 .#{$prefix}column-header {\r
91 background-image: slicer-background-image(column-header, 'grid/column-header-bg');\r
92 }\r
93 }\r
94 $stretch: slicer-background-stretch(column-header, bottom);\r
95 }\r
96\r
97 @if not is-null($grid-header-over-background-gradient) {\r
98 .#{$prefix}nlg {\r
99 .#{$prefix}column-header-over,\r
100 .#{$prefix}column-header-sort-ASC,\r
101 .#{$prefix}column-header-sort-DESC {\r
102 background-image: slicer-background-image(column-header-over, 'grid/column-header-over-bg');\r
103 }\r
104 }\r
105 $stretch: slicer-background-stretch(column-header-over, bottom);\r
106 }\r
107}\r
108\r
109.#{$prefix}column-header-open {\r
110 background-color: $grid-header-open-background-color;\r
111\r
112 .#{$prefix}column-header-trigger {\r
113 background-color: $grid-header-trigger-background-color-open;\r
114 }\r
115}\r
116\r
117.#{$prefix}column-header-over .#{$prefix}column-header-trigger,\r
118.#{$prefix}column-header-open .#{$prefix}column-header-trigger {\r
119 width: $grid-header-trigger-width;\r
120 cursor: $grid-header-trigger-cursor;\r
121 @if $enable-font-icons and ($grid-header-trigger-glyph != null) {\r
122 @include font-icon($grid-header-trigger-glyph);\r
123 color: $grid-header-trigger-glyph-color;\r
124\r
125 &:before {\r
126 // vertically center the glyph\r
127 top: 50%;\r
128 margin-top: -($grid-header-trigger-glyph-font-size / 2);\r
129 text-align: center;\r
130 position: relative;\r
131 display: block;\r
132 }\r
133 } @else {\r
134 background: $grid-header-trigger-background-color theme-background-image($grid-header-trigger-background-image) no-repeat $grid-header-trigger-background-position;\r
135 }\r
136}\r
137\r
138@if $include-rtl {\r
139 .#{$prefix}rtl.#{$prefix}column-header-trigger {\r
140 background-position: rtl-background-position($grid-header-trigger-background-position);\r
141 }\r
142}\r
143\r
144$grid-column-align-right-margin:\r
145 $grid-header-trigger-width +\r
146 $grid-header-trigger-spacing -\r
147 right($grid-header-padding);\r
148\r
149.#{$prefix}column-header-align-right .#{$prefix}column-header-text {\r
150 margin-right: $grid-column-align-right-margin;\r
151}\r
152\r
153@if $include-rtl {\r
154 .#{$prefix}column-header-align-right .#{$prefix}rtl.#{$prefix}column-header-text {\r
155 margin-right: 0;\r
156 margin-left: $grid-column-align-right-margin;\r
157 }\r
158}\r
159\r
160// Sort direction indicator is a background of the text span.\r
161.#{$prefix}column-header-sort-ASC,\r
162.#{$prefix}column-header-sort-DESC {\r
163 .#{$prefix}column-header-text-inner {\r
164 @if $enable-font-icons and (($grid-header-sort-asc-glyph != null) or ($grid-header-sort-desc-glyph != null)) {\r
165 &:after {\r
166 display: inline-block;\r
167 text-align: center;\r
168 margin-left: $grid-header-sort-icon-spacing;\r
169 width: $grid-header-sort-glyph-font-size;\r
170 }\r
171 } @else {\r
172 padding-right: $grid-header-sort-icon-width + $grid-header-sort-icon-spacing;\r
173 }\r
174 background-position: $grid-header-sort-icon-position;\r
175 }\r
176}\r
177\r
178@if $include-rtl {\r
179 .#{$prefix}column-header-sort-ASC,\r
180 .#{$prefix}column-header-sort-DESC {\r
181 .#{$prefix}rtl.#{$prefix}column-header-text-inner {\r
182 @if $enable-font-icons and (($grid-header-sort-asc-glyph != null) or ($grid-header-sort-desc-glyph != null)) {\r
183 &:after {\r
184 margin-left: 0;\r
185 margin-right: $grid-header-sort-icon-spacing;\r
186 }\r
187 } @else {\r
188 padding-right: 0;\r
189 padding-left: $grid-header-sort-icon-width + $grid-header-sort-icon-spacing;\r
190 }\r
191 background-position: rtl-background-position($grid-header-sort-icon-position);\r
192 }\r
193 }\r
194}\r
195\r
196.#{$prefix}column-header-sort-ASC .#{$prefix}column-header-text-inner {\r
197 @if $enable-font-icons and ($grid-header-sort-asc-glyph != null) {\r
198 @include font-icon(\r
199 $glyph: $grid-header-sort-asc-glyph,\r
200 $pseudo: after,\r
201 $color: $grid-header-sort-glyph-color,\r
202 $style-pseudo: true\r
203 );\r
204 } @else {\r
205 background-image: theme-background-image('grid/sort_asc');\r
206 }\r
207}\r
208.#{$prefix}column-header-sort-DESC .#{$prefix}column-header-text-inner {\r
209 @if $enable-font-icons and ($grid-header-sort-desc-glyph != null) {\r
210 @include font-icon(\r
211 $glyph: $grid-header-sort-desc-glyph,\r
212 $pseudo: after,\r
213 $color: $grid-header-sort-glyph-color,\r
214 $style-pseudo: true\r
215 );\r
216 } @else {\r
217 background-image: theme-background-image('grid/sort_desc');\r
218 }\r
219}\r
220\r
221// A Grid with the x-no-header-borders class will show no header borders\r
222.#{$prefix}no-header-borders .#{$prefix}column-header {\r
223 border: 0 none;\r
224\r
225 .#{$prefix}column-header-inner {\r
226 padding-top: top($grid-header-padding);\r
227 }\r
228}\r
229\r
230\r
231@include x-slicer(column-header);\r
232@include x-slicer(column-header-over);\r