_h-form.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. // 裝修計算機
  2. // +++++ common start +++++
  3. .px-4Up {
  4. @media(max-width: 576px) {
  5. padding: 0 2rem;
  6. }
  7. }
  8. .no-padding {
  9. @media(max-width: 576px) {
  10. padding-left: 0;
  11. padding-right: 0;
  12. }
  13. }
  14. h2,
  15. .h2 {
  16. @media(max-width: 576px) {
  17. font-size: 1.6875rem;
  18. }
  19. }
  20. .hint {
  21. display: none;
  22. }
  23. // +++++ common end +++++
  24. .formWrapper {
  25. background-color: #FFF;
  26. box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  27. transition: all 300ms ease-in-out;
  28. @media(min-width: 768px) {
  29. padding-bottom: 6.5rem;
  30. }
  31. @media(max-width: 576px) {
  32. background-color: transparent;
  33. }
  34. }
  35. .formTheme {
  36. display: flex;
  37. justify-content: center;
  38. align-items: center;
  39. &--style {
  40. padding: 0.5rem 0;
  41. color: #727679;
  42. font-size: 1.25rem;
  43. }
  44. &__title {
  45. min-width: 30%;
  46. text-align: center;
  47. font-weight: 500;
  48. @media(max-width: 576px) {
  49. min-width: 32%;
  50. }
  51. }
  52. .line {
  53. display: inline-block;
  54. width: 50%;
  55. height: 1px;
  56. background-color: #727679;
  57. &--lf {
  58. margin: 0 0.5rem 0 0;
  59. }
  60. &--rt {
  61. margin: 0 0 0 0.5rem;
  62. }
  63. }
  64. }
  65. .dropdown {
  66. .dropdown-menus {
  67. min-width: 100%;
  68. max-height: 200px;
  69. overflow-y: auto;
  70. text-align: left;
  71. padding-inline-start: 0;
  72. padding-left: 0;
  73. }
  74. }
  75. .form-text-height {
  76. border-width: 1px;
  77. height: calc(1.5em + 1.62rem + 4px);
  78. }
  79. .formDropdown {
  80. display: flex;
  81. justify-content: space-between;
  82. &--style {
  83. border: 1px solid #CED4DA;
  84. padding: 0.875rem 0.75rem;
  85. background: #fff;
  86. }
  87. }
  88. .formSubmit {
  89. padding: 0.85rem 0;
  90. }
  91. .formAside {
  92. padding: 0 0 0 0.5rem;
  93. }
  94. .calTable {
  95. display: flex;
  96. padding: 1rem 0;
  97. margin: 0 1rem;
  98. font-size: 1.125rem;
  99. border-bottom: 1px dashed #D5D5D5;
  100. transition: all 300ms ease-in-out;
  101. @media(max-width: 576px) {
  102. padding: 0.5rem 0;
  103. font-size: 1rem;
  104. }
  105. &__lf {
  106. flex-basis: 31%;
  107. flex-grow: 0;
  108. display: flex;
  109. align-items: start;
  110. justify-content: flex-end;
  111. padding: 0 0.5rem;
  112. color: #AAAAAA;
  113. transition: all 300ms ease-in-out;
  114. @media(max-width: 576px) {
  115. flex-basis: 40%;
  116. }
  117. @media(max-width: 321px) {
  118. flex-basis: 45%;
  119. }
  120. }
  121. &__rt {
  122. flex-basis: 69%;
  123. flex-grow: 0;
  124. justify-content: start;
  125. word-break: break-all;
  126. transition: all 300ms ease-in-out;
  127. @media(max-width: 576px) {
  128. flex-basis: 60%;
  129. }
  130. @media(max-width: 321px) {
  131. flex-basis: 50%;
  132. }
  133. }
  134. }
  135. .formInfo {
  136. position: relative;
  137. .formInfoIcon {
  138. position: absolute;
  139. top: 10px;
  140. right: -25px;
  141. transform: scale(1.5);
  142. line-height: 2;
  143. transition: all 300ms ease-in-out;
  144. @media(max-width: 576px) {
  145. padding: 0 0.1rem;
  146. top: 12px;
  147. }
  148. }
  149. .fa-info-circle {
  150. color: rgb(64, 153, 208);
  151. }
  152. }
  153. .calResult-wrapper {
  154. padding: 0 1.5rem;
  155. }
  156. .calResult {
  157. padding: 0 1rem;
  158. transition: all 300ms ease-in-out;
  159. @media(max-width: 576px) {
  160. padding: 0;
  161. }
  162. h2 {
  163. background-color: #F4F4F4;
  164. color: #EE7800;
  165. padding: 1rem 0;
  166. text-align: center;
  167. font-weight: bold;
  168. transition: all 300ms ease-in-out;
  169. @media(max-width: 576px) {
  170. background-color: #F4F4F4;
  171. font-size: 1.6875rem;
  172. }
  173. .small {
  174. font-size: 60%;
  175. }
  176. }
  177. .formBtn {
  178. width: 48%;
  179. box-shadow: 0 1px 10px #eee;
  180. transition: all 300ms ease-in-out;
  181. @media(max-width: 576px) {
  182. width: 100%;
  183. }
  184. &--mr {
  185. margin-right: 4%;
  186. transition: all 300ms ease-in-out;
  187. @media(max-width: 576px) {
  188. margin-right: 0;
  189. }
  190. }
  191. }
  192. &__note {
  193. font-size: 0.75rem;
  194. color: #AAAAAA;
  195. }
  196. }
  197. .calFeeInCase {
  198. h3 {
  199. font-size: 1.125rem;
  200. color: #707070;
  201. }
  202. &__bg {
  203. height: 290px;
  204. background-repeat: no-repeat;
  205. background-position: center;
  206. background-size: cover;
  207. transition: all 300ms ease-in-out;
  208. @media(max-width: 576px) {
  209. height: 210px;
  210. }
  211. }
  212. img {
  213. width: 100%;
  214. }
  215. & ~ .btn-outline-secondary {
  216. color: #727679;
  217. border-color: #727679;
  218. &:hover {
  219. background-color: transparent;
  220. }
  221. }
  222. }
  223. // Modal
  224. .modal-body {
  225. text-align: center;
  226. h4 {
  227. font-weight: bold;
  228. }
  229. p {
  230. color: #727679;
  231. }
  232. }