Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

main.css 3.7 KiB

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