style.scss 17 KB

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