Skip to content

Commit

Permalink
Feature/#434 social links menu (#455)
Browse files Browse the repository at this point in the history
* Adds styles to replace social icon links in a menu with the icons and hidden text (still screen reader accessible)

* Compiles

* Squashed commit of the following:

commit 1eae31f
Author: Corey M Collins <coreymcollins@gmail.com>
Date:   Fri Jan 18 13:51:15 2019 -0600

    Feature/#429 replace hidden elements (#454)

    * Removes the CSS hiding aside post format post titles

    * Adds screen reader class if the post is an aside

    * Actually, just remove the whole screen reader thing

    * Compiles styles

* Compiles styles

* Squashed commit of the following:

commit 1eae31f
Author: Corey M Collins <coreymcollins@gmail.com>
Date:   Fri Jan 18 13:51:15 2019 -0600

    Feature/#429 replace hidden elements (#454)

    * Removes the CSS hiding aside post format post titles

    * Adds screen reader class if the post is an aside

    * Actually, just remove the whole screen reader thing

    * Compiles styles
  • Loading branch information
coreymcollins authored and Will Schmierer committed Jan 18, 2019
1 parent 1eae31f commit 29320d6
Showing 1 changed file with 28 additions and 0 deletions.
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

0 comments on commit 29320d6

Please sign in to comment.