* { margin: 0; padding: 0; box-sizing: border-box; font-family: 微軟正黑體; } $desktop: 1025px; $table: 1024px; $moblie: 767px; $Font-color: #fff; $title-color: #646464; $bgcolor: #f4fffc; $navbgcolor: #a9d0c5; body { position: relative; // background: url(./img/banner/banner-m.png), linear-gradient(180deg, transparent 10%, #363636 10%); // background-size: 100vw; // background-repeat: no-repeat; // background-blend-mode: overlay; background: #363636; @media screen and(max-width:$moblie) { background: #363636; } .arrow { position: fixed; right: 30px; bottom: 150px; width: 45px; height: 40px; z-index: 10; a { margin: 30px 0px; } .icon { @media screen and(max-width:$moblie) { display: none; } } &:hover { box-shadow: 1px 3px 13px -2px rgba(0, 0, 0, 0.35); } @media screen and(max-width:$moblie) { position: absolute; bottom: 200px; } } } // 主選單 #Navigation { background: rgba(112, 112, 112, 0.75); height: 4.5vw; width: 100vw !important; position: fixed; z-index: 10; @media screen and(max-width:$table) { height: 8vw; } @media screen and(max-width:$moblie) { height: 20vw; position: fixed; z-index: 5; background: rgba(0, 0, 0, 0.8); } #nav { width: 100vw; margin: 0 auto; } // rwd要注意高度 #logo { padding-top: 0.5vw; @media screen and(max-width:$moblie) { padding-top: 5vw; text-align: center; } img { width: 120px; } } #link { text-align: right; padding: 1.5vw 3vw; @media screen and(max-width:$table) { padding-top: 2vw; } @media screen and(max-width:$moblie) { display: none; } a { text-decoration: none; color: $Font-color; letter-spacing: 1px; font-size: 0.9rem; font-weight: 600; cursor: pointer; padding: 5px; position: relative; img { object-fit: cover; } } } #menu-btn1 { position: absolute; right: 1vw; top: 1vw; width: 18vw; z-index: 6; @media screen and(min-width:$desktop) { display: none; } @media screen and(min-width:768px) { display: none; } } } // 行動版-預約選單 #Navigation2 { background: rgba(112, 112, 112, 0.75); height: 4.5vw; width: 100vw !important; position: fixed; bottom: 0px; z-index: 10; @media screen and(min-width:$desktop) { display: none; } @media screen and(max-width:$table) { height: 8vw; } @media screen and(max-width:$moblie) { height: 15vw; position: fixed; z-index: 5; background: rgba(0, 0, 0, 0.8); } #nav { width: 90vw; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; a { text-decoration: none; color: $Font-color; letter-spacing: 1px; font-size: 0.9rem; font-weight: 600; cursor: pointer; position: relative; img { margin: 10px auto; object-fit: cover; } } } // rwd要注意高度 } #banner { position: relative; .banner-filter { position: absolute; z-index:-1; .bannerfilter{ width: 100vw; object-fit: cover; height: 50vw; animation-name:Picture2; animation-duration: 1s; animation-delay:0.1s; @media screen and(max-width:$moblie) { height: 80vh; } } } #bannerdes-img { position: absolute; z-index: -2; opacity: 1; .banner-img { width: 100vw; object-fit: cover; height: 50vw; animation-name: Picture; animation-duration: 1s; @media screen and(max-width:$moblie) { height: 80vh; } } } @media screen and(max-width:$moblie) { // background-image: url(../img/about/banner/banner-m2.png); background-size: 115vw; background-repeat: no-repeat; } #banner-container { width: 90vw; padding-top: 18vw; @media screen and(max-width:$moblie) { padding-top: 0vw; width: 95vw; } // 電腦版 .banner-des { @media screen and(max-width:$moblie) { display: none; } .banner-1 { @media screen and(max-width:$moblie) { margin: 0; } background: rgba(141, 194, 31, 0.8); .banner1-1 { font-size: 22px; } .btn{ color:#fff; width: 60px; height: 40px; box-shadow:none; :focus{ outline: 0 !important; box-shadow:none; } img{ width: 24px; object-fit: cover; filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%); } } } .banner-2 { overflow: hidden; img { margin-bottom: -30px; object-fit: cover; width: 100%; } } } // 手機板 .banner-m { padding-top: 10vw; @media screen and(min-width:$desktop) { display: none; } .bannerm-1 { @media screen and(max-width:$moblie) { padding-right: 5px; padding-left: 7px; } @media screen and(max-width:$moblie) { margin: 0; } background: rgba(141, 194, 31, 0.8); .btn{ color:#fff; width: 55px; height: 40px; box-shadow:none; :focus{ outline: 0 !important; box-shadow:none; } img{ width: 22px; object-fit: cover; filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%); } } .banner1-1 { font-size: 18px; } } } #sec01 { padding-top: 5vw; @media screen and(max-width:$moblie) { padding-top: 0; } .col-lg-2 { background: rgb(128, 171, 41); position: relative; transition: 0.5s ease-in-out; cursor: pointer; overflow: hidden; img { width: 100%; height:20vw; object-fit: cover; margin-bottom: -40px; @media screen and(max-width:$moblie) { height:40vw; margin-bottom: -20px; } } .sec02-p-m { color: #fff; text-align: center; font-size: 14px; font-weight: 900; transition: 0.5s; @media screen and(max-width:$moblie) { display: none; } @media screen and(min-width:$desktop) { width: 100%; position: absolute; top: 40%; left: 0px; font-size: 16px; opacity: 0; } } &:hover { .sec02-p-m, .sec03-p-m { opacity: 1; } img { opacity: 0.2; @media screen and(max-width:$moblie) { opacity: 1; } } } } } } } // 頁尾 footer #footer { background: #363636; text-align: center; width: 80vw; margin: 0 auto !important; @media screen and(max-width:$moblie) { width: 100vw; padding-bottom: 30vw; } a { text-decoration: none; color: #fff; } p { padding: 15px; color: #fff; @media screen and(max-width:$moblie) { padding: 10px; } } } @keyframes Picture { 0% { transform: scale(1.3); } 100% { transform: scale(1); } } @keyframes Picture2 { 0% { transform: scale(1.3); } 100% { transform: scale(1); } } #modal-dialog{ width: 90vw; .modal-content{ width: 80vw; @media screen and(max-width:$moblie) { width: 90vw; } } } #light-box{ #form-lightbox{ margin: 0 auto; padding: 15px; @media screen and(max-width:$moblie) { width: 85vw; padding: 0px; } .form-title { margin: 0 auto; color: #5c5248; h1 { text-align: center; font-size: 32px; font-weight: 900; @media screen and(max-width:$moblie) { font-size: 24px; } @media screen and(max-width:350px) { font-size: 20px; } span{ font-size:38px; @media screen and(max-width:$moblie) { font-size:28px; } @media screen and(max-width:350px) { font-size: 24px; } } } } .contact-text { margin: 0 auto; .text-p { margin-left: 15px; padding-left: 12px; font-size: 16px; font-weight: 600; @media screen and(max-width:$moblie) { margin-left: 0px; padding-left: 0px; } @media screen and(max-width:350px) { font-size: 14px; } } } .contact-form1{ margin: 0 auto; #contact-form { margin-top: 10px; .col-lg-1{ .divider{ position: relative; width: 1px; height:100%; border-left: 1px solid rgba(0,0,0,0.12); } } #loc, #type, #modal, #budget, #square, #style, #datepicker, #email, #name, #phone, #gender { width: 100%; height: 50px; margin: 10px 0; padding-left: 10px; border: 1px solid rgba(0, 0, 0, 0.3); padding: 10px 15px; font-size: 16px; border-radius: 3px; appearance: none; background: url(./img/icondown.webp) 95% 50% no-repeat scroll transparent; background-size: 10px 10px; background-color: #fff; } #form-left { margin: 0 auto; #rooms, #livingroom, #bathroom { width: 28.8%; border: 1px solid rgba(0, 0, 0, 0.3); height: 50px; margin: 15px 0; padding-right: 50px; padding: 10px 15px; font-size: 16px; border-radius: 3px; appearance: none; background: url(./img/icondown.webp) 85% 50% no-repeat scroll transparent; background-size: 10px 10px; background-color: #fff; @media screen and(max-width:$moblie) { width: 31%; } } #square, #datepicker { background: none; background-color: #fff; } } #form-right { margin: 0 auto; hr{ @media screen and(min-width:$desktop) { display: none; } } } #fb-button { margin-top: 12px; width: 100%; height: 50px; border: 1px solid #3b5998; text-align: right; padding-right: 60px; background-size: 32px 32px; border-radius: 3px; background-color: #fff; transition: 0.3s; position: relative; @media screen and(max-width:$moblie) { margin: 10px 0; } p { position: absolute; top:1vw; left:12vw; color: #626262; @media screen and(max-width:$moblie) { left:32vw; top:3vw; } } #line { position: absolute; color: #9b9b9b; opacity: 0.8;; left:8vw; top:-0.1vw; @media screen and(max-width:$moblie) { left:20vw; } } img { position: absolute; left: 50px; top: 10px; width: 32px; height: 32px; @media screen and(max-width:$moblie) { left: 20px; } filter: invert(29%) sepia(70%) saturate(712%) hue-rotate(186deg) brightness(89%) contrast(81%); } &:hover { background-color: #2a4f91; color: #fff; img { filter: invert(100%) sepia(100%) saturate(19%) hue-rotate(334deg) brightness(106%) contrast(106%); } p { color: #fff; } #line { color: #fff; } } } a { text-decoration: none; color: #ee751b; font-weight: 900; } #email, #name, #phone { background: none; background-color: #fff; } } } .btn { margin: 50px auto; border: none; padding: 15px; background: #edbc96; color: #4b515e; font-size: 20px; width: 400px; border-radius: 10px; @media screen and(max-width:$moblie) { width: 100%; } &:hover { color: #fff; background-color: #745c54; } } .form-btn { text-align: center; position: relative; width: 70vw; margin: 0 auto; @media screen and(max-width:$moblie) { width: 80vw; margin: 0 auto; } #phone1 { position: absolute; left: 500px; } } } }