mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 12:51:54 +05:30
refactor: move styles to seperate folder
This commit is contained in:
81
style/_bar.scss
Normal file
81
style/_bar.scss
Normal file
@@ -0,0 +1,81 @@
|
||||
@use "./_variable.scss" as *;
|
||||
@use "sass:math";
|
||||
@use "sass:list";
|
||||
|
||||
window.Bar {
|
||||
background: $bg-color;
|
||||
color: $fg-color;
|
||||
padding: 10px;
|
||||
margin: 10px 10px 0px 10px;
|
||||
border-radius: $rounded;
|
||||
|
||||
.launcher {
|
||||
&:hover {
|
||||
background-color: $bg-color;
|
||||
}
|
||||
}
|
||||
|
||||
.workspace-container {
|
||||
background-color: $bg-color;
|
||||
color: $fg-color;
|
||||
border-radius: $rounded;
|
||||
|
||||
.workspace-button {
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
margin: 2px;
|
||||
background-color: $inactive-color;
|
||||
min-height: 1rem;
|
||||
min-width: 1rem;
|
||||
border-radius: calc(list.nth(8px, 1) * 1.5);
|
||||
transition: all 0.15s ease-out;
|
||||
|
||||
&:hover {
|
||||
background: rgba($accent, 0.5);
|
||||
&.occupied {
|
||||
background: rgba($accent, 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
min-width: 2.5rem;
|
||||
min-height: 1rem;
|
||||
background-color: $accent;
|
||||
}
|
||||
|
||||
&.occupied {
|
||||
background-color: $accent;
|
||||
&.active {
|
||||
background-color: $accent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.focused-client {
|
||||
font-size: $font-size;
|
||||
color: $fg-color;
|
||||
}
|
||||
|
||||
.pill {
|
||||
font-size: $font-size;
|
||||
color: $fg-color;
|
||||
background-color: $inactive-color;
|
||||
border-radius: calc($rounded / 1.5);
|
||||
padding: 8px;
|
||||
|
||||
image {
|
||||
-gtk-icon-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.tray {
|
||||
image {
|
||||
-gtk-icon-size: 1.3rem;
|
||||
}
|
||||
|
||||
menubutton {
|
||||
padding: 0px 5px;
|
||||
}
|
||||
}
|
||||
}
|
4
style/_base.scss
Normal file
4
style/_base.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
* {
|
||||
all: unset;
|
||||
font-family: FiraCode Nerd Font Bold;
|
||||
}
|
40
style/_launcher.scss
Normal file
40
style/_launcher.scss
Normal file
@@ -0,0 +1,40 @@
|
||||
@use "./_variable.scss" as *;
|
||||
|
||||
window.launcher {
|
||||
background: $bg-color;
|
||||
border-radius: $rounded;
|
||||
padding: 10px;
|
||||
font-size: 1.2rem;
|
||||
|
||||
.search {
|
||||
min-width: 300px;
|
||||
padding: 10px;
|
||||
color: rgba($fg-color, 0.5);
|
||||
}
|
||||
|
||||
separator {
|
||||
border: 1px solid rgba($inactive-color, 0.5);
|
||||
}
|
||||
|
||||
.list {
|
||||
background: $bg-color;
|
||||
}
|
||||
|
||||
.button {
|
||||
border-radius: $rounded;
|
||||
padding: 10px;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: $inactive-color;
|
||||
}
|
||||
|
||||
image {
|
||||
-gtk-icon-size: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.name {
|
||||
color: $fg-color;
|
||||
}
|
||||
}
|
31
style/_notification.scss
Normal file
31
style/_notification.scss
Normal file
@@ -0,0 +1,31 @@
|
||||
@use "./_variable.scss" as *;
|
||||
@use "sass:math";
|
||||
@use "sass:list";
|
||||
|
||||
window.notifications {
|
||||
margin: 10px;
|
||||
|
||||
.notification {
|
||||
background: $bg-color;
|
||||
padding: 20px;
|
||||
border-radius: $rounded;
|
||||
min-width: 20rem;
|
||||
border: 1px solid transparent;
|
||||
|
||||
&.critical {
|
||||
border: 1px solid rgba(red, 0.5);
|
||||
}
|
||||
|
||||
&.normal {
|
||||
border: 1px solid rgba(yellow, 0.5);
|
||||
}
|
||||
|
||||
.text {
|
||||
color: rgba($fg-color, 0.8);
|
||||
|
||||
.title {
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
6
style/_variable.scss
Normal file
6
style/_variable.scss
Normal file
@@ -0,0 +1,6 @@
|
||||
$accent: #54cdb3;
|
||||
$fg-color: #fff;
|
||||
$bg-color: #0e0e0e;
|
||||
$inactive-color: #252525;
|
||||
$rounded: 8px;
|
||||
$font-size: 1rem;
|
11
style/main.scss
Normal file
11
style/main.scss
Normal file
@@ -0,0 +1,11 @@
|
||||
// base
|
||||
@use "./_base.scss";
|
||||
|
||||
// bar
|
||||
@use "./_bar.scss";
|
||||
|
||||
// launcher
|
||||
@use "./_launcher.scss";
|
||||
|
||||
// notifications
|
||||
@use "./_notification.scss";
|
Reference in New Issue
Block a user