Improve social follow popover button

This commit is contained in:
Michael Rose
2016-03-21 00:03:46 -04:00
parent abb89f7eb6
commit a2a4f84580
6 changed files with 83 additions and 50 deletions

View File

@ -107,16 +107,24 @@
}
}
.author__urls_wrapper {
.author__urls-wrapper {
position: relative;
display: table-cell;
vertical-align: top;
vertical-align: middle;
font-family: $sans-serif;
z-index: 9999;
position: relative;
cursor: pointer;
@include breakpoint($large) {
display: block;
}
&:hover .author__urls {
display: block;
.btn {
margin: 0;
padding: 5px 10px;
color: mix(#fff, $gray, 25%);
@include breakpoint($large) {
display: none;
}
}
}
@ -124,10 +132,38 @@
display: none;
position: absolute;
right: 0;
margin-top: 10px;
margin-top: 15px;
padding: 10px;
list-style-type: none;
border: 1px solid $border-color;
border-radius: $border-radius;
background: #fff;
z-index: -1;
box-shadow: 0 0 10px rgba(#000, 0.25);
@include breakpoint($large) {
display: block;
position: initial;
margin: 0;
padding: 0;
border: 0;
background: initial;
box-shadow: initial;
}
&:before {
content: "";
position: absolute;
border-style: solid;
border-width: 0 10px 10px;
border-color: $border-color transparent;
display: block;
width: 0;
z-index: 0;
top: -11px;
left: calc(50% - 10px);
@include breakpoint($large) {
display: none;
}
}
&:after {
content: "";
position: absolute;
@ -139,18 +175,9 @@
z-index: 1;
top: -10px;
left: calc(50% - 10px);
}
&:before {
content: '';
position: absolute;
border-style: solid;
border-width: 0 10px 10px;
border-color: $border-color transparent;
display: block;
width: 0;
z-index: 0;
top: -11px;
left: calc(50% - 10px);
@include breakpoint($large) {
display: none;
}
}
a {
display: block;