terraform/website/source/assets/stylesheets/_buttons.scss

105 lines
2.2 KiB
SCSS
Raw Normal View History

2014-07-16 23:51:48 +02:00
//
// Button Styles
// --------------------------------------------------
.outline-btn{
2016-10-05 04:12:19 +02:00
position: relative;
display: inline-block;
// Extra 3px of bottom padding compensates for ::after content
padding: 20px 30px 23px;
2014-07-16 23:51:48 +02:00
background-color: transparent;
2014-10-13 18:44:38 +02:00
color: $white;
border: 2px solid $white;
//border-radius: $btn-border-radius;
2016-10-05 15:31:31 +02:00
font-size: 20px;
2016-10-05 04:12:19 +02:00
font-weight: 500;
text-transform: uppercase;
letter-spacing: 2px;
2014-07-16 23:51:48 +02:00
text-decoration: none !important;
2014-10-13 18:44:38 +02:00
@include transition(background-color .3s ease-in-out);
2014-07-16 23:51:48 +02:00
2016-10-05 04:12:19 +02:00
&::after {
font-size: 1.2em;
content: "»";
position: relative;
left: 5px;
}
2014-07-16 23:51:48 +02:00
&.purple{
2014-10-13 18:44:38 +02:00
color: $purple;
border: 2px solid $purple;
2014-07-16 23:51:48 +02:00
}
&:hover{
2014-10-13 18:44:38 +02:00
color: $white;
2014-07-16 23:51:48 +02:00
background-color: rgba(255, 255, 255, .2);
2014-10-13 18:44:38 +02:00
@include transition(background-color .3s ease-in-out);
2014-07-16 23:51:48 +02:00
&.purple{
background-color: rgba(255, 255, 255, .5);
}
}
}
2014-07-23 05:49:44 +02:00
.terra-btn{
2016-10-05 03:08:55 +02:00
position: relative;
display: inline-block;
// Extra 3px of bottom padding compensates for ::after content
padding: 20px 30px 23px;
color: white;
background-color: $purple;
font-size: 20px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 2px;
2014-10-13 18:44:38 +02:00
@include transition( background-color 0.3s ease );
2014-07-25 01:15:28 +02:00
2016-10-05 03:08:55 +02:00
&::after {
font-size: 1.2em;
content: "»";
position: relative;
left: 5px;
}
2014-07-25 01:15:28 +02:00
&:hover{
2016-10-05 03:08:55 +02:00
color: white;
2014-07-25 01:15:28 +02:00
background-color: rgba(130, 47, 247, 0.8);
2016-10-05 03:08:55 +02:00
text-decoration: none;
2014-10-13 18:44:38 +02:00
@include transition( background-color 0.3s ease );
2014-07-25 01:15:28 +02:00
}
2014-07-23 05:49:44 +02:00
}
@media (max-width: 768px) {
.outline-btn, .terra-btn{
font-size: 16px;
}
}
2014-07-25 01:15:28 +02:00
//animation on header main nav link hover
/*.li-under a::after {
2014-07-23 05:49:44 +02:00
position: absolute;
top: 68%;
left: 50%;
margin-left: -4px;
width: 6px;
height: 6px;
background-color: white;
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-07-16 23:51:48 +02:00
}
.li-under a:hover::after,
.li-under a:focus::after {
2014-07-23 05:49:44 +02:00
opacity: 1;
-webkit-transform: skewY(15deg) translateY(10px);
-moz-transform: skewY(15deg) translateY(10px);
transform: skewY(15deg) translateY(10px);
2014-10-13 18:44:38 +02:00
}*/