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,274 @@
|
||||
#weather-container {
|
||||
margin: 5px 5px 20px 5px;
|
||||
min-width: 170px;
|
||||
min-height: 170px;
|
||||
border-radius: apply(radius-lg);
|
||||
transition: all apply(transition-slow);
|
||||
background: @surface;
|
||||
}
|
||||
|
||||
/* Base Weather Layout */
|
||||
#weather-widget {
|
||||
padding: 12px 14px;
|
||||
}
|
||||
|
||||
#city {
|
||||
color: @fg-a85;
|
||||
font-weight: 600;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
font-size: 64px;
|
||||
font-weight: 600;
|
||||
color: white;
|
||||
margin-top: -5px;
|
||||
margin-bottom: -5px;
|
||||
}
|
||||
|
||||
#condition-emoji {
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
#condition {
|
||||
font-size: apply(font-lg);
|
||||
font-weight: 600;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#feels-like {
|
||||
font-weight: 500;
|
||||
font-size: 15px;
|
||||
color: @fg-a80;
|
||||
}
|
||||
|
||||
/* Weather Condition Gradients */
|
||||
.weather-clear {
|
||||
background: linear-gradient(135deg, @primary 0%, @cyan 100%);
|
||||
}
|
||||
|
||||
.weather-mostly-clear {
|
||||
background: linear-gradient(135deg, @primary 0%, @primary 100%);
|
||||
}
|
||||
|
||||
.weather-partly-cloudy {
|
||||
background: linear-gradient(135deg, @outline 0%, #bac8e0 100%);
|
||||
}
|
||||
|
||||
.weather-overcast {
|
||||
background: linear-gradient(135deg, @bg-a80 0%, @bg-a80 100%);
|
||||
}
|
||||
|
||||
.weather-fog {
|
||||
background: linear-gradient(135deg, @outline 0%, @foreground 100%);
|
||||
}
|
||||
|
||||
.weather-light-rain {
|
||||
background: linear-gradient(135deg, @on-primary 0%, @bg-a90 100%);
|
||||
}
|
||||
|
||||
.weather-rain {
|
||||
background: linear-gradient(135deg, @bg-a70 0%, @on-tertiary 100%);
|
||||
}
|
||||
|
||||
.weather-heavy-rain {
|
||||
background: linear-gradient(135deg, @surface 0%, @bg-a90 100%);
|
||||
}
|
||||
|
||||
.weather-snow,
|
||||
.weather-heavy-snow {
|
||||
background: linear-gradient(135deg, @secondary 0%, @cyan 100%);
|
||||
}
|
||||
|
||||
.weather-storm {
|
||||
background: linear-gradient(135deg, @background 0%, @surface-bright 50%, @outline 100%);
|
||||
}
|
||||
|
||||
/* # */
|
||||
|
||||
/* Calendar Widget */
|
||||
#calendar-box-widget {
|
||||
background: linear-gradient(to bottom, @surface, @background);
|
||||
margin: 5px 20px 20px 10px;
|
||||
min-width: 170px;
|
||||
min-height: 170px;
|
||||
border-radius: apply(radius-lg);
|
||||
}
|
||||
|
||||
#calendar-widget {
|
||||
margin: 5px 10px 0px 10px;
|
||||
}
|
||||
|
||||
#calendar-month {
|
||||
font-size: apply(font-lg);
|
||||
font-weight: 600;
|
||||
color: @primary;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
#calendar-days-header {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
#calendar-day-header {
|
||||
font-size: apply(font-sm);
|
||||
font-weight: 600;
|
||||
color: @foreground;
|
||||
min-width: 18px;
|
||||
min-height: 10px;
|
||||
}
|
||||
|
||||
#calendar-day-header-weekend {
|
||||
font-size: apply(font-sm);
|
||||
font-weight: 600;
|
||||
color: @fg-a50;
|
||||
min-width: 18px;
|
||||
min-height: 10px;
|
||||
}
|
||||
|
||||
#calendar-day {
|
||||
font-size: apply(font-sm);
|
||||
margin: 1.4px 0px 1.4px 0px;
|
||||
font-weight: 500;
|
||||
color: @foreground;
|
||||
min-width: 18px;
|
||||
min-height: 10px;
|
||||
}
|
||||
|
||||
#calendar-day-weekend {
|
||||
font-size: apply(font-sm);
|
||||
font-weight: 500;
|
||||
color: @fg-a50;
|
||||
min-width: 18px;
|
||||
min-height: 16px;
|
||||
}
|
||||
|
||||
#calendar-day-today {
|
||||
font-size: apply(font-sm);
|
||||
font-weight: 700;
|
||||
color: @foreground;
|
||||
background-color: @primary;
|
||||
border-radius: apply(radius-full);
|
||||
min-width: 18px;
|
||||
min-height: 16px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#calendar-day-empty {
|
||||
min-width: 18px;
|
||||
min-height: 16px;
|
||||
}
|
||||
|
||||
#calendar-grid {
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* Date Widget CSS */
|
||||
#date-widget label {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#day label,
|
||||
#month label {
|
||||
color: var(--foreground);
|
||||
padding: 5px;
|
||||
margin-top: 10px;
|
||||
font-size: 30px;
|
||||
color: @fg-a90;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
#date label {
|
||||
color: @fg-a90;
|
||||
|
||||
margin-top: -10px;
|
||||
font-size: 90px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
#day label {
|
||||
color: alpha(@primary, 0.9);
|
||||
}
|
||||
|
||||
#date-container {
|
||||
background: linear-gradient(to bottom, @surface, @background);
|
||||
margin: 5px 10px 20px 5px;
|
||||
min-width: 170px;
|
||||
min-height: 170px;
|
||||
border-radius: apply(radius-lg);
|
||||
}
|
||||
|
||||
/* System Info Widget CSS */
|
||||
#info-box-widget {
|
||||
background: linear-gradient(to bottom, @surface, @background);
|
||||
margin: 5px 5px 5px 5px;
|
||||
min-width: 170px;
|
||||
min-height: 170px;
|
||||
border-radius: apply(radius-lg);
|
||||
}
|
||||
|
||||
#ram-progress {
|
||||
margin-left: 12px;
|
||||
color: var(--foreground);
|
||||
}
|
||||
|
||||
#progress-label {
|
||||
font-weight: 600;
|
||||
font-size: apply(font-md);
|
||||
}
|
||||
|
||||
#progress {
|
||||
background-color: transparent;
|
||||
border: solid 8px @primary-a20;
|
||||
color: @foreground; /* Filled progress as solid white/foreground */
|
||||
}
|
||||
|
||||
/* Color indicators for memory usage */
|
||||
#used-color-indicator {
|
||||
color: @primary;
|
||||
font-size: apply(font-2xs);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
#free-color-indicator {
|
||||
color: @outline;
|
||||
font-size: apply(font-2xs);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
#temp-color-indicator {
|
||||
color: @primary;
|
||||
font-size: apply(font-2xs);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
/* Info text styling */
|
||||
#info-text {
|
||||
font-size: apply(font-md);
|
||||
font-weight: 500;
|
||||
color: @fg-a60;
|
||||
min-width: 32px;
|
||||
}
|
||||
|
||||
#info-value {
|
||||
font-size: apply(font-sm);
|
||||
font-weight: 600;
|
||||
color: @foreground;
|
||||
}
|
||||
|
||||
#info-container {
|
||||
margin-left: -8px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
#info {
|
||||
margin-left: -13px;
|
||||
margin-top: 5px;
|
||||
font-size: apply(font-base);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
#component-name {
|
||||
font-size: apply(font-2xs);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user