all.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945
  1. * {
  2. font-weight: 500;
  3. font-family: 'Noto Sans TC', sans-serif !important;
  4. }
  5. .fa,
  6. .far,
  7. .fas {
  8. font-family: Font Awesome\ 5 Free !important;
  9. }
  10. body {
  11. overflow-x: hidden;
  12. // &.menu-show {
  13. // height: 100vh;
  14. // overflow: hidden;
  15. // }
  16. }
  17. /* Bootstrap Start */
  18. .form-control:focus,
  19. .btn-check:focus+.btn,
  20. .btn:focus {
  21. box-shadow: none !important;
  22. }
  23. .text-primary {
  24. color: #EE7800 !important;
  25. }
  26. .border-primary {
  27. border-color: #EE7800 !important;
  28. }
  29. .pagination {
  30. border-radius: 5px;
  31. overflow: hidden;
  32. a {
  33. color: #727679;
  34. transition: all .3s;
  35. &:hover {
  36. color: #fff;
  37. background-color: #EE7800;
  38. }
  39. }
  40. .page-link {
  41. padding: .75rem 1rem;
  42. border: none;
  43. &:focus {
  44. z-index: 3;
  45. color: #727679;
  46. background-color: #fff;
  47. box-shadow: none;
  48. }
  49. }
  50. }
  51. .list-pagination {
  52. .page-item.active .page-link {
  53. color: #fff;
  54. background-color: #EE7800;
  55. border-color: #EE7800;
  56. &:focus {
  57. box-shadow: none;
  58. }
  59. }
  60. .page-link.hidden {
  61. display: none;
  62. }
  63. }
  64. /* Bootstrap End */
  65. /* Navbar Start */
  66. #navbar {
  67. position: sticky;
  68. top: 0;
  69. z-index: 1000;
  70. &.show {
  71. position: fixed !important;
  72. overflow-y: auto;
  73. overflow-x: hidden;
  74. width: 100%;
  75. height: 100%;
  76. z-index: 2000;
  77. .navbar {
  78. padding-bottom: 0;
  79. }
  80. }
  81. .navbar {
  82. z-index: 100;
  83. background-color: white !important;
  84. box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.15);
  85. @media (max-width: 991px) {
  86. // box-shadow: none;
  87. }
  88. .container-fluid {
  89. padding: 0 2.5rem;
  90. @media (max-width: 1400px) {
  91. padding: 0 1.5rem;
  92. }
  93. @media (max-width: 1200px) {
  94. padding: 0 1rem;
  95. }
  96. @media (max-width: 991px) {
  97. padding: 0;
  98. }
  99. }
  100. .navbar-nav {
  101. .nav-item {
  102. @media (max-width: 1400px) {
  103. margin: 0;
  104. }
  105. .nav-link {
  106. padding: 1.5rem 1.2rem;
  107. position: relative;
  108. font-size: 1.125rem;
  109. cursor: pointer;
  110. color: #34404b;
  111. border-bottom: 4px solid transparent;
  112. @media (max-width: 1400px) {
  113. padding: 1.5rem .8rem;
  114. font-size: 1rem;
  115. }
  116. @media (max-width: 1200px) {
  117. padding: 1.5rem .5rem;
  118. font-size: .875rem;
  119. }
  120. @media (max-width: 991px) {
  121. padding: 1rem 0;
  122. font-size: 1rem;
  123. border-bottom: none;
  124. }
  125. &:hover {
  126. border-bottom: 4px solid #ee7800;
  127. @media (max-width: 991px) {
  128. border-bottom: none;
  129. }
  130. }
  131. .expand i {
  132. color: #D3D3D3;
  133. }
  134. }
  135. }
  136. li {
  137. @media (max-width: 991px) {
  138. border-bottom: 1px solid #F4F4F4;
  139. }
  140. &:last-child {
  141. @media (max-width: 991px) {
  142. border-bottom: none;
  143. }
  144. }
  145. }
  146. }
  147. @media (min-width: 991px) {
  148. li.dropdown:hover>.dropdown-menu {
  149. display: block;
  150. }
  151. }
  152. .dropdown-level-width {
  153. min-width: 13.5rem;
  154. li {
  155. margin: 5px 0;
  156. }
  157. }
  158. .search-btn {
  159. border: none;
  160. background: transparent;
  161. img {
  162. margin-bottom: -3px;
  163. }
  164. }
  165. .hover-block {
  166. .nav-link {
  167. border-bottom: none !important;
  168. &:hover a,
  169. &:hover p {
  170. color: #ee7800;
  171. }
  172. }
  173. }
  174. .dropdown-sub {
  175. @media (max-width: 991px) {
  176. padding: 5px 0;
  177. padding-left: 45px;
  178. }
  179. &:first-child {
  180. @media (max-width: 991px) {
  181. border-top: 1px solid #F4F4F4;
  182. }
  183. }
  184. &:hover {
  185. .dropdown-menu {
  186. @media (min-width: 991px) {
  187. display: block;
  188. }
  189. }
  190. .submenu,
  191. &>:hover>a {
  192. color: #ee7800;
  193. }
  194. }
  195. p {
  196. font-size: 16px;
  197. }
  198. .submenu {
  199. color: #34404b;
  200. }
  201. .dropdown-menu {
  202. top: -9px !important;
  203. left: 213px;
  204. &>li:hover>a {
  205. color: #ee7800;
  206. }
  207. }
  208. }
  209. .dropdown-item {
  210. padding: .25rem 1.2rem;
  211. @media (max-width: 991px) {
  212. padding: .5rem;
  213. }
  214. &:hover {
  215. background-color: #fff;
  216. }
  217. }
  218. .dropdown-menu {
  219. @media (max-width: 991px) {
  220. border: none;
  221. }
  222. }
  223. .logo {
  224. width: 130px;
  225. @media (max-width: 1200px) {
  226. width: 115px;
  227. }
  228. @media (max-width: 991px) {
  229. width: 130px;
  230. }
  231. }
  232. .search-text {
  233. color: #ee751b;
  234. }
  235. .renovation-btn {
  236. display: block;
  237. color: #ee751b;
  238. background: #fff;
  239. border: 1px solid #ee751b;
  240. border-radius: 3px;
  241. padding: 10px 20px;
  242. margin-left: 50px;
  243. @media (max-width: 1200px) {
  244. padding: 10px 15px;
  245. margin-left: 20px;
  246. font-size: 0.875rem;
  247. }
  248. @media (max-width: 991px) {
  249. font-size: 1rem;
  250. }
  251. }
  252. }
  253. }
  254. .navbar-toggler {
  255. border-color: transparent !important;
  256. &:focus {
  257. box-shadow: none;
  258. }
  259. }
  260. .shadow-item {
  261. position: absolute;
  262. display: none;
  263. height: 3px;
  264. top: 53px;
  265. width: 100vw;
  266. right: 0;
  267. left: 0;
  268. margin: auto;
  269. box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.15);
  270. border-bottom: 1px solid #ccc;
  271. @media (max-width: 991px) {
  272. display: block;
  273. }
  274. }
  275. #app_user {
  276. .user-avatar {
  277. height: 30px;
  278. width: 30px;
  279. border-radius: 100px;
  280. }
  281. .dropdown:hover .dropdown-menu {
  282. display: block;
  283. }
  284. .dropdown-toggle::after {
  285. display: none !important;
  286. }
  287. }
  288. /* Navbar End */
  289. /* Footer Start */
  290. .footer {
  291. padding: 3rem;
  292. background-color: #f4f4f4;
  293. box-shadow: 0 0 20px rgba(0, 0, 0, .2);
  294. @media (max-width: 767px) {
  295. padding: 2rem;
  296. }
  297. @media (max-width: 575px) {
  298. padding: 2rem 1rem;
  299. }
  300. h2 {
  301. text-align: center;
  302. border-top: 1px solid #d1d2d3;
  303. margin-top: 50px;
  304. padding-top: 30px;
  305. color: #707070;
  306. font-size: 16px;
  307. font-weight: 300;
  308. letter-spacing: .05rem;
  309. line-height: 1.5;
  310. }
  311. h4 {
  312. font-size: 1.375rem;
  313. font-weight: 500;
  314. color: #797979;
  315. text-align: center;
  316. margin-bottom: 50px;
  317. @media (max-width: 991px) {
  318. text-align: left;
  319. margin-bottom: 20px;
  320. }
  321. }
  322. .about-list,
  323. .follow-list,
  324. .more-list {
  325. @media (max-width: 991px) {
  326. display: flex;
  327. justify-content: center;
  328. }
  329. section {
  330. @media (max-width: 991px) {
  331. width: 300px;
  332. }
  333. }
  334. }
  335. .follow-list,
  336. .more-list {
  337. padding: 0;
  338. overflow: hidden;
  339. position: relative;
  340. @media (max-width: 991px) {
  341. margin-top: 30px;
  342. padding-top: 30px;
  343. border-top: 1px solid #989898;
  344. }
  345. }
  346. .about-list {
  347. a {
  348. color: #707070;
  349. transition: all .3s;
  350. &:hover {
  351. opacity: .8;
  352. }
  353. }
  354. img {
  355. width: 20px;
  356. height: 20px;
  357. margin-right: 7px;
  358. }
  359. ul {
  360. letter-spacing: .05em;
  361. li {
  362. margin: 5px 0;
  363. @media (max-width: 991px) {
  364. margin: 0;
  365. height: 30px;
  366. }
  367. span {
  368. color: #ea068c;
  369. }
  370. }
  371. }
  372. section {
  373. @media (max-width: 991px) {
  374. width: 300px;
  375. }
  376. }
  377. }
  378. .follow-list {
  379. .media {
  380. display: flex;
  381. a {
  382. display: block;
  383. margin: 0 3px;
  384. position: relative;
  385. }
  386. .media-item {
  387. &.after {
  388. position: absolute;
  389. top: 0;
  390. left: 0;
  391. opacity: 0;
  392. }
  393. }
  394. }
  395. img {
  396. width: 45px;
  397. height: 45px;
  398. margin-right: 5px;
  399. transition: all .3s;
  400. @media (max-width: 1200px) {
  401. width: 40px;
  402. height: 40px;
  403. }
  404. }
  405. }
  406. .more-list {
  407. a {
  408. display: inline-block;
  409. margin: 5px;
  410. padding-bottom: 5px;
  411. color: #797979;
  412. border-bottom: 1px solid;
  413. transition: all .3s;
  414. &:hover {
  415. opacity: .8;
  416. }
  417. }
  418. .subscriber-item {
  419. width: 100%;
  420. max-width: 300px;
  421. margin: auto;
  422. display: flex;
  423. flex-direction: column;
  424. border: 2px solid #34404b;
  425. &:hover {
  426. border: 2px solid #EE7800;
  427. button {
  428. background-color: #EE7800;
  429. }
  430. }
  431. input {
  432. padding: 10px;
  433. border: none;
  434. &:focus-visible {
  435. outline: none;
  436. }
  437. }
  438. ::placeholder {
  439. text-align: center;
  440. }
  441. button {
  442. padding: 15px;
  443. border: none;
  444. color: #fff;
  445. background-color: #34404b;
  446. transition: all .1s;
  447. }
  448. .spinner-border {
  449. display: none;
  450. &.show {
  451. display: block;
  452. }
  453. }
  454. &.input-error {
  455. border-color: #ff5252;
  456. button {
  457. background-color: #ff5252;
  458. }
  459. }
  460. }
  461. .link {
  462. max-width: 280px;
  463. display: flex;
  464. flex-wrap: wrap;
  465. justify-content: center;
  466. @media (max-width: 991px) {
  467. max-width: 310px;
  468. justify-content: start;
  469. }
  470. }
  471. }
  472. }
  473. /* Footer End */
  474. /* searchModal Start */
  475. .search-modal {
  476. letter-spacing: 1px;
  477. .modal-dialog {
  478. @media (max-width: 991px) {
  479. max-width: 100%;
  480. }
  481. }
  482. .modal-content {
  483. border: none;
  484. background: transparent;
  485. .input-group {
  486. height: 50px;
  487. .input-group-text {
  488. display: flex;
  489. align-items: center;
  490. padding: 0.5rem 2rem !important;
  491. margin-bottom: 0;
  492. color: #fff;
  493. text-align: center;
  494. white-space: nowrap;
  495. background-color: #ee7800;
  496. border: 2px solid #ee7800;
  497. line-height: 1.5;
  498. border-radius: 0.3rem;
  499. cursor: pointer;
  500. }
  501. }
  502. }
  503. .keyword-list {
  504. display: flex;
  505. align-items: center;
  506. padding: 0 20px;
  507. ul {
  508. margin: 0;
  509. padding: 0;
  510. display: flex;
  511. flex-wrap: wrap;
  512. color: #fff;
  513. li {
  514. margin: 5px 10px 5px 0;
  515. cursor: pointer;
  516. transition: all 0.3s;
  517. &:hover {
  518. opacity: 0.8;
  519. }
  520. }
  521. }
  522. span {
  523. color: #fff;
  524. margin-right: 10px;
  525. }
  526. }
  527. }
  528. .modal-backdrop.show {
  529. opacity: 0.7 !important;
  530. }
  531. /* searchModal End */
  532. /* 頂部輪播 Start */
  533. .top-carousel {
  534. padding: 1rem 0;
  535. background-color: rgb(202, 202, 202);
  536. transition-property: height;
  537. transition-duration: 300ms;
  538. .slick-next {
  539. right: 25px;
  540. }
  541. .slick-prev {
  542. left: 25px;
  543. }
  544. .slick-prev,
  545. .slick-next {
  546. position: absolute;
  547. top: 50%;
  548. z-index: 100;
  549. border: none;
  550. background: transparent;
  551. &::before {
  552. display: none;
  553. }
  554. }
  555. .bullet-list {
  556. position: absolute;
  557. bottom: 13px;
  558. width: 1276px;
  559. max-width: 100%;
  560. box-sizing: border-box;
  561. display: flex;
  562. z-index: 10;
  563. background-color: rgba(0, 0, 0, 0.1);
  564. @media (max-width: 991px) {
  565. bottom: 0;
  566. }
  567. .bullet {
  568. position: relative;
  569. width: 100%;
  570. height: 3px;
  571. background-color: rgba(0, 0, 0, 0.1);
  572. flex: 1 1 auto;
  573. opacity: 1;
  574. &::after {
  575. content: "";
  576. background: #ee7800;
  577. position: absolute;
  578. width: 0;
  579. height: 100%;
  580. left: 0;
  581. top: 0;
  582. border-radius: 2px;
  583. }
  584. }
  585. }
  586. .bullet-active::after {
  587. width: 0;
  588. -webkit-animation-name: progress;
  589. animation-name: progress;
  590. -webkit-animation-duration: 4s;
  591. animation-duration: 4s;
  592. -webkit-animation-timing-function: linear;
  593. animation-timing-function: linear;
  594. }
  595. @keyframes progress {
  596. 0% {
  597. width: 0%;
  598. }
  599. 25% {
  600. width: 25%;
  601. }
  602. 50% {
  603. width: 50%;
  604. }
  605. 75% {
  606. width: 75%;
  607. }
  608. 100% {
  609. width: 100%;
  610. }
  611. }
  612. @-webkit-keyframes progress {
  613. 0% {
  614. width: 0%;
  615. }
  616. 25% {
  617. width: 25%;
  618. }
  619. 50% {
  620. width: 50%;
  621. }
  622. 75% {
  623. width: 75%;
  624. }
  625. 100% {
  626. width: 100%;
  627. }
  628. }
  629. .close-btn {
  630. position: absolute;
  631. top: 0;
  632. right: 20px;
  633. width: 55px;
  634. height: 35px;
  635. background-color: hsla(0, 0%, 100%, 0.66);
  636. border-radius: 0 0 50px 50px;
  637. color: #888;
  638. border: none;
  639. outline: none;
  640. font-size: 11px;
  641. box-shadow: 0 0 10px rgba(32, 32, 32, 0.25);
  642. line-height: 12px;
  643. z-index: 3;
  644. p {
  645. margin-top: -3px;
  646. }
  647. }
  648. &.banner-close {
  649. height: 0;
  650. padding: 0;
  651. overflow: hidden;
  652. transition-property: height;
  653. transition-duration: 300ms;
  654. }
  655. .container-fluid {
  656. background-color: rgb(202, 202, 202);
  657. }
  658. }
  659. /* 頂部輪播 End */
  660. /* 左下按紐 Start */
  661. #btn-box {
  662. display: flex;
  663. flex-direction: column;
  664. position: fixed;
  665. right: 15px;
  666. bottom: 15px;
  667. z-index: 10;
  668. font-size: 32px;
  669. cursor: pointer;
  670. @media (max-width: 767px) {
  671. bottom: 75px;
  672. }
  673. // 滑動按鈕
  674. .calculator-btn,
  675. .shop-btn {
  676. p {
  677. display: none;
  678. width: 0px;
  679. margin-right: -5px;
  680. overflow: hidden;
  681. color: #ee751b;
  682. font-size: 16px;
  683. letter-spacing: 1px;
  684. transition: all .6s;
  685. }
  686. &.show {
  687. a {
  688. img {
  689. width: 22px;
  690. margin-left: 3px;
  691. position: relative;
  692. left: 8px;
  693. }
  694. p {
  695. display: inline-block;
  696. width: 100%;
  697. white-space: nowrap;
  698. }
  699. }
  700. }
  701. }
  702. .calculator-btn {
  703. &.show {
  704. width: 130px;
  705. margin-left: -85px;
  706. }
  707. }
  708. .shop-btn {
  709. &.show {
  710. width: 95px;
  711. margin-left: -50px;
  712. }
  713. }
  714. a {
  715. color: #000;
  716. display: flex;
  717. justify-content: center;
  718. align-items: center;
  719. }
  720. button {
  721. width: 45px;
  722. height: 45px;
  723. margin: 5px 0;
  724. border: none;
  725. border-radius: 5px;
  726. box-shadow: 0px 2px 3px #ccc;
  727. background: rgba(255, 255, 255, 0.9);
  728. &:hover {
  729. transition: all .5s;
  730. background: rgb(255, 255, 255);
  731. }
  732. &:hover img {
  733. filter: invert(50%) sepia(50%) saturate(4600%) hue-rotate(365deg) brightness(100%) contrast(100%);
  734. }
  735. img {
  736. width: 20px;
  737. }
  738. }
  739. .gotop-btn {
  740. img {
  741. display: block;
  742. margin: auto;
  743. }
  744. }
  745. }
  746. .mb-menu {
  747. display: flex;
  748. padding: 13px 0 8px;
  749. position: fixed;
  750. right: 0;
  751. left: 0;
  752. bottom: 0;
  753. z-index: 1000;
  754. transition: all .3s;
  755. background-color: #fff;
  756. box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
  757. a {
  758. display: flex;
  759. flex-direction: column;
  760. align-items: center;
  761. justify-content: center;
  762. h4 {
  763. margin: 5px auto 0;
  764. color: #34404B;
  765. font-size: 16px;
  766. }
  767. img {
  768. width: 20px;
  769. height: 20px;
  770. }
  771. }
  772. }
  773. /* 左下按紐 End */