-
Notifications
You must be signed in to change notification settings - Fork 1
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
Social Share #40
Labels
Milestone
Comments
Still need to add links |
Completed. Will add explanation soon. |
maa-wpansky
pushed a commit
that referenced
this issue
Mar 24, 2017
Explanation: socialShare.html<nav id="mobileNav">
<!-- mobile bar -->
<div class="container">
<div class="row" id="mobileNavBar">
<div class="col" id="mobileNavBars">
<i class="fa fa-share-alt" aria-hidden="true"></i>
</div>
</div>
</div>
<!-- mobile links -->
<div class="container">
<div class="row" id="mobileNavLinks">
<!-- Facebook -->
<!-- paulmolluzzo.github.io/simple_share_popups/ -->
<a target="_blank" OnClick="window.open(this.href,'targetWindow','toolbar=no,location=0,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=250'); return false;" class="facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A//thelunch.info/&title=THE+LUNCH+2017&description=Goodwill+Industries+of+Dallas,+Inc.’s+largest+annual+fundraising+event,+THE+LUNCH,+targets+Dallas’+top+chief+executives+and+influential+community+leaders.">
<div class="col">
<h6 class="facebook">Share</h6>
</div>
</a>
<!-- LinkedIn -->
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A//thelunch.info/&title=THE%20LUNCH%202017&summary=Goodwill%20Industries%20of%20Dallas,%20Inc.%E2%80%99s%20largest%20annual%20fundraising%20event,%20THE%20LUNCH,%20targets%20Dallas%E2%80%99%20top%20chief%20executives%20and%20influential%20community%20leaders.&source=" onclick="window.open(this.href, 'linkedinwindow','left=20,top=20,width=600,height=700,toolbar=0,resizable=1'); return false;" class="linkedin">
<div class="col">
<h6 class="linkedin">Post</h6>
</div>
</a>
<!-- Twitter -->
<a href="https://twitter.com/home?status=Check%20out%20this%20year's%20%23theLUNCH%20hosted%20by%20%40GoodwillDallas%20on%209/8/2017%20at%20the%20%40OmniDallas!" onclick="window.open(this.href, 'twitterwindow','left=20,top=20,width=600,height=300,toolbar=0,resizable=1'); return false;" class="tweet">
<div class="col">
<h6 class="tweet">Tweet</h6>
</div>
</a>
<!-- Email -->
<a href="mailto:?&subject=Hey, check out THE LUNCH 2017!&body=Goodwill%20Industries%20of%20Dallas,%20Inc.%E2%80%99s%20largest%20annual%20fundraising%20event,%20THE%20LUNCH,%20targets%20Dallas%E2%80%99%20top%20chief%20executives%20and%20influential%20community%20leaders." target="_blank" class="email">
<div class="col">
<h6 class="email">Email</h6>
</div>
</a>
</div>
</div>
</nav>
<div id="navFade" class="hidden"></div> _socialShare.scss// main: ../main.scss
$facebook: #3b5998;
$pinterest: #bd081c;
$linkedin: #008cc9;
$linkedin-alt: #8d6cab;
$twitter: #3cf;
$email: #bd081c;
#mobileNav {
display: block;
position: fixed;
bottom: -250px;
right: 0;
width: 50px;
border-radius: 20px 0 0 0;
overflow: hidden;
padding: 0;
z-index: 1;
background: $facebook;
transition: $ease-fast;
box-shadow: 0 0 9px rgba(0,0,0,.05);
z-index: 9999999999999;
cursor: pointer;
&:hover, &:focus {
background: lighten($facebook, 20%);
}
&.showMeMore {
bottom: -1px;
width: 150px;
border-radius: 0;
background: $black-light;
&:hover, &:focus {
background: lighten($black-light, 10%);
}
& #mobileNavBars {
& i {
left: 5px;
position: relative;
}
}
}
& .row {
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: space-between;
}
#mobileNavBar {
height: 50px;
#mobileNavDetails {
color: $white-off;
& p {
font-family: $ui;
line-height: 1;
margin-bottom: .15rem;
&:last-child {
margin-bottom: 0;
}
}
.mobileTitle {
font-size: .9rem;
text-transform: uppercase;
}
.mobileDetails {
font-size: .65rem;
}
}
}
#mobileNavLinks {
color: white;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
flex-direction: column;
flex-wrap: nowrap;
align-items: center;
justify-content: space-between;
height: 250px;
& .mobileRow {
background: $accent;
transition: 300ms ease-in-out;
&:hover, &:focus {
background: $accent-light;
}
}
& .mobileNavIcon {
align-items: center;
justify-content: center;
display: flex;
text-align: center;
}
& .fa {
font-size: 1.25rem;
}
& .mobileRow {
padding: 1.25rem 0;
border-bottom: 1px solid rgba(0,0,0,.35);
}
& .col-11, & .col-10 {
padding-left: 0;
}
& p {
font-size: .75rem;
font-family: $ui;
margin-bottom: 0;
}
& h6 {
margin-bottom: 0;
text-align: center;
position: relative;
right: -2px;
&:after {
font-family: "FontAwesome";
font-size: 1rem;
position: relative;
bottom: 0;
right: -10px;
}
&.facebook:after {
@extend h6:after;
content: "\f09a";
}
&.tweet:after {
@extend h6:after;
content: "\f099";
}
&.linkedin:after {
@extend h6:after;
content: "\f0e1";
}
&.email:after {
@extend h6:after;
content: "\f0e0";
}
}
& ul {
list-style-type: none;
padding: 0;
font-size: 1rem;
& li {
font-family: $ui;
padding: 9px 0;
margin: 9px 0;
& span {
font-size: 80%;
}
}
}
& a {
color: white;
height: 100%;
width: 100%;
display: flex;
align-items: center;
&:hover, &:focus {
text-decoration: none;
}
&.facebook {
background: $facebook;
&:hover, &:focus {
background: lighten($facebook, 20%);
}
}
&.tweet {
background: $twitter;
&:hover, &:focus {
background: lighten($twitter, 20%);
}
}
&.linkedin {
background: $linkedin-alt;
&:hover, &:focus {
background: lighten($linkedin-alt, 20%);
}
}
&.email {
background: $email;
&:hover, &:focus {
background: lighten($email, 20%);
}
}
}
} // end #mobileNavLinks
#mobileNavBars {
color: white;
font-size: 1.5rem;
text-align: center;
line-height: 0;
}
#mobileNavLogo {
display: none;
}
& img {
width: 135px;
position: relative;
left: -4px;
}
} // end mobileNav
#navFade {
overflow: hidden;
transition: 300ms ease-in-out;
&.hidden {
visibility: hidden;
content: "";
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
background: $primary-dark;
opacity: 0;
z-index: 99;
transition: 300ms ease-in-out;
}
&.visible {
content: "";
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100.99%;
background: $primary-dark;
opacity: .75;
z-index: 99;
transition: 300ms ease-in-out;
}
} lunch2017.js// #mobileNav controls
$(function() {
// open/close mobile nav
$("#mobileNavBar").on("click", function() {
if ($("#mobileNav").hasClass("showMeMore") == false) {
$("#mobileNav").addClass('showMeMore');
$("body").addClass('noscroll');
$("#mobileNavBars i").toggleClass('fa-share-alt fa-times');
$("#navFade").toggleClass('hidden visible');
} else {
$("#mobileNav").removeClass('showMeMore');
$("body").removeClass('noscroll');
$("#mobileNavBars i").toggleClass('fa-times fa-share-alt');
$("#navFade").toggleClass('visible hidden');
};
});
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Integrate a social share fixed-bottom position with a modal that offers share links to Facebook, LinkedIn, Twitter, and Email.
The text was updated successfully, but these errors were encountered: