Select Git revision
buttons.scss
Andrej Ramašeuski authored
buttons.scss 7.88 KiB
// Buttons
.btn-icon {
display: inline-block;
transition: $transition;
text-decoration: none;
.btn-wrap {
justify-content: space-between;
align-items: center;
height: 45px;
display: flex;
.text {
display: block;
padding: 10px 36px;
box-sizing: border-box;
font-weight: 400;
font-size: 1.1rem;
text-align: center;
}
.icon {
width: 45px;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
transition: $transition;
i {
line-height: 1rem;
}
img {
width: auto;
height: 19px;
opacity: 0.9;
}
svg {
width: 19px;
}
}
}
}
.btn-big {
display: inline-block;
color: #FFF;
background: #000;
transition: $transition;
text-decoration: none;
.btn-wrap {
justify-content: space-between;
align-items: center;
height: auto;
display: flex;
padding: 29px 29px 22px;
.text {
display: block;
box-sizing: border-box;
font-weight: 400;
font-size: 35px;
font-family: "Bebas Neue", cursive;
text-transform: uppercase;
@media (max-width: 768px) {
font-size: 20px;
} }
.icon {
width: 45px;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
font-size: 30px;
transition: $transition;
background: none!important;
border:none!important;
img {
width: auto;
height: 42px;
opacity: 0.9;
}
svg {
height: 40px;
width: 40px;
}
}
}
&:hover {
color: #FFF;
text-decoration: none;
.icon {
background:none!important;
}
}
}
.btn-basic {
display: inline-block;
text-align: center;
min-width: 130px;
transition: $transition;
text-decoration: none;
.text {
display: block;
padding: 10px 23px;
box-sizing: border-box;
font-weight: 400;
font-size: 1.1rem;
}
}
.big {
&.btn-icon {
width: 340px;
.btn-wrap {
height: 82px;
.text {
padding: 10px 45px;
font-size: 1.2rem;
flex-grow: 1;
}
.icon {
width: 82px;
}
}
@media(max-width:500px) {
width: 280px;
}
}
}
.btn-arrow {
display: inline-block;
text-align: center;
transition: 200ms;
text-decoration: none;
width: 44px;
height: 44px;
vertical-align: top;
line-height: 44px;
i {
}
}
// Green color button
.c-green {
background: #29bc51;
color: #FFF;
.icon {
border-left: 1px solid #22a244;
background: #26b34b;
}
&:hover {
color: #FFF;
background: #000;
text-decoration: none;
.icon {
border-left: 1px solid #212121;
background: #000;
svg {
fill: #FFF;
path {
fill: #FFF;
}
}
i {
color: #FFF;
}
}
}
}
// White color button
.c-white {
background: #FFF;
color: #000;
.icon {
border-left: 1px solid #000;
background: #FFF;
}
&:hover {
color: #FFF;
background: #000;
text-decoration: none;
.icon {
border-left: 1px solid #212121;
background: #000;
svg, i {
color: #FFF; fill: #FFF;
}
}
}
}
// Black color button
.c-black {
background: #000;
color: #FFF;
.icon {
border-left: 1px solid #000;
background: #303030;
border-right: 1px solid #e2e2e226;
svg {
fill: #FFF;
}
}
&:hover {
color: #000;
background: $extraLightGrey;
text-decoration: none;
.text {
color: #000;
}
.icon {
border-left: 1px solid #e6e6e6;
background: $extraLightGrey;
svg {
fill: #000;
path {
fill: #000;
}
}
i {
color: #000;
}
}
}
}
// Red color button
.c-red {
background: $red;
color: #FFF;
.icon {
border-left: 1px solid #ea4248;
background: #e03438;
border-right: 1px solid #e2e2e226;
}
&:hover {
color: #FFF;
background: #000;
text-decoration: none;
.icon {
border-left: 1px solid #212121;
background: #000;
svg {
fill: #FFF;
path {
fill: #FFF;
}
} i {
color: #FFF;
}
}
}
}
// Grey color button
.c-grey {
background: #F0F0F0;
color: #000;
.icon {
border-left: 1px solid #000;
background: #303030;
border-right: 1px solid #e2e2e226;
}
&:hover {
color: #FFF;
background: #000;
text-decoration: none;
.icon {
border-left: 1px solid #212121;
background: #000;
svg {
fill: #FFF;
path {
fill: #FFF;
}
}
i {
color: #FFF;
}
}
}
}
// Blue facebook color button
.c-fb {
background: #1978f3;
color: #FFF;
}
// If you want to stretch the button to parent width
.stretch {
display: block;
}
// Cta buttons - variant b
.cta-btn {
border: none;
outline: none;
-webkit-appearance: none;
-moz-appearance: none;
background-color: #000000;
display: inline-block;
@include transition(background-color 0.2s);
&:hover {
text-decoration: none;
background: #191919;
.arrow {
&:before {
left: 60%;
} }
}
p {
font-family: 'Roboto Condensed', sans-serif;
color: #ffffff;
font-size: 1.2rem;
padding: 10px 30px;
display: inline-block;
vertical-align: middle;
margin: 0px;
}
.arrow {
display: inline-block;
vertical-align: middle;
background-color: #191919;
border-left: 1px solid #303030;
position: relative;
width: 47px;
height: 47px;
&:before {
content: "";
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%) rotate(-45deg);
width: 7px;
height: 7px;
position: absolute;
border-right: 2px solid #ffffff;
border-bottom: 2px solid #ffffff;
@include transition(left 0.2s);
}
}
}
.cta-btn2 {
border: none;
outline: none;
-webkit-appearance: none;
-moz-appearance: none;
background-color: #F3F3F3;
display: inline-block;
@include transition(background-color 0.2s);
font-family: 'Roboto Condensed', sans-serif;
color: #000000;
font-size: 1.2rem;
padding: 10px 30px;
display: inline-block;
vertical-align: middle;
margin: 0px;
&:hover {
text-decoration: none;
color: #000000;
background-color: #e4e4e4;
}
}