Files
colorshell/ags/style/_bar.scss
T
retrozinndev 2fb3b68204 💥 fix: correctly use centerbox with gtkbuilder types, fix styles
also re-added some windows to the windows list(they were causing issues before)
2025-07-07 21:58:34 -03:00

192 lines
3.2 KiB
SCSS

@use "sass:color";
@use "./mixins";
@use "./colors";
@use "./wal";
@use "./functions";
.bar-container {
padding: 6px;
padding-bottom: 0px;
label {
@include mixins.reset-props;
font-size: 12px;
font-weight: 600;
}
// Style widget groups
& > .bar-centerbox > * {
$radius: 18px;
$color-hover: colors.$bg-primary;
$padding: 4px;
background: rgba(colors.$bg-translucent, .6);
border-radius: $radius;
padding: 0 $padding;
& > box:not(.workspaces-row):not(.tray):not(.focused-client),
& > button {
border-radius: calc($radius - $padding);
margin: $padding 0;
padding: 0 8px;
&:hover {
background: $color-hover;
}
}
}
.workspaces-row {
padding: 4px;
& .workspace {
margin: 3px 0;
border-radius: 16px;
transition: 80ms linear;
min-width: 16px;
padding: 0 6px;
background: colors.$bg-tertiary;
& label.id {
font-weight: 600;
margin-right: 4px;
opacity: 0;
}
&.focus {
background: colors.$fg-primary;
min-width: 32px;
& label.id {
color: colors.$fg-light;
margin-right: 0;
}
}
& icon {
font-size: 16px;
}
&.show label.id {
opacity: 1;
}
&:hover:not(.last-client-icon):not(.focus) {
box-shadow: inset 0 0 0 14px rgba($color: colors.$fg-primary, $alpha: .2);
}
}
}
.focused-client {
padding: 0 6px;
& image {
margin-right: 6px;
-gtk-icon-size: 18px;
}
& .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 {
background: colors.$bg-primary;
padding: 0 2px;
&:hover {
box-shadow: inset 0 0 0 300px rgba(colors.$fg-primary, .2);
}
& image {
-gtk-icon-size: 14px;
margin-right: 4px;
}
& .media-controls {
transition: none;
margin-left: 6px;
border-top-right-radius: 12px;
border-bottom-right-radius: 12px;
& > button {
margin: 4px 1px;
& icon {
font-size: 10px;
}
}
}
}
.tray {
padding: 0 6px;
& .item {
all: unset;
}
}
.status {
@include mixins.reset-props;
&.open {
background: colors.$bg-primary;
}
& image {
-gtk-icon-size: 14px;
}
& revealer > box {
background: rgba($color: colors.$bg-tertiary, $alpha: .7);
border-radius: 12px;
margin: 4px 0;
margin-left: 5px;
padding: 2px 6px;
}
& .status-icons {
padding-left: 4px;
& icon.notification-count {
font-size: 6px;
margin-top: -14px;
}
}
}
.apps {
min-width: 18px;
& image {
transition: 120ms linear;
-gtk-icon-size: 14px;
}
&.open {
background: colors.$bg-primary;
}
&:hover image {
-gtk-icon-transform: scale(1.01);
}
}
}