"a few changes"
Took 6 hours 57 minutes
This commit is contained in:
143
server/public/stylesheets/main.css
Normal file
143
server/public/stylesheets/main.css
Normal file
@ -0,0 +1,143 @@
|
||||
#main::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
#main {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, calc(90% / 3));
|
||||
grid-template-rows: repeat(2, calc(90% / 2));
|
||||
grid-gap: 9% 5.5%;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
|
||||
#main .drink {
|
||||
grid-row: span 1;
|
||||
grid-column: span 1;
|
||||
background-color: rgba(57, 57, 57, 0.6);
|
||||
width: 95%;
|
||||
height: 97%;
|
||||
display: grid;
|
||||
grid-template-columns: 100%;
|
||||
grid-template-rows: repeat(3, calc(100% / 3));
|
||||
grid-row-gap: 3%;
|
||||
text-align: center;
|
||||
border-radius: 30px 10px 30px;
|
||||
color: white;
|
||||
/*box-shadow: 3px 3px 3px;*/
|
||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3), 0 6px 20px 0 rgba(0, 0, 0, 0.29);
|
||||
transition: 0.4s;
|
||||
overflow: hidden;
|
||||
padding-bottom: 1%;
|
||||
}
|
||||
|
||||
|
||||
#main .drink:hover {
|
||||
background-color: rgba(22, 67, 113, 0.8);
|
||||
/*width: 100%;
|
||||
height: 100%;*/
|
||||
}
|
||||
|
||||
|
||||
.drink .thumbnail {
|
||||
grid-column: span 1;
|
||||
grid-row: span 2;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-height: 99%;
|
||||
overflow: hidden;
|
||||
transition: 0.5s;
|
||||
margin-top: 1%;
|
||||
}
|
||||
|
||||
|
||||
.drink .drinkName {
|
||||
font-family: Raleway, sans-serif;
|
||||
grid-column: span 1;
|
||||
grid-row: span 1;
|
||||
font-size: 150%;
|
||||
margin-top: 1%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* Water animation */
|
||||
body {
|
||||
margin: 50px;
|
||||
}
|
||||
|
||||
.water {
|
||||
position: relative;
|
||||
width: 130px;
|
||||
height: 150px;
|
||||
background-color: #23417B;
|
||||
box-shadow: inset 0 0 80px #18566D;
|
||||
clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
|
||||
--fillTime: 45s;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: auto 83%;
|
||||
margin: auto auto 2%;
|
||||
color:white;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
.water::before {
|
||||
content: "";
|
||||
width: 200%;
|
||||
height: 200%;
|
||||
background-color: #ececec;
|
||||
position: absolute;
|
||||
top: -90%;
|
||||
left: -50%;
|
||||
border-radius: 40%;
|
||||
animation: animWater 7s linear infinite, animFillIn var(--fillTime) linear forwards;
|
||||
}
|
||||
|
||||
.water::after {
|
||||
content: "";
|
||||
width: 204%;
|
||||
height: 204%;
|
||||
background-color: #ececec80;
|
||||
position: absolute;
|
||||
top: -100%;
|
||||
left: -52%;
|
||||
border-radius: 40%;
|
||||
animation: animWater 7s linear infinite, animFillIn var(--fillTime) linear forwards;
|
||||
animation-delay: 0.4s;
|
||||
}
|
||||
|
||||
.waterCancel {
|
||||
background-color: red;
|
||||
transition: background-color 1s;
|
||||
}
|
||||
|
||||
.waterFinished {
|
||||
background-color: green;
|
||||
transition: background-color 2s;
|
||||
}
|
||||
|
||||
@keyframes animFillIn {
|
||||
0% {
|
||||
top: -100%;
|
||||
}
|
||||
100% {
|
||||
top: -188%;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes animWater {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
#main_fillTxt {
|
||||
margin-bottom: 1.3%;
|
||||
margin-top:1.2%;
|
||||
}
|
Reference in New Issue
Block a user