$arrow-size: .35em;
@mixin arrow {
display: inline-flex;
border: currentColor solid $arrow-size;
}
.arrow-up {
@include arrow;
border-top: 0;
border-right-color: transparent;
border-left-color: transparent;
vertical-align: calc(#{$arrow-size} / 2);
}
.arrow-down {
@include arrow;
border-bottom: 0;
border-right-color: transparent;
border-left-color: transparent;
vertical-align: calc(#{$arrow-size} / 2);
}
.arrow-left {
@include arrow;
border-left: 0;
border-top-color: transparent;
border-bottom-color: transparent;
vertical-align: baseline;
}
.arrow-right {
@include arrow;
border-right: 0;
border-top-color: transparent;
border-bottom-color: transparent;
vertical-align: baseline;
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Quicksilver0218/SCSS-Arrow
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published