219 lines
4.5 KiB
SCSS
Raw Normal View History

2020-12-18 22:35:46 +08:00
// Dash to Dock
2021-04-09 20:03:06 +08:00
$dash_panel_bg: if($variant == 'light', rgba(#f1f1f1, 0.35), rgba(#222222, 0.75));
2020-12-18 22:35:46 +08:00
$dash_panel_fg: if($variant == 'light', black, white);
$dash_radius: 18px;
// Scrollview style
.bottom #dashtodockDashScrollview,
.top #dashtodockDashScrollview {
-st-hfade-offset: 24px;
}
.left #dashtodockDashScrollview,
.right #dashtodockDashScrollview {
-st-vfade-offset: 24px;
}
#dashtodockContainer {
background-color: transparent;
.app-well-app-running-dot {
background-color: $dash_panel_fg;
}
.number-overlay {
color: $light_fg_color;
background-color: rgba(black, 0.75);
text-align: center;
}
.notification-badge {
color: $light_fg_color;
background-color: $primary_color;
2020-12-22 17:38:59 +08:00
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.25);
2020-12-18 22:35:46 +08:00
border-radius: 1000px;
margin: 2px;
2020-12-22 17:38:59 +08:00
padding: 0.2em 0.6em;
2020-12-18 22:35:46 +08:00
font-weight: bold;
text-align: center;
}
2021-04-09 20:03:06 +08:00
&.dashtodock #dash .dash-background,
&.dashtodock:overview #dash .dash-background,
&.extended #dash .dash-background,
&.extended:overview #dash .dash-background {
border: 1px solid if($variant == 'light', rgba(black, 0.08), rgba(black, 0.75));
2020-12-18 22:35:46 +08:00
}
2021-04-09 20:03:06 +08:00
&.straight-corner #dash .dash-background,
&.shrink.straight-corner #dash .dash-background {
2020-12-18 22:35:46 +08:00
border-radius: 0;
margin: 0;
}
@each $_dock, $_radius, $_shadow in (top, $dash_radius, 0 -1px),
(bottom, $dash_radius, 0 1px),
(left, $dash_radius, -1px 0),
(right, $dash_radius, 1px 0) {
2021-04-09 20:03:06 +08:00
&.#{$_dock}.dashtodock #dash .dash-background,
&.#{$_dock}.dashtodock:overview #dash .dash-background {
2020-12-18 22:35:46 +08:00
border-radius: #{$_radius};
box-shadow: inset 0 0 0 1px rgba(white, 0.05);
}
2021-04-09 20:03:06 +08:00
&.#{$_dock}.shrink #dash .dash-background {
2020-12-18 22:35:46 +08:00
border-#{$_dock}-width: 0;
}
2021-04-09 20:03:06 +08:00
&.#{$_dock}.extended #dash .dash-background,
&.#{$_dock}.extended:overview #dash .dash-background {
margin: 0 0;
2020-12-18 22:35:46 +08:00
border-radius: 0;
box-shadow: inset #{$_shadow} rgba(white, 0.05);
}
}
&.extended.top,
&.extended.bottom {
#dash {
border-left: 0;
border-right: 0;
padding-top: 0;
padding-bottom: 0;
2021-04-09 20:03:06 +08:00
margin-top: 0;
}
.dash-background {
margin-bottom: 0;
2020-12-18 22:35:46 +08:00
}
}
&.extended.right,
&.extended.left {
#dash {
border-top: 0;
border-bottom: 0;
padding-top: 0;
padding-bottom: 0;
2021-04-09 20:03:06 +08:00
margin-top: 0;
}
.dash-background {
margin-bottom: 0;
2020-12-18 22:35:46 +08:00
}
}
2021-04-09 20:03:06 +08:00
&.dashtodock #dash { background: none; }
2020-12-18 22:35:46 +08:00
#dash { // default-mode
2021-04-09 20:03:06 +08:00
background: none;
2020-12-27 20:38:25 +08:00
2020-12-18 22:35:46 +08:00
.app-well-app-running-dot {
background-color: rgba($dash_panel_fg, 0.85);
}
StWidget.focused .app-well-app-running-dot {
background-color: $primary_color;
}
}
2021-04-09 20:03:06 +08:00
.dash-background {
2020-12-18 22:35:46 +08:00
background-color: $dash_panel_bg;
}
2021-04-09 20:03:06 +08:00
.dash-separator {
2021-04-14 14:48:12 +08:00
width: 1px !important;
// margin: 0 0 !important;
background-color: $light_divider_color;
2020-12-18 22:35:46 +08:00
}
&:overview #dash { // overview-mode #1
2021-04-09 20:03:06 +08:00
background: none;
.dash-background {
background-color: $light_divider_color;
}
2020-12-18 22:35:46 +08:00
.app-well-app-running-dot {
background-color: $light_alt_fg_color;
}
StWidget.focused .app-well-app-running-dot {
background-color: $primary_color;
}
}
&.opaque:overview,
&.transparent:overview { // overview-mode #2
#dash {
background-color: transparent !important;
box-shadow: none !important;
}
2021-04-09 20:03:06 +08:00
.dash-background {
background-color: transparent !important;
}
2020-12-18 22:35:46 +08:00
}
&.extended:overview, // overview-mode #3
&.opaque.extended:overview,
&.transparent.extended:overview {
#dash {
2021-04-09 20:03:06 +08:00
background: none;
}
.dash-background {
background-color: $light_divider_color;
2020-12-18 22:35:46 +08:00
}
}
&.running-dots,
&.dashtodock {
.dash-item-container > StButton {
transition-duration: 250ms;
background-size: contain;
}
}
&.shrink,
&.dashtodock {
.dash-item-container > StButton {
padding: 1px 2px;
}
}
.app-well-app,
.show-apps {
.overview-icon {
padding: 8px;
background-size: contain;
}
}
&.extended,
&.extended:overview {
.app-well-app,
.show-apps {
.overview-icon {
border-radius: $bt_radius;
}
}
}
.metro .overview-icon {
border-radius: 0;
}
}
.dashtodock-app-well-preview-menu-item {
padding: 1em 1em 0.5em 1em;
}
#dashtodockPreviewSeparator.popup-separator-menu-item-horizontal {
width: 1px;
height: auto;
border-right-width: 1px;
margin: 32px 0;
}