123
This commit is contained in:
parent
320c45c66d
commit
16a2025ee7
|
|
@ -1,68 +1,71 @@
|
|||
.header {
|
||||
position: relative;
|
||||
&::before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
background: #00822c;
|
||||
}
|
||||
&__inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20px 0;
|
||||
}
|
||||
&__logo {
|
||||
width: 120px;
|
||||
}
|
||||
&__search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
&-input {
|
||||
width: 350px;
|
||||
position: relative;
|
||||
input {
|
||||
width: calc(100% - 60px);
|
||||
font-family: "roboto";
|
||||
padding: 14px 40px 14px 20px;
|
||||
font-size: $h4-size;
|
||||
line-height: $h4-size;
|
||||
color: rgba($color: $text-light-black, $alpha: 0.3);
|
||||
border-radius: 5px;
|
||||
border: 1px solid #c9c9c9;
|
||||
&::placeholder {
|
||||
font-family: "roboto";
|
||||
font-size: $h4-size;
|
||||
line-height: $h4-size;
|
||||
color: rgba($color: $text-light-black, $alpha: 0.3);
|
||||
position: relative;
|
||||
.mobileSearch {
|
||||
display: none;
|
||||
}
|
||||
&::before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
background: #00822c;
|
||||
}
|
||||
&__inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20px 0;
|
||||
}
|
||||
&__logo {
|
||||
width: 120px;
|
||||
}
|
||||
&__search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
&-input {
|
||||
width: 350px;
|
||||
position: relative;
|
||||
input {
|
||||
width: calc(100% - 60px);
|
||||
font-family: "roboto";
|
||||
padding: 14px 40px 14px 20px;
|
||||
font-size: $h4-size;
|
||||
line-height: $h4-size;
|
||||
color: rgba($color: $text-light-black, $alpha: 0.3);
|
||||
border-radius: 5px;
|
||||
border: 1px solid #c9c9c9;
|
||||
&::placeholder {
|
||||
font-family: "roboto";
|
||||
font-size: $h4-size;
|
||||
line-height: $h4-size;
|
||||
color: rgba($color: $text-light-black, $alpha: 0.3);
|
||||
}
|
||||
}
|
||||
}
|
||||
&-btn {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 20px;
|
||||
@include transformY;
|
||||
svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
fill: $text-light-black;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&-btn {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 20px;
|
||||
@include transformY;
|
||||
svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
fill: $text-light-black;
|
||||
}
|
||||
&__slogan {
|
||||
font-family: "Oswald", sans-serif;
|
||||
color: $main-color;
|
||||
font-weight: 700;
|
||||
font-size: 40px;
|
||||
line-height: 40px;
|
||||
margin-right: 20px;
|
||||
letter-spacing: -1.5px;
|
||||
}
|
||||
.hamBtn {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
&__slogan {
|
||||
font-family: "Oswald", sans-serif;
|
||||
color: $main-color;
|
||||
font-weight: 700;
|
||||
font-size: 40px;
|
||||
line-height: 40px;
|
||||
margin-right: 20px;
|
||||
letter-spacing: -1.5px;
|
||||
}
|
||||
.hamBtn {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -225,11 +225,69 @@
|
|||
margin: 0;
|
||||
}
|
||||
}
|
||||
.search {
|
||||
&Modal {
|
||||
position: fixed;
|
||||
z-index: 1000;
|
||||
top: 0;
|
||||
left: 0;
|
||||
transform: translateY(-100%);
|
||||
-webkit-transform: translateY(-100%);
|
||||
-moz-transform: translateY(-100%);
|
||||
-ms-transform: translateY(-100%);
|
||||
-o-transform: translateY(-100%);
|
||||
background: #fff;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
&__inner {
|
||||
padding: 50px;
|
||||
}
|
||||
&.active {
|
||||
transform: translateY(0);
|
||||
-webkit-transform: translateY(0);
|
||||
-moz-transform: translateY(0);
|
||||
-ms-transform: translateY(0);
|
||||
-o-transform: translateY(0);
|
||||
}
|
||||
&Input {
|
||||
position: relative;
|
||||
input {
|
||||
width: calc(100% - 60px);
|
||||
height: 50px;
|
||||
padding: 0 40px 0 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
font-weight: 500;
|
||||
color: $text-black;
|
||||
}
|
||||
}
|
||||
}
|
||||
&Logo {
|
||||
width: 100%;
|
||||
max-width: 160px;
|
||||
margin: 30px auto;
|
||||
}
|
||||
&Close {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
fill: #b4b4b4;
|
||||
}
|
||||
}
|
||||
.header {
|
||||
border-bottom: 4px solid #242424;
|
||||
&__slogan {
|
||||
display: none;
|
||||
}
|
||||
.mobileSearch {
|
||||
display: block;
|
||||
svg {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
fill: #b4b4b4;
|
||||
}
|
||||
}
|
||||
&__search {
|
||||
display: none;
|
||||
}
|
||||
|
|
@ -296,6 +354,16 @@
|
|||
&::before {
|
||||
display: none;
|
||||
}
|
||||
.dropDown {
|
||||
position: unset;
|
||||
width: unset;
|
||||
background: unset;
|
||||
&__link {
|
||||
color: $text-color-white;
|
||||
text-align: center;
|
||||
padding: 20px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,6 +61,16 @@
|
|||
position: absolute;
|
||||
transform-origin: 0% 50%;
|
||||
position: relative;
|
||||
picture {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
img {
|
||||
@include fullImage;
|
||||
}
|
||||
}
|
||||
}
|
||||
&-content {
|
||||
position: absolute;
|
||||
|
|
|
|||
|
|
@ -315,6 +315,7 @@
|
|||
width: calc(50% - 40px);
|
||||
margin: 0 20px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
a.progressive {
|
||||
position: relative;
|
||||
display: block;
|
||||
|
|
|
|||
|
|
@ -117,6 +117,9 @@ li {
|
|||
.header {
|
||||
position: relative;
|
||||
}
|
||||
.header .mobileSearch {
|
||||
display: none;
|
||||
}
|
||||
.header::before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
|
|
@ -1098,6 +1101,19 @@ li {
|
|||
transform-origin: 0% 50%;
|
||||
position: relative;
|
||||
}
|
||||
.swiper-slide-image picture {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.swiper-slide-image picture img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
-o-object-fit: cover;
|
||||
}
|
||||
.swiper-slide-content {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
|
|
@ -1504,6 +1520,7 @@ li {
|
|||
width: calc(50% - 40px);
|
||||
margin: 0 20px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
.event__body-image a.progressive {
|
||||
position: relative;
|
||||
|
|
@ -2213,12 +2230,69 @@ li {
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
.searchModal {
|
||||
position: fixed;
|
||||
z-index: 1000;
|
||||
top: 0;
|
||||
left: 0;
|
||||
transform: translateY(-100%);
|
||||
-webkit-transform: translateY(-100%);
|
||||
-moz-transform: translateY(-100%);
|
||||
-ms-transform: translateY(-100%);
|
||||
-o-transform: translateY(-100%);
|
||||
background: #fff;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.searchModal__inner {
|
||||
padding: 50px;
|
||||
}
|
||||
.searchModal.active {
|
||||
transform: translateY(0);
|
||||
-webkit-transform: translateY(0);
|
||||
-moz-transform: translateY(0);
|
||||
-ms-transform: translateY(0);
|
||||
-o-transform: translateY(0);
|
||||
}
|
||||
.searchModalInput {
|
||||
position: relative;
|
||||
}
|
||||
.searchModalInput input {
|
||||
width: calc(100% - 60px);
|
||||
height: 50px;
|
||||
padding: 0 40px 0 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
font-weight: 500;
|
||||
color: #000;
|
||||
}
|
||||
.searchLogo {
|
||||
width: 100%;
|
||||
max-width: 160px;
|
||||
margin: 30px auto;
|
||||
}
|
||||
.searchClose {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
fill: #b4b4b4;
|
||||
}
|
||||
|
||||
.header {
|
||||
border-bottom: 4px solid #242424;
|
||||
}
|
||||
.header__slogan {
|
||||
display: none;
|
||||
}
|
||||
.header .mobileSearch {
|
||||
display: block;
|
||||
}
|
||||
.header .mobileSearch svg {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
fill: #b4b4b4;
|
||||
}
|
||||
.header__search {
|
||||
display: none;
|
||||
}
|
||||
|
|
@ -2288,6 +2362,16 @@ li {
|
|||
.subheader__inner .nav__inner-link::before {
|
||||
display: none;
|
||||
}
|
||||
.subheader__inner .nav__inner-link .dropDown {
|
||||
position: unset;
|
||||
width: unset;
|
||||
background: unset;
|
||||
}
|
||||
.subheader__inner .nav__inner-link .dropDown__link {
|
||||
color: #ffffff;
|
||||
text-align: center;
|
||||
padding: 20px 0;
|
||||
}
|
||||
.subheader__inner .language {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
|
|
|
|||
|
|
@ -3,8 +3,20 @@ var menu = document.getElementById("menu");
|
|||
var menuBtn = document.getElementById("menuBtn");
|
||||
var closeMenu = document.getElementById("closeMenu");
|
||||
menuBtn.onclick = function () {
|
||||
menu.classList.add("showMenu");
|
||||
menu.classList.add("showMenu");
|
||||
};
|
||||
closeMenu.onclick = function () {
|
||||
menu.classList.remove("showMenu");
|
||||
menu.classList.remove("showMenu");
|
||||
};
|
||||
|
||||
|
||||
|
||||
var searchModal = document.getElementById("searchModal");
|
||||
var searchBtn = document.getElementById("menuBtn");
|
||||
var searchClose = document.getElementById("searchClose");
|
||||
searchBtn.onclick = function () {
|
||||
searchModal.classList.add("active");
|
||||
};
|
||||
searchClose.onclick = function () {
|
||||
searchModal.classList.remove("active");
|
||||
};
|
||||
|
|
|
|||
|
|
@ -125,5 +125,45 @@ random = 0
|
|||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="searchModal" id="searchModal">
|
||||
<div class="searchModal__inner">
|
||||
<div class="searchClose" id="searchClose">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 492 492"
|
||||
style="enable-background:new 0 0 492 492;" xml:space="preserve">
|
||||
<g>
|
||||
<g>
|
||||
<path d="M300.188,246L484.14,62.04c5.06-5.064,7.852-11.82,7.86-19.024c0-7.208-2.792-13.972-7.86-19.028L468.02,7.872
|
||||
c-5.068-5.076-11.824-7.856-19.036-7.856c-7.2,0-13.956,2.78-19.024,7.856L246.008,191.82L62.048,7.872
|
||||
c-5.06-5.076-11.82-7.856-19.028-7.856c-7.2,0-13.96,2.78-19.02,7.856L7.872,23.988c-10.496,10.496-10.496,27.568,0,38.052
|
||||
L191.828,246L7.872,429.952c-5.064,5.072-7.852,11.828-7.852,19.032c0,7.204,2.788,13.96,7.852,19.028l16.124,16.116
|
||||
c5.06,5.072,11.824,7.856,19.02,7.856c7.208,0,13.968-2.784,19.028-7.856l183.96-183.952l183.952,183.952
|
||||
c5.068,5.072,11.824,7.856,19.024,7.856h0.008c7.204,0,13.96-2.784,19.028-7.856l16.12-16.116
|
||||
c5.06-5.064,7.852-11.824,7.852-19.028c0-7.204-2.792-13.96-7.852-19.028L300.188,246z" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="searchLogo">
|
||||
<img src="{{'assets/images/logo.svg'|theme}}" alt="orient logo">
|
||||
</div>
|
||||
<div class="searchInput">
|
||||
<form action="{{ 'search' | page }}" method="get">
|
||||
<input type="searh" name="q" placeholder="{{'page.search'|_}}">
|
||||
<button class="searchInput__btn">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20.414" height="20.414" viewBox="0 0 20.414 20.414">
|
||||
<g id="Иконка_Поиск_" data-name="Иконка (Поиск)" transform="translate(1 1)">
|
||||
<circle id="Ellipse_1" data-name="Ellipse 1" cx="8" cy="8" r="8" fill="none"
|
||||
stroke="#242424" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" />
|
||||
<line id="Line_1" data-name="Line 1" x1="4.35" y1="4.35" transform="translate(13.65 13.65)"
|
||||
fill="none" stroke="#242424" stroke-linecap="round" stroke-linejoin="round"
|
||||
stroke-width="2" />
|
||||
</g>
|
||||
</svg>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- main end
|
||||
================================================ -->
|
||||
|
|
@ -8,6 +8,28 @@ code = "top-menu"
|
|||
<header class="header">
|
||||
<div class="auto__container">
|
||||
<div class="header__inner">
|
||||
<div class="mobileSearch" id="searchBtn">
|
||||
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512"
|
||||
style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<g>
|
||||
<g>
|
||||
<path d="M225.474,0C101.151,0,0,101.151,0,225.474c0,124.33,101.151,225.474,225.474,225.474
|
||||
c124.33,0,225.474-101.144,225.474-225.474C450.948,101.151,349.804,0,225.474,0z M225.474,409.323
|
||||
c-101.373,0-183.848-82.475-183.848-183.848S124.101,41.626,225.474,41.626s183.848,82.475,183.848,183.848
|
||||
S326.847,409.323,225.474,409.323z" />
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path
|
||||
d="M505.902,476.472L386.574,357.144c-8.131-8.131-21.299-8.131-29.43,0c-8.131,8.124-8.131,21.306,0,29.43l119.328,119.328
|
||||
c4.065,4.065,9.387,6.098,14.715,6.098c5.321,0,10.649-2.033,14.715-6.098C514.033,497.778,514.033,484.596,505.902,476.472z" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
</div>
|
||||
<a href="/" class="header__logo">
|
||||
<img src="{{'assets/images/logo.svg'|theme}}" alt="orient logo">
|
||||
</a>
|
||||
|
|
@ -20,14 +42,14 @@ code = "top-menu"
|
|||
<input type="searh" name="q" placeholder="{{'page.search'|_}}">
|
||||
<button class="header__search-btn">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20.414" height="20.414"
|
||||
viewBox="0 0 20.414 20.414">
|
||||
viewBox="0 0 20.414 20.414">
|
||||
<g id="Иконка_Поиск_" data-name="Иконка (Поиск)" transform="translate(1 1)">
|
||||
<circle id="Ellipse_1" data-name="Ellipse 1" cx="8" cy="8" r="8" fill="none"
|
||||
stroke="#242424" stroke-linecap="round" stroke-linejoin="round"
|
||||
stroke-width="2" />
|
||||
stroke="#242424" stroke-linecap="round" stroke-linejoin="round"
|
||||
stroke-width="2" />
|
||||
<line id="Line_1" data-name="Line 1" x1="4.35" y1="4.35"
|
||||
transform="translate(13.65 13.65)" fill="none" stroke="#242424"
|
||||
stroke-linecap="round" stroke-linejoin="round" stroke-width="2" />
|
||||
transform="translate(13.65 13.65)" fill="none" stroke="#242424"
|
||||
stroke-linecap="round" stroke-linejoin="round" stroke-width="2" />
|
||||
</g>
|
||||
</svg>
|
||||
</button>
|
||||
|
|
@ -65,8 +87,10 @@ code = "top-menu"
|
|||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% elseif not item.viewBag.isHidden %}
|
||||
<a href="{{ item.url }}" class="nav__inner-link {% if (item.isActive) %} active {% endif %} {{item.cssClass}}">{{ item.title }}</a>
|
||||
{% elseif not item.viewBag.isHidden %}
|
||||
<a href="{{ item.url }}"
|
||||
class="nav__inner-link {% if (item.isActive) %} active {% endif %} {{item.cssClass}}">{{
|
||||
item.title }}</a>
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
@ -74,12 +98,12 @@ code = "top-menu"
|
|||
</nav>
|
||||
<div class="language">
|
||||
{{ form_open({ request:'onSwitchLocale'})}}
|
||||
<button class="language__link" name="locale" value="en">
|
||||
<button class="language__link" name="locale" value="en">
|
||||
<img src="{{'assets/images/svg/ENG.svg'|theme}}" alt="flag england">
|
||||
</button>
|
||||
<!-- <a href="#" class="language__link">-->
|
||||
<!-- <img src="images/svg/TKM.svg" alt="">-->
|
||||
<!-- </a>-->
|
||||
<!-- <a href="#" class="language__link">-->
|
||||
<!-- <img src="images/svg/TKM.svg" alt="">-->
|
||||
<!-- </a>-->
|
||||
<button class="language__link" name="locale" value="ru">
|
||||
<img src="{{'assets/images/svg/RUS.svg'|theme}}" alt="flag russia">
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -26,10 +26,10 @@ postPage = "post"
|
|||
|
||||
{% for post in posts.slice(0,3) %}
|
||||
<div class="swiper-slide">
|
||||
<div class="swiper-slide-image" style=" background: url({{post.featured_image|media_cdn}}) no-repeat center center ;background-size: cover;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;">
|
||||
<div class="swiper-slide-image" >
|
||||
<picture>
|
||||
<img src="({{post.featured_image|media_cdn}})" alt="">
|
||||
</picture>
|
||||
<div class="swiper-slide-content">
|
||||
<div class="swiper-slide-content-date">
|
||||
<span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue