Finished?!
This commit is contained in:
8
webapp/dist/charts.html
vendored
8
webapp/dist/charts.html
vendored
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Ledda's Room Climate</title>
|
||||
<link href="/climate/static/styles.css" rel="stylesheet" />
|
||||
<script src="/climate/static/main.js"></script>
|
||||
<link href="{{.}}/static/styles.css" rel="stylesheet" />
|
||||
<script src="{{.}}/static/main.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="chart-container" style="position: relative; height:40vh; width:80vw; margin: auto">
|
||||
<body id="root">
|
||||
<div class="chart-container center">
|
||||
<canvas id="myChart"></canvas>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
4
webapp/dist/main.js
vendored
4
webapp/dist/main.js
vendored
File diff suppressed because one or more lines are too long
31
webapp/dist/styles.css
vendored
31
webapp/dist/styles.css
vendored
@@ -1,15 +1,36 @@
|
||||
html, body {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.overlay {
|
||||
background-color: rgba(255, 255, 255, 0.5);
|
||||
transition: opacity, 1s;
|
||||
opacity: 100%;
|
||||
}
|
||||
|
||||
.center {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: white;
|
||||
opacity: 50%;
|
||||
display: table-cell;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
margin: auto;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.center > * {
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
opacity: 0%;
|
||||
}
|
||||
|
||||
.chart-container {
|
||||
padding: 10vw;
|
||||
width: calc(100% - 20vw);
|
||||
height: calc(100% - 20vw);
|
||||
}
|
||||
Reference in New Issue
Block a user