Skip to content

Commit

Permalink
changed color of share icon
Browse files Browse the repository at this point in the history
  • Loading branch information
royalfig committed Jul 27, 2021
1 parent f7fbcdd commit 4e3a74a
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 24 deletions.
2 changes: 1 addition & 1 deletion assets/built/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smart",
"version": "1.2.2",
"version": "1.2.3",
"description": "An elegant Ghost theme",
"main": "index.js",
"engines": {
Expand Down
49 changes: 28 additions & 21 deletions src/scss/components/_share.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@
@use '../abstracts/variables';
@use '../abstracts/mixins';

%svg {
width: 2.5rem;
height: 2.5rem;
padding: 0.5rem;
border-radius: variables.$radius;
@include mixins.transition(background-color);

svg {
width: 100%;
height: 100%;
fill: transparent;
@include mixins.color-map(stroke, text2);
@include mixins.transition(stroke);
}

@media (min-width: variables.$laptop) {
width: 1.8rem;
height: 1.8rem;
padding: 0.36rem;
}
}

.sm-post-share-bar {
position: fixed;
bottom: 0;
Expand All @@ -27,29 +49,14 @@
}

&__link {
width: 2.5rem;
height: 2.5rem;
padding: 0.5rem;
border-radius: variables.$radius;
@include mixins.transition(background-color);

@extend %svg;
svg {
width: 100%;
height: 100%;
fill: transparent;
@include mixins.color-map(stroke, text2);
@include mixins.transition(stroke);
}

@media (min-width: variables.$laptop) {
width: 1.8rem;
height: 1.8rem;
padding: 0.36rem;
stroke: var(--secondary);
}
}

&__link--twitter {
@extend .sm-post-share-bar__link;
@extend %svg;

&:hover,
&:active {
Expand All @@ -61,7 +68,7 @@
}

&__link--facebook {
@extend .sm-post-share-bar__link;
@extend %svg;

&:hover,
&:active {
Expand All @@ -73,7 +80,7 @@
}

&__link--linkedin {
@extend .sm-post-share-bar__link;
@extend %svg;

&:hover,
&:active {
Expand All @@ -85,7 +92,7 @@
}

&__link--copy {
@extend .sm-post-share-bar__link;
@extend %svg;
&:hover,
&:active {
@include mixins.color-map(background-color, primary);
Expand Down
5 changes: 4 additions & 1 deletion src/scss/themes/_dracula_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
--four: #61740c;
--five: #c99618;
--gradient: linear-gradient(to right top, #02677e, hsl(201, 97%, 15%));
--title: var(--surface3);
--subtitle: var(--surface2);
}

// Dark Mode
Expand All @@ -40,6 +42,7 @@
--secondary: #ffb86c;
--four: #50fa7b;
--five: #f1fa8c;

--gradient: linear-gradient(to right top, #6272a4, hsl(201, 27%, 71%));
--title: var(--text);
--subtitle: var(--text4);
}

0 comments on commit 4e3a74a

Please sign in to comment.