Explorer
project
img
index.html
script.js
style.css
Dependencies
Bootcamp
Study group
Collaborate with peers in your dedicated #study-group channel.
Code reviews
Submit projects for review using the /review
command in your #code-reviews channel
body {
background-color: #ffb343;
color: #fff;
margin: 0;
font-family: 'ZCOOL KuaiLe', cursive;
}
/* menu_container */
.menu_container {
width: 100%;
width: 350px;
height: 420px;
background-image: url('img/menu.jpg');
background-repeat: no-repeat;
background-size: contain;
margin: 1em;
display: flex;
align-items: center;
justify-content: center;
}
.btn-ordrer {
display: flex;
flex-direction: column;
justify-content: center;
margin-top: 5em;
margin-bottom: 0;
}
.btn {
margin: 0.7em;
padding: 0.5em;
border-radius: 8px;
border: 4px solid #D68200;
font-family: 'ZCOOL KuaiLe', cursive;
letter-spacing: 1.5px;
font-weight: 400;
text-transform: uppercase;
font-size: 1.3rem;
color: #fff;
background-color: #242424;
}
.btn:hover,
.btn:focus {
cursor: pointer;
border: 4px solid #346A20;
}
/* menu_container END */
.coffee_container,
.desserts_container,
.calculator_container,
.bill_container {
width: 100%;
width: 350px;
height: 396px;
background-image: url('img/menu-new.jpg');
background-repeat: no-repeat;
background-size:contain;
margin: 1em;
padding-top: 1.5em;
display: none;
font-family: 'ZCOOL KuaiLe', cursive;
}
.coffee-title,
.desserts-title,
.calculator-title,
.bill-title {
font-size: 2.5rem;
letter-spacing: 2px;
margin: 0 auto;
text-align: center;
font-family: 'Ruslan Display', cursive;
font-weight: 900;
color: #D68200;
}
.calculator-title {
font-size: 2rem;
}
.result strong {
color: #4D9431;
font-weight: 900;
font-size: 1.2rem;
}
.coffee-list,
.desserts-list {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 1.5em;
font-size: 1.4rem;
font-weight: 300;
}
.coffee-items,
.coffee-prices,
.desserts-items,
.desserts-prices {
display: flex;
flex-direction: column;
}
.coffee-prices,
.desserts-prices {
color: #4D9431;
font-weight: 900;
}
.coffee-item,
.coffee-price,
.desserts-item,
.desserts-price {
margin: 0.6em 0;
}
.coffee-item:visited,
.desserts-item:visited, {
color: #346A20;
}
.coffee-item:hover,
.desserts-item:hover,
.coffee-item:focus,
.desserts-item:focus {
cursor: pointer;
color: #D68200;
}
.coffee-item:active,
.desserts-item:active {
color: #4D9431;
}
.btn-back {
display: flex;
justify-content: space-between;
margin: 1em 1.5em;
font-family: 'ZCOOL KuaiLe', cursive;
}
.btns {
border-radius: 5px;
border: 2px solid #D68200;
padding: 0.4em 0.9em;
font-size: 1rem;
text-transform: uppercase;
font-weight: 300;
color: white;
background-color: #242424;
font-family: 'ZCOOL KuaiLe', cursive;
}
.btns:hover {
cursor: pointer;
border: 2px solid #346A20;
}
/* calculator_container */
.form_control {
margin: 0.6em 0;
padding: 0 2em;
color: #fff;
font-size: 1.2rem;
}
.bill_container .form_control {
color: #fff;
}
.form_control input {
padding: 0.25rem;
width: 100%;
border-radius: 5px;
border: none;
color: #D68200;
font-weight: 700;
}
.bill_container .form_control input {
color: #D68200;
border: none;
}
.bill-number {
color: #BF8505;
}
.form_control label {
display: block;
margin-bottom: 0.3em;
}
.result {
display: flex;
justify-content: space-between;
padding: 0 2em;
color: #BF8505;
font-weight: 700;
font-size: 1.2rem;
}
.bill_container .result {
color: #D68200;
}
.result-bill {
margin-top: 0.6em;
font-size: 1.3rem;
}
.bill_container .result strong {
color: #4D9431;
}
.calculator_container .btn-back {
display: block;
margin: 0.7em 5.9em;
}
.bill_container .btn-back {
margin: 2em 5.9em;
}
/* calculator_container END */
/* info */
.main_container {
display: flex;
justify-content: space-around;
position: relative;
}
.main_container_desserts,
.main_container_coffee {
width: 100%;
max-width: 240px;
height: 220px;
display: flex;
flex-direction: column;
position: absolute;
left: 5%;
top: 1em;
font-size: 1.2rem;
color: #242424;
letter-spacing: 0.6px;
line-height: 1.4em;
margin-top: 1.3em;
}
.main_container_coffee {
left: 70%;
}
.image-desserts,
.image-coffee {
width: 100%;
object-fit: contain;
height: 160px;
}
.text-desserts,
.text-coffee {
border: 2px solid #fff;
border-radius: 10px;
text-align: center;
padding: 0.4em 0.7em;
}
.main_container_desserts,
.main_container_coffee {
display: none;
}
/* info END */