style.scss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  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: 85vw;
  383. padding: 0px;
  384. }
  385. .form-title {
  386. margin: 0 auto;
  387. color: #5c5248;
  388. h1 {
  389. text-align: center;
  390. font-size: 32px;
  391. font-weight: 900;
  392. @media screen and(max-width:$moblie) {
  393. font-size: 24px;
  394. }
  395. @media screen and(max-width:350px) {
  396. font-size: 20px;
  397. }
  398. span{
  399. font-size:38px;
  400. @media screen and(max-width:$moblie) {
  401. font-size:28px;
  402. }
  403. @media screen and(max-width:350px) {
  404. font-size: 24px;
  405. }
  406. }
  407. }
  408. }
  409. .contact-text {
  410. margin: 0 auto;
  411. .text-p {
  412. margin-left: 15px;
  413. padding-left: 12px;
  414. font-size: 16px;
  415. font-weight: 600;
  416. @media screen and(max-width:$moblie) {
  417. margin-left: 0px;
  418. padding-left: 0px;
  419. }
  420. @media screen and(max-width:350px) {
  421. font-size: 14px;
  422. }
  423. }
  424. }
  425. .contact-form1{
  426. margin: 0 auto;
  427. #contact-form {
  428. margin-top: 10px;
  429. .col-lg-1{
  430. .divider{
  431. position: relative;
  432. width: 1px;
  433. height:100%;
  434. border-left: 1px solid rgba(0,0,0,0.12);
  435. }
  436. }
  437. #loc,
  438. #type,
  439. #modal,
  440. #budget,
  441. #square,
  442. #style,
  443. #datepicker,
  444. #email,
  445. #name,
  446. #phone,
  447. #gender {
  448. width: 100%;
  449. height: 50px;
  450. margin: 10px 0;
  451. padding-left: 10px;
  452. border: 1px solid rgba(0, 0, 0, 0.3);
  453. padding: 10px 15px;
  454. font-size: 16px;
  455. border-radius: 3px;
  456. appearance: none;
  457. background: url(./img/icondown.webp) 95% 50% no-repeat scroll transparent;
  458. background-size: 10px 10px;
  459. background-color: #fff;
  460. }
  461. #form-left {
  462. margin: 0 auto;
  463. #rooms,
  464. #livingroom,
  465. #bathroom {
  466. width: 28.8%;
  467. border: 1px solid rgba(0, 0, 0, 0.3);
  468. height: 50px;
  469. margin: 15px 0;
  470. padding-right: 50px;
  471. padding: 10px 15px;
  472. font-size: 16px;
  473. border-radius: 3px;
  474. appearance: none;
  475. background: url(./img/icondown.webp) 85% 50% no-repeat scroll transparent;
  476. background-size: 10px 10px;
  477. background-color: #fff;
  478. @media screen and(max-width:$moblie) {
  479. width: 31%;
  480. }
  481. }
  482. #square,
  483. #datepicker {
  484. background: none;
  485. background-color: #fff;
  486. }
  487. }
  488. #form-right {
  489. margin: 0 auto;
  490. hr{
  491. @media screen and(min-width:$desktop) {
  492. display: none;
  493. }
  494. }
  495. }
  496. #fb-button {
  497. margin-top: 12px;
  498. width: 100%;
  499. height: 50px;
  500. border: 1px solid #3b5998;
  501. text-align: right;
  502. padding-right: 60px;
  503. background-size: 32px 32px;
  504. border-radius: 3px;
  505. background-color: #fff;
  506. transition: 0.3s;
  507. position: relative;
  508. @media screen and(max-width:$moblie) {
  509. margin: 10px 0;
  510. }
  511. p {
  512. position: absolute;
  513. top:1vw;
  514. left:12vw;
  515. color: #626262;
  516. @media screen and(max-width:$moblie) {
  517. left:32vw;
  518. top:3vw;
  519. }
  520. }
  521. #line {
  522. position: absolute;
  523. color: #9b9b9b;
  524. opacity: 0.8;;
  525. left:8vw;
  526. top:-0.1vw;
  527. @media screen and(max-width:$moblie) {
  528. left:20vw;
  529. }
  530. }
  531. img {
  532. position: absolute;
  533. left: 50px;
  534. top: 10px;
  535. width: 32px;
  536. height: 32px;
  537. @media screen and(max-width:$moblie) {
  538. left: 20px;
  539. }
  540. filter: invert(29%) sepia(70%) saturate(712%) hue-rotate(186deg) brightness(89%) contrast(81%);
  541. }
  542. &:hover {
  543. background-color: #2a4f91;
  544. color: #fff;
  545. img {
  546. filter: invert(100%) sepia(100%) saturate(19%) hue-rotate(334deg) brightness(106%) contrast(106%);
  547. }
  548. p {
  549. color: #fff;
  550. }
  551. #line {
  552. color: #fff;
  553. }
  554. }
  555. }
  556. a {
  557. text-decoration: none;
  558. color: #ee751b;
  559. font-weight: 900;
  560. }
  561. #email,
  562. #name,
  563. #phone {
  564. background: none;
  565. background-color: #fff;
  566. }
  567. }
  568. }
  569. .btn {
  570. margin: 50px auto;
  571. border: none;
  572. padding: 15px;
  573. background: #edbc96;
  574. color: #4b515e;
  575. font-size: 20px;
  576. width: 400px;
  577. border-radius: 10px;
  578. @media screen and(max-width:$moblie) {
  579. width: 100%;
  580. }
  581. &:hover {
  582. color: #fff;
  583. background-color: #745c54;
  584. }
  585. }
  586. .form-btn {
  587. text-align: center;
  588. position: relative;
  589. width: 70vw;
  590. margin: 0 auto;
  591. @media screen and(max-width:$moblie) {
  592. width: 80vw;
  593. margin: 0 auto;
  594. }
  595. #phone1 {
  596. position: absolute;
  597. left: 500px;
  598. }
  599. }
  600. }
  601. }