mirror of
https://github.com/manilarome/the-glorious-startpage.git
synced 2024-11-23 16:13:28 +01:00
261 lines
4.4 KiB
CSS
261 lines
4.4 KiB
CSS
#weatherScreen {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
background: var(--panel-bg);
|
|
/*z-index: 0;*/
|
|
z-index: 3;
|
|
overflow: hidden;
|
|
backdrop-filter: blur(var(--blur-strength));
|
|
|
|
display:flex;
|
|
justify-content:center;
|
|
align-items:center;
|
|
|
|
padding-top: 6vh;
|
|
padding-bottom: 6vh;
|
|
padding-left: 12vw;
|
|
padding-right: 12vw;
|
|
|
|
/*Dont increase the geometry by using padding*/
|
|
-webkit-box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
|
/*Disable user touch/select on text elements*/
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
|
|
opacity: 0;
|
|
transform: scale(0);
|
|
transition: transform var(--transition-speed),
|
|
opacity var(--transition-speed),
|
|
z-index var(--transition-speed);
|
|
}
|
|
|
|
.showWeatherScreen{
|
|
transform: scale(1) !important;
|
|
opacity: 1 !important;
|
|
z-index: 3 !important;
|
|
}
|
|
|
|
#weatherScreenContainer {
|
|
overflow: hidden;
|
|
position: relative;
|
|
|
|
/*Align vertically center*/
|
|
margin: 0;
|
|
position: absolute;
|
|
top: 50%;
|
|
-ms-transform: translateY(-50%);
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
#weatherTodayIcon {
|
|
background: url('../assets/weather-icons/weather-error.svg');
|
|
background-size: cover;
|
|
width: 128px;
|
|
height: 128px;
|
|
|
|
position: relative;
|
|
left: 50%;
|
|
-ms-transform: translateX(-50%);
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
#weatherTodayLocation {
|
|
color: var(--base-color);
|
|
font-family: roboto, sans-serif;
|
|
font-weight: 400;
|
|
font-size: 16pt;
|
|
text-align: center;
|
|
position: relative;
|
|
}
|
|
|
|
#weatherTodayDescription {
|
|
color: var(--base-color);
|
|
font-family: roboto-bold, sans-serif;
|
|
font-weight: 700;
|
|
font-size: 20pt;
|
|
text-align: center;
|
|
position: relative;
|
|
}
|
|
|
|
#weatherHourDataTodayContainer,
|
|
.weatherDataHour {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
|
|
margin-left: 5px;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.hourDataIcon {
|
|
height: 22px;
|
|
width: 22px;
|
|
background-size: cover;
|
|
}
|
|
|
|
.hourDataLabel {
|
|
color: var(--base-color);
|
|
font-family: roboto, sans-serif;
|
|
font-weight: 400;
|
|
font-size: 14pt;
|
|
text-align: center;
|
|
}
|
|
|
|
#sunriseHourDataIcon {
|
|
background: url("../assets/weather-icons/sunrise.svg");
|
|
background-size: cover;
|
|
|
|
}
|
|
|
|
#sunsetHourDataIcon {
|
|
background: url("../assets/weather-icons/sunset.svg");
|
|
background-size: cover;
|
|
margin-left: 5px
|
|
}
|
|
|
|
#updateHourDataIcon {
|
|
background: url("../assets/weather-icons/refresh.svg");
|
|
background-size: cover;
|
|
margin-left: 5px
|
|
}
|
|
|
|
|
|
.weatherForecast {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
}
|
|
|
|
|
|
/*Forecast Container*/
|
|
.weatherForecastDay {
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
|
|
float: left;
|
|
clear: both;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
/*Add fixed geometry to weatherForecastDay children*/
|
|
.weatherForecastDay > div {
|
|
width: 100px;
|
|
height: 60px;
|
|
}
|
|
|
|
.weatherForecastDayIconContainer {
|
|
clear:both;
|
|
}
|
|
|
|
.weatherForecastDayIcon {
|
|
background: url('../assets/weather-icons/weather-error.svg');
|
|
background-size: cover;
|
|
width: 48px;
|
|
height: 48px;
|
|
|
|
position: relative;
|
|
left: 50%;
|
|
-ms-transform: translateX(-50%);
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
/*Center*/
|
|
.weatherForecastDayDetails {
|
|
|
|
clear:both;
|
|
}
|
|
|
|
.weatherForecastDayDetailsTemperature,
|
|
.weatherForecastDayDetailsDescription,
|
|
.weatherForecastDayDate {
|
|
color: var(--base-color);
|
|
font-family: roboto, sans-serif;
|
|
font-weight: 400;
|
|
font-size: 11pt;
|
|
text-align: center;
|
|
}
|
|
|
|
.weatherForecastDayDateName {
|
|
font-weight: 900;
|
|
font-size: 14pt;
|
|
}
|
|
|
|
/*Right side*/
|
|
.weatherForecastDayDate {
|
|
clear:both;
|
|
}
|
|
|
|
@media screen and (max-width: 580px) {
|
|
#weatherScreen {
|
|
padding-top: 6vh;
|
|
padding-bottom: 0vh;
|
|
padding-left: 18vw;
|
|
padding-right: 18vw;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-height: 799px) {
|
|
#weatherScreen {
|
|
padding-top: 40px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 580px) {
|
|
|
|
.weatherForecast {
|
|
display: inline-block;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
}
|
|
|
|
/*Forecast Container*/
|
|
.weatherForecastDay {
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
|
|
float: none;
|
|
clear: none;
|
|
margin-left : 0px;
|
|
}
|
|
|
|
/*Add fixed geometry to weatherForecastDay children*/
|
|
.weatherForecastDay > div {
|
|
width: 75px;
|
|
height: 50px;
|
|
}
|
|
|
|
.weatherForecastDayIconContainer {
|
|
float: left;
|
|
clear: none;
|
|
}
|
|
|
|
.weatherForecastDayDateName {
|
|
font-weight: 400;
|
|
font-size: 12pt;
|
|
}
|
|
|
|
/*Center*/
|
|
.weatherForecastDayDetails {
|
|
display: inline-block;
|
|
margin: 0 auto;
|
|
clear: none;
|
|
}
|
|
|
|
/*Right side*/
|
|
.weatherForecastDayDate {
|
|
float: right;
|
|
clear: none;
|
|
}
|
|
|
|
} |