_dash.scss
ASCII text
1
/* Dash */
2
3
@use "../../../../theme";
4
@use "../../../../theme-color";
5
@use "../../gnome-shell";
6
@use "overview";
7
8
$spacing: 6px;
9
$margin: 12px;
10
11
#dash {
12
font-size: 1em;
13
14
@if gnome-shell.$version >= 40 {
15
margin-top: 0;
16
padding: $margin $margin 0;
17
18
.overview-icon {
19
// Same as normal .overview-icon
20
padding: 6px;
21
}
22
} @else {
23
@include overview.panel;
24
padding: ($spacing / 2) 0;
25
border-left-width: 0;
26
border-radius: 0 theme.$corner-radius theme.$corner-radius 0;
27
28
&:rtl {
29
border-right-width: 0;
30
border-radius: theme.$corner-radius 0 0 theme.$corner-radius;
31
}
32
}
33
34
.placeholder {
35
height: 24px;
36
background-image: url("assets/dash-placeholder.svg");
37
background-size: contain;
38
}
39
40
.empty-dash-drop-target {
41
width: 24px;
42
height: 24px;
43
}
44
}
45
46
@if gnome-shell.$version >= 40 {
47
.dash-background {
48
margin-bottom: 0;
49
padding: $spacing ($spacing / 2);
50
border-radius: theme.$corner-radius theme.$corner-radius 0 0;
51
background-color: theme-color.fill(overview.$on-color);
52
}
53
54
// Dash Items
55
.dash-item-container .app-well-app,
56
.show-apps {
57
padding: $spacing ($spacing / 2);
58
}
59
60
.dash-separator {
61
width: 1px;
62
margin: $spacing ($spacing / 2);
63
background-color: theme-color.stroke(overview.$on-color);
64
}
65
} @else {
66
// Dash Items
67
.dash-item-container > StWidget {
68
padding: ($spacing / 2) $spacing;
69
}
70
}
71
72
// OSD Tooltip
73
.dash-label {
74
// min-height: 32px - 6px * 2;
75
padding: 7px 8px;
76
border: 0;
77
border-radius: theme.$corner-radius;
78
box-shadow: theme.$shadow-z4;
79
background-color: theme-color.$surface-z8;
80
color: theme-color.$on-surface;
81
text-align: center;
82
83
// distance from the dash edge
84
@if gnome-shell.$version >= 40 {
85
-y-offset: 8px;
86
} @else {
87
-x-offset: 8px;
88
}
89
}
90
91
// Show apps button
92
.show-apps {
93
@include overview.icon;
94
color: theme-color.hint(overview.$on-color);
95
96
&:checked {
97
color: overview.$on-color;
98
}
99
}
100