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

1228 lines
18 KiB
SCSS

///////////////////////////// error page
.error--page {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
h1 {
font-family: sans-serif;
font-size: 60px;
}
p {
text-transform: uppercase;
font-family: sans-serif;
font-size: 14px;
margin-top: -20px;
}
a {
margin-top: 20px;
font-family: 'sahel', sans-serif;
}
}
///////////////////////////// home page
.home--page {
#slider {
overflow: hidden;
.hero {
.bg {
//background-image: url("../img/home/hp-s1-i1.jpg");
}
.txt--home {
width: 400px;
height: 300px;
position: absolute;
bottom: 20%;
right: 200px;
&:lang(en) {
right: auto;
left: 200px;
}
h1 {
color: #fff;
&:lang(en) {
font-family: 'anton';
}
}
p {
color: #fff;
}
}
}
.slick-dots {
bottom: 80px;
li {
button::before {
font-size: 10px;
color: $red;
}
}
}
.slick-arrow {
color: $red;
z-index: 5;
&.slick-prev {
left: 80px;
}
&.slick-next {
right: 80px;
}
}
}
.s1 {
position: relative;
padding: 100px 0;
.go-down-btn {
width: 250px;
height: 80px;
background: #fff;
text-align: center;
position: absolute;
top: -80px;
left: calc(50% - 125px);
z-index: 2;
cursor: pointer;
em {
line-height: 80px;
font-size: 30px;
}
}
.title-side {
text-align: center;
}
}
.s1-2 {
text-align: center;
}
.s2 {
overflow-x: hidden;
.panel {
padding: 100px 100px 130px;
}
.parts {
width: 100%;
&.p1 {
width: 100%;
text-align: center;
p {
display: inline-block;
max-width: 480px;
}
}
&.p2 {
margin-top: 100px;
}
&.p3 {
margin-top: 100px;
}
.txtBox {
display: flex;
width: 100%;
height: 100%;
flex-direction: column;
justify-content: center;
align-items: baseline;
}
}
}
.s3 {
.panel {
padding: 100px 100px 200px;
.parts {
&.p1 {
text-align: center;
}
}
}
.products {
margin-top: -100px;
padding: 0 100px;
.parts {
&.p2 {
text-align: center;
.imgBox {
background: #fff;
padding-bottom: 20px;
@extend %defaultBoxShadow;
margin-bottom: 30px;
p {
margin-top: 20px;
}
img {
width: 100%;
@include boxShadow(none);
}
}
}
}
}
}
.s4 {
position: relative;
.txt {
max-width: 600px;
height: 300px;
position: absolute;
top: 20%;
right: 200px;
&:lang(en) {
right: auto;
left: 200px;
}
.title {
color: #fff;
&::after {
background: #fff;
}
span {
display: block;
font-size: 13px;
color: #fff;
}
}
p {
margin-top: $mt;
color: #fff;
}
}
}
.s5 {
.panel {
background: $theme;
margin-top: 0;
.p1 {
text-align: center;
.title {
color: #fff;
&::after {
background: #fff;
}
}
p {
color: #fff;
}
}
.form {
margin-top: 50px;
input, textarea {
border-bottom: 2px solid rgba(255, 255, 255, 0.5);
color: #fff;
&::placeholder {
color: rgba(255, 255, 255, 0.8);
}
&:focus {
@include boxShadow(0 0 5px rgba(#fff, 0.05));
border: 2px solid rgba(#fff, 0.1);
}
}
}
}
.watermark {
text-align: center;
padding-top: 100px;
svg {
width: 100px;
path {
fill: rgba(0, 0, 0, 0.1);
}
}
}
}
.s6 {
padding: 100px 0;
background: #fff;
.img-side {
text-align: center;
img {
width: 100%;
}
}
}
}
///////////////////////////// about page
.about--page {
overflow: hidden;
.hero {
.bg {
background-image: url("../img/about/about-hero.jpg");
}
}
.s1 {
.parts {
margin-bottom: 100px;
&.p1 {
text-align: center;
direction: ltr;
svg {
width: 80px;
}
span {
color: $theme;
font-family: 'diodrum-bold';
font-size: 40px;
}
p {
margin-top: 50px;
}
}
&.p2 {
align-items: center;
}
&.p3 {
align-items: center;
}
&.p4 {
margin-bottom: 0;
text-align: center;
}
}
}
.s2 {
text-align: center;
.timeline {
width: 100%;
display: flex;
align-items: center;
margin-top: 50px;
.circle {
position: relative;
flex-basis: 15px;
flex-shrink: 0;
flex-grow: 1;
height: 15px;
border: 1px solid rgba(#000, 0.3);
@include borderRadius(50%);
@extend %defaultTransition;
cursor: pointer;
&.active {
border: 1px solid $red;
background: $red;
}
span {
display: block;
position: absolute;
bottom: -40px;
left: 50%;
@include transform(translateX(-50%));
}
}
.line {
height: 2px;
background: rgba(#000, 0.3);
flex-basis: 100%;
@extend %defaultTransition;
&.active {
background: $red;
}
}
}
.timeline-content {
margin-top: 150px;
.txtBox {
display: flex;
height: 100%;
flex-direction: column;
justify-content: center;
text-align: right;
p {
margin-top: 30px;
}
}
.imgBox {
width: 100%;
img {
width: 100%;
}
}
}
}
.s3 {
background: $theme;
padding: 100px 0 150px;
.title {
color: #fff;
&::after {
background: #fff;
}
}
p {
color: #fff;
margin-top: $mt;
max-width: 700px;
}
}
.s4 {
padding-bottom: 0;
.panel {
direction: ltr;
.txt {
direction: ltr;
text-align: left;
p {
font-family: 'diodrum-bold';
}
}
.img {
text-align: center;
}
&:not(.p1) {
margin-top: 20px;
}
}
}
}
///////////////////////////// services page
.services--page {
overflow-x: hidden;
.hero {
.bg {
background-image: url('../img/services/services-hero.jpg');
}
}
.s1 {
text-align: center;
.top {
.subtitle {
margin-bottom: 30px;
}
}
.content {
text-align: right;
&:lang(en) {
text-align: left;
}
p {
margin-bottom: 30px;
}
ul {
margin-top: 10px;
li {
margin-bottom: 10px;
p {
display: inline-block;
margin-bottom: 0;
}
}
}
.images {
display: flex;
justify-content: center;
align-items: center;
margin-top: 100px;
img {
margin: 0 20px;
}
}
}
}
.s2 {
.parts {
margin-top: 100px;
&.p1 {
margin-top: 0;
text-align: center;
}
&.lastPart {
text-align: center;
}
}
}
}
///////////////////////////// products page
.products--page {
.hero {
.bg {
background-image: url('../img/products/products-hero.jpg');
}
}
.s1 {
text-align: center;
}
.s2 {
text-align: center;
.product {
display: block;
background: #fff;
padding-bottom: 30px;
text-align: right;
@extend %defaultBoxShadow;
img {
width: 100%;
}
h4 {
padding: 0 15px;
margin-top: 20px;
}
p {
padding: 0 15px;
margin-top: 10px;
}
}
.no-product {
width: 100%;
background: $red;
color: #fff;
padding: 20px;
margin-bottom: 50px;
text-align: center;
}
}
.s3 {
background: #fff;
margin-top: 100px;
margin-bottom: 200px;
padding: 0;
text-align: center;
position: relative;
.panel {
background: $theme;
padding-bottom: 50px;
.title {
color: #fff;
padding-bottom: 30px;
span {
display: block;
&.subtitle {
font-size: 14px;
margin-top: 20px;
color: #fff;
}
}
&.title-shape-center {
&::after {
background: #fff;
}
}
}
p {
color: #fff;
margin-top: 20px;
}
a {
margin-top: 100px;
}
&::before {
display: block;
content: '';
width: 100%;
height: 100px;
position: absolute;
top: -90px;
left: 0;
background: $theme;
}
&::after {
display: block;
content: '';
width: 100%;
height: 100px;
position: absolute;
bottom: -90px;
left: 0;
background: $theme;
}
}
}
}
///////////////////////////// products page
.product-details--page {
.hero {
.bg {
background-image: url('../img/products/products-hero.jpg');
}
}
.s1 {
text-align: center;
.image-preview {
background: $bg;
width: 100%;
padding: 100px;
@include transform(translateY(200px));
@extend %defaultBoxShadow;
img {
width: 50%;
}
}
.images-carousel {
padding: 0 50px;
position: relative;
&::before {
content: '';
display: block;
width: 100%;
height: 50%;
background: $darkGray;
position: absolute;
top: 50%;
left: 0;
@include transform(translateY(-50%));
}
.slick-next {
right: -25px;
}
.slick-prev {
left: -25px;
}
#images {
margin-top: 250px;
img {
width: 60%;
margin: 0 auto;
cursor: pointer;
}
}
}
}
.s2 {
margin-top: 100px;
.parts {
margin-top: 100px;
&.p1 {
text-align: center;
margin-top: 0;
margin-bottom: 100px;
}
}
}
.s3 {
margin-top: 100px;
.parts {
margin-top: 100px;
&.p1 {
margin-top: 0;
.title {
display: block;
text-align: center;
}
p {
text-align: center;
}
}
&.p2 {
img {
display: block;
width: 90%;
margin: 0 auto 20px;
}
p {
text-align: center;
}
}
&.p3 {
text-align: center;
}
&.p4 {
h2 {
margin-bottom: 50px;
text-align: center;
}
.files {
display: flex;
justify-content: center;
.file {
text-align: center;
margin: 10px 20px;
p {
margin-top: 10px;
}
.btn {
background: $theme;
border-color: $theme;
}
}
}
}
}
}
.s4 {
text-align: center;
}
}
///////////////////////////// projects page
.projects--page {
.hero {
.bg {
background-image: url('../img/projects/hero.jpg');
}
}
.s1 {
text-align: center;
.projects {
direction: ltr;
.project {
margin-top: 100px;
.caption {
margin-top: 50px;
h4 {
margin-bottom: 20px;
}
.description {
margin-bottom: 20px;
}
}
}
.slick-slide {
.imgBox {
width: 100%;
position: relative;
img {
@extend %defaultTransition;
&.bg {
display: block;
width: 100%;
opacity: 0;
}
&.img {
display: block;
position: absolute;
width: 90%;
top: 50%;
left: 50%;
@include transform(translate(-50%, -50%));
@extend %defaultTransition;
}
}
}
&.slick-center {
.imgBox {
img {
&.img {
width: 100%;
top: 0;
left: 0;
@include transform(translate(0, 0));
}
}
}
}
}
.slick-prev {
left: 25px;
z-index: 5;
}
.slick-next {
right: 25px;
z-index: 5;
}
}
}
.s2 {
background: $theme;
margin-top: -200px;
padding-top: 200px;
text-align: center;
margin-bottom: 100px;
.title {
display: block;
color: #fff;
}
}
}
///////////////////////////// blog page
.blog--page {
.hero {
.bg {
background-image: url('../img/blog/hero.jpg');
}
}
.s1 {
text-align: center;
}
.s2 {
text-align: center;
padding-bottom: 0;
.filters {
margin-bottom: 0;
}
}
.s3 {
.post {
margin-top: 50px;
.panel {
display: flex;
padding-top: 30px;
padding-bottom: 30px;
margin-top: 0;
.imgBox {
flex-basis: 30%;
.img {
width: 140%;
position: relative;
&::before {
content: '';
display: block;
width: 80%;
height: 70%;
background: $theme;
position: absolute;
top: -15px;
right: -15px;
z-index: -1;
}
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
}
.txtBox {
flex-basis: 70%;
padding: 0 15px;
.date-category {
width: 100%;
text-align: right;
margin-bottom: 30px;
.category {
margin-left: 20px;
span {
display: inline-block;
}
}
}
.btn {
float: left;
margin-top: 50px !important;
}
h4 {
margin-bottom: 20px;
}
}
}
}
.no-post {
width: 100%;
background: $red;
color: #fff;
padding: 20px;
margin-top: 70px;
text-align: center;
}
}
}
///////////////////////////// blog details page
.blog-details--page {
.hero {
.bg {
background-image: url('../img/blog/hero.jpg');
}
}
.s1 {
.date-category {
text-align: center;
margin-bottom: 80px;
.category {
display: block;
margin-bottom: 10px;
}
}
.share {
text-align: center;
margin-top: 100px;
ul {
display: flex;
justify-content: center;
margin-top: 30px;
li {
margin: 0 30px;
a {
&:hover {
i {
opacity: 1;
}
}
i {
color: $red;
opacity: 0.7;
@extend %defaultTransition;
}
}
}
}
}
}
.s2 {
text-align: center;
padding-bottom: 0;
.title {
display: block;
}
}
}
///////////////////////////// contact page
.contact--page {
.hero {
.bg {
background-image: url('../img/contact/hero.jpg');
}
}
.s1 {
.p1 {
text-align: center;
margin-bottom: 50px;
}
.p2 {
ul {
li {
margin-bottom: 30px;
i {
color: $red;
margin-left: 5px;
}
}
}
}
.p3 {
hr {
border: 0.1px solid rgba(#000, 0.1);
margin-bottom: 30px;
}
b {
display: block;
margin-bottom: 20px;
}
ul {
margin-top: 30px;
li {
display: inline-block;
margin-left: 20px;
a {
&:hover {
i {
color: $red;
}
}
i {
color: rgba(#000, 0.3);
@extend %defaultTransition;
font-size: 20px;
}
}
}
}
}
.p4 {
position: relative;
height: 200px;
.mapouter {
position: absolute;
top: 50px;
left: 0;
}
}
}
.s2 {
margin-top: 300px;
h2 {
display: block;
width: 100%;
max-width: 700px;
margin: 0 auto;
text-align: center;
line-height: 1.6em;
}
.form {
margin-top: 50px;
}
}
}
///////////////////////////// technical information page
.tech-info--page {
.hero {
.bg {
background-image: url('../img/tech-info/hero.jpg');
}
}
.s1 {
.content {
&.gTech {
.imgBox {
margin-top: 50px;
width: 100%;
text-align: center;
img {
width: 100%;
max-width: 500px;
}
}
}
&.gStandard {
ul {
padding-right: 15px;
li {
list-style: decimal;
list-style-position: outside;
p {
direction: ltr;
}
}
}
}
h2 {
margin-top: 80px;
margin-bottom: 30px;
&.first {
margin-top: 0;
}
}
p {
margin-bottom: 20px;
a {
color: $theme;
@extend %defaultTransition;
&:hover {
color: $red;
}
}
}
ul {
margin-top: 40px;
li {
margin-bottom: 10px;
p {
margin: 0;
}
}
}
}
}
.s2 {
text-align: center;
padding-bottom: 0;
.title {
display: block;
margin-bottom: 10px;
}
}
}