118 lines
2.4 KiB
CSS
118 lines
2.4 KiB
CSS
.button-grid {
|
|
display: grid;
|
|
grid-template-columns: 4fr 4fr 4fr;
|
|
grid-template-rows: 4fr 4fr;
|
|
grid-gap: 4fr;
|
|
}
|
|
|
|
.button-restourant {
|
|
display: grid;
|
|
grid-template-columns: 4fr 4fr 4fr;
|
|
grid-template-rows: 4fr;
|
|
grid-gap: 4fr;
|
|
}
|
|
|
|
|
|
.image-button {
|
|
width: calc(10vw * var(--sizeButton));
|
|
height: calc(10vw * var(--sizeButton));
|
|
|
|
border: none;
|
|
background-size: cover;
|
|
border-radius: calc(0.3vw * var(--sizeButton));
|
|
}
|
|
|
|
.image-button:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.image-button:active .overlay {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.headerButton-grid {
|
|
display: grid;
|
|
grid-template-columns: auto auto auto auto auto;
|
|
}
|
|
|
|
:root {
|
|
--sizeButton: 1.5;
|
|
}
|
|
|
|
@media screen and (min-width: 1820px) {
|
|
.image-button {
|
|
width: 200px;
|
|
height: 200px;
|
|
|
|
border: none;
|
|
background-size: cover;
|
|
border-radius: calc(0.3vw * var(--sizeButton));
|
|
}
|
|
}
|
|
|
|
|
|
@media screen and (max-width: 1100px) {
|
|
:root {
|
|
--sizeButton: 4;
|
|
}
|
|
|
|
.button-grid {
|
|
display: grid;
|
|
display: grid;
|
|
grid-template-columns: 4fr 4fr;
|
|
grid-template-rows: 4fr 4fr;
|
|
grid-gap: 4fr;
|
|
}
|
|
|
|
.button-restourant {
|
|
display: grid;
|
|
grid-template-columns: 4fr 4fr;
|
|
grid-template-rows: 4fr;
|
|
grid-gap: 4fr;
|
|
}
|
|
|
|
.hidingRestourants {
|
|
Display: none;
|
|
}
|
|
}
|
|
|
|
|
|
@media screen and (max-width: 920px) {
|
|
:root {
|
|
--sizeButton: 4;
|
|
}
|
|
|
|
.hidingMenu {
|
|
Display: none;
|
|
}
|
|
|
|
.headerButton-grid {
|
|
display: grid;
|
|
grid-template-columns: auto;
|
|
|
|
text-align: center;
|
|
}
|
|
|
|
.button-grid {
|
|
display: grid;
|
|
grid-template-columns: 4fr 4fr;
|
|
grid-template-rows: 4fr 4fr;
|
|
grid-gap: 4fr;
|
|
}
|
|
|
|
.button-restourant {
|
|
display: grid;
|
|
grid-template-columns: 4fr 4fr;
|
|
grid-template-rows: 4fr;
|
|
grid-gap: 4fr;
|
|
}
|
|
} |