Skip to content

Instantly share code, notes, and snippets.

@GabrielDelepine
Last active May 24, 2016 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save GabrielDelepine/5882787 to your computer and use it in GitHub Desktop.
Save GabrielDelepine/5882787 to your computer and use it in GitHub Desktop.
This file include only a fixed bug compare the original one : dropdown menu was always open in other browser than webkit. (I only add "transform: scale(1, 0)" at the line N°18)
.open > .dropdown-menu {
-webkit-transform: scale(1, 1);
transform: scale(1, 1);
}
.open > .dropdown-menu li a {
color: #000;
}
.dropdown-menu li a{
color: #fff;
}
.dropdown-menu {
-webkit-transform-origin: top;
transform-origin: top;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
-webkit-transform: scale(1, 0);
transform: scale(1, 0)
display: block;
transition: all 0.2s ease-out;
-webkit-transition: all 0.2s ease-out;
}
.dropup .dropdown-menu {
-webkit-transform-origin: bottom;
transform-origin: bottom;
}
.navbar .nav > li > .dropdown-menu:after {
}
.dropup > .dropdown-menu:after {
border-bottom: 0;
border-top: 6px solid rgba(39, 45, 51, 0.9);
top: auto;
display: inline-block;
bottom: -6px;
content: '';
position: absolute;
left: 50%;
border-right: 6px solid transparent;
border-left: 6px solid transparent;
}
@marketfreshstudios
Copy link

How can I change this so that the menu slides in from off the right side of the screen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment