-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename class .icon to .gblog-icon (#232)
BREAKING CHANGE: The class `.icon` was renamed to `.gblog-icon` to avoid conflicts.
- Loading branch information
Showing
14 changed files
with
50 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<div class="flex flex-wrap justify-center"> | ||
{{ range $key, $value := .Site.Data.sprites.geekblog }} | ||
{{ range $key, $value := .Site.Data.sprites.geekblog }} | ||
<div class="flex flex-grid icon-grid"> | ||
<div class="flex align-center justify-center icon-grid__line"> | ||
<svg class="icon {{ $key }}"><use xlink:href="#{{ $key }}"></use></svg> | ||
</div> | ||
<div class="flex align-center justify-center icon-grid__line icon-grid__line--text"> | ||
<span>#{{ (replace $key "_" "_<wbr>") | safeHTML }}</span> | ||
</div> | ||
<div class="flex align-center justify-center icon-grid__line"> | ||
<svg class="gblog-icon {{ $key }}"><use xlink:href="#{{ $key }}"></use></svg> | ||
</div> | ||
<div class="flex align-center justify-center icon-grid__line icon-grid__line--text"> | ||
<span>#{{ (replace $key "_" "_<wbr>") | safeHTML }}</span> | ||
</div> | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
height: 4rem; | ||
} | ||
|
||
.icon-grid__line .icon { | ||
.icon-grid__line svg.gblog-icon { | ||
font-size: 3em; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{{ $id := .Get 0 }} | ||
|
||
{{- with $id -}} | ||
<svg class="icon {{ . }}"><use xlink:href="#{{ . }}"></use></svg> | ||
<svg class="gblog-icon {{ . }}"><use xlink:href="#{{ . }}"></use></svg> | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters