style.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  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. #bannerdes-img {
  160. position: absolute;
  161. z-index: -1;
  162. opacity: 1;
  163. .banner-img {
  164. width: 100vw;
  165. object-fit: cover;
  166. height: 50vw;
  167. animation-name: Picture;
  168. animation-duration: 1s;
  169. @media screen and(max-width:$moblie) {
  170. height: 80vh;
  171. }
  172. }
  173. }
  174. @media screen and(max-width:$moblie) {
  175. // background-image: url(../img/about/banner/banner-m2.png);
  176. background-size: 115vw;
  177. background-repeat: no-repeat;
  178. }
  179. #banner-container {
  180. width: 90vw;
  181. padding-top: 18vw;
  182. @media screen and(max-width:$moblie) {
  183. padding-top: 0vw;
  184. width: 95vw;
  185. }
  186. // 電腦版
  187. .banner-des {
  188. @media screen and(max-width:$moblie) {
  189. display: none;
  190. }
  191. .banner-1 {
  192. @media screen and(max-width:$moblie) {
  193. margin: 0;
  194. }
  195. background: rgba(141, 194, 31, 0.8);
  196. .banner1-1 {
  197. font-size: 24px;
  198. }
  199. }
  200. }
  201. // 手機板
  202. .banner-m {
  203. padding-top: 10vw;
  204. @media screen and(min-width:$desktop) {
  205. display: none;
  206. }
  207. .bannerm-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: 18px;
  214. }
  215. }
  216. }
  217. #sec01 {
  218. padding-top: 5vw;
  219. @media screen and(max-width:$moblie) {
  220. padding-top: 0;
  221. }
  222. .col-lg-2 {
  223. background: rgb(128, 171, 41);
  224. position: relative;
  225. transition: 0.5s ease-in-out;
  226. cursor: pointer;
  227. img{
  228. width: 100%;
  229. }
  230. .sec02-p-m {
  231. color: #fff;
  232. text-align: center;
  233. font-size: 14px;
  234. font-weight: 900;
  235. transition: 0.5s;
  236. @media screen and(max-width:$moblie) {
  237. display: none;
  238. }
  239. @media screen and(min-width:$desktop) {
  240. width: 100%;
  241. position: absolute;
  242. top: 40%;
  243. left: 0px;
  244. font-size: 16px;
  245. opacity: 0;
  246. }
  247. }
  248. &:hover {
  249. .sec02-p-m,
  250. .sec03-p-m {
  251. opacity: 1;
  252. }
  253. img {
  254. opacity: 0.2;
  255. @media screen and(max-width:$moblie) {
  256. opacity: 1;
  257. }
  258. }
  259. }
  260. }
  261. }
  262. }
  263. }
  264. // 頁尾 footer
  265. #footer {
  266. background: #363636;
  267. text-align: center;
  268. width: 80vw;
  269. margin: 0 auto !important;
  270. a {
  271. text-decoration: none;
  272. color: #fff;
  273. }
  274. p {
  275. padding: 15px;
  276. color: #fff;
  277. }
  278. }
  279. @keyframes Picture {
  280. 0% {
  281. transform: scale(1.3);
  282. }
  283. 100% {
  284. transform: scale(1);
  285. }
  286. }
  287. @keyframes Picture2 {
  288. 0% {
  289. opacity: 0.5;
  290. }
  291. 100% {
  292. opacity: 1;
  293. }
  294. }