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

Feature/#434 social links menu #455

Merged
merged 5 commits into from
Jan 18, 2019
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
8 changes: 0 additions & 8 deletions assets/sass/modules/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,6 @@
} // a
} // .edit-link

//-----------------------------------------
// Asides
//-----------------------------------------
.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
display: none;
} // .blog .format-aside .entry-title, .archive .format-aside .entry-title

// Content blocks.
.content-block {
@include clearfix;
Expand Down
28 changes: 28 additions & 0 deletions assets/sass/modules/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,34 @@
} // .social-icon
} // .social-icons

//--------------------------------------------------------------
// Replace Text With Icons
//--------------------------------------------------------------
$social-sites: facebook instagram linkedin twitter;

.menu {

a {
// Set the background image for each social network.
@each $network in $social-sites {
&[href*='#{$network}'] {
@include size(rem(30));

background: url('assets/images/svg-icons/#{$network}-square.svg') no-repeat center center transparent;
background-size: rem(30);
display: block;
text-indent: rem(-999999);

@include media($tablet-portrait) {
@include size(rem(19));

background-size: rem(19);
}
}
}
}
} // .menu

//-----------------------------------------
// Close icon
//-----------------------------------------
Expand Down
7 changes: 1 addition & 6 deletions style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion style.min.css

Large diffs are not rendered by default.