1 | @mixin extjs-window {
|
---|
2 |
|
---|
3 | .#{$prefix}window {
|
---|
4 | @extend .outline-none;
|
---|
5 | }
|
---|
6 |
|
---|
7 | .#{$prefix}window-wrap {
|
---|
8 | position: relative;
|
---|
9 | }
|
---|
10 |
|
---|
11 | .#{$prefix}window-body {
|
---|
12 | position: relative;
|
---|
13 | overflow: hidden;
|
---|
14 | // border-style: $window-body-border-style;
|
---|
15 | }
|
---|
16 |
|
---|
17 | // Maximized window
|
---|
18 | .#{$prefix}window-maximized {
|
---|
19 | .#{$prefix}window-wrap {
|
---|
20 | .#{$prefix}window-header {
|
---|
21 | @include important-no-border-radius;
|
---|
22 | }
|
---|
23 | }
|
---|
24 | }
|
---|
25 |
|
---|
26 | // Collapsed window header styles
|
---|
27 | .#{$prefix}window-collapsed {
|
---|
28 | .#{$prefix}window-header-vertical, .#{$prefix}window-header-horizontal {
|
---|
29 | @include border-radius($window-border-radius);
|
---|
30 | }
|
---|
31 |
|
---|
32 | // // Padding changes for collapsed headers.
|
---|
33 | // .#{$prefix}window-header-left {
|
---|
34 | // padding-right: $window-border-radius;
|
---|
35 | // }
|
---|
36 |
|
---|
37 | // .#{$prefix}window-header-right {
|
---|
38 | // padding-left: $window-border-radius;
|
---|
39 | // }
|
---|
40 |
|
---|
41 | // .#{$prefix}window-header-top {
|
---|
42 | // padding-bottom: $window-border-radius;
|
---|
43 | // }
|
---|
44 |
|
---|
45 | // .#{$prefix}window-header-bottom {
|
---|
46 | // padding-top: $window-border-radius;
|
---|
47 | // }
|
---|
48 | }
|
---|
49 |
|
---|
50 | .#{$prefix}window-header-left,
|
---|
51 | .#{$prefix}window-header-right {
|
---|
52 | .#{$prefix}vml-base {
|
---|
53 | left: -3px !important;
|
---|
54 | }
|
---|
55 | }
|
---|
56 |
|
---|
57 | .#{$prefix}window-header-text {
|
---|
58 | @extend .no-select;
|
---|
59 | @extend .bigtext;
|
---|
60 | white-space: nowrap;
|
---|
61 | display: block;
|
---|
62 | }
|
---|
63 |
|
---|
64 | .#{$prefix}window-body-plain {
|
---|
65 | background: transparent;
|
---|
66 | }
|
---|
67 |
|
---|
68 | .#{$prefix}window-header {
|
---|
69 | .#{$prefix}window-header-body,
|
---|
70 | .#{$prefix}window-header-body > .x-box-inner {
|
---|
71 | overflow: visible;
|
---|
72 | }
|
---|
73 | }
|
---|
74 |
|
---|
75 | @include extjs-window-ui('default');
|
---|
76 | }
|
---|
77 |
|
---|
78 | /**
|
---|
79 | * @class Ext.Window
|
---|
80 | * Used to create a visual theme for an Ext.Panel
|
---|
81 | */
|
---|
82 | @mixin extjs-window-ui(
|
---|
83 | $ui-label,
|
---|
84 |
|
---|
85 | $ui-padding: null, // This was not set in @include above...
|
---|
86 | $ui-border-radius: $window-border-radius,
|
---|
87 | $ui-border-color: $window-border-color,
|
---|
88 | $ui-inner-border-color: $window-inner-border-color,
|
---|
89 |
|
---|
90 | $ui-header-background-color: $window-base-color,
|
---|
91 | $ui-header-color: $window-header-color,
|
---|
92 | $ui-header-font-size: $window-header-font-size,
|
---|
93 | $ui-header-font-weight: $window-header-font-weight,
|
---|
94 |
|
---|
95 | // $ui-body-border-color: $window-body-border-color,
|
---|
96 | $ui-body-background-color: $window-body-background-color,
|
---|
97 | $ui-body-color: $window-body-color,
|
---|
98 |
|
---|
99 | $ui-base-color: $window-base-color
|
---|
100 | ){
|
---|
101 | .#{$prefix}window-#{$ui-label} {
|
---|
102 | border-color: $ui-border-color;
|
---|
103 | @include border-radius($ui-border-radius);
|
---|
104 | // @include background-image(linear-gradient(top, lighten($ui-base-color, 5%), darken($ui-base-color, 5%) 80px));
|
---|
105 |
|
---|
106 | // @if $include-panel-highlights {
|
---|
107 | // @include inner-border($window-inner-border-width, $ui-inner-border-color);
|
---|
108 | // }
|
---|
109 | }
|
---|
110 |
|
---|
111 | // $ui-padding was never being set...
|
---|
112 | @if $ui-border-radius != null {
|
---|
113 | @include x-frame(
|
---|
114 | 'window',
|
---|
115 | $ui-label,
|
---|
116 |
|
---|
117 | $border-radius: $ui-border-radius,
|
---|
118 | $border-width: $window-border-width,
|
---|
119 | $padding: $ui-padding,
|
---|
120 | $background-color: $ui-base-color
|
---|
121 | );
|
---|
122 | }
|
---|
123 |
|
---|
124 | // Window body
|
---|
125 | .#{$prefix}window-body-#{$ui-label} {
|
---|
126 | // border-color: $ui-body-border-color;
|
---|
127 | // border-width: $window-body-border-width;
|
---|
128 | background: $ui-body-background-color;
|
---|
129 | color: $ui-body-color;
|
---|
130 | }
|
---|
131 |
|
---|
132 | .#{$prefix}window-header-#{$ui-label} {
|
---|
133 | border-color: $ui-border-color;
|
---|
134 | padding: 8px 10px 8px 10px;
|
---|
135 | @if ($include-window-highlights) {
|
---|
136 | @include inset-by-background($ui-base-color);
|
---|
137 | }
|
---|
138 | // @tag iezoomhack
|
---|
139 |
|
---|
140 | @if $supports-gradients or $compile-all {
|
---|
141 | @if $ui-header-background-color != null { @include background-image(linear-gradient(top, lighten($ui-header-background-color, 5%), $ui-header-background-color 100%)); }
|
---|
142 | }
|
---|
143 | }
|
---|
144 |
|
---|
145 | .#{$prefix}window-header-text-#{$ui-label} {
|
---|
146 | color: $ui-header-color;
|
---|
147 | font-weight: $ui-header-font-weight;
|
---|
148 | line-height: 1.2em;
|
---|
149 | font-size: $ui-header-font-size;
|
---|
150 | }
|
---|
151 |
|
---|
152 | @if $ui-border-radius != null {
|
---|
153 | .#{$prefix}window-header-#{$ui-label}-top {
|
---|
154 | @include border-top-radius($ui-border-radius);
|
---|
155 | }
|
---|
156 | }
|
---|
157 |
|
---|
158 | @if $ui-border-radius != null {
|
---|
159 | // @include x-frame('window-header', '#{$ui-label}-top', top($ui-border-radius) right($ui-border-radius) 0 0, $window-border-width, 5px 5px 0, $ui-base-color);
|
---|
160 | // @include x-frame('window-header', '#{$ui-label}-right', 0 right($ui-border-radius) bottom($ui-border-radius) 0, $window-border-width, 5px 5px 5px 0, $ui-base-color);
|
---|
161 | // @include x-frame('window-header', '#{$ui-label}-bottom', 0 0 bottom($ui-border-radius) left($ui-border-radius), $window-border-width, 0 5px 5px, $ui-base-color);
|
---|
162 | // @include x-frame('window-header', '#{$ui-label}-left', top($ui-border-radius) 0 0 left($ui-border-radius), $window-border-width, 5px 0px 5px 5px, $ui-base-color);
|
---|
163 | }
|
---|
164 |
|
---|
165 | @if $include-panel-highlights {
|
---|
166 | // So much crud for inner borders...
|
---|
167 | // .#{$prefix}window-header-#{$ui-label}-top {
|
---|
168 | // @include inner-border(1px 1px 0, $ui-inner-border-color);
|
---|
169 | // }
|
---|
170 |
|
---|
171 | // .#{$prefix}window-header-#{$ui-label}-right {
|
---|
172 | // @include inner-border(1px 1px 1px 0, $ui-inner-border-color);
|
---|
173 | // }
|
---|
174 |
|
---|
175 | // .#{$prefix}window-header-#{$ui-label}-bottom {
|
---|
176 | // @include inner-border(0px 1px 1px, $ui-inner-border-color);
|
---|
177 | // }
|
---|
178 |
|
---|
179 | // .#{$prefix}window-header-#{$ui-label}-left {
|
---|
180 | // @include inner-border(1px 0 1px 1px, $ui-inner-border-color);
|
---|
181 | // }
|
---|
182 | }
|
---|
183 | }
|
---|