style.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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 49%);
  17. background-size: 100vw;
  18. background-repeat: no-repeat;
  19. // background-blend-mode: overlay;
  20. @media screen and(max-width:$moblie) {
  21. background: #363636;
  22. }
  23. .arrow {
  24. position: fixed;
  25. right: 30px;
  26. bottom: 30px;
  27. width: 45px;
  28. height: 40px;
  29. z-index: 10;
  30. background-color: #e06649;
  31. &:hover {
  32. box-shadow: 1px 3px 13px -2px rgba(0, 0, 0, 0.35);
  33. }
  34. @media screen and(max-width:$moblie) {
  35. position: absolute;
  36. bottom: 200px;
  37. }
  38. }
  39. }
  40. // 主選單
  41. #Navigation {
  42. background: rgba(112, 112, 112, 0.75);
  43. height: 4.5vw;
  44. width: 100vw !important;
  45. position: fixed;
  46. z-index: 10;
  47. @media screen and(max-width:$table) {
  48. height: 8vw;
  49. }
  50. @media screen and(max-width:$moblie) {
  51. height: 15vw;
  52. position: fixed;
  53. z-index: 5;
  54. background: rgba(0, 0, 0, 0.8);
  55. }
  56. #nav {
  57. width: 100vw;
  58. margin: 0 auto;
  59. }
  60. // rwd要注意高度
  61. #logo {
  62. padding-top: 0.5vw;
  63. @media screen and(max-width:$moblie) {
  64. padding-top: 0;
  65. }
  66. img {
  67. width: 120px;
  68. }
  69. }
  70. #link {
  71. text-align: right;
  72. padding: 1.5vw 3vw;
  73. @media screen and(max-width:$table) {
  74. padding-top: 2vw;
  75. }
  76. @media screen and(max-width:$moblie) {
  77. display: none;
  78. }
  79. a {
  80. text-decoration: none;
  81. color: $Font-color;
  82. letter-spacing: 1px;
  83. font-size: 0.9rem;
  84. font-weight: 600;
  85. cursor: pointer;
  86. padding: 5px;
  87. position: relative;
  88. img {
  89. object-fit: cover;
  90. }
  91. }
  92. }
  93. #menu-btn1 {
  94. position: absolute;
  95. right: 1vw;
  96. top: 1vw;
  97. width: 18vw;
  98. z-index: 6;
  99. @media screen and(min-width:$desktop) {
  100. display: none;
  101. }
  102. @media screen and(min-width:768px) {
  103. display: none;
  104. }
  105. }
  106. }
  107. // 行動版-預約選單
  108. #Navigation2{
  109. background: rgba(112, 112, 112, 0.75);
  110. height: 4.5vw;
  111. width: 100vw !important;
  112. position: fixed;
  113. bottom:0px;
  114. z-index: 10;
  115. @media screen and(min-width:$desktop) {
  116. display: none;
  117. }
  118. @media screen and(max-width:$table) {
  119. height: 8vw;
  120. }
  121. @media screen and(max-width:$moblie) {
  122. height: 15vw;
  123. position: fixed;
  124. z-index: 5;
  125. background: rgba(0, 0, 0, 0.8);
  126. }
  127. #nav {
  128. width: 90vw;
  129. margin: 0 auto;
  130. display: grid;
  131. grid-template-columns: repeat(5,1fr);
  132. text-align: center;
  133. a {
  134. text-decoration: none;
  135. color: $Font-color;
  136. letter-spacing: 1px;
  137. font-size: 0.9rem;
  138. font-weight: 600;
  139. cursor: pointer;
  140. position: relative;
  141. img {
  142. margin: 10px auto;
  143. object-fit: cover;
  144. }
  145. }
  146. }
  147. // rwd要注意高度
  148. }
  149. #banner {
  150. @media screen and(max-width:$moblie) {
  151. background-image: url(../img/about/banner/banner-m2.png);
  152. background-size: 115vw;
  153. background-repeat: no-repeat;
  154. }
  155. #banner-container {
  156. width: 90vw;
  157. padding-top: 30vw;
  158. @media screen and(max-width:$moblie) {
  159. width: 95vw;
  160. }
  161. // 電腦版
  162. .banner-des {
  163. @media screen and(max-width:$moblie) {
  164. display: none;
  165. }
  166. .banner-1 {
  167. @media screen and(max-width:$moblie) {
  168. margin: 0;
  169. }
  170. background: rgba(141, 194, 31, 0.8);
  171. .banner1-1 {
  172. font-size: 24px;
  173. }
  174. }
  175. }
  176. // 手機板
  177. .banner-m {
  178. padding-top: 80vw;
  179. @media screen and(min-width:$desktop) {
  180. display: none;
  181. }
  182. .bannerm-1 {
  183. @media screen and(max-width:$moblie) {
  184. margin: 0;
  185. }
  186. background: rgba(141, 194, 31, 0.8);
  187. .banner1-1 {
  188. font-size: 18px;
  189. }
  190. }
  191. }
  192. #sec01 {
  193. padding-top: 5vw;
  194. @media screen and(max-width:$moblie) {
  195. padding-top: 0;
  196. }
  197. .col-lg-2 {
  198. background: rgb(128, 171, 41);
  199. img {
  200. opacity: 1;
  201. transition: 0.3s ease-in-out;
  202. &:hover {
  203. opacity: 0.2;
  204. }
  205. }
  206. }
  207. }
  208. }
  209. }
  210. // 頁尾 footer
  211. #footer {
  212. background: #363636;
  213. text-align: center;
  214. width: 80vw;
  215. margin: 0 auto !important;
  216. p {
  217. padding: 15px;
  218. color: #fff;
  219. }
  220. }