Files
Site_Vologda/site/style/buttonStyle.css
Петухова Ростислава 648dba0a50 Version 1
2023-10-31 17:55:16 +03:00

44 lines
1.1 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.button-grid {
display: grid;
display: grid;
grid-template-columns: 2fr 0.1fr 2fr;
grid-template-rows: calc(11vw * var(--sizeButton)) calc(11vw * var(--sizeButton)) calc(11vw * var(--sizeButton));
grid-gap: calc(2vw * var(--sizeButton));
}
.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); /* Настройка цвета и прозрачности для блока с заголовком */
}
:root {
--sizeButton: 1;
}
@media screen and (max-width: 980px) {
:root {
--sizeButton: 2;
}
}