// 共通 //////////////////////// :root { --contentPadding: 50px; // @include screenMax('1400') { // --contentPadding: 60px; // } @include screenMax('1200') { --contentPadding: 50px; } @include screen('tablet') { --contentPadding: 40px; } @include screen('mobile') { --contentPadding: 20px; } --clamp17: clamp(16px, 1.6vw, 17px); --clamp18: clamp(16px, 1.6vw, 18px); --clamp20: clamp(18px, 1.6vw, 20px); --clamp21: clamp(18px, 1.6vw, 21px); --clamp22: clamp(20px, 2vw, 22px); --clamp24: clamp(20px, 2vw, 24px); --clamp28: clamp(22px, 2vw, 28px); --clamp30: clamp(22px, 2vw, 30px); --clamp32: clamp(22px, 2vw, 32px); --clamp36: clamp(26px, 3vw, 36px); --clamp38: clamp(28px, 3.2vw, 38px); --clamp40: clamp(28px, 3.2vw, 40px); --clamp48: clamp(30px, 3.5vw, 48px); --clamp51: clamp(30px, 4vw, 51px); --clamp54: clamp(32px, 4vw, 54px); --clamp60: clamp(34px, 4vw, 60px); --clamp64: clamp(36px, 4vw, 64px); --clamp72: clamp(38px, 4vw, 72px); --clamp85: clamp(40px, 4vw, 85px); --clamp100: clamp(42px, 5vw, 100px); --clamp110: clamp(42px, 5vw, 110px); --clamp250: clamp(45px, 13vw, 250px); } //////////////////////// * { box-sizing: border-box; outline: 0; &::before { box-sizing: border-box; } &::after { box-sizing: border-box; } } html { scroll-behavior: smooth; font-size: #{$mainFontSize}px; } body { position: relative; margin: 0 auto; padding: 0; color: $mainFontColor; font-family: $Roboto; line-height: 1.75; background: #fff; &::-webkit-scrollbar { width: 8px; height: 8px; } &::-webkit-scrollbar-track { background: #454545; } &::-webkit-scrollbar-thumb { background: $mainColor; border-radius: 5px; } // /* 滑桿滑鼠滑入時的顏色 */ // &::-webkit-scrollbar-thumb:hover { // background: #bd451d; // } // /* 捲軸兩側頂端的按鈕 */ // &::-webkit-scrollbar-button { // background-color: #a73d1a; // } // /* 捲軸兩側頂端的按鈕滑鼠滑入時的顏色 */ // &::-webkit-scrollbar-button:hover { // background-color: #65250f; // } } footer { margin: auto 0 0; } a { color: $mainFontColor; @include transition(all, 0.3); &:hover { color: $mainColor; } } img { max-width: 100%; margin: 0px; line-height: 1; } figure { margin: 0px; } .wrapper { position: relative; } .outerBox { max-width: 1920px; margin: 0 auto; position: relative; } .container { position: relative; width: 100%; max-width: calc($domWidth + var(--contentPadding) * 2); padding-left: var(--contentPadding); padding-right: var(--contentPadding); margin: 0 auto; } section { position: relative; } //-----------------input-----------------// [type='text'], [type='password'], [type='email'] { border: none; width: 100%; background: none; border: 1px solid #ccc; @include transition(all, 0.3); -webkit-appearance: none; -moz-appearance: none; appearance: none; } input:focus { outline: none !important; } textarea { padding: 5px 10px; line-height: 1.4; font-weight: normal; color: #666666; width: 100%; background: none; background: rgba(255, 255, 255, 0.7); @include transition(all, 0.3); -webkit-appearance: none; -moz-appearance: none; appearance: none; } .select { position: relative; color: #000; font-weight: 600; &::before { content: ''; display: block; position: absolute; text-indent: 0px; width: 8px; aspect-ratio: 1; right: 10px; top: 15px; z-index: 5; border: 2px solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); } select { line-height: 1.4; font-weight: normal; width: 100%; -webkit-appearance: none; -moz-appearance: none; appearance: none; position: relative; padding: 5px 30px 10px 10px; border-radius: 5px; background: none; } } select::-ms-expand { display: none; } button { -webkit-appearance: none; -moz-appearance: none; appearance: none; border: none; background: none; cursor: pointer; @include transition(all, 0.3); &:focus { outline: none !important; } } //-----------------input-----------------// .privacyBox { position: fixed; background: #FFF; z-index: 9999; bottom: 0px; right: 0; width: 100%; max-width: 375px; color: #696969; padding: 20px; line-height: 1.2; font-size: 14px; text-align: center; box-shadow: 0 0 18px rgba(0, 0, 0, .2); a { color: $mainColor; } .closePrivacy { right: 12px; top: 15px; line-height: 30px; font-size: Rem(14); border-radius: 0px; padding: 3px 5px; color: #fff; // border: #e7e7e7 1px solid; display: block; background: $mainColor; font-weight: 500; cursor: pointer; margin: 10px auto 0 auto; } } .editor { font-size: Rem(16); color: #000; // letter-spacing: 1px; @include screen('tablet') { font-size: Rem(18); } ul:not(.list) { list-style: disc; padding-left: 20px; } } .lazyload, .lazyloading { opacity: 0; } .lazyloaded { opacity: 1; transition: opacity 300ms; } .videoContainer { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden; line-height: 0; iframe, object, embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } } .tableBox { width: 100%; position: relative; overflow-x: auto; scrollbar-color: $mainColor rgba(0, 0, 0, 0.2); scrollbar-width: thin; &::-webkit-scrollbar { width: 5px; height: 5px; } &::-webkit-scrollbar-thumb { border-radius: 100px; box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); background: $mainColor; } &::-webkit-scrollbar-track { box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); border-radius: 0; background: rgba(0, 0, 0, 0.1); } table { min-width: 1000px; } } ///////// .pic { line-height: 0; overflow: hidden; img { width: 100% !important; // height: 100%; object-fit: contain; } } .mfp-container { padding: 44px; } .mfp-arrow { top: 50%; margin-top: 0 !important; transform: translate(-60px, -50%); &.mfp-arrow-right { transform: translate(60px, -50%); } } .mfp-inline-holder .mfp-content { width: fit-content; max-width: 80%; background: #fff; max-height: 80vh; position: relative; .mfp-content-box { overflow-y: auto; padding: 40px; max-height: 80vh; } .mfp-close { position: absolute; text-align: right; width: 100%; right: 0; top: auto; bottom: 100%; color: #FFF; } }