Skip to content
Snippets Groups Projects
Commit cded4d86 authored by alexisben's avatar alexisben
Browse files

share

parent 2fc8a781
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ class Dropdown { ...@@ -23,7 +23,7 @@ class Dropdown {
} }
// Selectors // Selectors
['.diplomas-select'].map(selector => { ['.diplomas-select', '.dropdown-share'].map(selector => {
if (document.querySelector(selector)) { if (document.querySelector(selector)) {
new Dropdown(selector); new Dropdown(selector);
} }
......
...@@ -157,19 +157,23 @@ body ...@@ -157,19 +157,23 @@ body
a a
font-size: px2rem(13) font-size: px2rem(13)
text-decoration: none text-decoration: none
padding: 0.75rem padding: $spacing0
display: block
&::before
font-size: px2rem(13)
&:hover &:hover
opacity: 0.7 opacity: 0.7
&::after &::after
content: none content: none
&:last-child // &:last-child
margin-right: -0.75rem // margin-right: -0.75rem
span span
display: none display: none
vertical-align: middle vertical-align: middle
.dropdown-share .dropdown-share
position: relative
> button > button
@include button-reset @include button-reset
color: $hero-color color: $hero-color
...@@ -178,13 +182,26 @@ body ...@@ -178,13 +182,26 @@ body
font-size: $program-share-font-size font-size: $program-share-font-size
@include icon(social, after) @include icon(social, after)
margin-left: px2rem(10) margin-left: px2rem(10)
ul
display: none
.dropdown-menu .dropdown-menu
background: invert($hero-background-color)
padding: 0 padding: 0
position: absolute
width: 100%
bottom: 100%
.share .share
display: flex
li li
margin: 0 margin: 0
flex: 1 1
text-align: center
a a
// @extend .dropdown-item color: invert($hero-color)
color: $body-color
[aria-expanded="false"] + .dropdown-menu
display: none
[aria-expanded="true"] + .dropdown-menu
display: block
animation-duration: 0.3s
animation-fill-mode: both
animation-name: showIn
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment