Files
colorshell/ags/style/_bar.scss
T

196 lines
3.2 KiB
SCSS

@use "sass:color";
@use "./wal";
@use "./mixins";
.bar-container {
padding: 6px;
padding-bottom: 0px;
& {
button {
padding: 6px 8px;
border-radius: 12px;
&:hover {
background: wal.$color1;
}
}
label {
font-size: 12px;
font-family: "Cantarell", "Noto Sans";
font-weight: 500;
}
}
// Style widget groups
& > .bar-centerbox > * {
background: rgba($color: wal.$background, $alpha: .6);
padding: 5px;
border-radius: 18px;
// Style widgets
& > *,
& > * > button
& > * {
margin: 0 2px;
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
}
}
}
.workspaces {
padding: 2px 2px;
& button {
all: unset;
border-radius: 16px;
transition: 80ms linear;
padding: 12px 12px;
background: wal.$color1;
margin: 1px 2px;
&.focus {
background: wal.$foreground;
padding: 12px 20px;
}
}
}
.focused-client {
padding: 0 6px;
& > .icon {
margin-right: 6px;
}
& > .text-content {
& > .class {
font-size: 9px;
font-family: monospace;
font-weight: 600;
color: color.adjust($color: wal.$foreground, $lightness: -11%);
margin-top: 1px;
}
& > .title {
font-size: 11.5px;
font-weight: 500;
margin-top: -2px;
}
}
}
.logo button {
padding: 0 11px;
padding-right: 16px;
& label {
font-size: 14px;
}
}
.media-eventbox {
& > .media > box {
border-radius: 12px;
background: wal.$color1;
padding: 0 7px;
& .icon {
margin-right: 6px;
font-size: 14px;
}
}
&.reveal {
& .media > box {
transition: 50ms linear;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
& .media-controls {
padding-left: 6px;
border-top-right-radius: 12px;
border-bottom-right-radius: 12px;
transition: unset;
background: linear-gradient(to left, color.adjust($color: wal.$color1, $lightness: -15%) 45px, wal.$color1);
& > button {
margin: 0px 1px;
border-radius: 4px;
&:hover {
background: wal.$color2;
}
&:first-child {
border-top-left-radius: 12px;
border-bottom-left-radius: 12px;
margin-left: 0;
}
&:last-child {
border-top-right-radius: 12px;
border-bottom-right-radius: 12px;
margin-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;
}
}
}
.audio {
&:hover > box {
background: wal.$color1;
}
& .notification-bell {
padding-left: 10px;
padding-right: 4px;
}
& > box {
padding: 0 9px;
border-radius: 12px;
}
& .sink .icon {
margin-right: 6px;
}
& .source .icon {
margin-right: 4px;
}
}
}