Files
hyprland/config/fabric/style/main.css
T
2024-10-26 13:38:51 +05:45

472 lines
8.3 KiB
CSS

* {
all: unset;
color: @foreground;
font-size: 16px;
font-family: "Product Sans", Roboto, "Font Awesome 6 Free", Helvetica, Arial,
sans-serif;
}
#bar {
background-color: @surface;
padding: 3px;
}
#bar label {
font-weight: bold;
}
#symbol,
#symbol * {
all: unset;
margin: 2px;
font-size: 18px;
}
#start-container,
#center-container,
#end-container {
padding-top: 6px;
padding-bottom: 6px;
margin-left: 12px;
margin-right: 12px;
}
#workspaces {
border-radius: 100px;
font-weight: bold;
font-style: normal;
color: @onSurface;
background: @surfaceContainer;
padding-left: 4px;
padding-right: 4px;
}
#workspaces > button {
padding: 0px 5px;
margin: 4px 0px;
margin-right: 3px;
border-radius: 100px;
min-width: 20px;
border: 0px;
}
#workspaces > button:last-child {
margin-right: 0px;
}
#workspaces > button label {
color: @onSurface;
font-weight: bold;
}
#workspaces > button:hover {
color: @onSurface;
background-color: mix(@onSurface, @surface, 0.85);
}
#workspaces > button.active {
background: @secondaryContainer;
}
#workspaces > button.active label {
color: @onSecondaryContainer;
}
#workspaces > button.empty {
color: @onSurfaceVariant;
opacity: 0.6;
}
#datetime {
background-color: @surfaceContainer;
border-radius: 100px;
padding: 8px;
}
#battery {
background-color: @surfaceContainer;
border-radius: 100px;
padding: 2px 10px 2px 10px;
}
#battery label {
color: @onSurface;
font-size: 16px;
font-weight: 300;
}
#battery .icon {
color: @onSurface;
}
#battery.critical {
background-color: @error;
}
#battery.critical label,
#battery.critical .icon {
color: @onError;
}
#tray {
background-color: @surfaceContainer;
border-radius: 100px;
padding: 2px 10px 0px 10px;
}
#tray > button {
margin: 0px;
padding: 0px;
}
#tray image {
color: @onSurface;
}
#applets {
background-color: @surfaceContainer;
border-radius: 100px;
padding: 2px 10px 2px 10px;
margin: 0px;
}
#applets .icon {
color: @onSurface;
font-weight: 900;
}
#applets > button {
color: @onSurface;
margin: 0px;
padding: 0px;
}
menu {
border-radius: 10px;
background-color: @surfaceContainer;
}
menu > menuitem {
border-radius: 0px;
padding: 6px;
margin-left: 2px;
margin-right: 2px;
color: @onSurface;
}
menu > menuitem:first-child {
margin-top: 1px;
border-radius: 8px 8px 0px 0px;
}
menu > menuitem:last-child {
margin-bottom: 1px;
border-radius: 0px 0px 8px 8px;
}
menu > menuitem:hover {
background-color: mix(@onSurface, @surface, 0.85);
}
tooltip {
background-color: @surfaceContainer;
border-radius: 11px;
outline: none;
border: none;
box-shadow: none;
}
tooltip label {
color: @onSurface;
outline: none;
border: none;
box-shadow: none;
font-weight: normal;
}
#panel-button {
margin: 0px 2px 0px 2px;
padding: 0px 5px 0px 5px;
border-style: solid;
border-width: 2px;
border-radius: 10px;
border-color: transparent;
}
#panel-button.activated {
background-color: alpha(white, 0.15);
border-style: solid;
border-color: transparent;
border-bottom-style: solid;
border-bottom-color: alpha(white, 0.5);
}
#taskbar {
border-radius: 100px;
font-weight: bold;
font-style: normal;
color: @onSurface;
background: @surfaceContainer;
padding-left: 4px;
padding-right: 4px;
}
#taskbar > button {
padding: 0px 5px;
margin: 4px 0px;
margin-right: 3px;
border-radius: 100px;
border: 0px;
}
#taskbar > button:last-child {
margin-right: 0px;
}
#launcher {
margin: 18px;
border: 1px solid @outlineVariant;
background-color: @surface;
border-radius: 24px;
padding: 18px;
}
#launcher button {
border-radius: 11px;
background-color: transparent;
background-image: none;
box-shadow: none;
padding: 7px;
}
#launcher button:focus {
box-shadow: inset 0 0 0 1px @primary;
background-color: @background;
color: @foreground;
}
#launcher button:hover {
box-shadow: inset 0 0 0 1px @background;
background-color: @background;
}
#launcher entry {
transition: all 0.1s ease;
border-radius: 11px;
color: @foreground;
background-color: @surfaceContainer;
box-shadow: inset 0 0 0 @background;
padding: 10px;
margin: 12px;
}
#launcher entry:focus {
box-shadow: inset 0 0 0 1px @primary;
background-color: @background;
}
#launcher entry:hover {
box-shadow: inset 0 0 0 1px @background;
background-color: @background;
}
#launcher entry selection {
color: @outline;
background-color: transparent;
}
#launcher button#app-item {
border-radius: 11px;
color: @foreground;
background-color: transparent;
background-image: none;
box-shadow: none;
transition: 200ms;
padding: 7pt;
}
#launcher button#app-item:hover #title,
#launcher button#app-item:focus #title {
color: @primary;
}
#launcher button#app-item:hover #description,
#launcher button#app-item:focus #description {
color: @inversePrimary;
}
#launcher button#app-item:hover image,
#launcher button#app-item:focus image {
-gtk-icon-shadow: 2px 2px @primary;
}
#launcher button#app-item:active {
background-color: @primaryContainer;
border-radius: 11px;
box-shadow: inset 0 0 0 1px rgba(158, 142, 130, 0.04);
}
#launcher button#app-item:active #title {
color: @foreground;
}
#launcher button#fav-item {
border-radius: 10px;
padding: 10px;
background-image: none;
box-shadow: none;
}
#launcher button#fav-item:hover image,
#launcher button#fav-item:focus image {
-gtk-icon-shadow: 2px 2px @primary;
}
#launcher button#fav-item:active {
background-color: transparent;
border-radius: 11px;
box-shadow: inset 0 0 0 1px rgba(158, 142, 130, 0.04);
}
#launcher button#emoji-item {
border-radius: 11px;
background-color: transparent;
background-image: none;
box-shadow: none;
padding: 0px;
}
#launcher button#emoji-item:disabled {
color: mix(@onSurface, transparent, 0.38);
}
#launcher button#emoji-item label {
font-size: 27px;
}
#launcher button#emoji-item:hover,
#launcher button#emoji-item:focus {
text-shadow: 2px 2px 2px @primary;
}
#launcher button#cliphist-item {
border-radius: 11px;
background-color: transparent;
background-image: none;
box-shadow: none;
}
window#launcher button#cliphist-item:disabled {
color: mix(@onSurface, transparent, 0.38);
}
#launcher button#cliphist-item:hover,
#launcher button#cliphist-item:focus {
text-shadow: 2px 2px 2px @primary;
}
#launcher button#sh-item {
border-radius: 11px;
background-color: transparent;
background-image: none;
box-shadow: none;
}
#launcher button#sh-item:disabled {
color: mix(@onSurface, transparent, 0.38);
}
#launcher button#sh-item:hover,
#launcher button#sh-item:focus {
text-shadow: 2pt 2pt 2pt @primary;
}
#launcher button#help-item {
border-radius: 11px;
background-color: transparent;
background-image: none;
box-shadow: none;
}
#launcher button#help-item:hover label,
#launcher button#help-item:focus label {
text-shadow: 2px 2px 2px @primary;
}
:vars {
--accent: #009cd4;
--bg_h: #1d2021;
--bg: #1e1e1e;
--bg_s: #32302f;
--bg1: #3c3836;
--bg2: #504945;
--bg3: #665c54;
--bg4: #7c6f64;
--fg: #e2e2e0;
--fg1: #ebdbb2;
--fg2: #d5c4a1;
--fg3: #bdae93;
--fg4: #a89984;
--red: #fb4934;
--green: #4bbb26;
--yellow: #ffe600;
--blue: #83a598;
--purple: #d3869b;
--aqua: #8ec07c;
--gray: #928374;
--orange: #fe8019;
--red-dim: #cc2412;
--green-dim: #98971a;
--yellow-dim: #d79921;
--blue-dim: #458588;
--purple-dim: #b16286;
--aqua-dim: #689d6a;
--gray-dim: #a89984;
--orange-dim: #d65d0e;
--placeholder_text_color: rgb(255, 255, 255);
}
#osd-corner {
padding-left: 45px;
}
#osd-icon image {
color: @foreground;
}
#osd-corner * {
background-color: alpha(@background, 0.9);
}
#osd-progress-bar *.filled {
background-color: @foreground;
box-shadow: 0px 0px 2px 1px @foreground;
}
#osd-progress-bar * {
border-radius: 30px;
background-color: #202020;
transition-property: background-color, box-shadow;
transition-duration: 0.25s;
transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
/* transition: background-color 0.3s cubic-bezier(.42,0,.58,1); */
}
#osd-progress-bar {
margin: 10px 5px 10px 5px;
border-radius: 30px;
}
#on-screen-display {
border-left-width: 5px;
border-color: var(--accent);
border-style: solid;
min-height: 300px;
background-color: alpha(@background, 0.9);
padding: 20px;
border-top-left-radius: 50px;
border-bottom-left-radius: 50px;
}