-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Add grid overlay to single view of icons
- Loading branch information
1 parent
db2cdb7
commit b1c0ba7
Showing
3 changed files
with
66 additions
and
0 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,5 +1,6 @@ | ||
@import 'docs/variables'; | ||
@import 'docs/sidebar'; | ||
@import 'docs/icongrid'; | ||
@import 'docs/iconstage'; | ||
@import 'docs/preview'; | ||
@import 'docs/misc'; |
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// | ||
// Iconstage | ||
// | ||
.iconstage { | ||
--iconstage-icon-size: 256px; | ||
--iconstage-gutter-width: calc(var(--iconstage-icon-size) / var(--iconstage-icon-base-size, 16)); | ||
--iconstage-gutter-color: #000000; | ||
--iconstage-border-color: #cacaca; | ||
--iconstage-border-radius: 5px; | ||
|
||
position: relative; | ||
border: 1px solid var(--iconstage-border-color); | ||
border-radius: var(--iconstage-border-radius); | ||
padding-top: 2rem; | ||
padding-bottom: 2rem; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
&:after { | ||
position: absolute; | ||
display: block; | ||
content: ''; | ||
height: 100%; | ||
width: 100%; | ||
top: 0; | ||
left: 0; | ||
opacity: .25; | ||
background-image: | ||
linear-gradient( | ||
0deg, | ||
var(--iconstage-gutter-color), | ||
transparent 1px, | ||
transparent | ||
), | ||
linear-gradient( | ||
90deg, | ||
var(--iconstage-gutter-color), | ||
transparent 1px, | ||
transparent | ||
); | ||
background-size: var(--iconstage-gutter-width) var(--iconstage-gutter-width); | ||
background-position: calc(50% + (var(--iconstage-gutter-width) / 2)) calc(50% + (var(--iconstage-gutter-width) / 2)); | ||
} | ||
} | ||
.iconstage-icon { | ||
font-size: var(--iconstage-icon-size); | ||
height: var(--iconstage-icon-size); | ||
width: var(--iconstage-icon-size); | ||
line-height: 1; | ||
} |
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