style.scss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  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. margin: 0;
  248. }
  249. background: rgba(141, 194, 31, 0.8);
  250. .btn{
  251. color:#fff;
  252. width: 60px;
  253. height: 40px;
  254. box-shadow:none;
  255. :focus{
  256. outline: 0 !important;
  257. box-shadow:none;
  258. }
  259. img{
  260. width: 24px;
  261. object-fit: cover;
  262. filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
  263. }
  264. }
  265. .banner1-1 {
  266. font-size: 18px;
  267. }
  268. }
  269. }
  270. #sec01 {
  271. padding-top: 5vw;
  272. @media screen and(max-width:$moblie) {
  273. padding-top: 0;
  274. }
  275. .col-lg-2 {
  276. background: rgb(128, 171, 41);
  277. position: relative;
  278. transition: 0.5s ease-in-out;
  279. cursor: pointer;
  280. overflow: hidden;
  281. img {
  282. width: 100%;
  283. height:20vw;
  284. object-fit: cover;
  285. margin-bottom: -40px;
  286. @media screen and(max-width:$moblie) {
  287. height:40vw;
  288. margin-bottom: -20px;
  289. }
  290. }
  291. .sec02-p-m {
  292. color: #fff;
  293. text-align: center;
  294. font-size: 14px;
  295. font-weight: 900;
  296. transition: 0.5s;
  297. @media screen and(max-width:$moblie) {
  298. display: none;
  299. }
  300. @media screen and(min-width:$desktop) {
  301. width: 100%;
  302. position: absolute;
  303. top: 40%;
  304. left: 0px;
  305. font-size: 16px;
  306. opacity: 0;
  307. }
  308. }
  309. &:hover {
  310. .sec02-p-m,
  311. .sec03-p-m {
  312. opacity: 1;
  313. }
  314. img {
  315. opacity: 0.2;
  316. @media screen and(max-width:$moblie) {
  317. opacity: 1;
  318. }
  319. }
  320. }
  321. }
  322. }
  323. }
  324. }
  325. // 頁尾 footer
  326. #footer {
  327. background: #363636;
  328. text-align: center;
  329. width: 80vw;
  330. margin: 0 auto !important;
  331. @media screen and(max-width:$moblie) {
  332. width: 100vw;
  333. padding-bottom: 30vw;
  334. }
  335. a {
  336. text-decoration: none;
  337. color: #fff;
  338. }
  339. p {
  340. padding: 15px;
  341. color: #fff;
  342. @media screen and(max-width:$moblie) {
  343. padding: 10px;
  344. }
  345. }
  346. }
  347. @keyframes Picture {
  348. 0% {
  349. transform: scale(1.3);
  350. }
  351. 100% {
  352. transform: scale(1);
  353. }
  354. }
  355. @keyframes Picture2 {
  356. 0% {
  357. transform: scale(1.3);
  358. }
  359. 100% {
  360. transform: scale(1);
  361. }
  362. }
  363. #modal-dialog{
  364. width: 90vw;
  365. .modal-content{
  366. width: 80vw;
  367. @media screen and(max-width:$moblie) {
  368. width: 90vw;
  369. }
  370. }
  371. }
  372. #light-box{
  373. #form-lightbox{
  374. width: 70vw;
  375. margin: 0 auto;
  376. @media screen and(max-width:$moblie) {
  377. width: 80vw;
  378. }
  379. .form-title {
  380. margin: 0 auto;
  381. color: #5c5248;
  382. h1 {
  383. text-align: center;
  384. font-size: 32px;
  385. font-weight: 900;
  386. @media screen and(max-width:$moblie) {
  387. font-size: 24px;
  388. }
  389. @media screen and(max-width:350px) {
  390. font-size: 20px;
  391. }
  392. span{
  393. font-size:38px;
  394. @media screen and(max-width:$moblie) {
  395. font-size:28px;
  396. }
  397. @media screen and(max-width:350px) {
  398. font-size: 24px;
  399. }
  400. }
  401. }
  402. }
  403. .contact-text {
  404. margin: 0 auto;
  405. .text-p {
  406. font-size: 16px;
  407. font-weight: 600;
  408. @media screen and(max-width:350px) {
  409. font-size: 14px;
  410. }
  411. }
  412. }
  413. .contact-form1{
  414. margin: 0 auto;
  415. #contact-form {
  416. margin-top: 10px;
  417. .col-lg-2{
  418. .divider{
  419. position: relative;
  420. width: 1px;
  421. height:100%;
  422. border-left: 1px solid rgba(0,0,0,0.12);
  423. }
  424. }
  425. #loc,
  426. #type,
  427. #modal,
  428. #budget,
  429. #square,
  430. #style,
  431. #datepicker,
  432. #email,
  433. #name,
  434. #phone,
  435. #gender {
  436. width: 100%;
  437. height: 50px;
  438. margin: 10px 0;
  439. padding-left: 10px;
  440. border: 1px solid rgba(0, 0, 0, 0.3);
  441. padding: 10px 15px;
  442. font-size: 16px;
  443. border-radius: 3px;
  444. appearance: none;
  445. background: url(./img/icondown.webp) 95% 50% no-repeat scroll transparent;
  446. background-size: 10px 10px;
  447. background-color: #fff;
  448. }
  449. #form-left {
  450. margin: 0 auto;
  451. #rooms,
  452. #livingroom,
  453. #bathroom {
  454. width: 28.8%;
  455. border: 1px solid rgba(0, 0, 0, 0.3);
  456. height: 50px;
  457. margin: 15px 0;
  458. padding-right: 50px;
  459. padding: 10px 15px;
  460. font-size: 16px;
  461. border-radius: 3px;
  462. appearance: none;
  463. background: url(./img/icondown.webp) 85% 50% no-repeat scroll transparent;
  464. background-size: 10px 10px;
  465. background-color: #fff;
  466. @media screen and(max-width:$moblie) {
  467. width: 31%;
  468. }
  469. }
  470. #square,
  471. #datepicker {
  472. background: none;
  473. background-color: #fff;
  474. }
  475. }
  476. #form-right {
  477. margin: 0 auto;
  478. hr{
  479. @media screen and(min-width:$desktop) {
  480. display: none;
  481. }
  482. }
  483. }
  484. #fb-button {
  485. margin-top: 12px;
  486. width: 100%;
  487. height: 50px;
  488. border: 1px solid #3b5998;
  489. text-align: right;
  490. padding-right: 60px;
  491. background-size: 32px 32px;
  492. border-radius: 3px;
  493. background-color: #fff;
  494. transition: 0.3s;
  495. position: relative;
  496. @media screen and(max-width:$moblie) {
  497. margin: 10px 0;
  498. }
  499. p {
  500. position: absolute;
  501. top:1vw;
  502. left:12vw;
  503. color: #626262;
  504. @media screen and(max-width:$moblie) {
  505. left:32vw;
  506. top:3vw;
  507. }
  508. }
  509. #line {
  510. position: absolute;
  511. color: #9b9b9b;
  512. opacity: 0.8;;
  513. left:8vw;
  514. top:-0.1vw;
  515. @media screen and(max-width:$moblie) {
  516. left:20vw;
  517. }
  518. }
  519. img {
  520. position: absolute;
  521. left: 50px;
  522. top: 10px;
  523. width: 32px;
  524. height: 32px;
  525. @media screen and(max-width:$moblie) {
  526. left: 20px;
  527. }
  528. filter: invert(29%) sepia(70%) saturate(712%) hue-rotate(186deg) brightness(89%) contrast(81%);
  529. }
  530. &:hover {
  531. background-color: #2a4f91;
  532. color: #fff;
  533. img {
  534. filter: invert(100%) sepia(100%) saturate(19%) hue-rotate(334deg) brightness(106%) contrast(106%);
  535. }
  536. p {
  537. color: #fff;
  538. }
  539. #line {
  540. color: #fff;
  541. }
  542. }
  543. }
  544. a {
  545. text-decoration: none;
  546. color: #ee751b;
  547. font-weight: 900;
  548. }
  549. #email,
  550. #name,
  551. #phone {
  552. background: none;
  553. background-color: #fff;
  554. }
  555. }
  556. }
  557. .btn {
  558. margin: 50px auto;
  559. border: none;
  560. padding: 15px;
  561. background: #edbc96;
  562. color: #4b515e;
  563. font-size: 20px;
  564. width: 400px;
  565. border-radius: 10px;
  566. @media screen and(max-width:$moblie) {
  567. width: 100%;
  568. }
  569. &:hover {
  570. color: #fff;
  571. background-color: #745c54;
  572. }
  573. }
  574. .form-btn {
  575. text-align: center;
  576. position: relative;
  577. width: 70vw;
  578. margin: 0 auto;
  579. @media screen and(max-width:$moblie) {
  580. width: 80vw;
  581. margin: 0 auto;
  582. }
  583. #phone1 {
  584. position: absolute;
  585. left: 500px;
  586. }
  587. }
  588. }
  589. }