open-consul/website/source/assets/stylesheets/_buttons.scss

57 lines
1.3 KiB
SCSS
Raw Normal View History

2014-04-05 09:03:01 +00:00
//
// Button Styles
// --------------------------------------------------
.outline-btn{
2015-11-09 21:48:29 +00:00
background-color: transparent;
color: $white;
border: 2px solid $white;
border-radius: $btn-border-radius;
text-decoration: none !important;
@include transition(background-color .3s ease-in-out);
2014-04-05 09:03:01 +00:00
2015-11-09 21:48:29 +00:00
&.purple{
color: $purple;
border: 2px solid $purple;
}
2014-04-05 09:03:01 +00:00
2015-11-09 21:48:29 +00:00
&:hover{
color: $white;
background-color: rgba(255, 255, 255, .2);
@include transition(background-color .3s ease-in-out);
2014-04-05 09:03:01 +00:00
2015-11-09 21:48:29 +00:00
&.purple{
background-color: rgba(255, 255, 255, .5);
}
}
2014-04-05 09:03:01 +00:00
}
2014-04-09 02:44:14 +00:00
//dot animation on header main nav link hover
.li-under a::after {
2015-11-09 21:48:29 +00:00
position: absolute;
top: 68%;
left: 50%;
margin-left: -4px;
width: 8px;
height: 8px;
background-color: $white;
border-radius: 4px;
content: '';
opacity: 0;
text-decoration: none;
-webkit-transition: height 0.3s, opacity 0.3s, -webkit-transform 0.3s;
-moz-transition: height 0.3s, opacity 0.3s, -moz-transform 0.3s;
transition: height 0.3s, opacity 0.3s, transform 0.3s;
-webkit-transform: translateY(-10px);
-moz-transform: translateY(-10px);
transform: translateY(-10px);
2014-04-09 02:44:14 +00:00
}
.li-under a:hover::after,
.li-under a:focus::after {
2015-11-09 21:48:29 +00:00
opacity: .5;
-webkit-transform: translateY(0px);
-moz-transform: translateY(0px);
transform: translateY(0px);
2014-04-09 02:44:14 +00:00
}