butter-kanglam-ui/_scss/helpers/utilities.scss

178 lines
2.7 KiB
SCSS
Raw Normal View History

2021-09-17 09:26:31 -05:00
// General box-sizing
*,
*::before,
*::after {
box-sizing: border-box;
}
// Margin reset for texts
h1, h2, p, ul {
margin: 0;
}
// General Typography
body {
color: $dark-gray;
font-family: $base-font-family;
font-size: 16px;
font-weight: 400;
}
2022-08-22 20:18:13 -05:00
.main-area {
margin: 0 auto;
overflow: hidden;
}
2021-09-17 09:26:31 -05:00
// General container
.container {
width: 100%;
margin-right: auto;
margin-left: auto;
}
@media (min-width: 768px) {
.container {
max-width: 750px;
}
}
@media (min-width: 992px) {
.container {
max-width: 980px;
}
}
// General button
.btn-main {
display: inline-block;
font-weight: 600;
text-align: center;
vertical-align: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
2022-08-22 20:18:13 -05:00
background-color: $gold;
border: 1px solid $gold;
2021-09-17 09:26:31 -05:00
padding: 1.8em 3.4em;
font-size: 12px;
letter-spacing: 1px;
line-height: 1.5;
border-radius: 50rem;
transition: all .3s ease;
text-decoration: none;
2022-10-10 11:18:26 -05:00
width: fit-content;
2021-09-17 09:26:31 -05:00
&:hover {
2022-08-22 20:18:13 -05:00
background-color: lighten($gold, 5%);
2021-09-17 09:26:31 -05:00
}
margin-bottom: 10px;
2022-10-10 11:18:26 -05:00
.btn-split {
display: inline-flex;
.btn-logo {
2022-10-10 16:00:01 -05:00
margin: auto 0px;
2022-10-10 11:18:26 -05:00
height: 60px;
}
.btn-text {
2022-10-10 16:00:01 -05:00
border-left: 1pt;
border-left-color: black;
border-left-style: solid;
2022-10-10 11:18:26 -05:00
text-align: left;
2022-10-10 16:00:01 -05:00
padding: 12px 20px;
height: fit-content;
margin: auto;
2022-10-10 11:18:26 -05:00
.button-main-text {
font-size: 16px;
font-weight: 500;
}
.button-sub-text {
font-size: 11px;
font-weight: 400;
}
}
}
2021-09-17 09:26:31 -05:00
}
2022-10-10 15:29:13 -05:00
.btn-main.btn-slim {
padding: .5em 2.5em;
}
2021-09-17 09:26:31 -05:00
// Text utility classes
.content-text {
font-family: $text-font-family;
2022-10-10 15:29:13 -05:00
font-size: 16px;
2021-09-17 09:26:31 -05:00
line-height: 1.5;
}
.caption {
color: $dark-gray;
font-family: $text-font-family;
font-size: 16px;
margin-top: 8px;
}
2021-09-17 09:26:31 -05:00
.text-black {
color: $black;
}
.text-center {
text-align: center;
}
.ls-40 {
letter-spacing: .4px;
}
2022-10-10 11:37:43 -05:00
.uppercase {
text-transform: uppercase;
}
2021-09-17 09:26:31 -05:00
// Spacing utility classes
.mb-2 {
2022-08-22 20:18:13 -05:00
margin-bottom: 16px;
2021-09-17 09:26:31 -05:00
}
.mt-2 {
2022-08-22 20:18:13 -05:00
margin-top: 16px;
}
2021-09-17 09:26:31 -05:00
// Arrows classes
[class*="icono"] {
position: relative;
display: inline-block;
vertical-align: middle;
color: $white;
box-sizing: border-box;
&:after, &:before {
content: "";
box-sizing: border-box;
}
}
[class*="icono-arrow"]{
width: 20px;
height: 20px;
border-width: 4px 4px 0 0;
border-style: solid;
margin: 10px;
&:before{
right: 0;
top: -3px;
position: absolute;
height: 4px;
box-shadow: inset 0 0 0 32px;
transform: rotate(-45deg);
width: 23px;
transform-origin: right top;
}
&[class*="-left"]{
transform: rotate(45deg);
}
&[class*="-right"]{
transform: rotate(-135deg);
}
}