Files
arakrail/assets/sass/_globalStyles.scss
T
Amir Mohamadi bc5e617778 back-end done
2020-12-10 16:36:48 +03:30

793 lines
12 KiB
SCSS

body {
direction: rtl;
background: $bg;
&:lang(en) {
direction: ltr;
}
}
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;
}
/////// 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));
.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;
@extend %defaultTransition;
&:not(:first-child) {
margin: 0 50px;
}
&.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;
}
}
}
}
}
}
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%;
}
}
}
}
}
&.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;
.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 {
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;
}
}
.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 {
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%;
}
}
}
.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;
}
}
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: 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);
}
&::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;
}
}
}
}
}
}
.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%;
}
}
}
}
}
}