авто2.css 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. .form-container {
  2. width: 50%;
  3. margin: 50px auto;
  4. padding: 40px;
  5. background-color: rgba(255, 255, 255, 0.7);
  6. border-radius: 10px;
  7. box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  8. }
  9. input[type=text], input[type=email], input[type=tel] {
  10. width: 100%;
  11. padding: 10px;
  12. margin: 5px 0;
  13. display: block;
  14. border: 1px solid #ccc;
  15. border-radius: 5px;
  16. }
  17. select {
  18. width: 100%;
  19. padding: 10px;
  20. margin: 5px 0;
  21. display: block;
  22. border: 1px solid #ccc;
  23. border-radius: 5px;
  24. }
  25. .form-wrapper {
  26. display: flex;
  27. justify-content: center;
  28. align-items: center;
  29. height: 100vh;
  30. }
  31. .form-container1 {
  32. background-color: rgba(255, 255, 255, 0.5);
  33. padding: 30px;
  34. border-radius: 15px;
  35. border: 3px solid rgba(255, 255, 255, 0.8);
  36. margin: 20px;
  37. }
  38. .form-container2 {
  39. background-color: rgba(149, 149, 149, 0.708);
  40. padding: 30px;
  41. border-radius: 15px;
  42. border: 3px solid rgba(255, 255, 255, 0.8);
  43. margin: 20px;
  44. }
  45. <!--main-->
  46. .logo {
  47. position: absolute;
  48. top: 20px;
  49. left: 20px;
  50. }
  51. .content {
  52. color: rgb(255, 255, 255);
  53. margin-top: 100px;
  54. }
  55. h1 {
  56. font-size: 36px;
  57. }
  58. p {
  59. font-size: 36px;
  60. }
  61. .navbar {
  62. background-color: #C78E66;
  63. padding: 10px 0;
  64. margin-top: 10px;
  65. }
  66. .navbar a {
  67. display: inline-block;
  68. padding: 10px 20px;
  69. margin: 0 10px;
  70. text-decoration: none;
  71. color: #000000;
  72. border: 1px solid transparent;
  73. border-radius: 5px;
  74. transition: all 0.3s;
  75. }
  76. .navbar a:hover {
  77. background: #c29b7f;
  78. color: #fff;
  79. }
  80. .navbar a.active {
  81. background-color: #c29b7f; /* подсветка текущих страниц авто */
  82. color: #fff;
  83. }
  84. .navbar1 {
  85. padding: 10px 0;
  86. margin-top: 10px;
  87. }
  88. .navbar1 a {
  89. display: inline-block;
  90. padding: 10px 20px;
  91. margin: 0 10px;
  92. text-decoration: none;
  93. color: #000;
  94. border: 1px solid transparent;
  95. border-radius: 5px;
  96. transition: all 0.3s;
  97. }
  98. .navbar1 a:hover {
  99. background: #ffbf00;
  100. color: #fff;
  101. }
  102. .navbar2 {
  103. position: fixed;
  104. bottom: 20px;
  105. width: 100%;
  106. text-align: center;
  107. }
  108. .navbar2 a {
  109. display: inline-block;
  110. padding: 10px 20px;
  111. margin: 0 10px;
  112. text-decoration: none;
  113. color: #000;
  114. border: 1px solid transparent;
  115. border-radius: 5px;
  116. transition: all 0.3s;
  117. }
  118. .navbar2 a:hover {
  119. background: #ffbf00;
  120. color: #fff;
  121. }
  122. .icon {
  123. /* Стили для элемента с классом 'icon' */
  124. display: inline-block;
  125. }
  126. .logo {
  127. /* Дублирующие стили для элемента с классом 'logo' */
  128. position: absolute;
  129. top: 10px;
  130. left: 10px;
  131. }
  132. .icons {
  133. /* Стили для элемента с классом 'icons' */
  134. position: absolute;
  135. top: 10px;
  136. right: 10px;
  137. }
  138. .icons a {
  139. /* Стили для ссылок внутри элемента с классом 'icons' */
  140. margin-left: 10px;
  141. }
  142. /* Стили для раздела 'автомобили' */
  143. .series {
  144. /* Стили для элемента с классом 'series' */
  145. margin-top: 20px;
  146. }
  147. .car-cards {
  148. display: flex;
  149. flex-wrap: wrap;
  150. justify-content: center;
  151. }
  152. .car-card {
  153. /* Стили для элементов с классом 'car-card' */
  154. position: relative;
  155. margin: 10px;
  156. width: calc(25% - 20px);
  157. overflow: hidden; /* Скрытие содержимого, выходящего за границы */
  158. transition: transform 0.3s; /* Плавное изменение свойства трансформации за 0.3 секунды */
  159. background: white;
  160. border-radius: 10px;
  161. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  162. padding: 10px;
  163. }
  164. .car-card:hover {
  165. /* Стили для наведения на элемент с классом 'car-card' */
  166. transform: scale(1.1); /* Увеличение масштаба при наведении */
  167. }
  168. .car-card h2, .car-card p {
  169. /* Стили для заголовков и параграфов внутри элемента 'car-card' */
  170. color: black;
  171. text-align: center;
  172. margin: 5px 0;
  173. font-size: 16px;
  174. }
  175. .car-card img {
  176. width: 100%;
  177. height: 150px; /* adjust the height to your desired value */
  178. object-fit: cover;
  179. }
  180. .car-info {
  181. /* Стили для информации об автомобиле */
  182. background-color: rgba(255, 255, 255, 0.8); /* Цвет фона с прозрачностью */
  183. position: absolute; /* Абсолютное позиционирование */
  184. bottom: 0; /* Расположение внизу */
  185. width: 100%; /* Ширина 100% */
  186. text-align: center; /* Выравнивание по центру */
  187. padding: 10px; /* Внутренние отступы 10px */
  188. }
  189. .availability {
  190. /* Стили для информации о доступности автомобиля */
  191. display: none; /* Начальное скрытие элемента */
  192. position: absolute; /* Абсолютное позиционирование */
  193. bottom: 10px; /* Расположение снизу 10px */
  194. left: 50%; /* Расположение по центру по горизонтали */
  195. transform: translateX(-50%); /* Центрирование по горизонтали */
  196. background-color: rgba(0, 0, 0, 0.7); /* Цвет фона с прозрачностью */
  197. color: white; /* Цвет текста */
  198. padding: 5px 10px; /* Внутренние отступы 5px сверху и снизу, 10px слева и справа */
  199. border-radius: 5px; /* Скругление углов 5px */
  200. }
  201. .car-card:hover .availability {
  202. /* Отображение информации о доступности при наведении на элемент 'car-card' */
  203. display: block; /* Показ элемента */
  204. }
  205. h1.in-stock { /* Создаем новый стиль с классом "in-stock" */
  206. font-size: 1.2em; /* Уменьшаем размер шрифта */
  207. padding: 10px; /* Добавляем отступы для рамки */
  208. border: 1px solid #ccc; /* Добавляем границу */
  209. background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный фон */
  210. color: white; /* Белый цвет текста */
  211. text-align: center; /* Выравнивание текста по центру */
  212. border-radius: 5px; /* Скругленные углы рамки */
  213. }
  214. .centered-button button { /* Стили для кнопки */
  215. font-size: 1.2em; /* Уменьшаем размер шрифта */
  216. padding: 10px; /* Добавляем отступы для рамки */
  217. border: 1px solid #ccc; /* Добавляем границу */
  218. background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный фон */
  219. color: white; /* Белый цвет текста */
  220. text-align: center; /* Выравнивание текста по центру */
  221. border-radius: 5px; /* Скругленные углы рамки */
  222. }
  223. .content2 {
  224. position: relative;
  225. z-index: 1;
  226. display: flex;
  227. justify-content: center;
  228. align-items: center;
  229. height: 100vh; /* Высота контента равна высоте viewport */
  230. position: relative;
  231. z-index: 1;
  232. display: flex;
  233. justify-content: center;
  234. align-items: center;
  235. height: 100vh
  236. }