This commit is contained in:
nicco
2017-12-25 00:50:54 +01:00
parent 1f6dffc690
commit 7ec7eb5b4b
41 changed files with 576 additions and 2 deletions

22
app/res/css/layout.css Normal file
View File

@@ -0,0 +1,22 @@
/* LAYOUT */
.container {
display: grid;
grid-template-columns: 1fr calc(100vh / 4);
grid-template-rows: auto 1fr;
grid-template-areas: "top side" "body side";
background: var(--clr-light);
color: var(--clr-dark);
}
.container .top {
grid-area: top;
}
.container .side {
grid-area: side;
}
.container .body {
grid-area: body;
}

33
app/res/css/main.css Normal file
View File

@@ -0,0 +1,33 @@
* {
--clr-light: hsl(85, 70%, 83%);
--clr-dark: hsl(31, 16%, 27%);
--clr-accent-1: hsl(45, 76%, 50%);
--clr-accent-2: hsl(46, 35%, 51%);
--clr-accent-3: hsl(29, 75%, 60%);
--font-xxxl: 10em;
--font-xxl: 7.5em;
--font-xl: 2em;
--font-lg: 1.5em;
--font-md: 1em;
--font-sm: .8em;
--font-xs: .6em;
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
margin: 0;
padding: 0;
height: 100vh;
width: 100vw;
font-family: Army;
}
/* UTILITY */
.fill {
height: 100%;
width: 100%;
}

77
app/res/css/screen.css Normal file
View File

@@ -0,0 +1,77 @@
/* SCREEN */
#screen {
box-shadow: 1em -1em 8em -4em rgba(0, 0, 0, 1);
display: flex;
flex-direction: row;
flex-wrap: wrap;
padding: 2em;
}
#screen .line {
flex: 1;
padding: .5em;
overflow: hidden;
height: 100%;
width: 100%;
text-align: center;
background: hsla(0, 0, 0, 0.5);
display: flex;
flex-direction: column;
flex-wrap: wrap;
}
/* HEAD */
#screen .head {
flex: 0 1 auto;
}
#screen .head .title {
font-size: var(--font-xl);
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
padding: .15em 0em;
}
#screen .head .title>span {
background-color: var(--clr-accent-1);
padding: 1em 0;
}
#screen .head .lineNumber {
font-size: var(--font-xxl);
}
/* BODY */
#screen .body {
flex: 1 0 auto;
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: space-between;
}
#screen .body .departure {
font-size: var(--font-xl);
}
#screen .body .departure .min {
font-size: var(--font-xs);
}
#screen .body .title {
font-size: var(--font-xl);
padding: .15em 0em;
overflow: hidden;
margin: .5em 0;
}
#screen .body .title>span {
background-color: var(--clr-accent-3);
padding: var(--font-xl) 0;
}

26
app/res/css/top.css Normal file
View File

@@ -0,0 +1,26 @@
/* DATETIME */
#datetime {
display: grid;
grid-template: 1fr auto / 1fr auto;
padding: 1em;
}
/* TIME */
#time {
grid-column: 1 / span 1;
grid-row: 1;
font-size: var(--font-xxxl);
text-align: center;
}
/* DATE */
#date {
grid-column: 2;
grid-row: 2;
font-size: var(--font-xl);
}

25
app/res/css/weather.css Normal file
View File

@@ -0,0 +1,25 @@
/* WEATHER */
.weather-container {
display: grid;
grid-template-rows: repeat(4, 1fr);
grid-template-columns: 100%;
grid-gap: 1em;
padding: 1em;
}
.weather-container .weather-item {
background-repeat: no-repeat;
background-position: center;
background-size: contain;
position: relative;
}
.weather-container .weather-item .temperature {
position: absolute;
bottom: 10%;
right: 10%;
width: 80%;
text-align: right;
font-size: var(--font-xl);
}