2 Commits
1.2.0 ... 1.2.2

Author SHA1 Message Date
9c4fbaeaa2 check.css improvement 2025-11-23 23:19:28 +07:00
8a83e90369 close.css improvements 2025-11-23 23:03:02 +07:00
2 changed files with 37 additions and 28 deletions

View File

@@ -1,9 +1,13 @@
@charset "UTF-8"; @charset "UTF-8";
i.icon.check { i.icon.check {
--width: 3em;
--height: 1.5em;
--up: 10px;
--down: 6px;
position: relative; position: relative;
width: 22px; width: var(--width);
height: 22px; height: var(--height);
box-sizing: border-box; box-sizing: border-box;
display: block; display: block;
border-radius: 100px; border-radius: 100px;
@@ -12,10 +16,10 @@ i.icon.check {
&::after { &::after {
position: absolute; position: absolute;
content: ""; content: "";
top: -1px; top: -0.3em;
left: 3px; left: 0.4em;
width: 6px; width: var(--down);
height: 10px; height: var(--up);
box-sizing: border-box; box-sizing: border-box;
display: block; display: block;
border-width: 0 2px 2px 0; border-width: 0 2px 2px 0;

View File

@@ -1,31 +1,36 @@
@charset "UTF-8"; @charset "UTF-8";
i.icon.close { i.icon.close {
--diameter: 22px; --diameter: 2em;
box-sizing: border-box; --size: 1.5em;
position: relative; position: relative;
display: block;
width: var(--diameter); width: var(--diameter);
height: var(--diameter); height: var(--diameter);
border: 2px solid transparent;
border-radius: 40px;
}
i.icon.close::after,
i.icon.close::before {
content: "";
display: block;
box-sizing: border-box; box-sizing: border-box;
position: absolute; display: block;
width: 16px; border-radius: 40px;
height: 2px; border: 0.2em solid transparent;
background: currentColor;
transform: rotate(45deg);
border-radius: 5px;
top: 8px;
left: 1px;
}
i.icon.close::after { &:is(.small) {
--size: 1.2em;
}
&::after,
&::before {
top: 0.7em;
left: 0.2em;
position: absolute;
content: "";
width: var(--size, 1.5em);
height: 2px;
box-sizing: border-box;
display: block;
border-radius: 5px;
background-color: currentColor;
transform: rotate(45deg);
}
&::after {
transform: rotate(-45deg); transform: rotate(-45deg);
}
} }