main.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. html, body {
  2. position: relative;
  3. margin: 0;
  4. padding: 0;
  5. font-size: 20px;
  6. }
  7. :root {
  8. --color-primary: #8e6c4f;
  9. --color-primary2: #aa560d;
  10. --color-secondary: #9d613d;
  11. --color-light-bg: #f8efe1;
  12. --color-header1: rgba(142, 108, 79, 0);
  13. --color-header2: rgba(142, 108, 79, 0.7);
  14. --color-header3: rgba(142, 108, 79, 1);
  15. --color-border: #000;
  16. --color-text: #333;
  17. --color-text-light: #fff;
  18. --color-text-primary: #9d613d;
  19. --color-text-second: #563530;
  20. --color-divider: #ddd0c4;
  21. }
  22. main {
  23. width: 100%;
  24. height: 100vh;
  25. background-color: var(--color-light-bg);
  26. button {
  27. padding: 0.2rem 0.6rem;
  28. font-size: 0.8rem;
  29. margin: auto;
  30. cursor: pointer;
  31. background-color: var(--color-light-bg);
  32. box-sizing: border-box;
  33. border: 1px solid var(--color-border);
  34. outline: 8px solid var(--color-light-bg);
  35. color: var(--color-secondary);
  36. &:focus {
  37. outline: 8px solid var(--color-primary2);
  38. }
  39. }
  40. .carousel__next, .carousel__prev, .carousel__pagination-button {
  41. outline: none;
  42. }
  43. }
  44. .main-bg {
  45. background-size: cover;
  46. background-position: center;
  47. &.absolute {
  48. position: absolute;
  49. top: 0;
  50. left: 0;
  51. width: 100vw;
  52. height: 100vh;
  53. z-index: 1;
  54. img {
  55. width: 100vw;
  56. height: 100vh;
  57. object-fit: cover;
  58. }
  59. }
  60. &1 {
  61. background-image: url('@/assets/images/Home/Background/1.jpg');
  62. }
  63. &2 {
  64. background-image: url('@/assets/images/Home/Background/2.jpg');
  65. }
  66. &3 {
  67. background-image: url('@/assets/images/Home/Background/3.jpg');
  68. }
  69. &4 {
  70. background-image: url('@/assets/images/Home/Background/4.jpg');
  71. }
  72. &5 {
  73. background-image: url('@/assets/images/Home/Background/5.jpg');
  74. }
  75. &6 {
  76. background-image: url('@/assets/images/Home/Background/6.jpg');
  77. }
  78. }
  79. .main-content {
  80. position: relative;
  81. z-index: 1;
  82. display: flex;
  83. flex-direction: column;
  84. overflow: hidden;
  85. .inner {
  86. position: relative;
  87. padding-left: 6%;
  88. padding-right: 6%;
  89. padding-top: 6%;
  90. padding-bottom: 6%;
  91. &.fill {
  92. flex: 1 1 100%;
  93. }
  94. }
  95. &.absolute, .content.absolute {
  96. position: absolute;
  97. top: 0;
  98. left: 0;
  99. right: 0;
  100. bottom: 0;
  101. z-index: 10;
  102. }
  103. }
  104. .main-card {
  105. position: relative;
  106. background-size: cover;
  107. background-position: center;
  108. &.round {
  109. border-radius: 10px;
  110. }
  111. &.shadow {
  112. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  113. border: 1px solid rgba(0, 0, 0, 0.1);
  114. }
  115. overflow: hidden;
  116. cursor: pointer;
  117. transition: transform 0.3s ease-in-out;
  118. display: flex;
  119. align-items: center;
  120. justify-content: flex-start;
  121. color: var(--color-primary);
  122. &:hover, &:focus {
  123. transform: scale(1.05);
  124. z-index: 1;
  125. }
  126. &:focus {
  127. outline: 4px solid var(--color-primary);
  128. }
  129. }
  130. .main-any-button {
  131. cursor: pointer;
  132. -webkit-user-select: none;
  133. user-select: none;
  134. &:hover, &:focus {
  135. transform: scale(1.05);
  136. z-index: 1;
  137. }
  138. &:focus {
  139. outline: 4px solid var(--color-primary);
  140. }
  141. }
  142. .main-image-button {
  143. -webkit-user-select: none;
  144. user-select: none;
  145. width: 50px;
  146. height: 50px;
  147. cursor: pointer;
  148. border-radius: 50%;
  149. &:active, &:focus {
  150. transform: scale(0.8);
  151. }
  152. &:focus {
  153. outline: 4px solid var(--color-primary);
  154. }
  155. }
  156. .main-map-maker {
  157. display: flex;
  158. flex-direction: column;
  159. align-items: center;
  160. justify-content: center;
  161. img {
  162. width: 30px;
  163. height: 30px;
  164. border-radius: 50%;
  165. }
  166. span {
  167. padding: 0.1rem;
  168. font-size: 0.6rem;
  169. border-radius: 0.2rem;
  170. background-color: var(--color-light-bg);
  171. white-space: nowrap;
  172. }
  173. }
  174. .main-round-box {
  175. &.flat {
  176. padding: 0;
  177. }
  178. padding: 1vw;
  179. border-radius: 1vw;
  180. box-sizing: border-box;
  181. border: var(--color-primary) solid 3px;
  182. overflow: hidden;
  183. }
  184. hr {
  185. border-color: var(--color-divider);
  186. border-width: 1px;
  187. }
  188. h1, h2, h3, h4, h5 {
  189. margin-top: 0;
  190. }
  191. @media (max-width: 800px) {
  192. .main-content .inner {
  193. padding-left: 3%;
  194. padding-right: 3%;
  195. }
  196. }
  197. @media (max-height: 600px) {
  198. .main-content .inner {
  199. padding-top: 2%;
  200. padding-bottom: 2%;
  201. }
  202. }