Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- */
- /* добавляю в начале файла это, чтобы избавиться от белой полосы добавлено 22.08.2025*/
- :root {
- --main: 34, 34, 34; /* тёмно-серый вместо белого */
- }
- /* конец добавляю в начале файла это, чтобы избавиться от белой полосы */
- .booking-form {
- min-height: 601.17px; /* или подбери нужную высоту */
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .booking-skeleton {
- height: 100%;
- }
- .hero {
- max-width: 1000px;
- margin: 0 auto;
- padding: 0 20px;
- }
- .hero__bg-img {
- width: 100%;
- height: auto;
- object-fit: cover;
- display: block;
- border-radius: 8px; /* ja vēlies nedaudz noapaļotus stūrus */
- }
- /* добавляю адаптивный код */
- @media (max-width: 480px) {
- .top-screen {
- height: auto;
- flex-direction: column;
- align-items: center;
- margin-bottom: 32px;
- padding: 0 10px;
- }
- .container {
- max-width: 100%;
- padding: 0 10px;
- box-sizing: border-box;
- overflow-x: hidden;
- }
- body {
- overflow-x: hidden;
- }
- }
- /* то, что ниже добавляю 20.08.2025 в 21.38, если не сработает уберем*/
- @media (min-width: 901px) {
- .top-screen__info {
- display: block !important;
- opacity: 1 !important;
- visibility: visible !important;
- position: relative;
- text-align: center;
- margin-top: 20px;
- color: white;
- }
- .top-screen__info h1 {
- font-size: 32px;
- margin-bottom: 10px;
- }
- .top-screen__meta {
- display: flex;
- flex-direction: column;
- gap: 8px;
- font-size: 18px;
- }
- }
- /* === Custom responsive fixes for top-screen === */
- .top-screen {
- display: flex;
- align-items: flex-end;
- justify-content: center;
- flex-direction: column;
- background-repeat: no-repeat;
- background-size: cover;
- background-position: top center;
- min-height: 400px;
- height: auto;
- padding: 40px 0;
- margin-bottom: 80px;
- position: relative;
- }
- .container {
- width: 100%;
- max-width: 1170px;
- margin: 0 auto;
- padding: 0 16px;
- box-sizing: border-box;
- }
- .top-screen__right-col {
- display: flex;
- flex-direction: column;
- gap: 30px;
- width: 100%;
- max-width: 560px;
- animation: slideInRight 1s forwards;
- }
- .top-screen__details,
- .top-screen__meta {
- min-height: 50px;
- width: 100%;
- background-color: rgba(0, 128, 255, 0.05); /* временный фон для отладки */
- }
- /* Адаптация для мобильных устройств */
- @media (max-width: 768px) {
- .top-screen {
- padding: 20px 0;
- background-size: cover;
- }
- .top-screen__right-col {
- max-width: 100%;
- gap: 16px;
- }
- .top-screen__details,
- .top-screen__meta {
- min-height: 40px;
- }
- }
- /* === Fix visibility for top-screen on desktop and tablet === */
- .top-screen {
- display: flex;
- align-items: flex-end;
- justify-content: center;
- flex-direction: column;
- background-repeat: no-repeat;
- background-size: cover;
- background-position: top center;
- min-height: 400px;
- height: auto;
- padding: 40px 0;
- margin-bottom: 80px;
- position: relative;
- }
- /* пытаюсь скрыть белую полосу добавлено 22.08.2025*/
- .top-screen__bg-shadow {
- background: none; /* затемнение вместо белого */
- border: 1px solid red;
- }
- /* конец пытаюсь скрыть белую полосу */
- .container {
- width: 100%;
- max-width: 1170px;
- margin: 0 auto;
- padding: 0 16px;
- box-sizing: border-box;
- }
- .top-screen__right-col {
- display: flex;
- flex-direction: column;
- gap: 30px;
- width: 100%;
- max-width: 560px;
- animation: slideInRight 1s forwards;
- opacity: 1;
- visibility: visible;
- }
- .top-screen__details,
- .top-screen__meta {
- min-height: 50px;
- width: 100%;
- background-color: rgba(0, 128, 255, 0.05); /* временный фон для отладки */
- }
- /* === Mobile and tablet adaptation === */
- @media (max-width: 1024px) {
- .top-screen {
- padding: 20px 0;
- background-size: cover;
- }
- .top-screen__right-col {
- max-width: 100%;
- gap: 16px;
- }
- .top-screen__details,
- .top-screen__meta {
- min-height: 40px;
- }
- }
- /* === Адаптивная структура для текстовых блоков === */
- .top-screen__text,
- .top-screen__details-text {
- width: 100%;
- max-width: 840px;
- margin: 0 auto;
- padding: 16px;
- box-sizing: border-box;
- font-size: 1.1rem;
- line-height: 1.6;
- overflow-wrap: break-word;
- word-break: break-word;
- }
- /* Для планшетов */
- @media (max-width: 1024px) {
- .top-screen__text,
- .top-screen__details-text {
- max-width: 90%;
- padding: 12px;
- font-size: 1rem;
- }
- }
- /* Для мобильных */
- @media (max-width: 768px) {
- .top-screen__text,
- .top-screen__details-text {
- max-width: 100%;
- padding: 10px;
- font-size: 0.95rem;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment