Skip to content

Commit

Permalink
css fix progress completed for instagram and github icon
Browse files Browse the repository at this point in the history
  • Loading branch information
karkir0003 committed Dec 26, 2023
1 parent 7cb3667 commit 2b9b439
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 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
16 changes: 13 additions & 3 deletions 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;
height: 2.25rem;
display: flex;
height: 3rem;
line-height: 2.25rem;
text-align: center;
width: 2.25rem;
width: 3rem;
align-items: center;
justify-content: center;

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

.fa-icon {
font-size: 1rem; // Adjust the size of the icon as needed
//display: inline-flex; // Use flex to center the icon
//align-items: center;
//justify-content: center;
//height: 100%;
}
}
}
}
Expand Down

0 comments on commit 2b9b439

Please sign in to comment.