refactor(styles): simplify color variables and update CSS constants
Add new color palette file and refactor constant definitions to use variable tokens.
This commit is contained in:
46 files changed
+1789
-1815
No files matched your search
@@ -0,0 +1,171 @@
|
||||
#battery-window {
|
||||
background-color: @bg-a50;
|
||||
border-radius: apply(radius-sm);
|
||||
}
|
||||
|
||||
#battery-control-window {
|
||||
margin: 6px;
|
||||
background-color: @bg-a50;
|
||||
border: 1px solid @outline-a30;
|
||||
box-shadow: inset 0 0 200px 0 @outline-a30;
|
||||
border-radius: apply(radius-sm);
|
||||
}
|
||||
|
||||
|
||||
#battery-widget {
|
||||
background: transparent;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
.battery-main-title {
|
||||
font-size: apply(font-lg);
|
||||
font-weight: bold;
|
||||
|
||||
color: @fg-a95;
|
||||
margin: 6px 10px;
|
||||
}
|
||||
|
||||
.battery-power-source {
|
||||
font-size: 0.9em;
|
||||
font-weight: 500;
|
||||
color: @fg-a80;
|
||||
margin: 0px 12px;
|
||||
}
|
||||
|
||||
.battery-section-title {
|
||||
font-size: 0.9em;
|
||||
font-weight: 500;
|
||||
color: @fg-a90;
|
||||
margin: 8px 12px 4px 12px;
|
||||
}
|
||||
|
||||
.battery-energy-item {
|
||||
margin: 4px 12px;
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.battery-status-section {
|
||||
/* background: @fg-a06; */
|
||||
/* border-radius: apply(radius-md); */
|
||||
padding: 2px;
|
||||
/* margin: 8px 0; */
|
||||
/* border: 1px solid @fg-a08; */
|
||||
}
|
||||
|
||||
.battery-percentage {
|
||||
font-size: apply(font-lg);
|
||||
margin-right: 8px;
|
||||
font-weight: 500;
|
||||
color: @fg-a95;
|
||||
}
|
||||
|
||||
#energy-mode-button-clickable {
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: apply(radius-sm);
|
||||
padding: 6px 12px;
|
||||
margin: 1px 0;
|
||||
}
|
||||
|
||||
#energy-mode-button-clickable:hover {
|
||||
background: @fg-a10;
|
||||
}
|
||||
|
||||
#energy-mode-button-clickable:hover #energy-mode-icon {
|
||||
background-color: @fg-a25;
|
||||
}
|
||||
|
||||
#energy-mode-icon {
|
||||
border-radius: apply(radius-full);
|
||||
padding: 4px;
|
||||
margin-top: -2px;
|
||||
margin-bottom: -2px;
|
||||
margin-right: 6px;
|
||||
margin-left: -6px;
|
||||
background-color: @fg-a10;
|
||||
color: @fg-a70;
|
||||
}
|
||||
|
||||
#energy-mode-icon.connected {
|
||||
background-color: @primary;
|
||||
color: @foreground;
|
||||
}
|
||||
.battery-power-source {
|
||||
font-size: apply(font-sm);
|
||||
margin-bottom: -4px;
|
||||
color: @fg-a50;
|
||||
}
|
||||
.battery-section-title {
|
||||
font-size: apply(font-base);
|
||||
color: @fg-a70;
|
||||
margin: 2px 0 0 8px;
|
||||
}
|
||||
.battery-power-mode {
|
||||
font-size: apply(font-md);
|
||||
}
|
||||
|
||||
.battery-settings-button:hover {
|
||||
margin-top: -5px;
|
||||
background: @fg-a10;
|
||||
min-height: 30px;
|
||||
border-radius: apply(radius-sm);
|
||||
}
|
||||
.battery-settings-button {
|
||||
margin-top: -5px;
|
||||
min-height: 30px;
|
||||
border-radius: apply(radius-sm);
|
||||
}
|
||||
.battery-settings-button label {
|
||||
font-weight: 500;
|
||||
color: @foreground;
|
||||
}
|
||||
#energy-mode-button:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
#energy-mode-button {
|
||||
margin-top: -8px;
|
||||
margin-bottom: 4px;
|
||||
color: @fg-a85;
|
||||
}
|
||||
.gamemode-button {
|
||||
font-size: apply(font-sm);
|
||||
margin-left: -6px;
|
||||
color: @fg-a85;
|
||||
}
|
||||
|
||||
#game-mode-button {
|
||||
margin: 2px 0;
|
||||
}
|
||||
#game-mode-icon {
|
||||
margin-left: -6px;
|
||||
}
|
||||
|
||||
#game-mode-button-clickable {
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: apply(radius-sm);
|
||||
padding: 6px 12px;
|
||||
margin: 1px 0;
|
||||
/* min-height: 36px; */
|
||||
}
|
||||
|
||||
#game-mode-button-clickable:hover {
|
||||
background: @fg-a10;
|
||||
}
|
||||
|
||||
#game-mode-button-clickable:hover #game-mode-icon {
|
||||
background-color: @fg-a25;
|
||||
}
|
||||
|
||||
#game-mode-icon {
|
||||
border-radius: apply(radius-full);
|
||||
padding: 4px;
|
||||
margin-right: 8px;
|
||||
background-color: @fg-a10;
|
||||
color: @fg-a70;
|
||||
}
|
||||
|
||||
#game-mode-icon.connected {
|
||||
background-color: @primary;
|
||||
color: @foreground;
|
||||
}
|
||||
Reference in new issue
Block a user