soapbox/app/styles/components/icon.scss

62 wiersze
1002 B
SCSS
Czysty Zwykły widok Historia

2021-09-12 23:54:38 +00:00
.svg-icon {
width: 16px;
height: 16px;
display: flex;
align-items: center;
justify-content: center;
transition: 0.2s;
2021-09-12 23:54:38 +00:00
2021-09-21 02:13:22 +00:00
svg {
2021-09-20 20:33:28 +00:00
// Apparently this won't skew the image as long as it has a viewbox
width: 100%;
height: 100%;
transition: 0.2s;
2021-09-12 23:54:38 +00:00
}
2021-09-21 02:13:22 +00:00
&--active {
2021-10-05 22:58:25 +00:00
&.svg-icon--home svg {
fill: currentColor;
}
svg.icon-tabler-search,
svg.icon-tabler-code {
2021-10-05 18:29:52 +00:00
stroke-width: 2.3px;
2021-09-21 02:13:22 +00:00
}
2021-09-21 03:50:47 +00:00
svg.icon-tabler-bell,
svg.icon-tabler-messages {
2021-09-21 02:13:22 +00:00
path:nth-child(2) {
fill: currentColor;
2021-09-21 02:13:22 +00:00
}
}
2021-09-21 03:50:47 +00:00
svg.icon-tabler-users {
2021-09-21 02:13:22 +00:00
circle,
circle + path {
fill: currentColor;
2021-09-21 02:13:22 +00:00
}
}
svg.icon-tabler-mail {
stroke: var(--background-color);
rect {
fill: currentColor;
stroke: currentColor;
}
}
2021-09-21 02:13:22 +00:00
}
&--unread {
svg.icon-tabler-bell {
transform: rotate(45deg);
}
}
2021-09-12 23:54:38 +00:00
}
.icon-button > div {
display: flex;
align-items: center;
justify-content: center;
}