aboutsummaryrefslogtreecommitdiff
path: root/sass/include/_icons.scss
diff options
context:
space:
mode:
authorJieiku2023-05-01 15:08:23 -0700
committerJieiku2023-05-22 22:49:42 -0700
commit6c5915c04659a992635742074b2ad92d3e97a9df (patch)
treed31cb3507154c55be0ce7156664849341e3a2909 /sass/include/_icons.scss
parent1010c41b8ac22e7e69177e0d02e034896fb9eadb (diff)
downloadabridge-6c5915c04659a992635742074b2ad92d3e97a9df.tar.gz
abridge-6c5915c04659a992635742074b2ad92d3e97a9df.tar.bz2
abridge-6c5915c04659a992635742074b2ad92d3e97a9df.zip
Replace import with use
Diffstat (limited to 'sass/include/_icons.scss')
-rw-r--r--sass/include/_icons.scss89
1 files changed, 45 insertions, 44 deletions
diff --git a/sass/include/_icons.scss b/sass/include/_icons.scss
index df0f5d3..511905d 100644
--- a/sass/include/_icons.scss
+++ b/sass/include/_icons.scss
@@ -7,10 +7,11 @@
* https://jakearchibald.github.io/svgomg/
* https://codepen.io/yoksel/pen/MWKeKK
*/
+@use "../variables" as variables;
@function icon($icon-name,$stroke,$stroke-width: 1,$fill:'none'){
$sc:"%23888";//stroke color
- @if $ic {
+ @if variables.$ic {
$sc: $stroke
}
$p: (
@@ -67,49 +68,49 @@
$icon: map-get($icons, $icon-name);
@return url("data:image/svg+xml,#{$icon}");
}
-@if $enable-icons {
- @if $icon-adjust {.adjust { -webkit-mask: icon(adjust, "none", 1, "%23000") ; background: var(--f2) }}//theme switcher
- @if $icon-angl {.angl { -webkit-mask: icon(angl, "%23000", 3, "none") ; background: var(--f2) }}//angle left
- @if $icon-angll {.angll { -webkit-mask: icon(angll, "%23000", 3, "none") ; background: var(--f2) }}//angle left left
- @if $icon-angr {.angr { -webkit-mask: icon(angr, "%23000", 3, "none") ; background: var(--f2) }}//angle right
- @if $icon-angrr {.angrr { -webkit-mask: icon(angrr, "%23000", 3, "none") ; background: var(--f2) }}//angle right right
- @if $icon-angu {.angu { -webkit-mask: icon(angu, "%23000", 3, "none") ; background: var(--f2) }}//angle up
- @if $icon-search {.search { -webkit-mask: icon(search, "%23000", 3, "none") ; background: var(--f2) }}//search
- @if $icon-bitbucket {.bitbucket { background-image: icon(bitbucket, "%2328f", 2, "none") }}
- @if $icon-buymeacoffee {.buymeacoffee { background-image: icon(buymeacoffee, "%23777", 1, "%23fd0") }}
- @if $icon-check {.check { background-image: icon(check, "%23888", 2, "none") }}
- @if $icon-chevron {.chevron { background-image: icon(chevron, "%23888", 2, "none") }}
- @if $icon-clock {.clock { background-image: icon(clock, "%23888", 2, "none") }}
- @if $icon-codeberg {.codeberg { background-image: icon(codeberg, "%23555", 2, "%23aaa") }}
- @if $icon-date {.date { background-image: icon(date, "%23888", 2, "none") }}
- @if $icon-discord {.discord { background-image: icon(discord, "none", 1, "%2356f") }}
- @if $icon-docker {.docker { background-image: icon(docker, "%2329e", 2, "none") }}
- @if $icon-element {.element { background-image: icon(element, "none", 1, "%231c8") }}
- @if $icon-facebook {.facebook { background-image: icon(facebook, "%23359", 2, "none") }}
- @if $icon-folder {.folder { background-image: icon(folder, "%23888", 2, "none") }}
- @if $icon-github {.github { background-image: icon(github, "%23888", 2, "none") }}
- @if $icon-github-sponsor {.github-sponsor { background-image: icon(github-sponsor, "%23c49", 2, "none") }}
- @if $icon-gitlab {.gitlab { background-image: icon(gitlab, "%23e62", 2, "none") }}
- @if $icon-globe {.globe { background-image: icon(globe, "%23888", 2, "none") }}
- @if $icon-home {.home { background-image: icon(home, "%23888", 2, "none") }}
- @if $icon-instagram {.instagram { background-image: icon(instagram, "%23e07", 2, "none") }}
- @if $icon-linkedin {.linkedin { background-image: icon(linkedin, "%2326a", 2, "none") }}
- @if $icon-mail {.mail { background-image: icon(mail, "%23888", 2, "none") }}
- @if $icon-mastodon {.mastodon { background-image: icon(mastodon, "none", 1, "%2328c") }}
- @if $icon-matrix {.matrix { background-image: icon(matrix, "%23888", 2, "none") }}
- @if $icon-minus {.minus { background-image: icon(minus, "%23888", 2, "none") }}
- @if $icon-moon {.moon { background-image: icon(moon, "%23888", 2, "none") }}
- @if $icon-pinterest {.pinterest { background-image: icon(pinterest, "%23b01", 2, "none") }}
- @if $icon-python {.python { background-image: icon(python, "%23fc1", 2, "%2326a") }}
- @if $icon-researchgate {.researchgate { background-image: icon(researchgate, "none", 2, "%230db") }}
- @if $icon-rss {.rss { background-image: icon(rss, "%23e94", 2, "none") }}
- @if $icon-stack {.stack { background-image: icon(stack, "%23e72", 2, "none") }}
- @if $icon-sun {.sun { background-image: icon(sun, "%23888", 2, "none") }}
- @if $icon-tag {.tag { background-image: icon(tag, "%23888", 2, "none") }}
- @if $icon-twitch {.twitch { background-image: icon(twitch, "%23a7f", 2, "none") }}
- @if $icon-twitter {.twitter { background-image: icon(twitter, "%232ad", 2, "none") }}
- @if $icon-x {.x { background-image: icon(x, "%23f00", 3, "none") }}
- @if $icon-youtube {.youtube { background-image: icon(youtube, "%23f00", 2, "none") }}
+@if variables.$enable-icons {
+ @if variables.$icon-adjust {.adjust { -webkit-mask: icon(adjust, "none", 1, "%23000") ; background: var(--f2) }}//theme switcher
+ @if variables.$icon-angl {.angl { -webkit-mask: icon(angl, "%23000", 3, "none") ; background: var(--f2) }}//angle left
+ @if variables.$icon-angll {.angll { -webkit-mask: icon(angll, "%23000", 3, "none") ; background: var(--f2) }}//angle left left
+ @if variables.$icon-angr {.angr { -webkit-mask: icon(angr, "%23000", 3, "none") ; background: var(--f2) }}//angle right
+ @if variables.$icon-angrr {.angrr { -webkit-mask: icon(angrr, "%23000", 3, "none") ; background: var(--f2) }}//angle right right
+ @if variables.$icon-angu {.angu { -webkit-mask: icon(angu, "%23000", 3, "none") ; background: var(--f2) }}//angle up
+ @if variables.$icon-search {.search { -webkit-mask: icon(search, "%23000", 3, "none") ; background: var(--f2) }}//search
+ @if variables.$icon-bitbucket {.bitbucket { background-image: icon(bitbucket, "%2328f", 2, "none") }}
+ @if variables.$icon-buymeacoffee {.buymeacoffee { background-image: icon(buymeacoffee, "%23777", 1, "%23fd0") }}
+ @if variables.$icon-check {.check { background-image: icon(check, "%23888", 2, "none") }}
+ @if variables.$icon-chevron {.chevron { background-image: icon(chevron, "%23888", 2, "none") }}
+ @if variables.$icon-clock {.clock { background-image: icon(clock, "%23888", 2, "none") }}
+ @if variables.$icon-codeberg {.codeberg { background-image: icon(codeberg, "%23555", 2, "%23aaa") }}
+ @if variables.$icon-date {.date { background-image: icon(date, "%23888", 2, "none") }}
+ @if variables.$icon-discord {.discord { background-image: icon(discord, "none", 1, "%2356f") }}
+ @if variables.$icon-docker {.docker { background-image: icon(docker, "%2329e", 2, "none") }}
+ @if variables.$icon-element {.element { background-image: icon(element, "none", 1, "%231c8") }}
+ @if variables.$icon-facebook {.facebook { background-image: icon(facebook, "%23359", 2, "none") }}
+ @if variables.$icon-folder {.folder { background-image: icon(folder, "%23888", 2, "none") }}
+ @if variables.$icon-github {.github { background-image: icon(github, "%23888", 2, "none") }}
+ @if variables.$icon-github-sponsor {.github-sponsor { background-image: icon(github-sponsor, "%23c49", 2, "none") }}
+ @if variables.$icon-gitlab {.gitlab { background-image: icon(gitlab, "%23e62", 2, "none") }}
+ @if variables.$icon-globe {.globe { background-image: icon(globe, "%23888", 2, "none") }}
+ @if variables.$icon-home {.home { background-image: icon(home, "%23888", 2, "none") }}
+ @if variables.$icon-instagram {.instagram { background-image: icon(instagram, "%23e07", 2, "none") }}
+ @if variables.$icon-linkedin {.linkedin { background-image: icon(linkedin, "%2326a", 2, "none") }}
+ @if variables.$icon-mail {.mail { background-image: icon(mail, "%23888", 2, "none") }}
+ @if variables.$icon-mastodon {.mastodon { background-image: icon(mastodon, "none", 1, "%2328c") }}
+ @if variables.$icon-matrix {.matrix { background-image: icon(matrix, "%23888", 2, "none") }}
+ @if variables.$icon-minus {.minus { background-image: icon(minus, "%23888", 2, "none") }}
+ @if variables.$icon-moon {.moon { background-image: icon(moon, "%23888", 2, "none") }}
+ @if variables.$icon-pinterest {.pinterest { background-image: icon(pinterest, "%23b01", 2, "none") }}
+ @if variables.$icon-python {.python { background-image: icon(python, "%23fc1", 2, "%2326a") }}
+ @if variables.$icon-researchgate {.researchgate { background-image: icon(researchgate, "none", 2, "%230db") }}
+ @if variables.$icon-rss {.rss { background-image: icon(rss, "%23e94", 2, "none") }}
+ @if variables.$icon-stack {.stack { background-image: icon(stack, "%23e72", 2, "none") }}
+ @if variables.$icon-sun {.sun { background-image: icon(sun, "%23888", 2, "none") }}
+ @if variables.$icon-tag {.tag { background-image: icon(tag, "%23888", 2, "none") }}
+ @if variables.$icon-twitch {.twitch { background-image: icon(twitch, "%23a7f", 2, "none") }}
+ @if variables.$icon-twitter {.twitter { background-image: icon(twitter, "%232ad", 2, "none") }}
+ @if variables.$icon-x {.x { background-image: icon(x, "%23f00", 3, "none") }}
+ @if variables.$icon-youtube {.youtube { background-image: icon(youtube, "%23f00", 2, "none") }}
.svg {
width: 1.8rem;
height: 1.8rem;