add modals and menus

This commit is contained in:
2022-11-11 01:51:43 +01:00
parent 60a5faa952
commit 0ddfa4d66f
4 changed files with 176 additions and 20 deletions

View File

@ -0,0 +1,74 @@
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 15%; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
color: black;
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0, 0, 0); /* Fallback color */
background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
}
/* Modal Content */
.modal-content {
margin: auto;
padding: 23px;
border-radius: 5px;
border: 1px solid #888888;
width: 80%;
text-align: center;
background-color: #fefefe;
}
#modalTitle {
font-size: 1.9em;
font-weight: 500;
margin-bottom: 12px;
}
@keyframes modalBlendOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes modalBlendIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.modalBlendIn {
animation: modalBlendIn 0.5s ease;
}
.modalBlendOut {
animation: modalBlendOut 0.8s ease;
}
/* The Close Button */
.close {
color: #aaaaaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: #000000;
text-decoration: none;
cursor: pointer;
}

View File

@ -1,13 +1,19 @@
@import url("https://fonts.gaminggeneration.de/Roboto.css");
body {
color: white;
scroll-behavior: smooth;
font-family: "Roboto", serif;
font-style: normal;
}
#overlay {
color: white;
}
#overlay #top {
display: block;
position: fixed;
@ -19,15 +25,13 @@ body {
color: white;
}
#title, #time {
width:50%;
float:right;
text-align:left;
}
#time {
width:100%;
#title {
float: right;
width: 100%;
font-size: 1.9em;
text-align:center;
text-align: center;
}
@ -41,6 +45,7 @@ body {
background-color: #1F5E5F;
}
#overlay #bottom #menuBtn {
height: 100%;
width: 10%;
@ -48,7 +53,7 @@ body {
padding: 1px;
font-size: 1.5em;
border: 0;
border-radius: 3px;
border-radius: 0 8px 0 0;
color: white;
}
@ -57,7 +62,6 @@ body {
position: absolute;
top: 10%;
left: 1%;
background-color: lightseagreen;
right: 1%;
height: 80%;
}
@ -87,7 +91,7 @@ body {
#main {
display: grid;
height: 100%;
background-color: red;
grid-template-columns: repeat(3, calc(90% / 3));
grid-template-rows: repeat(2, calc(90% / 2));
grid-gap: 10% 5%;
@ -104,4 +108,20 @@ body {
background-color: black;
width: 100%;
height: 100%;
display: grid;
grid-template-columns: 100%;
grid-template-rows: repeat(3, calc(100% / 3));
grid-row-gap: 5%;
text-align: center;
border-radius: 30px 10px 30px;
}
.drink .thumbnail {
grid-column: span 1;
grid-row: span 2;
}
.drink .name {
grid-column: span 1;
grid-row: span 1;
font-size: 140%;
}