✨ ags: add brightness class, media widget on center-window and more
This commit is contained in:
+1
-18
@@ -112,27 +112,10 @@
|
||||
|
||||
& > button {
|
||||
margin: 4px 1px;
|
||||
border-radius: 4px;
|
||||
|
||||
label {
|
||||
& label {
|
||||
font-size: 8px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: colors.$bg-secondary;
|
||||
}
|
||||
|
||||
&: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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,38 +1,75 @@
|
||||
@use "sass:color";
|
||||
@use "./wal";
|
||||
@use "./functions" as funs; // Did you know that you can use the 'as' keyword? I just found out!
|
||||
@use "./colors";
|
||||
@use "./functions" as funs;
|
||||
|
||||
.center-window-container {
|
||||
background: wal.$background;
|
||||
background: colors.$bg-translucent;
|
||||
border-radius: 18px;
|
||||
padding: 12px;
|
||||
|
||||
& .left {
|
||||
.top {
|
||||
.time {
|
||||
font-size: 22px;
|
||||
& > .top {
|
||||
padding-bottom: 10px;
|
||||
|
||||
& .time {
|
||||
font-size: 28px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.date {
|
||||
& .date {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: funs.toRGB(color.adjust($color: wal.$foreground, $lightness: -15%));
|
||||
color: colors.$fg-disabled;
|
||||
}
|
||||
}
|
||||
|
||||
& .big-media {
|
||||
padding: 6px 16px;
|
||||
|
||||
& > box > .image {
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
& > .info {
|
||||
padding: {
|
||||
top: 4px;
|
||||
bottom: 6px;
|
||||
};
|
||||
|
||||
& .title {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
& .artist {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: colors.$fg-disabled;
|
||||
}
|
||||
}
|
||||
|
||||
& > .controls {
|
||||
padding: 8px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& .calendar-box {
|
||||
padding: 5px;
|
||||
& calendar {
|
||||
border-radius: 6px;
|
||||
padding: 2px;
|
||||
& .right {
|
||||
& .calendar-box {
|
||||
padding: 5px;
|
||||
& calendar {
|
||||
border-radius: 6px;
|
||||
padding: 2px;
|
||||
|
||||
&.view {
|
||||
background: funs.toRGB(color.adjust($color: wal.$color1, $lightness: -35%));
|
||||
&.view {
|
||||
background: funs.toRGB(color.adjust($color: wal.$color1, $lightness: -35%));
|
||||
|
||||
& header {
|
||||
background: funs.toRGB(color.adjust($color: wal.$background, $lightness: -20%));
|
||||
& header {
|
||||
background: funs.toRGB(color.adjust($color: wal.$background, $lightness: -20%));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
@use "sass:color";
|
||||
@use "./wal";
|
||||
@use "./colors";
|
||||
@use "./functions" as funs;
|
||||
@use "./mixins";
|
||||
|
||||
.control-center-container {
|
||||
background: rgba(wal.$background, .65);
|
||||
@include mixins.reset-props;
|
||||
@include mixins.default-styles;
|
||||
|
||||
background: colors.$bg-translucent;
|
||||
border-radius: 24px;
|
||||
padding: 20px 14px;
|
||||
|
||||
@@ -58,25 +63,5 @@
|
||||
margin-right: 8px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
trough {
|
||||
background: funs.toRGB(color.adjust($color: wal.$color1, $lightness: -20%));
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
trough highlight {
|
||||
background: wal.$color1;
|
||||
border-top-left-radius: inherit;
|
||||
border-bottom-left-radius: inherit;
|
||||
}
|
||||
|
||||
trough slider {
|
||||
min-width: 1.2em;
|
||||
min-height: 1.2em;
|
||||
border-radius: 50%;
|
||||
margin: -3px 0;
|
||||
background: wal.$foreground;
|
||||
margin-left: -1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+23
-1
@@ -19,7 +19,7 @@
|
||||
& > button {
|
||||
background: colors.$bg-secondary;
|
||||
margin: 0 1px;
|
||||
padding: 0 6px;
|
||||
padding: 4px 6px;
|
||||
border-radius: 2px;
|
||||
|
||||
&:hover {
|
||||
@@ -78,4 +78,26 @@
|
||||
color: colors.$fg-primary;
|
||||
}
|
||||
}
|
||||
|
||||
& trough {
|
||||
background: funs.toRGB(color.adjust($color: wal.$color1, $lightness: -20%));
|
||||
border-radius: 8px;
|
||||
margin: 2px 0;
|
||||
}
|
||||
|
||||
& trough highlight {
|
||||
background: wal.$color1;
|
||||
min-height: .9em;
|
||||
border-top-left-radius: inherit;
|
||||
border-bottom-left-radius: inherit;
|
||||
}
|
||||
|
||||
& trough slider {
|
||||
border-radius: 50%;
|
||||
margin: -2px 0;
|
||||
background: wal.$foreground;
|
||||
margin-left: -1px;
|
||||
min-width: 1.2em;
|
||||
min-height: 1.2em;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
border-radius: 20px;
|
||||
|
||||
.icon {
|
||||
margin-right: 14px;
|
||||
margin-right: 10px;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user