// Buttons @include set-default( ( btn: ( padding: 1em 1.6em, line-height: 1.429, border-radius: $border-radius, font: ( size: $button-font-size, weight: 700, family: $second-font-family ) ) ) ); // 1. Button Base .btn { transition: all .3s; text-transform: uppercase; @include css( padding, btn, padding ); @include css( border-radius, btn, border-radius ); @include css( font-size, btn, font, size ); @include css( font-weight, btn, font, weight ); @include css( font-family, btn, font, family ); @include css( line-height, btn, line-height ); &:focus { box-shadow: none; } } a.btn.disabled { pointer-events: auto; cursor: not-allowed; } // 2. Size // 2.1) Mini .btn-xs { padding: .2em .5em; font-size: 1.1rem; } // 2.2) Small .btn-sm { padding: .5em 1em; font-size: 1.1rem; } // 2.3) Medium .btn-md { padding: 1em 1.2em; font-size: 1.2rem; } // 2.4) Large .btn-lg { padding: 1em 2.15em; font-size: 1.4rem; } // 2.5) Extra Large .btn-xl { padding: 1.125em 2.75em; font-size: 1.125em; } // 3. Icon .btn-icon-left i { padding-right: .7rem; } .btn-icon-right i { padding-left: .7rem; } // 4. Skin .btn-primary { @include button-variant(#fff, $primary-color, $primary-color); } .btn-secondary { @include button-variant(#fff, $secondary-color, $secondary-color); } .btn-outline { @include button-outline-variant(#ccc, #999, transparent, #ccc, #999); } .btn-outline-primary { @include button-outline-variant($primary-color, #fff, $primary-color, $primary-color, $primary-color); } .btn-outline-secondary { @include button-outline-variant($secondary-color, #fff, $secondary-color, $secondary-color, $secondary-color); } .btn-dark { @include button-variant( #fff, $primary-color-dark, $primary-color-dark); } .btn-gray { @include button-variant($primary-color-dark, #f4f4f4, #f4f4f4, #fff, $primary-color, $primary-color); } .btn-default:hover { background-color: #dedede; border-color: #dedede; } .btn-link { padding-top: 0; padding-bottom: 0; color: $primary-color; font-family: $font-family; font-size: 13px; letter-spacing: 0; text-transform: initial; &:hover, &:focus { color: $primary-color; text-decoration: underline; } } .btn-rounded { border-radius: 7px; } .btn-ellipse { border-radius: 2rem; } // 5. Social Button .btn-social-login { display: flex; margin-right: 10px; margin-left: 10px; background-color: $primary-color; font-family: $second-font-family; text-decoration: none; text-transform: uppercase; span, i { color: #fff; } i { margin-top: -1px; padding-right: 6px; } } .btn-facebook { background: #3a589d; } .btn-gplus { background: #dd4e31; } .btn-twitter { background: #1aa9e1; } .btn-warning { color: #fff; &:hover { color: #fff; } } .btn-outline-warning:hover { color: #fff; } .owl-dots .owl-dot, .owl-nav .owl-prev, .owl-nav .owl-next { outline: none; } a:focus { outline: none; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(359deg); } } .mfp-container .mfp-preloader, .porto-loading-icon { content: ''; display: inline-block; width: 40px; height: 40px; margin: 0 auto; border: 2px solid transparent; border-radius: 50%; border-top-color: $primary-color; border-image: none; text-indent: -9999px; -webkit-animation: spin .75s infinite linear; animation: spin .75s infinite linear; z-index: 3; } .mfp-container .mfp-preloader:before, .porto-loading-icon:before { position: absolute; top: -2px; right: 0; left: -2px; width: inherit; height: inherit; border: inherit; border-radius: inherit; border-top-color: inherit; content: ''; -webkit-animation: spin 1.5s infinite ease; animation: spin 1.5s infinite ease; }