Files
colorshell/ags/style/_bar.scss
T

261 lines
4.1 KiB
SCSS

@use "sass:color";
@use "./mixins";
@use "./colors";
.bar-container {
@include mixins.reset-props;
padding: 6px;
padding-bottom: 0px;
label {
@include mixins.reset-props;
font-size: 12px;
font-weight: 600;
}
// Style widget groups
& > .bar-centerbox > * {
background: rgba(colors.$bg-translucent, .6);
padding: 5px;
border-radius: 18px;
// Style widgets
& > button,
& > eventbox,
& > box {
margin: 0 2px;
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
}
& > button,
& > eventbox > box {
padding: 4px 8px;
border-radius: 12px;
}
& > button:hover,
& > eventbox:hover > box {
background: colors.$bg-primary;
}
}
}
.workspaces {
@include mixins.reset-props;
padding: 1px 1px;
& button {
border-radius: 16px;
transition: 80ms linear;
min-width: 12px;
padding: 0 6px;
background: colors.$bg-tertiary;
margin: 1px 2px;
&.focus {
background: colors.$fg-primary;
min-width: 31px;
& label.id {
color: colors.$fg-light;
margin-right: 0;
}
}
&.show {
// Smooth showing
& label.id {
opacity: 1;
}
}
& label.id {
font-weight: 600;
margin-right: 4px;
opacity: 0;
}
& icon {
font-size: 16px;
}
}
}
.focused-client {
padding: 0 6px;
& > .icon {
margin-right: 6px;
}
& > .text-content {
& > .class {
font-size: 9px;
font-family: monospace;
font-weight: 600;
color: colors.$fg-disabled;
margin-top: 0px;
}
& > .title {
font-size: 12px;
font-weight: 500;
margin-top: -2px;
}
}
}
.clock.open > button {
background-color: colors.$bg-primary;
}
.media-eventbox {
& > .media {
border-radius: 12px;
background: colors.$bg-primary;
padding: 0 8px;
}
&:hover > .media {
box-shadow: inset 0 0 0 300px rgba(colors.$fg-primary, .2);
}
& .nf {
margin-right: 4px;
font-size: 14px;
}
& .media-controls {
transition: none;
padding: 0 6px;
border-top-right-radius: 12px;
border-bottom-right-radius: 12px;
& > button {
margin: 4px 1px;
& label {
font-size: 8px;
}
}
}
&.reveal {
& .media > box {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
padding: 0 6px;
}
& .media {
padding-left: 0;
padding-right: 0;
}
}
}
.tray {
padding: 0 6px;
& .item {
all: unset;
&:hover {
background: none;
}
margin: 0 6px;
padding: 0;
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
}
}
}
.status {
@include mixins.reset-props;
&:hover > box,
&.open > box {
background: colors.$bg-primary;
}
& > box {
padding: 0 8px;
border-radius: 12px;
& > * > * {
margin: 0 2px;
}
& trough {
min-width: 65px;
min-height: 10px;
margin-right: 4px;
}
& slider {
min-width: 10px;
min-height: 10px;
}
& highlight {
min-height: 10px;
}
& .nf {
margin: {
right: 3px;
left: 2px;
};
font-size: 12px;
}
& .status-icons {
padding: 0 4px;
& > * {
margin: 0 4px;
}
}
}
}
.apps {
& > box {
border-radius: 12px;
transition: 100ms linear;
min-width: 28px;
padding: 0 4px;
& > icon {
transition: 120ms linear;
font-size: 14px;
}
}
&:hover > box,
&.open > box {
background: colors.$bg-primary;
}
&:hover > box > icon {
-gtk-icon-transform: scale(1.14);
}
}
}