style.scss 9.2 KB

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