ws4kp-linhanced/server/styles/scss/_almanac.scss

80 lines
1.5 KiB
SCSS
Raw Normal View History

@use 'shared/_colors' as c;
@use 'shared/_utils' as u;
2022-09-05 11:44:31 -05:00
#almanac-html.weather-display {
background-image: var(--theme-background-3);
2022-09-05 11:44:31 -05:00
}
.weather-display .main.almanac {
font-family: 'Star4000';
font-size: 24pt;
@include u.text-shadow();
.sun {
// Use CSS Grid for cross-browser consistency
// Grid is populated in reading order (left-to-right, top-to-bottom):
display: grid;
grid-template-columns: auto auto auto;
grid-template-rows: auto auto auto;
gap: 0px 90px;
margin: 3px auto 5px auto; // align the bottom of the div with the background
width: fit-content;
line-height: 30px;
.grid-item {
// Reset inherited styles that interfere with grid layout
width: auto;
height: auto;
padding: 0;
margin: 0;
2022-09-05 11:44:31 -05:00
position: relative;
// Column headers (day names)
&.header {
color: c.$column-header-text;
text-align: center;
2022-09-05 11:44:31 -05:00
}
// Row labels (Sunrise:, Sunset:)
&.row-label {
// color: c.$column-header-text; // screenshots show labels were white
text-align: right;
2022-09-05 11:44:31 -05:00
}
// Time values (sunrise/sunset)
&.time {
text-align: center;
2022-09-05 11:44:31 -05:00
}
}
}
.moon {
position: relative;
padding: 7px 50px;
line-height: 36px;
2022-09-05 11:44:31 -05:00
.title {
color: c.$column-header-text;
padding-left: 13px;
2022-09-05 11:44:31 -05:00
}
.day {
display: inline-block;
text-align: center;
width: 132px;
2022-09-05 11:44:31 -05:00
.icon {
// shadow in image make it look off center
padding-left: 10px;
}
.date {
position: relative;
top: -10px;
}
}
}
}