Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusted icon library styles #12

Merged
merged 1 commit into from
May 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/Icons/index.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {

export const AllIcons = () => (
<div className='icons-container'>
<h1>Basic Icons</h1>
<h1>{IconsConfig.basic.length} Basic Icons</h1>
<div className='icon-group'>
{IconsConfig.basic.map((v, i) => (
<div className='icon-block' key={i}>
Expand All @@ -19,7 +19,7 @@ export const AllIcons = () => (
</div>
))}
</div>
<h1>Outline Icons</h1>
<h1>{IconsConfig.outline.length} Outline Icons</h1>
<div className='icon-group'>
{IconsConfig.outline.map((v, i) => (
<div className='icon-block' key={i}>
Expand All @@ -28,7 +28,7 @@ export const AllIcons = () => (
</div>
))}
</div>
<h1>Filled Icons</h1>
<h1>{IconsConfig.filled.length} Filled Icons</h1>
<div className='icon-group'>
{IconsConfig.filled.map((v, i) => (
<div className='icon-block' key={i}>
Expand Down
31 changes: 26 additions & 5 deletions src/styles/stories.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import './colors.scss';

body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica,
Expand Down Expand Up @@ -64,25 +66,44 @@ body {
justify-content: center;
align-items: center;
text-align: center;
width: 150px;
height: 125px;
width: 125px;
margin: 15px;
border-radius: 25px;
padding: 12px 8px;
background-color: #fff;
transition-duration: 0.2s;
transition-duration: 0.4s;
box-shadow: 2px 2px 5px #eee;

* {
transition-duration: 0.2s;
}

i {
font-size: 42px !important;
color: $black !important;
}

&:hover {
background-color: #fff;
box-shadow: 2px 2px 20px #eee;
box-shadow: 4px 4px 50px #eee;
cursor: pointer;

i {
color: $primary !important;
}

.icon-name {
color: $primary;
}
}
}

.icon-name {
font-size: 14px;
color: $black;
font-size: 12px;
display: block;
margin-top: 5px;
margin-top: 15px;
font-weight: 100;
}
}