Files
crust-craft/src/styles.css
T

204 lines
3.4 KiB
CSS

html,
body {
font-family:
ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji';
margin: 0
}
p {
margin: 0;
}
.nav {
background-color: black;
color: white;
width: full;
text-align: center;
padding: 1em;
}
.nav-title {
font-size: xx-large;
}
.content {
max-width: 1000px;
margin: auto;
}
.card-grid {
margin-top: 15px;
display: flex;
justify-content: center;
align-items: center;
gap: 2em;
}
.graph {
height: 570px;
overflow: hidden;
display: flex;
justify-content: center;
}
.plot-wrapper {
height: 400px;
}
.card {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-width: 25%;
padding: 1em;
min-height: 120px;
box-shadow: 2px 2px 12px 1px rgba(140, 140, 140, .5);
border-radius: 10px;
}
.reading {
font-weight: bold;
margin-top: 18px;
}
@property --ovenColor1 {
syntax: '<color>';
initial-value: rgba(255, 0, 0, 0);
inherits: false;
}
@property --ovenColor2 {
syntax: '<color>';
initial-value: rgba(255, 0, 0, 0);
inherits: false;
}
.oven {
display: flex;
justify-content: center;
margin: auto;
}
.oven-wrapper {
background: radial-gradient(var(--ovenColor1), var(--ovenColor2), rgba(255, 0, 0, 0), rgba(255, 0, 0, 0));
width: 50%;
display: flex;
justify-content: center;
overflow: visible;
padding: 30px;
transition: --ovenColor1 3s, --ovenColor2 3s;
}
.oven.on .oven-wrapper {
--ovenColor1: rgb(255, 60, 0);
--ovenColor2: rgba(255, 60, 0, 0.4);
}
.oven .oven-img-wrapper {
width: 65%;
}
.oven img {
width: 100%;
}
.relais {
cursor: pointer;
}
.onoffswitch {
pointer-events: none;
margin-top: 10px;
position: relative;
width: 90px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
.onoffswitch-checkbox {
position: absolute;
opacity: 0;
pointer-events: none;
}
.onoffswitch-label {
display: block;
overflow: hidden;
cursor: pointer;
border: 2px solid #999999;
border-radius: 20px;
}
.onoffswitch-inner {
display: block;
width: 200%;
margin-left: -100%;
transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before,
.onoffswitch-inner:after {
display: block;
float: left;
width: 50%;
height: 30px;
padding: 0;
line-height: 30px;
font-size: 14px;
color: white;
font-family: Trebuchet, Arial, sans-serif;
font-weight: bold;
box-sizing: border-box;
}
.onoffswitch-inner:before {
content: "ON";
padding-left: 10px;
background-color: #C43535;
color: #FFFFFF;
}
.onoffswitch-inner:after {
content: "OFF";
padding-right: 10px;
background-color: #EEEEEE;
color: #999999;
text-align: right;
}
.onoffswitch-switch {
display: block;
width: 18px;
margin: 6px;
background: #FFFFFF;
position: absolute;
top: 0;
bottom: 0;
right: 56px;
border: 2px solid #999999;
border-radius: 20px;
transition: all 0.3s ease-in 0s;
}
.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner {
margin-left: 0;
}
.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch {
right: 0px;
}
.settings {
margin-top: 50px;
}
.settings input {
max-width: 50px;
font-size: larger;
font-weight: bold;
}