2019-12-18 16:25:03 -05:00
|
|
|
/* Dash */
|
|
|
|
|
2022-10-13 14:21:17 -02:30
|
|
|
// uses system colors
|
|
|
|
$dash_background_color: $system_overlay_bg_color;
|
|
|
|
|
2019-12-18 16:25:03 -05:00
|
|
|
$dash_placeholder_size: 32px;
|
2024-01-11 19:42:08 -03:30
|
|
|
$dash_padding: $base_padding * 2;
|
2023-11-14 10:30:45 -03:30
|
|
|
$dash_edge_offset: $base_margin * 3;
|
2022-02-07 14:52:40 -03:30
|
|
|
$dash_border_radius: $modal_radius + $dash_padding;
|
2024-01-15 11:49:40 -03:30
|
|
|
$dash_spacing: $base_margin * 0.5;
|
2021-02-04 18:27:30 +01:00
|
|
|
|
2021-12-28 10:16:54 -03:30
|
|
|
// container for the dash
|
2019-12-18 16:25:03 -05:00
|
|
|
#dash {
|
2023-11-14 10:30:45 -03:30
|
|
|
margin-top: $dash_edge_offset;
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2023-11-14 10:30:45 -03:30
|
|
|
// background behind item container
|
|
|
|
.dash-background {
|
|
|
|
background-color: $dash_background_color;
|
|
|
|
border-radius: $dash_border_radius;
|
2024-01-11 19:42:08 -03:30
|
|
|
padding-top: $dash_padding;
|
|
|
|
padding-bottom: $dash_padding;
|
2024-01-15 11:49:40 -03:30
|
|
|
padding-left: $dash_padding - $dash_spacing; // subtract the margins added to .overview-tile below
|
|
|
|
padding-right: $dash_padding - $dash_spacing;
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2024-01-08 14:05:09 -03:30
|
|
|
@if $contrast == 'high' {
|
2024-01-10 22:21:11 -03:30
|
|
|
@include draw_hc_inset($width: 2px);
|
2023-11-14 10:30:45 -03:30
|
|
|
}
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2023-11-14 10:30:45 -03:30
|
|
|
// items on the dash
|
|
|
|
.dash-item-container {
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2023-11-14 10:30:45 -03:30
|
|
|
.placeholder {
|
|
|
|
// background-image: url("resource:///org/gnome/shell/theme/dash-placeholder.svg");
|
|
|
|
background-image: none;
|
|
|
|
background-size: contain;
|
|
|
|
height: $dash_placeholder_size;
|
|
|
|
}
|
2022-11-03 12:58:24 -02:30
|
|
|
|
2023-11-14 10:30:45 -03:30
|
|
|
.empty-dash-drop-target {
|
|
|
|
width: $dash_placeholder_size;
|
|
|
|
height: $dash_placeholder_size;
|
|
|
|
}
|
|
|
|
|
2024-01-11 19:42:08 -03:30
|
|
|
// IMPORTANT: items on the dash need to extend to the edge to be adequate click targets
|
|
|
|
// as such the %tile style is overriden and button styles are applied to the child class .overview-icon
|
2024-01-10 22:21:11 -03:30
|
|
|
.show-apps,
|
2023-11-14 10:30:45 -03:30
|
|
|
.overview-tile {
|
2024-01-11 19:42:08 -03:30
|
|
|
// remove styles
|
|
|
|
@extend %reset;
|
|
|
|
|
2024-01-15 11:49:40 -03:30
|
|
|
margin: 0 $dash_spacing;
|
|
|
|
padding-bottom: $dash_edge_offset; // align with other items
|
2024-01-11 19:42:08 -03:30
|
|
|
|
|
|
|
$fg:$system_fg_color;
|
|
|
|
$bg:$dash_background_color;
|
|
|
|
|
|
|
|
.overview-icon {
|
|
|
|
@extend %tile;
|
|
|
|
@include button(normal, $tc:$fg, $c:$bg, $style: flat, $always_dark: true);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus .overview-icon { @include button(focus, $tc:$fg, $c:$bg, $style: flat, $always_dark: true);}
|
|
|
|
&:hover .overview-icon { @include button(hover, $tc:$fg, $c:$bg, $style: flat, $always_dark: true);}
|
|
|
|
&:active .overview-icon { @include button(active, $tc:$fg, $c:$bg, $style: flat, $always_dark: true);}
|
|
|
|
&:checked .overview-icon { @include button(checked, $tc:$fg, $c:$bg, $style: flat, $always_dark: true);}
|
|
|
|
}
|
2024-01-15 11:49:40 -03:30
|
|
|
|
|
|
|
// running app dot
|
|
|
|
.app-grid-running-dot {
|
|
|
|
// manually position the dot within the dash item
|
|
|
|
margin-bottom: $dash_padding + $dash_edge_offset - 3px; // 3px = size of dot (5px) subtracted from its translationY from appDisplay.js
|
|
|
|
}
|
2021-12-28 10:16:54 -03:30
|
|
|
}
|
|
|
|
|
2023-11-14 10:30:45 -03:30
|
|
|
// separator between pinned and running apps
|
|
|
|
.dash-separator {
|
|
|
|
width: 1px;
|
|
|
|
margin-left:$base_margin;
|
|
|
|
margin-right:$base_margin;
|
|
|
|
background-color: $system_borders_color;
|
2022-02-15 12:30:51 -03:30
|
|
|
|
2024-01-08 14:05:09 -03:30
|
|
|
@if $contrast == 'high' {
|
2023-11-14 10:30:45 -03:30
|
|
|
width: 2px;
|
|
|
|
background-color: $hc_inset_color;
|
|
|
|
}
|
2022-02-15 12:30:51 -03:30
|
|
|
}
|
2021-02-04 18:27:30 +01:00
|
|
|
|
2023-11-14 10:30:45 -03:30
|
|
|
// make sure all dash components have same margin from screen edge
|
|
|
|
.dash-separator,
|
2024-01-11 19:42:08 -03:30
|
|
|
.dash-background {
|
2023-11-14 10:30:45 -03:30
|
|
|
margin-bottom: $dash_edge_offset;
|
2022-11-03 12:58:24 -02:30
|
|
|
}
|
2021-01-28 23:24:44 +01:00
|
|
|
}
|
|
|
|
|
2019-12-18 16:25:03 -05:00
|
|
|
// OSD Tooltip
|
|
|
|
.dash-label {
|
2022-11-03 12:58:24 -02:30
|
|
|
@extend %tooltip;
|
2021-12-28 10:16:54 -03:30
|
|
|
-y-offset: $base_margin * 2; // distance from the dash edge
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|