gr1zlli

Untitled

Aug 26th, 2025
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.05 KB | None | 0 0
  1. */
  2. /* добавляю в начале файла это, чтобы избавиться от белой полосы добавлено 22.08.2025*/
  3. :root {
  4.   --main: 34, 34, 34; /* тёмно-серый вместо белого */
  5. }
  6.  
  7. /* конец добавляю в начале файла это, чтобы избавиться от белой полосы */
  8. .booking-form {
  9.   min-height: 601.17px; /* или подбери нужную высоту */
  10.   display: flex;
  11.   align-items: center;
  12.   justify-content: center;
  13. }
  14.  
  15. .booking-skeleton {
  16.   height: 100%;
  17. }
  18. .hero {
  19.   max-width: 1000px;
  20.   margin: 0 auto;
  21.   padding: 0 20px;
  22. }
  23.  
  24. .hero__bg-img {
  25.   width: 100%;
  26.   height: auto;
  27.   object-fit: cover;
  28.   display: block;
  29.   border-radius: 8px; /* ja vēlies nedaudz noapaļotus stūrus */
  30. }
  31.  
  32.  
  33. /* добавляю адаптивный код */
  34. @media (max-width: 480px) {
  35.   .top-screen {
  36.     height: auto;
  37.     flex-direction: column;
  38.     align-items: center;
  39.     margin-bottom: 32px;
  40.     padding: 0 10px;
  41.   }
  42.  
  43.   .container {
  44.     max-width: 100%;
  45.     padding: 0 10px;
  46.     box-sizing: border-box;
  47.     overflow-x: hidden;
  48.   }
  49.  
  50.   body {
  51.     overflow-x: hidden;
  52.   }
  53. }
  54. /* то, что ниже добавляю 20.08.2025 в 21.38, если не сработает уберем*/
  55. @media (min-width: 901px) {
  56.   .top-screen__info {
  57.     display: block !important;
  58.     opacity: 1 !important;
  59.     visibility: visible !important;
  60.     position: relative;
  61.     text-align: center;
  62.     margin-top: 20px;
  63.     color: white;
  64.   }
  65.  
  66.   .top-screen__info h1 {
  67.     font-size: 32px;
  68.     margin-bottom: 10px;
  69.   }
  70.  
  71.   .top-screen__meta {
  72.     display: flex;
  73.     flex-direction: column;
  74.     gap: 8px;
  75.     font-size: 18px;
  76.   }
  77. }
  78.  
  79. /* === Custom responsive fixes for top-screen === */
  80. .top-screen {
  81.   display: flex;
  82.   align-items: flex-end;
  83.   justify-content: center;
  84.   flex-direction: column;
  85.   background-repeat: no-repeat;
  86.   background-size: cover;
  87.   background-position: top center;
  88.   min-height: 400px;
  89.   height: auto;
  90.   padding: 40px 0;
  91.   margin-bottom: 80px;
  92.   position: relative;
  93. }
  94.  
  95. .container {
  96.   width: 100%;
  97.   max-width: 1170px;
  98.   margin: 0 auto;
  99.   padding: 0 16px;
  100.   box-sizing: border-box;
  101. }
  102.  
  103. .top-screen__right-col {
  104.   display: flex;
  105.   flex-direction: column;
  106.   gap: 30px;
  107.   width: 100%;
  108.   max-width: 560px;
  109.   animation: slideInRight 1s forwards;
  110. }
  111.  
  112. .top-screen__details,
  113. .top-screen__meta {
  114.   min-height: 50px;
  115.   width: 100%;
  116.   background-color: rgba(0, 128, 255, 0.05); /* временный фон для отладки */
  117. }
  118.  
  119. /* Адаптация для мобильных устройств */
  120. @media (max-width: 768px) {
  121.   .top-screen {
  122.     padding: 20px 0;
  123.     background-size: cover;
  124.   }
  125.  
  126.   .top-screen__right-col {
  127.     max-width: 100%;
  128.     gap: 16px;
  129.   }
  130.  
  131.   .top-screen__details,
  132.   .top-screen__meta {
  133.     min-height: 40px;
  134.   }
  135. }
  136.  
  137. /* === Fix visibility for top-screen on desktop and tablet === */
  138. .top-screen {
  139.   display: flex;
  140.   align-items: flex-end;
  141.   justify-content: center;
  142.   flex-direction: column;
  143.   background-repeat: no-repeat;
  144.   background-size: cover;
  145.   background-position: top center;
  146.   min-height: 400px;
  147.   height: auto;
  148.   padding: 40px 0;
  149.   margin-bottom: 80px;
  150.   position: relative;
  151. }
  152. /*  пытаюсь скрыть белую полосу добавлено 22.08.2025*/
  153. .top-screen__bg-shadow {
  154.   background: none; /* затемнение вместо белого */
  155. border: 1px solid red;
  156. }
  157. /* конец пытаюсь скрыть белую полосу */
  158.  
  159. .container {
  160.   width: 100%;
  161.   max-width: 1170px;
  162.   margin: 0 auto;
  163.   padding: 0 16px;
  164.   box-sizing: border-box;
  165. }
  166.  
  167. .top-screen__right-col {
  168.   display: flex;
  169.   flex-direction: column;
  170.   gap: 30px;
  171.   width: 100%;
  172.   max-width: 560px;
  173.   animation: slideInRight 1s forwards;
  174.   opacity: 1;
  175.   visibility: visible;
  176. }
  177.  
  178. .top-screen__details,
  179. .top-screen__meta {
  180.   min-height: 50px;
  181.   width: 100%;
  182.   background-color: rgba(0, 128, 255, 0.05); /* временный фон для отладки */
  183. }
  184.  
  185. /* === Mobile and tablet adaptation === */
  186. @media (max-width: 1024px) {
  187.   .top-screen {
  188.     padding: 20px 0;
  189.     background-size: cover;
  190.   }
  191.  
  192.   .top-screen__right-col {
  193.     max-width: 100%;
  194.     gap: 16px;
  195.   }
  196.  
  197.   .top-screen__details,
  198.   .top-screen__meta {
  199.     min-height: 40px;
  200.   }
  201. }
  202. /* === Адаптивная структура для текстовых блоков === */
  203. .top-screen__text,
  204. .top-screen__details-text {
  205.   width: 100%;
  206.   max-width: 840px;
  207.   margin: 0 auto;
  208.   padding: 16px;
  209.   box-sizing: border-box;
  210.   font-size: 1.1rem;
  211.   line-height: 1.6;
  212.   overflow-wrap: break-word;
  213.   word-break: break-word;
  214. }
  215.  
  216. /* Для планшетов */
  217. @media (max-width: 1024px) {
  218.   .top-screen__text,
  219.   .top-screen__details-text {
  220.     max-width: 90%;
  221.     padding: 12px;
  222.     font-size: 1rem;
  223.   }
  224. }
  225.  
  226. /* Для мобильных */
  227. @media (max-width: 768px) {
  228.   .top-screen__text,
  229.   .top-screen__details-text {
  230.     max-width: 100%;
  231.     padding: 10px;
  232.     font-size: 0.95rem;
  233.   }
  234. }
Advertisement
Add Comment
Please, Sign In to add comment