3 Commits
1.1.0 ... 1.2.2

2 changed files with 57 additions and 22 deletions

30
css/check.css Normal file
View File

@@ -0,0 +1,30 @@
@charset "UTF-8";
i.icon.check {
--width: 3em;
--height: 1.5em;
--up: 10px;
--down: 6px;
position: relative;
width: var(--width);
height: var(--height);
box-sizing: border-box;
display: block;
border-radius: 100px;
border: 2px solid transparent;
&::after {
position: absolute;
content: "";
top: -0.3em;
left: 0.4em;
width: var(--down);
height: var(--up);
box-sizing: border-box;
display: block;
border-width: 0 2px 2px 0;
border-style: solid;
transform-origin: bottom left;
transform: rotate(45deg);
}
}

View File

@@ -1,31 +1,36 @@
@charset "UTF-8";
i.icon.close {
--diameter: 22px;
box-sizing: border-box;
--diameter: 2em;
--size: 1.5em;
position: relative;
display: block;
width: 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;
position: absolute;
width: 16px;
height: 2px;
background: currentColor;
transform: rotate(45deg);
border-radius: 5px;
top: 8px;
left: 1px;
}
display: block;
border-radius: 40px;
border: 0.2em solid transparent;
i.icon.close::after {
transform: rotate(-45deg);
&: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);
}
}