webapp/src/components/_shared/Icon/Icon.module.scss

49 lines
814 B
SCSS
Raw Normal View History

2022-09-09 11:53:35 +00:00
.icon {
2022-10-31 19:05:26 +00:00
line-height: 1;
2022-09-09 11:53:35 +00:00
position: relative;
img {
width: 100%;
height: 100%;
2023-05-04 16:59:38 +00:00
display: block;
}
2022-09-09 11:53:35 +00:00
}
2024-02-07 16:54:52 +00:00
.invert {
filter: invert(100%);
}
.rotating {
/* Define the keyframes for the animation */
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* Apply the animation to the element */
animation: rotate .7s ease-out infinite; /* Rotate infinitely over 2 seconds using a linear timing function */
}
2022-11-13 10:36:44 +00:00
.notificationsCounter {
background-color: #d00820;
border: 2px solid #fff;
border-radius: 2em;
2022-09-09 11:53:35 +00:00
color: #fff;
font-size: 1rem;
font-weight: 700;
2022-11-13 10:36:44 +00:00
height: 1.6em;
left: 1.1em;
line-height: 1.25em;
padding: 0 0.25em;
2022-09-09 11:53:35 +00:00
position: absolute;
text-align: center;
top: -0.5rem;
2022-11-13 10:36:44 +00:00
min-width: 1.5em;
2022-09-09 11:53:35 +00:00
}