Files
Modus/styles/widgets.css
T
sankalp c214d2fade style(styles): modernize weather widget CSS and add condition gradient themes
- New Features
  - Added gradient background classes for various weather conditions
- Enhancements
  - Updated transition timing and border radius for smoother animations
  - Improved typography spacing and color contrast
- Bug Fixes
  - Fixed missing newline at end of file
  - Corrected background rendering for gradient classes
2026-04-09 18:47:32 +05:45

272 lines
4.4 KiB
CSS

#weather-container {
margin: 5px 5px 20px 5px;
min-width: 170px;
min-height: 170px;
border-radius: 18px;
transition: all 0.5s ease-in-out;
background: #202020;
}
/* Base Weather Layout */
#weather-widget {
padding: 12px 14px;
}
#city {
color: rgba(255, 255, 255, 0.85);
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: 16px;
font-weight: 600;
color: white;
}
#feels-like {
font-weight: 500;
font-size: 15px;
color: rgba(255, 255, 255, 0.8);
}
/* Weather Condition Gradients */
.weather-clear {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.weather-mostly-clear {
background: linear-gradient(135deg, #439cfb 0%, #6bc1f9 100%);
}
.weather-partly-cloudy {
background: linear-gradient(135deg, #6a85b6 0%, #bac8e0 100%);
}
.weather-overcast {
background: linear-gradient(135deg, #485563 0%, #29323c 100%);
}
.weather-fog {
background: linear-gradient(135deg, #757f9a 0%, #d7dde8 100%);
}
.weather-light-rain {
background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
}
.weather-rain {
background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
}
.weather-heavy-rain {
background: linear-gradient(135deg, #141e30 0%, #243b55 100%);
}
.weather-snow,
.weather-heavy-snow {
background: linear-gradient(135deg, #83a4d4 0%, #b6fbff 100%);
}
.weather-storm {
background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}
/* # */
/* Calendar Widget */
#calendar-box-widget {
background: linear-gradient(to bottom, #202020, #141414);
margin: 5px 20px 20px 10px;
min-width: 170px;
min-height: 170px;
border-radius: 16px;
}
#calendar-widget {
margin: 5px 10px 0px 10px;
}
#calendar-month {
font-size: 16px;
font-weight: 600;
color: var(--blue-dim);
margin-bottom: 6px;
}
#calendar-days-header {
margin-bottom: 4px;
}
#calendar-day-header {
font-size: 12px;
font-weight: 600;
color: #ffffff;
min-width: 18px;
min-height: 10px;
}
#calendar-day-header-weekend {
font-size: 12px;
font-weight: 600;
color: #8e8d93;
min-width: 18px;
min-height: 10px;
}
#calendar-day {
font-size: 12px;
margin: 1.4px 0px 1.4px 0px;
font-weight: 500;
color: #ffffff;
min-width: 18px;
min-height: 10px;
}
#calendar-day-weekend {
font-size: 12px;
font-weight: 500;
color: #8e8d93;
min-width: 18px;
min-height: 16px;
}
#calendar-day-today {
font-size: 12px;
font-weight: 700;
color: #191919;
background-color: var(--blue-dim);
border-radius: 50%;
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: alpha(#fff, 0.9);
font-weight: 600;
}
#date label {
color: alpha(#fff, 0.9);
margin-top: -10px;
font-size: 90px;
font-weight: 600;
}
#day label {
color: alpha(var(--blue-dim), 0.9);
}
#date-container {
background: linear-gradient(to bottom, #202020, #141414);
margin: 5px 10px 20px 5px;
min-width: 170px;
min-height: 170px;
border-radius: 16px;
}
/* System Info Widget CSS */
#info-box-widget {
background: linear-gradient(to bottom, #202020, #141414);
margin: 5px 5px 5px 5px;
min-width: 170px;
min-height: 170px;
border-radius: 16px;
}
#ram-progress {
margin-left: 12px;
color: var(--foreground);
}
#progress-label {
font-weight: 600;
font-size: 13px;
}
#progress {
border: solid 8px var(--blue-dim);
color: alpha(#aaaaaa, 0.7);
}
/* Color indicators for memory usage */
#used-color-indicator {
color: var(--blue-dim);
font-size: 10px;
font-weight: 900;
}
#free-color-indicator {
color: #7c7c7c;
font-size: 10px;
font-weight: 900;
}
#temp-color-indicator {
color: var(--blue-dim);
font-size: 10px;
font-weight: 900;
}
/* Info text styling */
#info-text {
font-size: 13px;
font-weight: 500;
color: #8e8e8e;
min-width: 32px;
}
#info-value {
font-size: 12px;
font-weight: 600;
color: #ffffff;
}
#info-container {
margin-left: -8px;
margin-top: 5px;
}
#info {
margin-left: -13px;
margin-top: 5px;
font-size: 14px;
font-weight: 600;
}
#component-name {
font-size: 10px;
}