233 lines
5.7 KiB
SCSS
233 lines
5.7 KiB
SCSS
$overview_transparent_bg: transparentize(white, .9);
|
|
$dialog_box_shadow: 0 2px 8px 0 transparentize(black, .6);
|
|
|
|
/* OSD */
|
|
/*
|
|
$_osd_color: if($variant=='light', black, $fg_color);
|
|
%osd_panel {
|
|
font-weight: bold;
|
|
background-color: $bg_color;
|
|
color: $fg_color;
|
|
border: 1px solid if($variant=='light', transparentize(black, 0.85), $borders_color);
|
|
box-shadow: 0 4px 10px transparentize(black, .8);
|
|
|
|
StIcon {
|
|
color: $_osd_color;
|
|
icon-shadow: 0 0 6px transparentize(black, .6);
|
|
}
|
|
}
|
|
|
|
.osd-window {
|
|
.level {
|
|
-barlevel-background-color: transparentize($_osd_color, if($variant=='light', 0.7, 0.9));
|
|
-barlevel-active-background-color: $_osd_color;
|
|
}
|
|
}
|
|
|
|
/* Slider */
|
|
.slider {
|
|
-barlevel-background-color: $borders_color;
|
|
-barlevel-border-width: 0;
|
|
-slider-handle-radius: 0;
|
|
}
|
|
|
|
/* Check Boxes */
|
|
/*
|
|
.check-box {
|
|
StBin {
|
|
background-image: if($variant == 'light', url("assets/checkbox-off.svg"),
|
|
url("assets/checkbox-off-dark.svg"));
|
|
}
|
|
|
|
&:focus StBin { background-image: if($variant == 'light', url("assets/checkbox-off-focused.svg"),
|
|
url("assets/checkbox-off-focused-dark.svg")); }
|
|
&:checked StBin { background-image: if($variant == 'light', url("assets/checkbox.svg"),
|
|
url("assets/checkbox-dark.svg")); }
|
|
&:focus:checked StBin { background-image: if($variant == 'light', url("assets/checkbox-focused.svg"),
|
|
url("assets/checkbox-focused-dark.svg")); }
|
|
}
|
|
|
|
/* Switches */
|
|
/*
|
|
.toggle-switch {
|
|
background-image: if($variant == 'light', url("assets/toggle-off.svg"),
|
|
url("assets/toggle-off-dark.svg"));
|
|
&:checked {
|
|
background-image: if($variant == 'light', url("assets/toggle-on.svg"),
|
|
url("assets/toggle-on-dark.svg"));
|
|
}
|
|
}
|
|
|
|
// menu items
|
|
.popup-menu-item {
|
|
&.selected, &:active {
|
|
background-color: $popover_hover_color;
|
|
color: $fg_color;
|
|
}
|
|
}
|
|
|
|
/* Window Picker */
|
|
// Window titles
|
|
.window-caption {
|
|
color: black;
|
|
background-color: white;
|
|
box-shadow: $dialog_box_shadow;
|
|
}
|
|
|
|
// Close button
|
|
.window-close {
|
|
background-image: url("assets/close-window.svg");
|
|
background-size: 32px;
|
|
background-color: transparent;
|
|
box-shadow: none;
|
|
color: transparent;
|
|
height: 32px;
|
|
width: 32px;
|
|
transition-duration: .2s;
|
|
|
|
&:hover {
|
|
background-image: url("assets/close-window-hover.svg");
|
|
background-color: transparent;
|
|
}
|
|
|
|
&:active {
|
|
background-image: url("assets/close-window-active.svg");
|
|
background-color: transparent;
|
|
color: transparent;
|
|
transition-duration: 0s;
|
|
}
|
|
}
|
|
|
|
/* Top Bar */
|
|
#panel {
|
|
$_panel_bg: transparentize($bg_color, .2);
|
|
$_panel_fg: if($variant=='light', black, white);
|
|
$_panel_text_shadow: 0 1px 2px transparentize(black, 0.5);
|
|
background: $_panel_bg;
|
|
text-shadow: $_panel_text_shadow;
|
|
|
|
StIcon { icon-shadow: $_panel_text_shadow; }
|
|
|
|
&.unlock-screen,
|
|
&.login-screen,
|
|
&.lock-screen,
|
|
&:overview {
|
|
background-color: transparent;
|
|
.panel-button {
|
|
&, &:hover, &:active, &:focus, &:overview, &:checked { color: white; }
|
|
}
|
|
}
|
|
|
|
.panel-button {
|
|
color: $_panel_fg;
|
|
&:hover, &:active, &:focus, &:overview, &:checked {
|
|
color: $_panel_fg;
|
|
box-shadow: inset 0 0 0 100px rgba(255, 255, 255, if($variant == 'light', 1, .2));
|
|
}
|
|
&.screen-recording-indicator { color: white; }
|
|
}
|
|
|
|
.panel-button.clock-display {
|
|
// Move highlight from .panel-button to .clock
|
|
&:hover, &:active, &:overview, &:focus, &:checked {
|
|
box-shadow: none;
|
|
|
|
.clock {
|
|
box-shadow: inset 0 0 0 100px rgba(255, 255, 255, if($variant == 'light', 1, .2));
|
|
}
|
|
}
|
|
}
|
|
|
|
#panelActivities.panel-button {
|
|
margin-left: .4em;
|
|
StLabel {
|
|
background-image: if($variant == 'light', url("assets/view-grid-symbolic.svg"),
|
|
url("assets/view-grid-symbolic-dark.svg"));
|
|
background-size: contain;
|
|
width: 1.5em;
|
|
height: 1.5em;
|
|
color: transparent;
|
|
}
|
|
|
|
&:overview StLabel {
|
|
background-image: url("assets/view-grid-symbolic-dark.svg");
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Date/Time Menu */
|
|
.datemenu-today-button {
|
|
@include card($flat: false);
|
|
|
|
&:insensitive { color: inherit; }
|
|
|
|
.day-label { font-weight: normal; }
|
|
|
|
.date-label { font-weight: lighter; }
|
|
}
|
|
|
|
/* Search */
|
|
// search entry
|
|
.search-entry {
|
|
color: black;
|
|
text-shadow: 0px 1px 2px rgba(black, 0.9);
|
|
font-weight: bold;
|
|
background-color: $overview_transparent_bg;
|
|
font-size: 1.1em;
|
|
transition-duration: 200ms;
|
|
|
|
StLabel.hint-text { color: $osd_fg_color; }
|
|
|
|
&, &:focus, &:hover {
|
|
width: 21em;
|
|
padding: .6em .8em;
|
|
border: none;
|
|
}
|
|
|
|
&:focus, &:hover {
|
|
background-color: white;
|
|
color: black;
|
|
font-weight: normal;
|
|
box-shadow: none;
|
|
text-shadow: none;
|
|
|
|
StLabel.hint-text { color: black; }
|
|
|
|
.search-entry-icon {
|
|
color: black;
|
|
icon-shadow: none;
|
|
}
|
|
}
|
|
|
|
.search-entry-icon {
|
|
color: white;
|
|
icon-shadow: 0px 1px 2px rgba(black, 0.9);
|
|
}
|
|
}
|
|
|
|
// search results
|
|
.search-section-content {
|
|
background-color: $overview_transparent_bg;
|
|
border: none;
|
|
}
|
|
|
|
// search result provider
|
|
.search-provider-icon .list-search-provider-details { font-weight: bold; }
|
|
|
|
/* Dash */
|
|
#dash {
|
|
color: $osd_fg_color;
|
|
icon-shadow: 0 2px 6px transparentize(black, .6);
|
|
}
|
|
|
|
.dash-background, .dash-separator { background: $overview_transparent_bg; }
|
|
|
|
/* App Grid */
|
|
// Icon tiles in the app grid
|
|
.app-well-app { color: white; }
|
|
|
|
.app-folder-dialog {
|
|
background: black;
|
|
box-shadow: 0 0 20px lighten(black, 1%);
|
|
}
|