world-game/src/styles/buttons.css

54 lines
1 KiB
CSS
Raw Normal View History

/* Button */
.button {
width: 14vmax;
min-width: 130px;
display: flex;
align-items: center;
justify-content: center;
position: sticky;
z-index: 1;
padding: 12px 16px;
transition: 0.5s ease-out;
font-family: "Danzza Bold";
background-color: var(--color-primary);
border: none;
cursor: pointer;
}
.button:hover {
background-position: left;
background-color: transparent;
outline: solid 2px var(--color-primary);
}
.button p {
color: black;
margin: 0;
transition: color 0.3s;
}
.button:hover p {
color: var(--color-primary) !important;
}
.earth-icon {
width: 24px;
height: 24px;
background-image: url('/assets/img/icon-earth-green.png');
background-size: contain;
background-repeat: no-repeat;
background-position: center;
margin-right: 8px;
transition: filter 0.3s;
}
.button:hover .earth-icon {
filter: brightness(0) saturate(100%) invert(77%) sepia(82%) saturate(507%) hue-rotate(91deg) brightness(101%) contrast(97%);
}
/* Clickable elements */
.clickable {
cursor: pointer;
user-select: none;
}