Files
arakrail/assets/sass/_globalStyles.scss
T
2020-11-14 19:45:07 +03:30

546 lines
7.8 KiB
SCSS

body {
direction: rtl;
background: $bg;
&:lang(en) {
direction: ltr;
}
}
p, a, span, b, i {
font-family: 'sahel';
color: rgba(0, 0, 0, 0.7);
line-height: 1.6em;
&:lang(en) {
font-family: 'diodrum';
}
}
h1, h2, h3, h4, h5, h6 {
font-family: 'sahel-black';
line-height: 1.3em;
&:lang(en) {
font-family: 'diodrum-bold';
}
}
h1 {
font-size: 32px;
}
h2 {
font-size: 24px;
}
h3 {
font-size: 18.72px;
}
h4 {
font-size: 16px;
}
h5 {
font-size: 13.28px;
}
h6 {
font-size: 10.72px;
}
a {
text-decoration: none;
&:hover {
text-decoration: none;
color: rgba(0, 0, 0, 0.7);
}
}
section {
padding: 0 0 100px;
}
/////// global classes
.page {
min-height: calc(100vh - 200px);
}
.logo {
display: inline-block;
width: 50px;
svg {
width: 100%;
}
}
.header {
width: 100%;
background: #fff;
position: fixed;
top: 0;
left: 0;
z-index: 5;
@include boxShadow(0 4px 10px rgba(0, 0, 0, 0.07));
.links {
li {
text-align: right;
padding: 30px 0;
@extend %defaultTransition;
&.active {
a::after {
width: 100% !important;
}
}
&:lang(en) {
text-align: left;
}
&:first-child {
text-align: right;
&:lang(en) {
text-align: left;
}
}
a:not(.logo) {
position: relative;
padding: 5px 0;
&::after {
content: '';
display: block;
width: 20px;
height: 1.5px;
background: $darkGray;
position: absolute;
bottom: 0;
right: 0;
@extend %defaultTransition;
}
&:lang(en) {
&::after {
right: auto;
left: 0;
}
}
&:hover {
&::after {
width: 100%;
}
}
}
}
}
.lag-switcher {
.dropdown {
position: relative;
.title {
@extend %defaultTransition;
padding: 0 10px;
margin-bottom: 0;
p {
@extend %userSelect;
@extend %defaultTransition;
text-align: center;
font-size: 23px;
font-family: 'diodrum', 'sahel';
}
}
.dropMenu {
width: 100%;
height: 0;
overflow: hidden;
background: $darkGray;
@extend %defaultTransition;
position: absolute;
top: 37px;
left: 0;
.drop-item {
padding-top: 10px;
a {
display: block;
padding: 5px;
color: #fff;
font-size: 13px;
text-align: center;
cursor: pointer;
@extend %userSelect;
@extend %defaultTransition;
font-family: 'diodrum', 'sahel';
}
}
}
&.dropdown-active {
.title {
background: $darkGray;
p {
color: #fff;
}
}
.dropMenu {
height: 85px;
p:hover {
background: rgba(255, 255, 255, 0.05);
}
}
}
}
}
&.header-small {
.links {
li {
padding: 5px 0;
}
}
}
}
.footer {
background: #fff;
padding: 20px 0;
.links {
svg {
width: 50px;
margin-bottom: 20px;
}
p {
font-size: 13px;
}
hr {
margin: 20px 0;
}
.box {
max-width: 400px;
}
}
.social {
display: flex;
flex-direction: column;
justify-content: center;
ul {
display: block;
margin-bottom: 20px;
li {
display: inline-block;
margin-left: 20px;
&:lang(en) {
margin-left: 0;
margin-right: 20px;
}
}
}
p {
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
}
}
a {
display: inline-block;
direction: ltr;
@extend %defaultTransition;
&:hover {
color: #5b5bec;
}
}
&.footer--home {
padding: 50px 0;
background: $bg;
.links {
hr {
margin: 15px 0;
}
.social-links {
margin: $mt 0;
li {
display: inline-block;
margin-left: 20px;
&:lang(en) {
margin-left: 0;
margin-right: 20px;
}
em {
color: rgba(0, 0, 0, 0.5);
@extend %defaultTransition;
&:hover {
color: rgba(0, 0, 0, 1);
}
}
}
}
}
.map {
img {
width: 100%;
@extend %defaultBoxShadow;
}
p {
font-size: 13px;
margin-top: 10px;
}
}
}
}
.hero {
position: relative;
.bg {
width: 100%;
height: 90vh;
background-size: cover;
-webkit-background-size: cover;
background-repeat: no-repeat;
}
.txt {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
.row {
height: 80vh;
h2 {
color: #fff;
font-size: 50px;
margin-top: 107px;
}
}
}
}
.btn {
display: inline-block;
padding: 10px 30px;
cursor: pointer;
@extend %defaultTransition;
font-family: 'sahel';
font-size: 16px;
margin-top: $mt;
&.btn-primary {
border: 1px solid #000;
color: #000;
&:hover {
background: #000;
color: #fff;
}
}
&.btn-primary-fill {
border: 1px solid #000;
background: #000;
color: #fff;
}
&.btn-reverse {
border: 1px solid #fff;
color: #fff;
&:hover {
background: #fff;
color: #000;
}
}
&.btn-reverse-fill {
border: 1px solid #fff;
background: #fff;
color: #000;
}
}
.panel {
background: #fff;
padding: 100px;
position: relative;
margin-top: -80px;
z-index: 0;
@include boxSizing(border-box);
}
.title {
display: inline-block;
position: relative;
font-size: 35px;
padding-bottom: 10px;
margin-bottom: $mt;
&.title-shape {
@extend %titleShape;
}
&.title-shape-center {
@extend %titleShapeCenter;
}
&.title-subtitle {
font-size: 25px;
margin-bottom: 15px;
}
}
.overflow-hidden {
overflow-x: hidden;
}
.imgBox {
width: 100%;
position: relative;
&.imgBox-reverse {
direction: ltr;
&:lang(en) {
direction: rtl;
}
}
&.imgBox-shape {
@extend %imgBoxShape;
}
&.imgBox-shape-reverse {
@extend %imgBoxShape-reverse;
}
img {
width: 140%;
@extend %defaultBoxShadow;
}
}
.section-bg {
width: 100%;
}
.form {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
.formRow {
flex-basis: 40%;
display: inline-block;
margin-bottom: 20px;
&.formRow-wide {
flex-basis: 90%;
}
&.buttonRow {
flex-basis: 100%;
text-align: center;
}
&.err {
input, textarea {
@include boxShadow(0 0 5px rgba(red, 0.3));
border: 2px solid rgba(red, 0.2);
&::placeholder {
color: red;
}
}
p {
color: red;
}
}
input, textarea {
@extend %appearance;
@extend %defaultTransition;
width: 100%;
border: 2px solid transparent;
border-bottom: 2px solid rgba(0, 0, 0, 0.1);
outline: none;
padding: 10px;
font-family: 'sahel', 'diodrum', sans-serif;
background: transparent;
&:focus {
@include boxShadow(0 0 5px rgba($theme, 0.3));
border: 2px solid rgba($theme, 0.2);
}
}
button {
@extend %appearance;
@extend %defaultTransition;
margin-top: 50px;
}
}
}
.customers-communication {
.panel {
margin-top: 100px;
background: $theme;
.title {
color: #fff;
&::after {
background: #fff;
}
}
p {
color: #fff;
}
}
}