|
4 | 4 |
|
5 | 5 | @include exports("lightdm") { |
6 | 6 | #panel_window { |
7 | | - background-color: transparent; |
| 7 | + background-color: $lightdm_bg_color; |
8 | 8 | background-image: none; |
9 | 9 | color: $white; |
10 | 10 | font: bold; |
11 | 11 | text-shadow: 0 1px alpha($black, .5); |
12 | 12 | -gtk-icon-shadow: 0 1px alpha($black, .5); |
13 | 13 |
|
14 | 14 | menubar { |
15 | | - padding-left: 5px; |
| 15 | + padding-left: $spacing; |
16 | 16 |
|
17 | 17 | &, > menuitem { |
18 | 18 | background-color: transparent; |
19 | 19 | background-image: none; |
| 20 | + border-style: none; |
20 | 21 | color: $white; |
21 | | - font: bold; |
22 | 22 | text-shadow: 0 1px alpha($black, .5); |
23 | 23 | -gtk-icon-shadow: 0 1px alpha($black, .5); |
24 | 24 |
|
25 | | - *:hover { color: $white; } |
26 | | - |
27 | 25 | &:hover { |
28 | | - border-style: none; |
29 | 26 | background-color: alpha($white, .2); |
30 | 27 | background-image: none; |
31 | 28 | color: $white; |
32 | 29 | } |
33 | 30 |
|
34 | | - &:disabled { color: alpha($white, .7); } |
35 | | - |
36 | | - menu { |
37 | | - border-radius: 1px; |
| 31 | + *:hover { color: $white; } |
38 | 32 |
|
39 | | - menuitem { |
40 | | - font: normal; |
41 | | - text-shadow: none; |
42 | | - } |
43 | | - } |
| 33 | + &:disabled { color: alpha($white, .7); } |
44 | 34 | } |
| 35 | + |
| 36 | + menu > menuitem { font: normal; } |
45 | 37 | } |
46 | 38 | } |
47 | 39 |
|
48 | | - #content_frame { padding-bottom: 14px; } |
| 40 | + #content_frame { padding-bottom: $spacing * 3; } |
49 | 41 |
|
50 | 42 | #login_window, #shutdown_dialog, #restart_dialog { |
51 | 43 | border-style: none; |
|
59 | 51 | inset 0 1px mix(shade($lightdm_bg_color, .7), $lightdm_fg_color, .21), |
60 | 52 | inset 0 -1px mix(shade($lightdm_bg_color, .7), $lightdm_fg_color, .21); |
61 | 53 |
|
62 | | - button { |
63 | | - padding: 3px 15px; |
64 | | - border-width: 1px; |
65 | | - border-radius: $roundness; |
66 | | - border-style: solid; |
67 | | - border-color: shade($lightdm_bg_color, .8); |
68 | | - background-color: shade($lightdm_bg_color, 1.08); |
69 | | - background-image: none; |
70 | | - color: $lightdm_fg_color; |
71 | | - transition: all 150ms ease-out; |
72 | | - |
73 | | - &.default, &:focus, &:active:focus { |
74 | | - border-color: shade($selected_bg_color, .8); |
75 | | - background-color: shade($selected_bg_color, 1.08); |
76 | | - background-image: none; |
77 | | - color: $selected_fg_color; |
78 | | - |
79 | | - &:hover { |
80 | | - border-color: shade($selected_bg_color, .7); |
81 | | - background-color: $selected_bg_color; |
82 | | - } |
83 | | - } |
84 | | - } |
| 54 | + @extend %panelbutton; |
85 | 55 | } |
86 | 56 |
|
87 | | - |
88 | 57 | #login_window { |
89 | | - menu { border-radius: 1px; } |
| 58 | + menu { border-radius: 0; } |
90 | 59 |
|
91 | | - combobox button { |
92 | | - &, &:hover, &:active, &:active:hover, |
93 | | - &:focus, &:hover:focus, &:active:focus, &:active:hover:focus { |
94 | | - padding: 0; |
95 | | - background: none; |
96 | | - border-style: none; |
97 | | - box-shadow: none; |
98 | | - } |
99 | | - } |
| 60 | + button { @include button($lightdm_bg_color, $lightdm_fg_color); } |
100 | 61 |
|
101 | | - entry { |
102 | | - padding: 3px 5px; |
103 | | - border-width: 1px; |
104 | | - border-style: solid; |
105 | | - border-color: shade($lightdm_bg_color, .8); |
106 | | - border-radius: $roundness; |
107 | | - background-color: shade($lightdm_bg_color, .9); |
108 | | - background-image: none; |
109 | | - color: $lightdm_fg_color; |
110 | | - box-shadow: none; |
111 | | - transition: all 150ms ease-out; |
112 | | - |
113 | | - &:focus, &:hover { |
114 | | - border-color: shade($lightdm_bg_color, .7); |
115 | | - |
116 | | - box-shadow: inset 1px 0 alpha($dark_shadow, .1), |
117 | | - inset 0 1px alpha($dark_shadow, .12), |
118 | | - inset -1px 0 alpha($dark_shadow, .1), |
119 | | - inset 0 -1px alpha($dark_shadow, .05); |
120 | | - } |
121 | | - } |
| 62 | + entry { @include entry($lightdm_bg_color, $lightdm_fg_color); } |
122 | 63 | } |
123 | 64 |
|
124 | 65 | #user_combobox { |
|
131 | 72 | } |
132 | 73 |
|
133 | 74 | #user_image { |
134 | | - padding: 3px; |
135 | 75 | border-radius: $roundness; |
136 | 76 |
|
137 | 77 | /* draw border using box-shadow */ |
|
152 | 92 | } |
153 | 93 |
|
154 | 94 | #buttonbox_frame { |
155 | | - padding-top: 10px; |
| 95 | + padding-top: $spacing * 2; |
156 | 96 | padding-bottom: 0; |
157 | 97 | border-style: none; |
158 | 98 | border-bottom-left-radius: $roundness; |
|
162 | 102 | box-shadow: none; |
163 | 103 | } |
164 | 104 |
|
165 | | - |
166 | | - |
167 | 105 | /* shutdown button */ |
168 | 106 | #shutdown_button { |
169 | | - border-color: shade($error_bg_color, .8); |
170 | | - background-color: shade($error_bg_color, 1.08); |
171 | | - background-image: none; |
172 | | - color: $error_fg_color; |
173 | | - |
174 | | - &:hover, &:active, &:active:hover { |
175 | | - border-color: shade($error_bg_color, .7); |
176 | | - background-color: $error_bg_color; |
177 | | - } |
| 107 | + button { @include button($error_bg_color, $error_fg_color); } |
178 | 108 | } |
179 | 109 |
|
180 | 110 | /* restart button */ |
181 | 111 | #restart_button { |
182 | | - border-color: shade($warning_bg_color, .8); |
183 | | - background-color: shade($warning_bg_color, 1.08); |
184 | | - background-image: none; |
185 | | - color: $warning_fg_color; |
186 | | - |
187 | | - &:hover, &:active, &:active:hover { |
188 | | - border-color: shade($warning_bg_color, .7); |
189 | | - background-color: $warning_bg_color; |
190 | | - } |
| 112 | + button { @include button($warning_bg_color, $warning_fg_color); } |
191 | 113 | } |
192 | 114 |
|
193 | 115 | /* password warning */ |
|
0 commit comments