nixos-configs/devices/wim/config/ags/scss/widgets/notification.scss

212 lines
5.2 KiB
SCSS
Raw Normal View History

2023-10-26 17:03:34 -04:00
$background-color-1: rgba(238, 238, 238, 0.154);
$background-color-2: rgba(230, 112, 144, 0.5);
$background-color-3: rgba(238, 238, 238, 0.06);
$background-color-4: #51a4e7;
$background-color-5: transparent;
$background-color-6: #171717;
$background-color-7: rgba(23, 23, 23, 0.3);
$background-color-8: rgba(23, 23, 23, 0.7);
$background-color-9: rgba(238, 238, 238, 0.7);
$background-color-10: rgba(238, 238, 238, 0.5);
2023-09-11 16:25:57 -04:00
.notification.critical {
>box {
box-shadow: inset 0 0 0.5em 0 #e67090;
}
2023-09-11 19:28:22 -04:00
}
2023-10-26 17:03:34 -04:00
2023-09-11 19:28:22 -04:00
.notification {
>box {
all: unset;
box-shadow: 0 0 4.5px 0 rgba(0, 0, 0, 0.4);
2023-10-26 17:03:34 -04:00
margin: 9px 9px 0;
border: 2px solid $contrast-bg;
border-radius: 15px;
background-color: $bg;
padding: 16.2px;
2023-10-26 17:03:34 -04:00
* {
font-size: 16px;
}
}
2023-10-26 17:03:34 -04:00
&:hover {
.close-button {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03);
2023-10-26 17:03:34 -04:00
background-color: $background-color-1;
background-color: $background-color-2;
}
}
2023-10-26 17:03:34 -04:00
.title {
margin-right: 9px;
font-size: 1.1em;
}
2023-10-26 17:03:34 -04:00
.description {
font-size: .9em;
min-width: 350px;
}
2023-10-26 17:03:34 -04:00
.icon {
border-radius: 7.2px;
margin-right: 9px;
}
2023-10-26 17:03:34 -04:00
.icon.img {
border: 1px solid rgba(238, 238, 238, 0.03);
}
2023-10-26 17:03:34 -04:00
.actions {
button {
all: unset;
transition: all 500ms;
2023-10-26 17:03:34 -04:00
background-color: $background-color-3;
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03);
border-radius: 7.2px;
font-size: 1.2em;
padding: 4.5px 9px;
margin: 9px 4.5px 0;
2023-10-26 17:03:34 -04:00
* {
font-size: 16px;
}
2023-10-26 17:03:34 -04:00
&:focus {
box-shadow: inset 0 0 0 1px #51a4e7;
2023-10-26 17:03:34 -04:00
background-color: $background-color-1;
}
2023-10-26 17:03:34 -04:00
&:hover {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03);
2023-10-26 17:03:34 -04:00
background-color: $background-color-1;
}
2023-10-26 17:03:34 -04:00
&:active {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03);
background-image: linear-gradient(to right, #51a4e7, #6cb2eb);
2023-10-26 17:03:34 -04:00
background-color: $background-color-4;
&:hover {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03), inset 0 0 0 99px rgba(238, 238, 238, 0.154);
}
}
2023-10-26 17:03:34 -04:00
&:checked {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03);
background-image: linear-gradient(to right, #51a4e7, #6cb2eb);
2023-10-26 17:03:34 -04:00
background-color: $background-color-4;
&:hover {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03), inset 0 0 0 99px rgba(238, 238, 238, 0.154);
}
}
2023-10-26 17:03:34 -04:00
&:disabled {
box-shadow: none;
2023-10-26 17:03:34 -04:00
background-color: $background-color-5;
}
2023-10-26 17:03:34 -04:00
&:first-child {
margin-left: 0;
}
2023-10-26 17:03:34 -04:00
&:last-child {
margin-right: 0;
}
}
2023-10-26 17:03:34 -04:00
button.on {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03);
background-image: linear-gradient(to right, #51a4e7, #6cb2eb);
2023-10-26 17:03:34 -04:00
background-color: $background-color-4;
&:hover {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03), inset 0 0 0 99px rgba(238, 238, 238, 0.154);
}
}
2023-10-26 17:03:34 -04:00
button.active {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03);
background-image: linear-gradient(to right, #51a4e7, #6cb2eb);
2023-10-26 17:03:34 -04:00
background-color: $background-color-4;
&:hover {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03), inset 0 0 0 99px rgba(238, 238, 238, 0.154);
}
}
}
2023-10-26 17:03:34 -04:00
button.close-button {
all: unset;
transition: all 500ms;
2023-10-26 17:03:34 -04:00
background-color: $background-color-5;
background-image: none;
box-shadow: none;
margin-left: 9px;
border-radius: 7.2px;
min-width: 1.2em;
min-height: 1.2em;
2023-10-26 17:03:34 -04:00
* {
font-size: 16px;
}
2023-10-26 17:03:34 -04:00
&:focus {
box-shadow: inset 0 0 0 1px #51a4e7;
2023-10-26 17:03:34 -04:00
background-color: $background-color-1;
}
2023-10-26 17:03:34 -04:00
&:hover {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03);
2023-10-26 17:03:34 -04:00
background-color: $background-color-1;
background-color: $background-color-2;
}
2023-10-26 17:03:34 -04:00
&:active {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03);
2023-10-26 17:03:34 -04:00
background-color: $background-color-4;
background-image: linear-gradient(#e67090, #e67090);
2023-10-26 17:03:34 -04:00
&:hover {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03), inset 0 0 0 99px rgba(238, 238, 238, 0.154);
}
}
2023-10-26 17:03:34 -04:00
&:checked {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03);
background-image: linear-gradient(to right, #51a4e7, #6cb2eb);
2023-10-26 17:03:34 -04:00
background-color: $background-color-4;
&:hover {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03), inset 0 0 0 99px rgba(238, 238, 238, 0.154);
}
}
2023-10-26 17:03:34 -04:00
&:disabled {
box-shadow: none;
2023-10-26 17:03:34 -04:00
background-color: $background-color-5;
}
}
2023-10-26 17:03:34 -04:00
button.close-button.on {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03);
background-image: linear-gradient(to right, #51a4e7, #6cb2eb);
2023-10-26 17:03:34 -04:00
background-color: $background-color-4;
&:hover {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03), inset 0 0 0 99px rgba(238, 238, 238, 0.154);
}
}
2023-10-26 17:03:34 -04:00
button.close-button.active {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03);
background-image: linear-gradient(to right, #51a4e7, #6cb2eb);
2023-10-26 17:03:34 -04:00
background-color: $background-color-4;
&:hover {
box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.03), inset 0 0 0 99px rgba(238, 238, 238, 0.154);
}
}
2023-09-11 19:28:22 -04:00
}