Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9c4fbaeaa2 | |||
| 8a83e90369 |
@@ -1,9 +1,13 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
i.icon.check {
|
||||
--width: 3em;
|
||||
--height: 1.5em;
|
||||
--up: 10px;
|
||||
--down: 6px;
|
||||
position: relative;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
width: var(--width);
|
||||
height: var(--height);
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
border-radius: 100px;
|
||||
@@ -12,10 +16,10 @@ i.icon.check {
|
||||
&::after {
|
||||
position: absolute;
|
||||
content: "";
|
||||
top: -1px;
|
||||
left: 3px;
|
||||
width: 6px;
|
||||
height: 10px;
|
||||
top: -0.3em;
|
||||
left: 0.4em;
|
||||
width: var(--down);
|
||||
height: var(--up);
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
border-width: 0 2px 2px 0;
|
||||
|
||||
@@ -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;
|
||||
|
||||
&:is(.small) {
|
||||
--size: 1.2em;
|
||||
}
|
||||
|
||||
i.icon.close::after {
|
||||
&::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