summaryrefslogtreecommitdiff
path: root/data/css/endless-widgets.css
blob: 3af50e88c052316428f71c521a272dd8558cb359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
/* Wipe all theming CSS to start with. We'll leave the adwaita theme for
 * spinner.*/
EosWindow,
EosWindow :not(spinner):not(decoration) {
    all: unset;
}

@define-color endless_theme_bg_color #2e3436;
@define-color endless_wm_shadow alpha(black, 0.5);

/* Insensitive Text */

menu label:disabled {
    color: rgba(255, 255, 255, 0.5);
}

/* Endless app window */

EosWindow {
    background-color: @endless_theme_bg_color;
}

.window-frame {
    border-color: darker(@endless_theme_bg_color);
    border-radius: 7px 7px 0 0;
    border-width: 1px;
    border-style: solid;

    box-shadow: 0 2px 8px 3px @endless_wm_shadow;

    /* this is used for the resize cursor area */
    margin: 10px;
}

.window-frame:backdrop {
    box-shadow: 0 2px 5px 1px @endless_wm_shadow;
}

.window-frame.tooltip {
    border-radius: 5px;
    box-shadow: none;
}

EosWindow .titlebar {
    font-family: "Lato";
    font-weight: bold;
    font-size: 14.7px;
    background-image: -gtk-gradient(linear, center top, center bottom,
        from(#464646), to(#1e1e1e));
    padding-left: 7px;
    padding-right: 7px;
}

EosWindow:not(.maximized) .titlebar {
    border-radius: 7px 7px 0px 0px;
}

EosWindow .titlebar:backdrop {
    background-image: -gtk-gradient(linear, center top, center bottom,
        from(#282828), to(#1e1e1e));
}

EosWindow .titlebar button {
    border-radius: 2px;
    color: #8c8c8c;
    -gtk-icon-shadow: 0px -1px alpha(black, 0.25);
    padding: 4px;
}

EosWindow .titlebar button:backdrop {
    color: #646464;
}

EosWindow .titlebar button:hover {
    color: #dcdcdc;
    -gtk-icon-shadow: 0px -1px alpha(black, 0.35);
    background-image: -gtk-gradient(linear, left bottom, left top,
        color-stop(0.98, rgb(131, 131, 131)),
        color-stop(0.95, rgb(108, 108, 108)),
        color-stop(0, rgb(68, 68, 68)));
}

EosWindow .titlebar button:active {
    color: #787878;
    -gtk-icon-shadow: none;
    background-image: -gtk-gradient(linear, left bottom, left top,
        color-stop(0.98, rgb(79, 79, 79)),
        color-stop(0.95, rgb(71, 71, 71)),
        color-stop(0, rgb(67, 67, 67)));
}

EosWindow .titlebar .home,
EosWindow .titlebar .back,
EosWindow .titlebar .forward {
    background-image: linear-gradient(-179deg,
        rgba(98, 98, 98, 0.49) 0%,
        alpha(black, 0.50) 100%);
    border-style: solid;
    border-width: 1px;
    border-color: black;
    box-shadow: inset 1px 1px alpha(white, 0.25);
    padding: 2px 10px;
}

EosWindow .titlebar .home:disabled,
EosWindow .titlebar .back:disabled,
EosWindow .titlebar .forward:disabled {
    border-color: alpha(black, 0.20);
    background-color: transparent;
    background-image: none;
    box-shadow: none;
    color: #5a5a5a;
    -gtk-icon-shadow: none;
}

EosWindow .titlebar .home {
    border-radius: 5px;
}

EosWindow .titlebar .back {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-right: 0px none;
}

EosWindow .titlebar .forward {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

EosWindow .titlebar .forward.rtl {
    border-radius: 5px 0 0 5px;
    border-right: 0px none;
}

EosWindow .titlebar .back.rtl {
    border-radius: 0 5px 5px 0;
}

EosWindow .titlebar .endless-search-box {
    background-color: #4d4d4d;
    color: #eeeeec;
    caret-color: #eeeeec;
    padding: 1px 2px 1px 4px;
    border-radius: 15px;
    border-style: solid;
    border-width: 1px;
    border-color: #575757;
    box-shadow: inset 0px 1px 1px alpha(black, 0.1);
    /* Can't get the actual gradient border to work, this appears as a square. */
    /*border-image: linear-gradient(to bottom, #262626, #515151) 1 1 stretch;*/
}

EosWindow .titlebar .endless-search-box image {
    margin: 0px 4px;
    color: #919191;
}

EosWindow .titlebar .endless-search-box:selected {
    color: #2e3436;
    background-color: #eeeeec;
}

.endless-search-box frame {
    background-color: #f5f5f5;
    padding: 7px;
    border-radius: 4px;
    border-color: #c6c8c5;
    border-width: 1px;
    border-style: solid;
}

.endless-search-box .cell {
    color: #333333;
}

.endless-search-box .cell:selected {
    background-color: #d5e1ed;
    border-radius: 3px;
    border-color: #bbd4ea;
    border-width: 1px;
    border-style: solid;
}

.credits-button {
    opacity: 0.0;
    transition: opacity 250ms;
}

.credits-button:hover,
.credits-button:active {
    opacity: 1.0;
}

/*
 * Themeing for context menus, to get Adwaita look
 * FIXME: Really gross to be recreating all this Adwaita theme here.
 * Unfortunately even the :not pseudo-selector won't allow you to select all
 * items whose ancestor isn't a menuitem, because if one ancestor is a
 * menuitem then another ancestor is likely not. So at least some of the below
 * rules will always be necessary.
 */
@define-color endless_menu_fg_color #2e3436;
@define-color endless_menu_bg_color shade (#ededed, 1.1);

.context-menu {
    font: initial;
    color: @endless_menu_fg_color;
    background-color: @endless_menu_bg_color;
    padding: 2px 0px;
}

.context-menu menuitem {
    padding: 4px;
}

.context-menu menuitem arrow {
    min-width: 8px;
    min-height: 8px;
}

.context-menu menuitem:active,
.context-menu menuitem:hover {
    color: #ffffff;
    background-color: #4a90d9;
}

.context-menu menuitem *:disabled {
    color: mix (@endless_menu_fg_color, @endless_menu_bg_color, 0.6);
}

.context-menu separator {
    background-color: transparent;
    background-image: image(mix (@endless_menu_fg_color, @endless_menu_bg_color, 0.9));
    background-size: 1px 1px;
    color: red;
    min-width: 1px;
    min-height: 1px;
    margin: 0px 4px;
}

/* Changes for composite TVs */

.composite headerbar entry {
      font-size: 24px;
  }