Skip to content

Commit

Permalink
Icon CSS Fix Attempt (#13)
Browse files Browse the repository at this point in the history
Improve alignment + icon size for gem icon + socials icon in
`components/articles/Contact.js`
  • Loading branch information
karkir0003 authored Dec 26, 2023
1 parent 7cb3667 commit 4fcf57d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
8 changes: 4 additions & 4 deletions components/articles/Contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ const Contact = () => {
</form>
<ul className="icons">
<li><a href="#">
<FontAwesomeIcon icon={faTwitter} />
<FontAwesomeIcon className="fa-icon" icon={faTwitter} />
</a></li>
<li><a href="#">
<FontAwesomeIcon icon={faFacebook} />
<FontAwesomeIcon className="fa-icon" icon={faFacebook} />
</a></li>
<li><a href="#">
<FontAwesomeIcon icon={faInstagram} />
<FontAwesomeIcon className="fa-icon" icon={faInstagram} />
</a></li>
<li><a href="#">
<FontAwesomeIcon icon={faGithub} />
<FontAwesomeIcon className="fa-icon" icon={faGithub} />
</a></li>
</ul>
</>
Expand Down
2 changes: 1 addition & 1 deletion styles/base/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
border-left: solid (_size(border-width) * 4) _palette(border);
font-style: italic;
margin: 0 0 _size(element-margin) 0;
padding: (_size(element-margin) / 4) 0 (_size(element-margin) / 4) _size(element-margin);
padding: calc(_size(element-margin) / 4) 0 calc(_size(element-margin) / 4) _size(element-margin);
}

code {
Expand Down
8 changes: 7 additions & 1 deletion styles/components/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@
a {
border-radius: 100%;
box-shadow: inset 0 0 0 _size(border-width) _palette(border);
display: inline-block;
display: inline-flex;
height: 2.25rem;
line-height: 2.25rem;
text-align: center;
width: 2.25rem;
align-items: center;
justify-content: center;

&:hover {
background-color: _palette(border-bg);
Expand All @@ -69,6 +71,10 @@
&:active {
background-color: _palette(border-bg-alt);
}

.fa-icon {
font-size: 1.5rem; // Adjust the size of the icon as needed
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions styles/libs/_skel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/// Breakpoints.
/// @var {list}
$breakpoints: () !global;
$breakpoints: ();

/// Vendor prefixes.
/// @var {list}
Expand Down Expand Up @@ -573,7 +573,7 @@
}

// Expand just the value?
@elseif $expandValue {
@else if $expandValue {
@each $vendor in $vendor-prefixes {
#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
}
Expand Down

0 comments on commit 4fcf57d

Please sign in to comment.