Files
arakrail/assets/sass/_globalStyles.scss
T
2020-12-19 13:26:55 +03:30

1065 lines
17 KiB
SCSS

body {
direction: rtl;
background: $bg;
&:lang(en) {
direction: ltr;
}
&.offCanvas-active {
overflow: hidden;
}
}
p, a, span, b {
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;
}
@keyframes loading {
0% {
@include transform(rotateZ(0));
}
100% {
@include transform(rotateZ(360deg));
}
}
/////// global classes
.page {
min-height: calc(100vh - 200px);
overflow: hidden;
}
.logo {
display: inline-block;
width: 50px;
svg {
width: 100%;
}
}
.offCanvas {
width: 100%;
position: fixed;
top: 140px;
right: -100%;
height: calc(100vh - 140px);
background: #fff;
z-index: 10;
overflow: scroll;
padding-bottom: 100px;
@include boxSizing(border-box);
@extend %defaultTransition;
&:lang(en) {
right: auto;
left: -100%;
}
&.header-small {
top: 90px;
height: calc(100vh - 90px);
}
&.active {
right: 0;
&:lang(en) {
right: auto;
left: 0;
}
}
.links {
padding: 25px;
ul {
li {
margin-bottom: 10px;
&.active {
a {
@include borderRadius(10px);
background: $red;
color: #fff;
}
}
&.title {
&.t2 {
margin-top: 30px;
}
}
a {
display: inline-block;
padding: 5px 10px;
@extend %defaultTransition;
}
}
}
}
}
.header {
width: 100%;
background: #fff;
position: fixed;
top: 0;
left: 0;
z-index: 11;
@include boxShadow(0 4px 10px rgba(0, 0, 0, 0.07));
.lang-bar {
display: flex;
align-items: stretch;
background: $darkGray;
.catalog-download {
display: block;
background: $red;
padding: 5px 15px;
span, i {
color: #fff !important;
}
}
.dropdown {
position: relative;
.title {
height: 100% !important;
@extend %defaultTransition;
padding: 0 10px;
margin-bottom: 0;
display: flex;
align-items: center;
p {
@extend %userSelect;
@extend %defaultTransition;
text-align: center;
font-size: 16px;
font-family: 'diodrum', 'sahel';
span, i {
color: #fff;
}
i {
margin: 0 3px;
}
}
}
.dropMenu {
width: 100%;
height: 0;
overflow: hidden;
background: $darkGray;
@extend %defaultTransition;
position: absolute;
top: 35px;
left: 0;
z-index: 10;
.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';
&:hover {
background: rgba(255, 255, 255, 0.05);
}
}
}
}
&.dropdown-active {
.title {
background: $darkGray;
p {
color: #fff;
}
}
.dropMenu {
height: 95px;
}
}
}
}
.links {
li {
text-align: right;
padding: 30px 0;
width: auto;
@extend %defaultTransition;
&:not(:first-child) {
margin: 0 50px;
@media (max-width: 1400px) {
& {
margin: 0 30px;
}
}
@media (max-width: 1100px) {
& {
margin: 0 20px;
}
}
@media (max-width: 920px) {
& {
margin: 0 15px;
a {
font-size: 15px;
}
}
}
@media (max-width: 810px) {
a {
font-size: 14px;
&:lang(en) {
font-size: 13px;
}
}
}
}
&.active {
a::after {
background: $red !important;
width: 100% !important;
}
}
&:lang(en) {
text-align: left;
}
&:first-child {
text-align: right;
&:lang(en) {
text-align: left;
}
}
&.tech_info {
cursor: pointer;
position: relative;
.drop-down {
position: absolute;
top: 100%;
right: 0;
background: #fff;
min-width: 200px;
overflow: hidden;
height: 0;
@extend %defaultTransition;
&:lang(en) {
min-width: 250px;
right: auto;
left: 0;
direction: ltr;
text-align: left;
}
ul {
li {
text-align: right;
margin: 0;
padding: 0;
@extend %defaultTransition;
&:lang(en) {
direction: ltr;
text-align: left;
}
&:hover {
background: rgba(#000, 0.1);
}
a {
padding: 10px;
&::after {
display: none;
}
}
&.sub-menu-active {
background: $red;
a {
color: #fff;
}
}
}
}
}
}
a:not(.logo) {
position: relative;
padding: 5px 0;
display: inline-block;
margin-top: 3px;
&::after {
content: '';
display: block;
width: 15px;
height: 2px;
background: $darkGray;
position: absolute;
bottom: 0;
right: 0;
@extend %defaultTransition;
}
&:lang(en) {
&::after {
right: auto;
left: 0;
}
}
&:hover {
&::after {
width: 100%;
}
}
}
}
}
.mobile {
ul {
li {
margin: 0 !important;
&.menu {
display: flex;
justify-content: flex-end;
align-items: center;
#menuBtn {
display: flex;
flex-direction: column;
justify-content: space-between;
width: 25px;
height: 20px;
direction: ltr;
cursor: pointer;
.bars {
width: 100%;
height: 3px;
background: #000;
margin-bottom: 3px;
@extend %defaultTransition;
}
&.close {
.bars {
background: $red;
&.b1 {
@include transform(rotate(45deg) translate(4px, 7px));
}
&.b2 {
width: 0;
opacity: 0;
}
&.b3 {
@include transform(rotate(-45deg) translate(3px, -6px));
}
}
}
}
}
}
}
}
&.header-small {
.links {
li {
padding: 5px 0;
}
}
}
}
.footer {
background: #fff;
padding: 20px 0 0;
.red {
color: $red !important;
a, b, em {
color: $red !important;
}
}
.blue {
color: $theme !important;
a, b {
color: $theme !important;
}
}
.links {
svg {
width: 50px;
margin-bottom: 20px;
}
p {
font-size: 13px;
}
//hr {
// margin: 20px 0;
//}
.box {
max-width: 400px;
.red {
margin-top: 20px;
}
}
}
.social {
display: flex;
flex-direction: column;
justify-content: center;
ul {
display: block;
margin-bottom: 20px;
li {
display: inline-block;
margin-left: 20px;
em {
color: $red;
}
&: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-bar {
width: 100%;
height: 35px;
background: $red;
margin-top: 20px;
}
&.footer--home {
padding: 50px 0 0;
background: $bg;
.links {
.logo {
display: flex;
width: 150px;
align-items: center;
&:lang(fa) {
width: 160px;
}
span {
display: block;
color: $theme;
//direction: ltr;
&:lang(fa) {
font-size: 14px;
margin-right: 5px;
}
}
}
hr {
margin: 15px 0;
border: 0.1px solid rgba(#000, 0.1);
}
.box {
p {
margin-top: 5px;
}
}
.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;
}
}
.footer-bar {
margin-top: 50px;
}
}
}
.hero {
position: relative;
overflow: hidden;
.bg {
width: 100%;
height: 90vh;
background-size: cover;
background-repeat: no-repeat;
-webkit-background-size: cover;
}
.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 {
border: 1px solid $red;
background: $red;
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;
&:hover {
color: #fff;
background: $red;
border: 1px solid $red;
}
}
}
.panel {
background: #fff;
padding: 100px;
position: relative;
margin-top: -80px;
z-index: 0;
@include boxSizing(border-box);
@media (max-width: 992px) {
padding: 100px 15px !important;
}
@media (max-width: 575px) {
margin-left: -15px;
margin-right: -15px;
}
}
.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 {
position: relative;
width: 140%;
@extend %defaultBoxShadow;
.shape {
width: 50%;
height: 80px;
position: absolute;
top: -25px;
left: 50%;
z-index: -1;
@include transform(translateX(-50%));
background: $theme;
&.reverse {
top: auto;
bottom: -25px;
}
}
img {
width: 100%;
}
@media (max-width: 992px) {
& {
width: 100%;
}
}
}
}
.section-bg {
width: 100%;
}
.form {
width: 100%;
.formRow {
width: 100%;
display: block;
margin-bottom: 20px;
&.center-align {
flex-basis: 100%;
text-align: center;
}
&.err {
input, textarea, select {
@include boxShadow(0 0 5px rgba(red, 0.3));
border: 2px solid rgba(red, 0.2);
&::placeholder {
color: red;
}
}
p {
color: red;
padding-right: 1%;
}
}
select {
@extend %appearance;
@extend %defaultTransition;
border: 2px solid transparent;
border-bottom: 2px solid rgba(0, 0, 0, 0.1);
outline: none;
padding: 10px 10px 10px 30px;
font-family: 'sahel', 'diodrum', sans-serif;
position: relative;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512' fill='rgba(0,0,0,0.4)'%3E%3Cpath d='M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z'/%3E%3C/svg%3E");
background-size: 10px;
-webkit-background-size: 10px;
background-repeat: no-repeat;
background-position: 0 50%;
cursor: pointer;
color: rgba(#000, 0.5);
option {
padding: 10px;
font-family: 'sahel', 'diodrum', sans-serif !important;
&:disabled {
color: rgba(#000, 0.4);
}
}
}
input, textarea {
@extend %appearance;
@extend %defaultTransition;
width: 95%;
display: block;
margin: 0 auto;
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);
}
&::placeholder {
color: rgba(#000, 0.5);
}
}
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;
}
.imgBox {
.img {
width: calc(140% - 25px);
.shape {
width: 80%;
height: 80%;
left: auto;
right: -30px;
@include transform(translateX(0));
background: $red;
&:lang(en) {
right: auto;
left: -30px;
@media (max-width: 992px) {
left: 10%;
}
}
@media (max-width: 992px) {
right: 10%;
}
}
@media (max-width: 992px) {
width: 100%;
}
}
}
}
}
.filters {
margin: 0 auto 50px;
ul {
display: flex;
justify-content: center;
flex-wrap: wrap;
li {
margin: 10px 20px;
color: rgba(#000, 0.5);
cursor: pointer;
@extend %userSelect;
p {
text-align: center;
&::after {
content: '';
display: block;
height: 2px;
width: 0;
background: $red;
margin: 0 auto;
@include transition(0.1s);
}
&.active {
&::after {
width: 100%;
}
}
}
}
}
}
.page-load {
width: 100vw;
height: 100vh;
background: #fff;
position: fixed;
top: 0;
left: 0;
z-index: 20;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
direction: ltr !important;
opacity: 0;
visibility: hidden;
svg {
width: 70px;
}
p {
color: $theme;
}
}
.pre-loader {
width: 100vw;
height: 100vh;
background: #fff;
position: fixed;
top: 0;
left: 0;
z-index: 20;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
direction: ltr !important;
#preLoadserLogo {
width: 100px;
opacity: 0;
}
#loadingCircle {
width: 60px;
@include animation(loading 1.5s infinite);
position: absolute;
top: calc(50% - 30px);
left: calc(50% - 30px);
opacity: 1;
}
p {
opacity: 0;
span {
display: inline-block;
color: $theme;
font-size: 30px;
font-family: 'diodrum-bold';
font-weight: bold;
}
.tsWords {
margin-left: 10px;
}
}
}