style.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  1. @font-face {
  2. font-family: 'PTSans';
  3. src: url('./../fonts/ptsans/PTSans-Regular.eot');
  4. src: url('./../fonts/ptsans/PTSans-Regular.eot?#iefix') format('embedded-opentype'),
  5. url('./../fonts/ptsans/PTSans-Regular.woff') format('woff'),
  6. url('./../fonts/ptsans/PTSans-Regular.ttf') format('truetype');
  7. font-weight: normal;
  8. font-style: normal;
  9. }
  10. @font-face {
  11. font-family: 'Open Sans';
  12. src: url('./../fonts/opensans/OpenSans-Regular.eot');
  13. src: url('./../fonts/opensans/OpenSans-Regular.eot?#iefix') format('embedded-opentype'),
  14. url('./../fonts/opensans/OpenSans-Regular.woff') format('woff'),
  15. url('./../fonts/opensans/OpenSans-Regular.ttf') format('truetype');
  16. font-weight: normal;
  17. font-style: normal;
  18. }
  19. * {
  20. box-sizing: border-box;
  21. }
  22. html {
  23. font-size: 10px;
  24. }
  25. body {
  26. font-size: 1.6rem;
  27. font-family: PTSans;
  28. }
  29. img {
  30. max-width : 100%;
  31. }
  32. @mixin content {
  33. width: 1100px;
  34. max-width: 90%;
  35. margin: 0 auto;
  36. }
  37. @mixin flex-column-center {
  38. display: flex;
  39. flex-flow: column nowrap;
  40. justify-content: center;
  41. align-items: center;
  42. }
  43. @mixin flex-row-center {
  44. display: flex;
  45. flex-flow: row nowrap;
  46. justify-content: center;
  47. align-items: center;
  48. }
  49. @mixin hover-section {
  50. display: flex;
  51. top: 477px;
  52. left: -1px;
  53. width: 350px;
  54. border: 1px solid #980052;
  55. border-top: none;
  56. position: absolute;
  57. background: #fff;
  58. }
  59. @mixin a-link {
  60. text-decoration: none;
  61. text-align: center;
  62. }
  63. header {
  64. &.slider {
  65. transition: 1s;
  66. }
  67. div.shadowslider {
  68. background-color: rgba(0,0,0,0.6);
  69. height: 224px;
  70. section.content {
  71. @include content;
  72. @include flex-column-center;
  73. div.header-logo {
  74. padding-top: 30px;
  75. @include flex-column-center;
  76. img {
  77. height: 62px;
  78. margin-bottom: 4px;
  79. }
  80. p {
  81. font-family: Open Sans;
  82. font-size: 1.4rem;
  83. color : #fff;
  84. margin-bottom: 30px;
  85. }
  86. }
  87. li {
  88. display: inline;
  89. input {
  90. border: 1px solid #fff;
  91. background: rgba(0,0,0,0);
  92. color: #fff;
  93. height: 40px;
  94. width: 255px;
  95. font-size: 2.4rem;
  96. }
  97. input[placeholder] {
  98. background: url(../img/search.png) no-repeat;
  99. background-position: 211px;
  100. }
  101. a {
  102. @include a-link;
  103. margin-right: 60px;
  104. font-size: 2.4rem;
  105. color: #fff;
  106. }
  107. a:last-child {
  108. margin-right: 50px;
  109. }
  110. a:hover {
  111. border-bottom: 1px solid #980052;
  112. border-top: 1px solid #980052;
  113. }
  114. }
  115. .hide-menu {
  116. position: relative;
  117. display: none;
  118. ul {
  119. li {
  120. padding-top: 15px;
  121. display: block;
  122. }
  123. }
  124. .hide-menu-list {
  125. position: absolute;
  126. display: none;
  127. }
  128. }
  129. .hide-menu:hover .hide-menu-list {
  130. display: block;
  131. }
  132. }
  133. }
  134. section.content {
  135. @include content;
  136. @include flex-column-center;
  137. div.shop {
  138. display: flex;
  139. padding-top: 15px;
  140. img:nth-child(2) {
  141. margin: 0 20px;
  142. }
  143. }
  144. .arrow {
  145. display: flex;
  146. margin-top: 110px;
  147. width: 1100px;
  148. justify-content: space-between;
  149. h1 {
  150. font-size: 4.8rem;
  151. font-family: Open Sans;
  152. color: #eee;
  153. }
  154. }
  155. .button {
  156. height: 70px;
  157. width: 350px;
  158. margin: 110px 0;
  159. background: #980052;
  160. @include flex-row-center;
  161. a {
  162. color: #fff;
  163. font-size: 2.4rem;
  164. @include a-link;
  165. }
  166. a:hover {
  167. color: #000;
  168. }
  169. }
  170. }
  171. }
  172. main {
  173. &.general-inform {
  174. @include content;
  175. @include flex-column-center;
  176. }
  177. .main-logo {
  178. margin-top: 50px;
  179. margin-bottom: 30px;
  180. font-size: 4.8rem;
  181. font-family: Open Sans;
  182. color: #980052;
  183. }
  184. .content {
  185. width: 100%;
  186. #stuff2 {
  187. margin: 0 25px;
  188. }
  189. .stuff {
  190. border: 1px solid #980052;
  191. float: left;
  192. width: 350px;
  193. padding: 10px;
  194. position: relative;
  195. article span {
  196. color: #666666;
  197. font-size: 1.8rem;
  198. }
  199. .price-info {
  200. display: flex;
  201. flex-flow: row nowrap;
  202. justify-content: space-between;
  203. margin-bottom: 10px;
  204. .sale {
  205. font-size: 1.4rem;
  206. background: #980052;
  207. color: #fff;
  208. text-transform: uppercase;
  209. margin-right: 5px;
  210. }
  211. .stuff-name {
  212. font-size: 2.0rem;
  213. color: #980052;
  214. }
  215. .key-stuff {
  216. font-size: 1.2rem;
  217. }
  218. .number-stuff {
  219. font-size: 1.6rem;
  220. }
  221. }
  222. .actual-price {
  223. @include flex-row-center;
  224. padding-bottom: 10px;
  225. .old-price {
  226. font-size: 2.1rem;
  227. color: #b8b8b8;
  228. text-decoration: line-through;
  229. }
  230. .old-currency {
  231. margin-right: 25px;
  232. color: #b8b8b8;
  233. }
  234. .new-price {
  235. font-size: 3.6rem;
  236. color: #980052;
  237. font-weight: bold;
  238. }
  239. }
  240. .currency {
  241. color: #980052;
  242. }
  243. }
  244. #stuff1 .actual-price{
  245. padding-bottom: 7px;
  246. }
  247. #hide1, #hide2, #hide3 {
  248. display: none;
  249. }
  250. .hide-section {
  251. @include flex-column-center;
  252. .hide-button {
  253. height: 60px;
  254. width: 220px;
  255. background: #980052;
  256. @include flex-row-center;
  257. a {
  258. color: #fff;
  259. font-size: 1.8rem;
  260. @include a-link;
  261. margin-left: 5px;
  262. }
  263. a:hover {
  264. color: #000;
  265. }
  266. }
  267. .hide-item {
  268. margin: 20px 0;
  269. img:nth-child(2) {
  270. margin: 0 40px;
  271. }
  272. }
  273. }
  274. #stuff1:hover {
  275. #hide1 {
  276. @include hover-section;
  277. }
  278. border-bottom: none;
  279. }
  280. #stuff2:hover {
  281. #hide2 {
  282. @include hover-section;
  283. }
  284. border-bottom: none;
  285. }
  286. #stuff3:hover {
  287. #hide3 {
  288. @include hover-section;
  289. }
  290. border-bottom: none;
  291. }
  292. }
  293. .main-button {
  294. height: 60px;
  295. width: 348px;
  296. border: 2px solid #980052;
  297. margin-top: 40px;
  298. margin-bottom: 70px;
  299. @include flex-row-center;
  300. a {
  301. color: #980052;
  302. font-size: 1.8rem;
  303. @include a-link;
  304. }
  305. a:hover {
  306. color: #000;
  307. }
  308. }
  309. }
  310. section {
  311. &.back {
  312. background: url(../img/slider.jpg) no-repeat;
  313. background-color: rgba(0,0,0,0.3);
  314. background-blend-mode: multiply;
  315. background-position: center;
  316. }
  317. .back-content {
  318. @include content;
  319. display: flex;
  320. flex-flow: row nowrap;
  321. justify-content: space-around;
  322. padding-bottom: 67px;
  323. .back-content-yellow {
  324. color: #fff600;
  325. }
  326. .back-content-left {
  327. margin-top: 55px;
  328. h1 {
  329. font-size: 4.8rem;
  330. color: #fff;
  331. margin-bottom: 20px;
  332. }
  333. .back-content-left-insaide {
  334. @include flex-row-center;
  335. margin-bottom: 25px;
  336. .back-content-left-insaide-text {
  337. margin-left: 27px;
  338. font-size: 2.4rem;
  339. color: #fff;
  340. }
  341. }
  342. .back-content-left-button {
  343. height: 68px;
  344. width: 345px;
  345. display: flex;
  346. justify-content: center;
  347. align-items: center;
  348. background: #980052;
  349. a {
  350. color: #fff;
  351. font-size: 2.4rem;
  352. @include a-link;
  353. }
  354. a:hover {
  355. color: #000;
  356. }
  357. }
  358. }
  359. .back-content-right {
  360. margin-top: 80px;
  361. h2 {
  362. font-size: 2.4rem;
  363. color: #fff;
  364. margin-bottom: 20px;
  365. }
  366. .back-content-right-insaide {
  367. @include flex-row-center;
  368. margin-bottom: 31px;
  369. .back-content-right-insaide-text {
  370. margin-left: 27px;
  371. font-size: 2.4rem;
  372. color: #fff;
  373. }
  374. }
  375. .back-content-right-button {
  376. height: 68px;
  377. width: 345px;
  378. display: flex;
  379. justify-content: center;
  380. align-items: center;
  381. background: #980052;
  382. margin: 0 auto;
  383. a {
  384. color: #fff;
  385. font-size: 2.4rem;
  386. @include a-link;
  387. }
  388. a:hover {
  389. color: #000;
  390. }
  391. }
  392. }
  393. }
  394. }
  395. main#second {
  396. #stuff-name {
  397. font-size: 1.8rem;
  398. }
  399. #stuff1 .actual-price {
  400. padding-bottom: 10px;
  401. }
  402. }
  403. footer {
  404. &.footer-bg {
  405. background: #d3d3d3;
  406. }
  407. .footer-content {
  408. @include content;
  409. font-size: 1.8rem;
  410. .footer-content-body {
  411. display: flex;
  412. flex-flow: row nowrap;
  413. justify-content: space-around;
  414. align-items: center;
  415. padding-top: 35px;
  416. .footer-content-left {
  417. margin-top: -30px;
  418. .footer-content-left-head {
  419. color: #4b4a4a;
  420. margin-bottom: 13px;
  421. }
  422. .footer-content-left-body {
  423. @include flex-row-center;
  424. color: #6a6969;
  425. .footer-content-left-body-left {
  426. margin-right: 13px;
  427. }
  428. }
  429. }
  430. .footer-content-center {
  431. color: #4b4a4a;
  432. .footer-content-center-head {
  433. img {
  434. margin-right: 5px;
  435. }
  436. padding-left: 12px;
  437. margin-bottom: 28px;
  438. }
  439. .footer-content-center-body {
  440. img {
  441. margin-right: 5px;
  442. }
  443. margin-bottom: 28px;
  444. }
  445. .footer-content-center-footer {
  446. padding-left: 12px;
  447. img:first-child {
  448. margin-right: 13px;
  449. }
  450. }
  451. }
  452. .footer-content-right {
  453. margin-top: -60px;
  454. color: #4b4a4a;
  455. .footer-content-center-social-media {
  456. @include flex-row-center;
  457. a {
  458. @include a-link;
  459. border-radius: 50%;
  460. border: 1px solid #d1d1d1;
  461. height: 38px;
  462. width: 38px;
  463. font-size: 1.8rem;
  464. margin-right: 28px;
  465. line-height: 2;
  466. color: #fff;
  467. background: #4d76a1;
  468. }
  469. a:first-child {
  470. background: #3b5998;
  471. }
  472. a:last-child {
  473. margin-right: 0;
  474. background: #55acee;
  475. }
  476. a:hover {
  477. color: #000;
  478. }
  479. }
  480. p {
  481. text-align: center;
  482. margin-bottom: 15px;
  483. }
  484. }
  485. }
  486. address {
  487. text-align: center;
  488. color: #4b4a4a;
  489. padding-bottom: 40px;
  490. padding-top: 20px;
  491. span {
  492. padding-right: 80px;
  493. }
  494. }
  495. }
  496. }
  497. // -----------------for JQ---------------------
  498. .hide {
  499. display: none;
  500. }
  501. .show {
  502. display: show;
  503. }
  504. #relative {
  505. position: relative;
  506. }
  507. #absolute {
  508. position: absolute;
  509. right: -16px;
  510. bottom: -4px;
  511. height: 18px;
  512. width: 18px;
  513. background: #980052;
  514. color: #fff;
  515. text-align: center;
  516. font-size: 1.2rem;
  517. }
  518. .scrollup {
  519. width:40px;
  520. height:40px;
  521. opacity:0.3;
  522. position:fixed;
  523. bottom:50px;
  524. left: 10px;
  525. display:none;
  526. text-indent:-9999px;
  527. background: url(../img/icon_top.png) no-repeat;
  528. }
  529. //---------------------------------------------
  530. @media screen and (max-width: 1200px) {
  531. header div.shadowslider section.content nav.menu li:last-child {
  532. display: none;
  533. }
  534. }
  535. @media screen and (max-width: 1114px) {
  536. header div.shadowslider section.content div.header-logo {
  537. display: none;
  538. }
  539. header div.shadowslider {
  540. height: 50px;
  541. }
  542. header section.content .arrow {
  543. display: none;
  544. }
  545. header div.shadowslider section.content nav.menu ul {
  546. padding-top: 10px;
  547. }
  548. main .content {
  549. display: flex;
  550. justify-content: center;
  551. }
  552. main .content div#stuff3.stuff {
  553. display: none;
  554. }
  555. section .back-content .back-content-right {
  556. display: none;
  557. }
  558. footer section.footer-content .footer-content-body {
  559. flex-flow: column;
  560. }
  561. footer .footer-content .footer-content-body .footer-content-left {
  562. margin-top: 10px;
  563. }
  564. footer .footer-content .footer-content-body .footer-content-center {
  565. margin-top: 20px;
  566. }
  567. footer .footer-content .footer-content-body .footer-content-right {
  568. margin-top: 20px;
  569. }
  570. }
  571. @media screen and (max-width: 924px) {
  572. header div.shadowslider section.content {
  573. flex-flow: row;
  574. justify-content: flex-start;
  575. }
  576. header div.shadowslider section.content nav.menu {
  577. display: none;
  578. }
  579. header div.shadowslider section.content nav.hide-menu {
  580. display: block;
  581. }
  582. }