Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8a83e90369 | |||
| ac7b707ebd |
26
css/check.css
Normal file
26
css/check.css
Normal file
@@ -0,0 +1,26 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
i.icon.check {
|
||||
position: relative;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
border-radius: 100px;
|
||||
border: 2px solid transparent;
|
||||
|
||||
&::after {
|
||||
position: absolute;
|
||||
content: "";
|
||||
top: -1px;
|
||||
left: 3px;
|
||||
width: 6px;
|
||||
height: 10px;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
border-width: 0 2px 2px 0;
|
||||
border-style: solid;
|
||||
transform-origin: bottom left;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user