style.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. @font-face {
  2. font-family: 'AudiType';
  3. src: url('/fonts/AudiTypeVF.woff2') format('woff2-variations');
  4. font-display: swap;
  5. font-style: normal;
  6. font-stretch: 130%;
  7. }
  8. // Utility classes for padding and margin (1-100)
  9. @for $i from 1 through 200 {
  10. // Padding
  11. .pt--#{$i} { padding-top: #{$i}px !important; }
  12. .pr--#{$i} { padding-right: #{$i}px !important; }
  13. .pb--#{$i} { padding-bottom: #{$i}px !important; }
  14. .pl--#{$i} { padding-left: #{$i}px !important; }
  15. .p--#{$i} { padding: #{$i}px !important; }
  16. // Margin
  17. .mt--#{$i} { margin-top: #{$i}px !important; }
  18. .mr--#{$i} { margin-right: #{$i}px !important; }
  19. .mb--#{$i} { margin-bottom: #{$i}px !important; }
  20. .ml--#{$i} { margin-left: #{$i}px !important; }
  21. .m--#{$i} { margin: #{$i}px !important; }
  22. }
  23. body{
  24. background-color: hsla(216, 23%, 8%, 1);
  25. color: rgb(252, 252, 253);
  26. font-family: 'AudiType';
  27. font-weight: 400;
  28. }
  29. *{
  30. background-repeat: no-repeat;
  31. }
  32. .ico, ::after, ::before{
  33. display: inline-block;
  34. background-repeat: no-repeat;
  35. background-position: center;
  36. }
  37. button{
  38. cursor: pointer;
  39. }
  40. header{
  41. width: 100%;
  42. .header--wrap{
  43. background-color: #020203;
  44. max-width: 1920px;
  45. width: 100%;
  46. margin: 0 auto;
  47. height: 72px;
  48. padding: 0 96px;
  49. display: flex;
  50. align-items: center;
  51. }
  52. .header--logo--wrap{
  53. margin-right: 40px;
  54. }
  55. .header--menu--wrap{
  56. display: flex;
  57. gap: 24px;
  58. >a{
  59. color: #fcfcfdb2;
  60. &:hover{
  61. color: hsla(216, 33%, 99%, 1);
  62. }
  63. }
  64. }
  65. .header--search--wrap{
  66. margin-left: auto;
  67. .search--btn{
  68. border-radius: 50%;
  69. padding: 0;
  70. background-image: url(/img/ico--search.svg);
  71. background-repeat: no-repeat;
  72. background-position: center;
  73. background-color: transparent;
  74. width: 48px;
  75. height: 48px;
  76. }
  77. }
  78. }
  79. footer{
  80. width: 100%;
  81. .footer--wrap{
  82. background-color: #020203;
  83. max-width: 1920px;
  84. width: 100%;
  85. margin: 0 auto;
  86. height: 72px;
  87. padding: 0 96px;
  88. display: flex;
  89. align-items: center;
  90. }
  91. }
  92. main{
  93. // audi stories
  94. .detail--container{
  95. max-width: 1920px;
  96. width: 100%;
  97. margin: 0 auto;
  98. .title--wrap{
  99. padding: 40px;
  100. text-align: center;
  101. h2{
  102. font-size: 72px;
  103. margin-bottom: 24px;
  104. }
  105. p{
  106. color: rgba(252, 252, 253, 0.7);
  107. font-size: 16px;
  108. }
  109. }
  110. .content--wrap{
  111. padding: 40px 88px;
  112. .tech--card--wrap{
  113. display: flex;
  114. row-gap: 72px;
  115. column-gap: 16px;
  116. flex-wrap: wrap;
  117. .tech--card{
  118. width: calc((100% - 48px) / 4);
  119. display: flex;
  120. flex-direction: column;
  121. .img--wrap{
  122. margin-bottom: 24px;
  123. border-radius: 20px;
  124. overflow: hidden;
  125. >img{
  126. width: 100%;
  127. aspect-ratio: 16 / 9;
  128. object-fit: cover;
  129. }
  130. }
  131. >h3{
  132. font-size: 24px;
  133. margin-bottom: 8px;
  134. }
  135. >p{
  136. margin-bottom: 24px;
  137. color: rgba(252, 252, 253, 0.7);
  138. font-size: 16px;
  139. font-stretch: 105%;
  140. &.type2{
  141. margin-top: 40px;
  142. color: rgba(252, 252, 253, 0.7);
  143. font-size: 14px;
  144. }
  145. }
  146. >a{
  147. display: flex;
  148. font-size: 16px;
  149. text-underline-offset: 7px;
  150. text-decoration: underline 1px rgb(252, 252, 253);
  151. align-items: center;
  152. .ico{
  153. width: 24px;
  154. height: 24px;
  155. background-image: url(/img/ico--arrow.svg);
  156. }
  157. }
  158. }
  159. }
  160. .ls--card--wrap{
  161. .ls--card{
  162. display: flex;
  163. gap: 72px;
  164. align-items: center;
  165. .ls--img--wrap{
  166. width: 50%;
  167. overflow: hidden;
  168. border-radius: 20px;
  169. }
  170. .ls--txt--wrap{
  171. width: 50%;
  172. >h2{
  173. font-size: 36px;
  174. margin-bottom: 8px;
  175. }
  176. >h3{
  177. font-size: 24px;
  178. margin-bottom: 8px;
  179. }
  180. >p{
  181. font-size: 16px;
  182. color: rgba(252, 252, 253, 0.7);
  183. margin-bottom: 24px;
  184. &.desc{
  185. margin-top: 40px;
  186. font-size: 14px;
  187. margin-bottom: 0;
  188. }
  189. }
  190. }
  191. }
  192. }
  193. }
  194. .img--section{
  195. .img--wrap{
  196. overflow: hidden;
  197. border-radius: 20px;
  198. img{
  199. width: 100%;
  200. display: block;
  201. }
  202. video{
  203. width: 100%;
  204. height: 100%;
  205. display: block;
  206. object-fit: cover;
  207. }
  208. }
  209. &.none--bdrs{
  210. .img--wrap{
  211. border-radius: 0;
  212. }
  213. }
  214. &.type2{
  215. display: flex;
  216. gap: 16px;
  217. .img--box{
  218. width: 50%;
  219. }
  220. }
  221. &.type3{
  222. display: flex;
  223. gap: 16px;
  224. .img--box{
  225. &:first-child{
  226. width: 35%;
  227. }
  228. &:last-child{
  229. width: 70%;
  230. }
  231. }
  232. }
  233. .desc--wrap{
  234. margin-top: 24px;
  235. font-size: 16px;
  236. color: #fcfcfdb2;
  237. .desc{
  238. font-size: 12px;
  239. }
  240. }
  241. }
  242. .title--section{
  243. text-align: center;
  244. padding: 64px 96px;
  245. &.mid--type{
  246. max-width: 1440px;
  247. margin: 0 auto;
  248. }
  249. >h2{
  250. margin-bottom: 24px;
  251. font-size: 44px;
  252. &.big--title{
  253. font-size: 72px;
  254. }
  255. }
  256. >h3{
  257. font-size: 24px;
  258. margin-bottom: 24px;
  259. }
  260. >p{
  261. color: rgba(252, 252, 253, 0.7);
  262. font-size: 16px;
  263. &.desc{
  264. color: rgba(252, 252, 253, 0.7);
  265. font-size: 14px;
  266. }
  267. }
  268. }
  269. .desc--section{
  270. padding: 64px 96px;
  271. margin: 0 auto;
  272. max-width: 950px;
  273. >h2{
  274. font-size: 72px;
  275. }
  276. >h3{
  277. &.big--title{
  278. font-size: 44px;
  279. }
  280. font-size: 36px;
  281. margin-bottom: 40px;
  282. }
  283. >p{
  284. margin: 0 auto;
  285. color: rgba(252, 252, 253, 0.7);
  286. font-size: 16px;
  287. }
  288. &.mid--type{
  289. max-width: 1440px;
  290. }
  291. &.full--type{
  292. width: 100%;
  293. max-width: 100%;
  294. >h3{
  295. margin-bottom: 16px;
  296. }
  297. >ul{
  298. display: flex;
  299. flex-direction: column;
  300. gap: 24px;
  301. >li{
  302. font-size: 24px;
  303. }
  304. }
  305. }
  306. }
  307. .img--desc--section{
  308. display: flex;
  309. padding: 64px 0;
  310. &.mid--type{
  311. margin: 0 auto;
  312. max-width: 1248px;
  313. .desc--wrap{
  314. padding-right: 0;
  315. }
  316. }
  317. &.reverse{
  318. flex-direction: row-reverse;
  319. .desc--wrap{
  320. padding-right: 72px;
  321. }
  322. }
  323. .img--wrap{
  324. width: 50%;
  325. border-radius: 20px;
  326. overflow: hidden;
  327. img{
  328. width: 100%;
  329. }
  330. &.type2{
  331. }
  332. }
  333. .desc--wrap{
  334. width: 50%;
  335. display: flex;
  336. flex-direction: column;
  337. justify-content: center;
  338. padding: 0 72px;
  339. h3{
  340. font-size: 36px;
  341. margin-bottom: 8px;
  342. }
  343. p{
  344. font-size: 16px;
  345. color: rgba(252, 252, 253, 0.7);
  346. &.desc{
  347. font-size: 12px;
  348. }
  349. }
  350. }
  351. &.type2{
  352. .inner--box{
  353. width: 50%;
  354. .img--wrap{
  355. width: 100%;
  356. }
  357. .desc{
  358. margin-top: 12px;
  359. color: rgba(252, 252, 253, 0.7);
  360. font-size: 14px;
  361. }
  362. }
  363. }
  364. }
  365. .more--section{
  366. margin-top: 100px;
  367. >h2{
  368. font-size: 44px;
  369. margin-bottom: 40px;
  370. }
  371. .tech--card--wrap{
  372. display: flex;
  373. column-gap: 16px;
  374. .tech--card{
  375. width: calc((100% - 48px) / 4);
  376. display: flex;
  377. flex-direction: column;
  378. .img--wrap{
  379. margin-bottom: 24px;
  380. border-radius: 20px;
  381. overflow: hidden;
  382. >img{
  383. width: 100%;
  384. aspect-ratio: 16 / 9;
  385. object-fit: cover;
  386. }
  387. }
  388. >h3{
  389. font-size: 24px;
  390. margin-bottom: 8px;
  391. }
  392. >p{
  393. margin-bottom: 24px;
  394. color: rgba(252, 252, 253, 0.7);
  395. font-size: 16px;
  396. font-stretch: 105%;
  397. &.type2{
  398. margin-top: 40px;
  399. color: rgba(252, 252, 253, 0.7);
  400. font-size: 14px;
  401. }
  402. }
  403. >a{
  404. display: flex;
  405. font-size: 16px;
  406. text-underline-offset: 7px;
  407. text-decoration: underline 1px rgb(252, 252, 253);
  408. align-items: center;
  409. .ico{
  410. width: 24px;
  411. height: 24px;
  412. background-image: url(/img/ico--arrow.svg);
  413. }
  414. }
  415. }
  416. }
  417. }
  418. }
  419. // about audi
  420. .about--container{
  421. max-width: 1920px;
  422. width: 100%;
  423. margin: 0 auto;
  424. .visual--section{
  425. .img--wrap{
  426. overflow: hidden;
  427. border-radius: 20px;
  428. img{
  429. width: 100%;
  430. display: block;
  431. }
  432. video{
  433. width: 100%;
  434. height: 100%;
  435. display: block;
  436. object-fit: cover;
  437. }
  438. }
  439. }
  440. }
  441. }
  442. .more--btn{
  443. display: flex;
  444. font-size: 16px;
  445. text-underline-offset: 7px;
  446. text-decoration: underline 1px rgb(252, 252, 253);
  447. align-items: center;
  448. .ico{
  449. width: 24px;
  450. height: 24px;
  451. margin-left: 8px;
  452. background-image: url(/img/ico--link.svg);
  453. }
  454. }
  455. .btn--gray{
  456. transition: all 0.3s;
  457. width: fit-content;
  458. font-size: 14px;
  459. display: inline-block;
  460. font-weight: 400;
  461. padding: 12px 24px;
  462. color: rgb(252, 252, 253);
  463. border-radius: 100px;
  464. background-color: #657081;
  465. &:hover{
  466. background-color: rgb(44, 52, 63);
  467. box-shadow: rgba(219, 223, 230, 0.2) 0px 0px 0px 1px inset;
  468. }
  469. &.big--btn{
  470. font-size: 16px;
  471. padding: 16px 32px;
  472. width: 248px;
  473. }
  474. }
  475. .btn--border--gray{
  476. transition: all 0.3s;
  477. width: fit-content;
  478. font-size: 14px;
  479. display: inline-block;
  480. font-weight: 400;
  481. padding: 12px 24px;
  482. color: rgb(252, 252, 253);
  483. border-radius: 100px;
  484. background-color: #181d25;
  485. box-shadow: rgb(44, 52, 63) 0px 0px 0px 1px inset;
  486. &:hover{
  487. background-color: rgb(44, 52, 63);
  488. box-shadow: rgba(219, 223, 230, 0.2) 0px 0px 0px 1px inset;
  489. }
  490. &.big--btn{
  491. padding: 16px 32px;
  492. font-size: 16px;
  493. }
  494. }