style.scss 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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. background-image: url();
  26. position: fixed;
  27. right: 30px;
  28. bottom: 150px;
  29. width: 45px;
  30. height: 40px;
  31. z-index: 10;
  32. a{
  33. margin: 30px 0px;
  34. }
  35. .icon{
  36. @media screen and(max-width:$moblie) {
  37. display: none;
  38. }
  39. }
  40. &:hover {
  41. box-shadow: 1px 3px 13px -2px rgba(0, 0, 0, 0.35);
  42. }
  43. @media screen and(max-width:$moblie) {
  44. position: absolute;
  45. bottom: 200px;
  46. }
  47. }
  48. }
  49. // 主選單
  50. #Navigation {
  51. background: rgba(112, 112, 112, 0.75);
  52. height: 4.5vw;
  53. width: 100vw !important;
  54. position: fixed;
  55. z-index: 10;
  56. @media screen and(max-width:$table) {
  57. height: 8vw;
  58. }
  59. @media screen and(max-width:$moblie) {
  60. height: 15vw;
  61. position: fixed;
  62. z-index: 5;
  63. background: rgba(0, 0, 0, 0.8);
  64. }
  65. #nav {
  66. width: 100vw;
  67. margin: 0 auto;
  68. }
  69. // rwd要注意高度
  70. #logo {
  71. padding-top: 0.5vw;
  72. @media screen and(max-width:$moblie) {
  73. padding-top: 0;
  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. #bannerdes-img{
  161. position: absolute;
  162. z-index:-1;
  163. opacity: 0.5;
  164. .banner-img{
  165. width: 100vw;
  166. object-fit: cover;
  167. @media screen and(max-width:$moblie) {
  168. height: 80vh;
  169. }
  170. }
  171. }
  172. @media screen and(max-width:$moblie) {
  173. // background-image: url(../img/about/banner/banner-m2.png);
  174. background-size: 115vw;
  175. background-repeat: no-repeat;
  176. }
  177. #banner-container {
  178. width: 90vw;
  179. padding-top: 18vw;
  180. @media screen and(max-width:$moblie) {
  181. padding-top: 0vw;
  182. width: 95vw;
  183. }
  184. // 電腦版
  185. .banner-des {
  186. @media screen and(max-width:$moblie) {
  187. display: none;
  188. }
  189. .banner-1 {
  190. @media screen and(max-width:$moblie) {
  191. margin: 0;
  192. }
  193. background: rgba(141, 194, 31, 0.8);
  194. .banner1-1 {
  195. font-size: 24px;
  196. }
  197. }
  198. }
  199. // 手機板
  200. .banner-m {
  201. padding-top: 10vw;
  202. @media screen and(min-width:$desktop) {
  203. display: none;
  204. }
  205. .bannerm-1 {
  206. @media screen and(max-width:$moblie) {
  207. margin: 0;
  208. }
  209. background: rgba(141, 194, 31, 0.8);
  210. .banner1-1 {
  211. font-size: 18px;
  212. }
  213. }
  214. }
  215. #sec01 {
  216. padding-top: 5vw;
  217. @media screen and(max-width:$moblie) {
  218. padding-top: 0;
  219. }
  220. .col-lg-2 {
  221. background: rgb(128, 171, 41);
  222. position: relative;
  223. transition: 0.5s ease-in-out;
  224. cursor: pointer;
  225. .sec02-p-m{
  226. color:#fff;
  227. text-align: center;
  228. font-size: 14px;
  229. font-weight: 900;
  230. transition: 0.5s;
  231. @media screen and(max-width:$moblie) {
  232. display: none;
  233. }
  234. @media screen and(min-width:$desktop) {
  235. width: 100%;
  236. position: absolute;
  237. top: 70px;
  238. left:0px;
  239. font-size: 16px;
  240. opacity: 0;
  241. }
  242. }
  243. &:hover{
  244. .sec02-p-m,.sec03-p-m{
  245. opacity: 1;
  246. }
  247. img{
  248. opacity: 0.2;
  249. @media screen and(max-width:$moblie) {
  250. opacity: 1;
  251. }
  252. }
  253. }
  254. }
  255. }
  256. }
  257. }
  258. // 頁尾 footer
  259. #footer {
  260. background: #363636;
  261. text-align: center;
  262. width: 80vw;
  263. margin: 0 auto !important;
  264. a{
  265. text-decoration: none;
  266. color:#fff;
  267. }
  268. p {
  269. padding: 15px;
  270. color: #fff;
  271. }
  272. }