style.scss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. font-family: 微軟正黑體;
  6. }
  7. $desktop: 1025px;
  8. $table: 1024px;
  9. $moblie: 767px;
  10. $Font-color: #fff;
  11. $title-color: #646464;
  12. $bgcolor: #f4fffc;
  13. $navbgcolor: #a9d0c5;
  14. body {
  15. position: relative;
  16. // background: url(./img/banner/banner-m.png), linear-gradient(180deg, transparent 10%, #363636 10%);
  17. // background-size: 100vw;
  18. // background-repeat: no-repeat;
  19. // background-blend-mode: overlay;
  20. background: #363636;
  21. @media screen and(max-width:$moblie) {
  22. background: #363636;
  23. }
  24. .arrow {
  25. position: fixed;
  26. right: 30px;
  27. bottom: 150px;
  28. width: 45px;
  29. height: 40px;
  30. z-index: 10;
  31. a {
  32. margin: 30px 0px;
  33. }
  34. .icon {
  35. @media screen and(max-width:$moblie) {
  36. display: none;
  37. }
  38. }
  39. &:hover {
  40. box-shadow: 1px 3px 13px -2px rgba(0, 0, 0, 0.35);
  41. }
  42. @media screen and(max-width:$moblie) {
  43. position: absolute;
  44. bottom: 200px;
  45. }
  46. }
  47. }
  48. // 主選單
  49. #Navigation {
  50. background: rgba(112, 112, 112, 0.75);
  51. height: 4.5vw;
  52. width: 100vw !important;
  53. position: fixed;
  54. z-index: 10;
  55. @media screen and(max-width:$table) {
  56. height: 8vw;
  57. }
  58. @media screen and(max-width:$moblie) {
  59. height: 20vw;
  60. position: fixed;
  61. z-index: 5;
  62. background: rgba(0, 0, 0, 0.8);
  63. }
  64. #nav {
  65. width: 100vw;
  66. margin: 0 auto;
  67. }
  68. // rwd要注意高度
  69. #logo {
  70. padding-top: 0.5vw;
  71. @media screen and(max-width:$moblie) {
  72. padding-top: 5vw;
  73. text-align: center;
  74. }
  75. img {
  76. width: 120px;
  77. }
  78. }
  79. #link {
  80. text-align: right;
  81. padding: 1.5vw 3vw;
  82. @media screen and(max-width:$table) {
  83. padding-top: 2vw;
  84. }
  85. @media screen and(max-width:$moblie) {
  86. display: none;
  87. }
  88. a {
  89. text-decoration: none;
  90. color: $Font-color;
  91. letter-spacing: 1px;
  92. font-size: 0.9rem;
  93. font-weight: 600;
  94. cursor: pointer;
  95. padding: 5px;
  96. position: relative;
  97. img {
  98. object-fit: cover;
  99. }
  100. }
  101. }
  102. #menu-btn1 {
  103. position: absolute;
  104. right: 1vw;
  105. top: 1vw;
  106. width: 18vw;
  107. z-index: 6;
  108. @media screen and(min-width:$desktop) {
  109. display: none;
  110. }
  111. @media screen and(min-width:768px) {
  112. display: none;
  113. }
  114. }
  115. }
  116. // 行動版-預約選單
  117. #Navigation2 {
  118. background: rgba(112, 112, 112, 0.75);
  119. height: 4.5vw;
  120. width: 100vw !important;
  121. position: fixed;
  122. bottom: 0px;
  123. z-index: 10;
  124. @media screen and(min-width:$desktop) {
  125. display: none;
  126. }
  127. @media screen and(max-width:$table) {
  128. height: 8vw;
  129. }
  130. @media screen and(max-width:$moblie) {
  131. height: 15vw;
  132. position: fixed;
  133. z-index: 5;
  134. background: rgba(0, 0, 0, 0.8);
  135. }
  136. #nav {
  137. width: 90vw;
  138. margin: 0 auto;
  139. display: grid;
  140. grid-template-columns: repeat(5, 1fr);
  141. text-align: center;
  142. a {
  143. text-decoration: none;
  144. color: $Font-color;
  145. letter-spacing: 1px;
  146. font-size: 0.9rem;
  147. font-weight: 600;
  148. cursor: pointer;
  149. position: relative;
  150. img {
  151. margin: 10px auto;
  152. object-fit: cover;
  153. }
  154. }
  155. }
  156. // rwd要注意高度
  157. }
  158. #banner {
  159. position: relative;
  160. .banner-filter {
  161. position: absolute;
  162. z-index:-1;
  163. .bannerfilter{
  164. width: 100vw;
  165. object-fit: cover;
  166. height: 50vw;
  167. animation-name:Picture2;
  168. animation-duration: 1s;
  169. animation-delay:0.1s;
  170. @media screen and(max-width:$moblie) {
  171. height: 80vh;
  172. }
  173. }
  174. }
  175. #bannerdes-img {
  176. position: absolute;
  177. z-index: -2;
  178. opacity: 1;
  179. .banner-img {
  180. width: 100vw;
  181. object-fit: cover;
  182. height: 50vw;
  183. animation-name: Picture;
  184. animation-duration: 1s;
  185. @media screen and(max-width:$moblie) {
  186. height: 80vh;
  187. }
  188. }
  189. }
  190. @media screen and(max-width:$moblie) {
  191. // background-image: url(../img/about/banner/banner-m2.png);
  192. background-size: 115vw;
  193. background-repeat: no-repeat;
  194. }
  195. #banner-container {
  196. width: 90vw;
  197. padding-top: 18vw;
  198. @media screen and(max-width:$moblie) {
  199. padding-top: 0vw;
  200. width: 95vw;
  201. }
  202. // 電腦版
  203. .banner-des {
  204. @media screen and(max-width:$moblie) {
  205. display: none;
  206. }
  207. .banner-1 {
  208. @media screen and(max-width:$moblie) {
  209. margin: 0;
  210. }
  211. background: rgba(141, 194, 31, 0.8);
  212. .banner1-1 {
  213. font-size: 22px;
  214. }
  215. .btn{
  216. color:#fff;
  217. width: 60px;
  218. height: 40px;
  219. box-shadow:none;
  220. :focus{
  221. outline: 0 !important;
  222. box-shadow:none;
  223. }
  224. img{
  225. width: 24px;
  226. object-fit: cover;
  227. filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
  228. }
  229. }
  230. }
  231. .banner-2 {
  232. overflow: hidden;
  233. img {
  234. margin-bottom: -30px;
  235. object-fit: cover;
  236. width: 100%;
  237. }
  238. }
  239. }
  240. // 手機板
  241. .banner-m {
  242. padding-top: 10vw;
  243. @media screen and(min-width:$desktop) {
  244. display: none;
  245. }
  246. .bannerm-1 {
  247. @media screen and(max-width:$moblie) {
  248. padding-right: 5px;
  249. padding-left: 7px;
  250. }
  251. @media screen and(max-width:$moblie) {
  252. margin: 0;
  253. }
  254. background: rgba(141, 194, 31, 0.8);
  255. .btn{
  256. color:#fff;
  257. width: 55px;
  258. height: 40px;
  259. box-shadow:none;
  260. :focus{
  261. outline: 0 !important;
  262. box-shadow:none;
  263. }
  264. img{
  265. width: 22px;
  266. object-fit: cover;
  267. filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
  268. }
  269. }
  270. .banner1-1 {
  271. font-size: 18px;
  272. }
  273. }
  274. }
  275. #sec01 {
  276. padding-top: 5vw;
  277. @media screen and(max-width:$moblie) {
  278. padding-top: 0;
  279. }
  280. .col-lg-2 {
  281. background: rgb(128, 171, 41);
  282. position: relative;
  283. transition: 0.5s ease-in-out;
  284. cursor: pointer;
  285. overflow: hidden;
  286. img {
  287. width: 100%;
  288. height:20vw;
  289. object-fit: cover;
  290. margin-bottom: -40px;
  291. @media screen and(max-width:$moblie) {
  292. height:40vw;
  293. margin-bottom: -20px;
  294. }
  295. }
  296. .sec02-p-m {
  297. color: #fff;
  298. text-align: center;
  299. font-size: 14px;
  300. font-weight: 900;
  301. transition: 0.5s;
  302. @media screen and(max-width:$moblie) {
  303. display: none;
  304. }
  305. @media screen and(min-width:$desktop) {
  306. width: 100%;
  307. position: absolute;
  308. top: 40%;
  309. left: 0px;
  310. font-size: 16px;
  311. opacity: 0;
  312. }
  313. }
  314. &:hover {
  315. .sec02-p-m,
  316. .sec03-p-m {
  317. opacity: 1;
  318. }
  319. img {
  320. opacity: 0.2;
  321. @media screen and(max-width:$moblie) {
  322. opacity: 1;
  323. }
  324. }
  325. }
  326. }
  327. }
  328. }
  329. }
  330. // 頁尾 footer
  331. #footer {
  332. background: #363636;
  333. text-align: center;
  334. width: 80vw;
  335. margin: 0 auto !important;
  336. @media screen and(max-width:$moblie) {
  337. width: 100vw;
  338. padding-bottom: 30vw;
  339. }
  340. a {
  341. text-decoration: none;
  342. color: #fff;
  343. }
  344. p {
  345. padding: 15px;
  346. color: #fff;
  347. @media screen and(max-width:$moblie) {
  348. padding: 10px;
  349. }
  350. }
  351. }
  352. @keyframes Picture {
  353. 0% {
  354. transform: scale(1.3);
  355. }
  356. 100% {
  357. transform: scale(1);
  358. }
  359. }
  360. @keyframes Picture2 {
  361. 0% {
  362. transform: scale(1.3);
  363. }
  364. 100% {
  365. transform: scale(1);
  366. }
  367. }
  368. #modal-dialog{
  369. width: 90vw;
  370. .modal-content{
  371. width: 80vw;
  372. @media screen and(max-width:$moblie) {
  373. width: 90vw;
  374. }
  375. }
  376. }
  377. #light-box{
  378. #form-lightbox{
  379. margin: 0 auto;
  380. padding: 15px;
  381. @media screen and(max-width:$moblie) {
  382. width: 80vw;
  383. }
  384. .form-title {
  385. margin: 0 auto;
  386. color: #5c5248;
  387. h1 {
  388. text-align: center;
  389. font-size: 32px;
  390. font-weight: 900;
  391. @media screen and(max-width:$moblie) {
  392. font-size: 24px;
  393. }
  394. @media screen and(max-width:350px) {
  395. font-size: 20px;
  396. }
  397. span{
  398. font-size:38px;
  399. @media screen and(max-width:$moblie) {
  400. font-size:28px;
  401. }
  402. @media screen and(max-width:350px) {
  403. font-size: 24px;
  404. }
  405. }
  406. }
  407. }
  408. .contact-text {
  409. margin: 0 auto;
  410. .text-p {
  411. font-size: 16px;
  412. font-weight: 600;
  413. @media screen and(max-width:350px) {
  414. font-size: 14px;
  415. }
  416. }
  417. }
  418. .contact-form1{
  419. margin: 0 auto;
  420. #contact-form {
  421. margin-top: 10px;
  422. .col-lg-2{
  423. .divider{
  424. position: relative;
  425. width: 1px;
  426. height:100%;
  427. border-left: 1px solid rgba(0,0,0,0.12);
  428. }
  429. }
  430. #loc,
  431. #type,
  432. #modal,
  433. #budget,
  434. #square,
  435. #style,
  436. #datepicker,
  437. #email,
  438. #name,
  439. #phone,
  440. #gender {
  441. width: 100%;
  442. height: 50px;
  443. margin: 10px 0;
  444. padding-left: 10px;
  445. border: 1px solid rgba(0, 0, 0, 0.3);
  446. padding: 10px 15px;
  447. font-size: 16px;
  448. border-radius: 3px;
  449. appearance: none;
  450. background: url(./img/icondown.webp) 95% 50% no-repeat scroll transparent;
  451. background-size: 10px 10px;
  452. background-color: #fff;
  453. }
  454. #form-left {
  455. margin: 0 auto;
  456. #rooms,
  457. #livingroom,
  458. #bathroom {
  459. width: 28.8%;
  460. border: 1px solid rgba(0, 0, 0, 0.3);
  461. height: 50px;
  462. margin: 15px 0;
  463. padding-right: 50px;
  464. padding: 10px 15px;
  465. font-size: 16px;
  466. border-radius: 3px;
  467. appearance: none;
  468. background: url(./img/icondown.webp) 85% 50% no-repeat scroll transparent;
  469. background-size: 10px 10px;
  470. background-color: #fff;
  471. @media screen and(max-width:$moblie) {
  472. width: 31%;
  473. }
  474. }
  475. #square,
  476. #datepicker {
  477. background: none;
  478. background-color: #fff;
  479. }
  480. }
  481. #form-right {
  482. margin: 0 auto;
  483. hr{
  484. @media screen and(min-width:$desktop) {
  485. display: none;
  486. }
  487. }
  488. }
  489. #fb-button {
  490. margin-top: 12px;
  491. width: 100%;
  492. height: 50px;
  493. border: 1px solid #3b5998;
  494. text-align: right;
  495. padding-right: 60px;
  496. background-size: 32px 32px;
  497. border-radius: 3px;
  498. background-color: #fff;
  499. transition: 0.3s;
  500. position: relative;
  501. @media screen and(max-width:$moblie) {
  502. margin: 10px 0;
  503. }
  504. p {
  505. position: absolute;
  506. top:1vw;
  507. left:12vw;
  508. color: #626262;
  509. @media screen and(max-width:$moblie) {
  510. left:32vw;
  511. top:3vw;
  512. }
  513. }
  514. #line {
  515. position: absolute;
  516. color: #9b9b9b;
  517. opacity: 0.8;;
  518. left:8vw;
  519. top:-0.1vw;
  520. @media screen and(max-width:$moblie) {
  521. left:20vw;
  522. }
  523. }
  524. img {
  525. position: absolute;
  526. left: 50px;
  527. top: 10px;
  528. width: 32px;
  529. height: 32px;
  530. @media screen and(max-width:$moblie) {
  531. left: 20px;
  532. }
  533. filter: invert(29%) sepia(70%) saturate(712%) hue-rotate(186deg) brightness(89%) contrast(81%);
  534. }
  535. &:hover {
  536. background-color: #2a4f91;
  537. color: #fff;
  538. img {
  539. filter: invert(100%) sepia(100%) saturate(19%) hue-rotate(334deg) brightness(106%) contrast(106%);
  540. }
  541. p {
  542. color: #fff;
  543. }
  544. #line {
  545. color: #fff;
  546. }
  547. }
  548. }
  549. a {
  550. text-decoration: none;
  551. color: #ee751b;
  552. font-weight: 900;
  553. }
  554. #email,
  555. #name,
  556. #phone {
  557. background: none;
  558. background-color: #fff;
  559. }
  560. }
  561. }
  562. .btn {
  563. margin: 50px auto;
  564. border: none;
  565. padding: 15px;
  566. background: #edbc96;
  567. color: #4b515e;
  568. font-size: 20px;
  569. width: 400px;
  570. border-radius: 10px;
  571. @media screen and(max-width:$moblie) {
  572. width: 100%;
  573. }
  574. &:hover {
  575. color: #fff;
  576. background-color: #745c54;
  577. }
  578. }
  579. .form-btn {
  580. text-align: center;
  581. position: relative;
  582. width: 70vw;
  583. margin: 0 auto;
  584. @media screen and(max-width:$moblie) {
  585. width: 80vw;
  586. margin: 0 auto;
  587. }
  588. #phone1 {
  589. position: absolute;
  590. left: 500px;
  591. }
  592. }
  593. }
  594. }