Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

245 рядки
3.3 KiB

  1. :root {
  2. --primary-bg: white;
  3. --secondary-bg: #F7F9FA;
  4. --text: #4C555E;
  5. --text-light: #1D262E;
  6. --text-lighter: #28323B;
  7. --text-lightest: #A1A7AD;
  8. --outline: #DFE3E8;
  9. --brand: #0f6b4b;
  10. }
  11. body {
  12. margin: 0;
  13. }
  14. h2 {
  15. color: var(--text);
  16. }
  17. label {
  18. font-size: 16px;
  19. }
  20. section.form label {
  21. display: flex;
  22. align-items: center;
  23. }
  24. .page section.form h3 {
  25. margin: 10px 0 10px 30px;
  26. }
  27. main .panel {
  28. height: 100%;
  29. width: 100%;
  30. position: absolute;
  31. display: flex;
  32. }
  33. menu.sidebar {
  34. height: calc(100% - 70px);
  35. position: relative;
  36. margin: 0;
  37. padding: 35px 0px;
  38. background: var(--secondary-bg);
  39. list-style: none;
  40. font-size: 18px;
  41. display: flex;
  42. flex-direction: column;
  43. gap: 20px;
  44. }
  45. menu.sidebar a {
  46. color: var(--text);
  47. display: flex;
  48. align-items: center;
  49. gap: 10px;
  50. text-decoration: none;
  51. padding: 10px 10px;
  52. }
  53. menu.sidebar a.active {
  54. background: var(--primary-bg);
  55. }
  56. /* The user avatar */
  57. menu.sidebar img {
  58. width: 50px;
  59. height: 50px;
  60. margin: 0 auto;
  61. border-radius: 50%;
  62. }
  63. menu.sidebar a:hover {
  64. color: var(--text-light);
  65. cursor: pointer;
  66. }
  67. menu.sidebar svg {
  68. height: 24px;
  69. width: 24px;
  70. }
  71. .spinner {
  72. animation: rotate 2s linear infinite;
  73. z-index: 2;
  74. top: 50%;
  75. left: 50%;
  76. margin: -25px 0 0 -25px;
  77. width: 50px;
  78. height: 50px;
  79. }
  80. .spinner .path {
  81. stroke: var(--text);
  82. stroke-linecap: round;
  83. animation: dash 1.5s ease-in-out infinite;
  84. }
  85. @keyframes rotate {
  86. 100% {
  87. transform: rotate(360deg);
  88. }
  89. }
  90. @keyframes dash {
  91. 0% {
  92. stroke-dasharray: 1, 150;
  93. stroke-dashoffset: 0;
  94. }
  95. 50% {
  96. stroke-dasharray: 90, 150;
  97. stroke-dashoffset: -35;
  98. }
  99. 100% {
  100. stroke-dasharray: 90, 150;
  101. stroke-dashoffset: -124;
  102. }
  103. }
  104. .page.loading {
  105. width: 100%;
  106. display: flex;
  107. justify-content: center;
  108. align-items: center;
  109. }
  110. .page {
  111. padding: 0 2%;
  112. width: 100%;
  113. overflow-y: scroll;
  114. scrollbar-width: none;
  115. }
  116. .page section {
  117. margin-top: 50px;
  118. margin: auto;
  119. margin-bottom: 40px;
  120. max-width: 700px;
  121. }
  122. #home.page section:first-of-type {
  123. margin-top: 100px;
  124. }
  125. #home .announce {
  126. min-height: 150px;
  127. border: 1px solid var(--outline);
  128. /* border-radius: 4px; */
  129. }
  130. .page section {
  131. color: var(--text);
  132. }
  133. .page section h3 {
  134. margin-left: 10px;
  135. color: var(--text-lighter);
  136. }
  137. section.loans-list {
  138. display: flex;
  139. flex-direction: column;
  140. width: fit-content;
  141. margin: 0 0 50px 0;
  142. justify-content: center;
  143. border-left: 1px solid var(--text-lightest);
  144. padding: 10px;
  145. margin-bottom: 50px;
  146. }
  147. .loans-list h3:not(.sel) {
  148. color: var(--text-lightest);
  149. }
  150. .loans-list h3 {
  151. cursor: pointer;
  152. width: fit-content;
  153. }
  154. .loans-list .add svg {
  155. width: 35px;
  156. height: 35px;
  157. margin: auto;
  158. display: block;
  159. }
  160. .loans-list .add svg:hover {
  161. color: black;
  162. }
  163. section.form input, section.form select {
  164. border: 2px solid var(--outline);
  165. border-radius: 3px;
  166. }
  167. section.radios {
  168. display: grid;
  169. grid-template-columns: 50px 1fr;
  170. justify-content: center;
  171. row-gap: 20px;
  172. max-width: 250px;
  173. }
  174. section.inputs {
  175. display: flex;
  176. flex-flow: column;
  177. max-width: 250px;
  178. row-gap: 15px;
  179. }
  180. section.radios h3 {
  181. grid-column: 1 / 3;
  182. }
  183. .form.radios input {
  184. height: 20px;
  185. }
  186. svg.close {
  187. position: absolute;
  188. right: 10px;
  189. top: 10px;
  190. height: 50px;
  191. width: 50px;
  192. color: var(--text);
  193. }
  194. div.close-button {
  195. width: 50px;
  196. height: 50px;
  197. }
  198. div.sidebar-toggle {
  199. width: 50px;
  200. }
  201. div.sidebar-toggle svg {
  202. width: 100%;
  203. height: 60px;
  204. color: var(--text);
  205. cursor: pointer;
  206. }