adaptive_fix_6
This commit is contained in:
@@ -82,6 +82,10 @@
|
|||||||
Наша история
|
Наша история
|
||||||
</h2>
|
</h2>
|
||||||
<h3 class="heading_date">22 августа 2026</h3>
|
<h3 class="heading_date">22 августа 2026</h3>
|
||||||
|
<!-- КНОПКА -->
|
||||||
|
<button class="story_btn">
|
||||||
|
Открыть историю
|
||||||
|
</button>
|
||||||
<p class="heading_text">
|
<p class="heading_text">
|
||||||
Мы — та самая история, которая началась со странного сообщения и превратилась в нечто настоящее.
|
Мы — та самая история, которая началась со странного сообщения и превратилась в нечто настоящее.
|
||||||
В нас есть легкость и смех, который когда-то стал началом всего, любовь к простым вещам вроде
|
В нас есть легкость и смех, который когда-то стал началом всего, любовь к простым вещам вроде
|
||||||
@@ -352,7 +356,7 @@
|
|||||||
Фотографии
|
Фотографии
|
||||||
</h4>
|
</h4>
|
||||||
<!-- Slider main container -->
|
<!-- Slider main container -->
|
||||||
<div class="swiper">
|
<div class="swiper photos_slider">
|
||||||
<!-- Additional required wrapper -->
|
<!-- Additional required wrapper -->
|
||||||
<div class="swiper-wrapper">
|
<div class="swiper-wrapper">
|
||||||
<!-- Slides -->
|
<!-- Slides -->
|
||||||
@@ -407,6 +411,17 @@
|
|||||||
<!-- If we need scrollbar -->
|
<!-- If we need scrollbar -->
|
||||||
<div class="swiper-scrollbar"></div>
|
<div class="swiper-scrollbar"></div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- COLLAGE -->
|
||||||
|
<div class="photos_collage">
|
||||||
|
<img src="images/photos/1.webp" alt="">
|
||||||
|
<img src="images/photos/2.webp" alt="">
|
||||||
|
<img src="images/photos/3.webp" alt="">
|
||||||
|
<img src="images/photos/4.webp" alt="">
|
||||||
|
<img src="images/photos/5.webp" alt="">
|
||||||
|
<img src="images/photos/6.webp" alt="">
|
||||||
|
<img src="images/photos/8.webp" alt="">
|
||||||
|
<img src="images/photos/9.webp" alt="">
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="to-do-list" id="to-do-list">
|
<section class="to-do-list" id="to-do-list">
|
||||||
<h4 class="do-list_title">
|
<h4 class="do-list_title">
|
||||||
|
|||||||
@@ -88,4 +88,19 @@ links.forEach(link => {
|
|||||||
burger.classList.remove('active');
|
burger.classList.remove('active');
|
||||||
nav.classList.remove('active');
|
nav.classList.remove('active');
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
const btn = document.querySelector('.story_btn');
|
||||||
|
const text = document.querySelector('.heading_text');
|
||||||
|
|
||||||
|
btn.addEventListener('click', () => {
|
||||||
|
|
||||||
|
text.classList.toggle('active');
|
||||||
|
|
||||||
|
if (text.classList.contains('active')) {
|
||||||
|
btn.textContent = 'Скрыть историю';
|
||||||
|
} else {
|
||||||
|
btn.textContent = 'Открыть историю';
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -238,9 +238,9 @@ img {
|
|||||||
.heading {
|
.heading {
|
||||||
background: url("images/25.webp") 50% 100% / cover;
|
background: url("images/25.webp") 50% 100% / cover;
|
||||||
margin: 0px 400px;
|
margin: 0px 400px;
|
||||||
/* border: 10px solid rgb(184, 136, 48); */
|
padding-bottom: 40px; /* можно оставить */
|
||||||
/* border: 15px double rgb(184, 136, 48); */
|
padding-top: 60px;
|
||||||
height: 640px;
|
/* ❌ height: 640px; УДАЛИТЬ */
|
||||||
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
|
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
|
||||||
}
|
}
|
||||||
.heading_content {
|
.heading_content {
|
||||||
@@ -302,6 +302,10 @@ img {
|
|||||||
text-shadow: #000 2px 2px 6px;
|
text-shadow: #000 2px 2px 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.story_btn {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* -----------------------------------PEOPLE-------------------------------------- */
|
/* -----------------------------------PEOPLE-------------------------------------- */
|
||||||
|
|
||||||
.people {
|
.people {
|
||||||
@@ -495,6 +499,7 @@ h4 {
|
|||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
.map_adress {
|
.map_adress {
|
||||||
|
line-height: 1.6;
|
||||||
font-size: 50px;
|
font-size: 50px;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
@@ -565,6 +570,9 @@ h4 {
|
|||||||
.photos_title {
|
.photos_title {
|
||||||
margin-bottom: 100px;
|
margin-bottom: 100px;
|
||||||
}
|
}
|
||||||
|
.photos_collage {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
.swiper_img {
|
.swiper_img {
|
||||||
height: 500px;
|
height: 500px;
|
||||||
border: 5px dotted #000;
|
border: 5px dotted #000;
|
||||||
@@ -1470,7 +1478,7 @@ textarea {
|
|||||||
}
|
}
|
||||||
.swiper_img {
|
.swiper_img {
|
||||||
height: 250px;
|
height: 250px;
|
||||||
max-width: 70%;
|
max-width: 50%;
|
||||||
}
|
}
|
||||||
.swiper-scrollbar {
|
.swiper-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -1503,7 +1511,18 @@ textarea {
|
|||||||
}
|
}
|
||||||
.map_adress {
|
.map_adress {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
color: #502c01;
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.transfer_inner {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.transfer_map {
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
|
.transfer {
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1532,12 +1551,14 @@ textarea {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: start;
|
text-align: start;
|
||||||
}
|
}
|
||||||
.heading_text {
|
.heading {
|
||||||
display: none;
|
min-height: 225px;
|
||||||
}
|
height: auto;
|
||||||
.heading {
|
padding-bottom: 0px;
|
||||||
height: 200px;
|
}
|
||||||
}
|
.heading_cont {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
.img_newlywed {
|
.img_newlywed {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -1547,12 +1568,46 @@ textarea {
|
|||||||
.header {
|
.header {
|
||||||
width: 15%;
|
width: 15%;
|
||||||
}
|
}
|
||||||
.photos {
|
.photos_slider {
|
||||||
display: none;
|
display: none !important;
|
||||||
}
|
}
|
||||||
.item_none {
|
|
||||||
display: none;
|
.photos_collage {
|
||||||
}
|
display: grid !important;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: 10px;
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photos_collage img {
|
||||||
|
width: 100%;
|
||||||
|
height: 180px;
|
||||||
|
object-fit: cover;
|
||||||
|
border-radius: 18px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photos_collage img:nth-child(3) {
|
||||||
|
grid-column: span 2;
|
||||||
|
height: 240px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photos_collage img:nth-child(6) {
|
||||||
|
grid-column: span 2;
|
||||||
|
height: 240px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photos {
|
||||||
|
margin: 0 15px;
|
||||||
|
padding-bottom: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photos_title {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
}
|
||||||
|
.photos_collage {
|
||||||
|
padding-top: 40px;
|
||||||
|
}
|
||||||
.time_row_up, .time_row_down {
|
.time_row_up, .time_row_down {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
@@ -1579,6 +1634,43 @@ textarea {
|
|||||||
align-items: start;
|
align-items: start;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
}
|
}
|
||||||
|
.story_btn {
|
||||||
|
display: inline-block;
|
||||||
|
|
||||||
|
margin-top: 20px;
|
||||||
|
padding: 12px 28px;
|
||||||
|
font-size: 22px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heading_text {
|
||||||
|
max-height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
opacity: 0;
|
||||||
|
|
||||||
|
transition:
|
||||||
|
max-height 0.6s ease,
|
||||||
|
opacity 0.4s ease,
|
||||||
|
padding 0.4s ease;
|
||||||
|
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heading_text.active {
|
||||||
|
max-height: 1000px;
|
||||||
|
opacity: 1;
|
||||||
|
|
||||||
|
padding-top: 20px;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
}
|
||||||
|
.time {
|
||||||
|
padding-top: 0px;
|
||||||
|
}
|
||||||
|
.story_btn {
|
||||||
|
background-color: #a8582a;
|
||||||
|
border: 1px solid #000;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1621,14 +1713,17 @@ textarea {
|
|||||||
white-space: wrap;
|
white-space: wrap;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
.heading_text.active {
|
||||||
|
min-height: 450px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 320px) {
|
@media (max-width: 320px) {
|
||||||
.header {
|
.header {
|
||||||
width: 23%;
|
width: 23%;
|
||||||
}
|
}
|
||||||
.heading {
|
.heading_text {
|
||||||
height: 240px;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.time {
|
.time {
|
||||||
font-size: 35px;
|
font-size: 35px;
|
||||||
|
|||||||
Reference in New Issue
Block a user