Aliging css a bit more
This commit is contained in:
@@ -1,18 +1,15 @@
|
||||
/* --- Hyprland palette (ported) --- */
|
||||
@define-color base rgba(30, 30, 46, 1.0); /* 1e1e2e */
|
||||
@define-color inactive rgba(89, 89, 89, 0.667); /* 595959aa */
|
||||
@define-color blue rgba(51, 204, 255, 0.933); /* 33ccffee */
|
||||
@define-color green rgba(0, 255, 153, 0.933); /* 00ff99ee */
|
||||
/* --- Hyprland palette --- */
|
||||
@define-color base rgba(30, 30, 46, 1.0);
|
||||
@define-color inactive rgba(89, 89, 89, 0.667);
|
||||
@define-color blue rgba(51, 204, 255, 0.933);
|
||||
@define-color green rgba(0, 255, 153, 0.933);
|
||||
|
||||
/* extras (make sure all referenced colors exist) */
|
||||
@define-color text rgba(255, 255, 255, 1.0);
|
||||
@define-color surface1 rgba(255, 255, 255, 0.08);
|
||||
@define-color subtext1 rgba(255, 255, 255, 0.35);
|
||||
@define-color red rgba(255, 0, 0, 0.90);
|
||||
|
||||
/* you referenced these but didn't define them */
|
||||
@define-color overlay1 rgba(255, 255, 255, 0.55);
|
||||
@define-color yellow rgba(249, 226, 175, 1.0);
|
||||
@define-color overlay1 rgba(255, 255, 255, 0.55);
|
||||
|
||||
* {
|
||||
font-family:
|
||||
@@ -28,15 +25,13 @@
|
||||
window#waybar {
|
||||
background-color: @base;
|
||||
color: @text;
|
||||
border-bottom: 0px solid rgba(0, 0, 0, 0);
|
||||
transition-property: background-color;
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
|
||||
/* Workspaces */
|
||||
/* --- Workspaces --- */
|
||||
#workspaces button {
|
||||
padding: 0px 6px;
|
||||
min-width: 0px; /* prevents modules-right clipping */
|
||||
min-width: 80px;
|
||||
max-width: 80px;
|
||||
background-color: transparent;
|
||||
color: @text;
|
||||
border: 1px solid @inactive;
|
||||
@@ -45,17 +40,18 @@ window#waybar {
|
||||
|
||||
#workspaces button:hover {
|
||||
background-color: @surface1;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
/* GTK-safe "active" styling (no gradients that break Waybar CSS parsing) */
|
||||
/* Active workspace with GTK-safe gradient */
|
||||
#workspaces button.active {
|
||||
font-weight: bold;
|
||||
background-color: rgba(255, 255, 255, 0.12);
|
||||
border: 1px solid @blue;
|
||||
border-radius: 10px;
|
||||
border: 2px solid transparent;
|
||||
background-color: rgba(255, 255, 255, 0.15);
|
||||
border-image: linear-gradient(45deg, @blue, @green) 1;
|
||||
}
|
||||
|
||||
/* Notifications module */
|
||||
/* --- Notifications icon --- */
|
||||
#custom-notifications {
|
||||
margin: 0 4px;
|
||||
padding: 0 4px;
|
||||
@@ -69,7 +65,7 @@ window#waybar {
|
||||
color: @yellow;
|
||||
}
|
||||
|
||||
/* Standard modules */
|
||||
/* --- Modules spacing --- */
|
||||
#clock,
|
||||
#idle_inhibitor,
|
||||
#battery,
|
||||
@@ -99,32 +95,23 @@ window#waybar {
|
||||
|
||||
#battery.warning:not(.charging) {
|
||||
color: white;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
animation: blink 0.5s linear infinite alternate;
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
background-color: @red;
|
||||
}
|
||||
#network.disconnected,
|
||||
#temperature.critical {
|
||||
background-color: @red;
|
||||
}
|
||||
|
||||
/* Your overflow indicator, GTK-safe */
|
||||
/* --- Hyprscroll overflow indicator --- */
|
||||
#custom-hyprscroll_overflow.overflow {
|
||||
padding: 0px 6px;
|
||||
min-width: 0px;
|
||||
min-width: 80px;
|
||||
max-width: 80px;
|
||||
color: @text;
|
||||
border-radius: 10px;
|
||||
font-weight: bold;
|
||||
background-color: rgba(255, 255, 255, 0.08);
|
||||
border: 1px solid @green;
|
||||
border: 2px solid transparent;
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
border-image: linear-gradient(45deg, @blue, @green) 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user