Rewrite social icons SCSS with a loop
This commit is contained in:
parent
9dce68d58a
commit
70462d0e16
@ -7,6 +7,10 @@
|
|||||||
- Disable copy button on invalid syntax highlighting blocks to avoid positioning issues.
|
- Disable copy button on invalid syntax highlighting blocks to avoid positioning issues.
|
||||||
- Fix typo for `fa-dribble` in `_utilities.scss`.
|
- Fix typo for `fa-dribble` in `_utilities.scss`.
|
||||||
|
|
||||||
|
### Documentation & Maintenance
|
||||||
|
|
||||||
|
- Rewrite social icons SCSS with a loop.
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
|
||||||
- Change the icon of a copy button into a tick for 1.5 seconds on successful copy.
|
- Change the icon of a copy button into a tick for 1.5 seconds on successful copy.
|
||||||
|
@ -211,118 +211,35 @@ body:hover .visually-hidden button {
|
|||||||
color: $text-color;
|
color: $text-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fa-behance,
|
@each $color, $icons in (
|
||||||
.fa-behance-square {
|
$behance-color: ".fa-behance, .fa-behance-square",
|
||||||
color: $behance-color;
|
$bitbucket-color: ".fa-bitbucket",
|
||||||
}
|
$dribbble-color: ".fa-dribbble, .fa-dribbble-square",
|
||||||
|
$facebook-color: ".fa-facebook, .fa-facebook-square, .fa-facebook-f",
|
||||||
.fa-bitbucket {
|
$flickr-color: ".fa-flickr",
|
||||||
color: $bitbucket-color;
|
$foursquare-color: ".fa-foursquare",
|
||||||
}
|
$github-color: ".fa-github, .fa-github-alt, .fa-github-square",
|
||||||
|
$gitlab-color: ".fa-gitlab",
|
||||||
.fa-dribbble,
|
$instagram-color: ".fa-instagram",
|
||||||
.fa-dribbble-square {
|
$keybase-color: ".fa-keybase",
|
||||||
color: $dribbble-color;
|
$lastfm-color: ".fa-lastfm, .fa-lastfm-square",
|
||||||
}
|
$linkedin-color: ".fa-linkedin, .fa-linkedin-in",
|
||||||
|
$mastodon-color: ".fa-mastodon, .fa-mastodon-square",
|
||||||
.fa-facebook,
|
$pinterest-color: ".fa-pinterest, .fa-pinterest-p, .fa-pinterest-square",
|
||||||
.fa-facebook-square,
|
$reddit-color: ".fa-reddit",
|
||||||
.fa-facebook-f {
|
$rss-color: ".fa-rss, .fa-rss-square",
|
||||||
color: $facebook-color;
|
$soundcloud-color: ".fa-soundcloud",
|
||||||
}
|
$stackoverflow-color: ".fa-stack-exchange, .fa-stack-overflow",
|
||||||
|
$tumblr-color: ".fa-tumblr, .fa-tumblr-square",
|
||||||
.fa-flickr {
|
$twitter-color: ".fa-twitter, .fa-twitter-square",
|
||||||
color: $flickr-color;
|
$vimeo-color: ".fa-vimeo, .fa-vimeo-square, .fa-vimeo-v",
|
||||||
}
|
$vine-color: ".fa-vine",
|
||||||
|
$xing-color: ".fa-xing, .fa-xing-square",
|
||||||
.fa-foursquare {
|
$youtube-color: ".fa-youtube",
|
||||||
color: $foursquare-color;
|
) {
|
||||||
}
|
#{$icons} {
|
||||||
|
color: $color;
|
||||||
.fa-github,
|
}
|
||||||
.fa-github-alt,
|
|
||||||
.fa-github-square {
|
|
||||||
color: $github-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-gitlab {
|
|
||||||
color: $gitlab-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-instagram {
|
|
||||||
color: $instagram-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-keybase {
|
|
||||||
color: $keybase-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-lastfm,
|
|
||||||
.fa-lastfm-square {
|
|
||||||
color: $lastfm-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-linkedin,
|
|
||||||
.fa-linkedin-in {
|
|
||||||
color: $linkedin-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-mastodon,
|
|
||||||
.fa-mastodon-square {
|
|
||||||
color: $mastodon-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-pinterest,
|
|
||||||
.fa-pinterest-p,
|
|
||||||
.fa-pinterest-square {
|
|
||||||
color: $pinterest-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-reddit {
|
|
||||||
color: $reddit-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-rss,
|
|
||||||
.fa-rss-square {
|
|
||||||
color: $rss-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-soundcloud {
|
|
||||||
color: $soundcloud-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-stack-exchange,
|
|
||||||
.fa-stack-overflow {
|
|
||||||
color: $stackoverflow-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-tumblr,
|
|
||||||
.fa-tumblr-square {
|
|
||||||
color: $tumblr-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-twitter,
|
|
||||||
.fa-twitter-square {
|
|
||||||
color: $twitter-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-vimeo,
|
|
||||||
.fa-vimeo-square,
|
|
||||||
.fa-vimeo-v {
|
|
||||||
color: $vimeo-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-vine {
|
|
||||||
color: $vine-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-youtube {
|
|
||||||
color: $youtube-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-xing,
|
|
||||||
.fa-xing-square {
|
|
||||||
color: $xing-color;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
gem "github-pages", group: :jekyll_plugins
|
gem "github-pages", group: :jekyll_plugins
|
||||||
|
gem "minimal-mistakes-jekyll", path: ".."
|
||||||
|
gem "rake"
|
||||||
|
|
||||||
gem "tzinfo-data"
|
gem "tzinfo-data"
|
||||||
gem "wdm", "~> 0.1.0" if Gem.win_platform?
|
gem "wdm", "~> 0.1.0" if Gem.win_platform?
|
||||||
|
5
docs/Rakefile
Normal file
5
docs/Rakefile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
task :default => %i[build]
|
||||||
|
|
||||||
|
task :build do
|
||||||
|
sh 'jekyll build --profile --trace --config _config.yml,_config.dev.yml'
|
||||||
|
end
|
@ -1,5 +1,7 @@
|
|||||||
# Develop override settings
|
# Develop override settings
|
||||||
|
|
||||||
|
theme: minimal-mistakes-jekyll
|
||||||
|
remote_theme: null
|
||||||
url: http://localhost:4000
|
url: http://localhost:4000
|
||||||
|
|
||||||
analytics:
|
analytics:
|
||||||
@ -10,4 +12,4 @@ comments:
|
|||||||
shortname : "mmistakes-dev"
|
shortname : "mmistakes-dev"
|
||||||
|
|
||||||
sass:
|
sass:
|
||||||
style: expanded
|
style: expanded
|
||||||
|
@ -5,7 +5,7 @@ permalink: "/docs/history/"
|
|||||||
excerpt: Change log of enhancements and bug fixes made to the theme.
|
excerpt: Change log of enhancements and bug fixes made to the theme.
|
||||||
sidebar:
|
sidebar:
|
||||||
nav: docs
|
nav: docs
|
||||||
last_modified_at: '2024-05-06T21:22:05+08:00'
|
last_modified_at: '2024-05-06T21:37:37+08:00'
|
||||||
toc: false
|
toc: false
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -22,6 +22,10 @@ toc: false
|
|||||||
- Disable copy button on invalid syntax highlighting blocks to avoid positioning issues.
|
- Disable copy button on invalid syntax highlighting blocks to avoid positioning issues.
|
||||||
- Fix typo for `fa-dribble` in `_utilities.scss`.
|
- Fix typo for `fa-dribble` in `_utilities.scss`.
|
||||||
|
|
||||||
|
### Documentation & Maintenance
|
||||||
|
|
||||||
|
- Rewrite social icons SCSS with a loop.
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
|
||||||
- Change the icon of a copy button into a tick for 1.5 seconds on successful copy.
|
- Change the icon of a copy button into a tick for 1.5 seconds on successful copy.
|
||||||
|
Loading…
Reference in New Issue
Block a user