Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

420 行
5.7 KiB

  1. :root {
  2. --primary-bg: white;
  3. --secondary-bg: #F7F9FA;
  4. --text: #4C555E;
  5. --text-dark: #394046;
  6. --text-light: #1D262E;
  7. --text-lighter: #28323B;
  8. --text-lightest: #A1A7AD;
  9. --text-important: #922724;
  10. --outline: #DFE3E8;
  11. --brand: #0f6b4b;
  12. --shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  13. --shadow-md: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  14. }
  15. body {
  16. margin: 0;
  17. }
  18. h2 {
  19. color: var(--text);
  20. }
  21. label {
  22. font-size: 16px;
  23. }
  24. button {
  25. background: var(--text);
  26. color: white;
  27. border: none;
  28. padding: 7px;
  29. border-radius: 3px;
  30. font-weight: bold;
  31. }
  32. button:not(:disabled) {
  33. cursor: pointer;
  34. }
  35. button:disabled {
  36. background: grey;
  37. }
  38. /* button:not(:disabled):hover { */
  39. /* background: var(--text-dark); */
  40. /* } */
  41. input, select {
  42. border: 2px solid var(--outline);
  43. border-radius: 3px;
  44. }
  45. input[type=checkbox] {
  46. margin-right: auto;
  47. /* height: 20px; */
  48. /* width: 20px; */
  49. }
  50. section.form label {
  51. display: flex;
  52. align-items: center;
  53. }
  54. .page section.form h3 {
  55. margin: 10px 0 10px 30px;
  56. }
  57. main .panel {
  58. height: 100%;
  59. width: 100%;
  60. position: absolute;
  61. display: flex;
  62. }
  63. menu.sidebar {
  64. height: calc(100% - 70px);
  65. position: relative;
  66. margin: 0;
  67. padding: 35px 0px;
  68. background: var(--secondary-bg);
  69. list-style: none;
  70. font-size: 18px;
  71. display: flex;
  72. flex-direction: column;
  73. gap: 20px;
  74. }
  75. ul.errors {
  76. color: var(--text-important);
  77. margin: 20px 0;
  78. min-height: 40px 0;
  79. }
  80. menu.sidebar a {
  81. color: var(--text);
  82. display: flex;
  83. align-items: center;
  84. gap: 10px;
  85. text-decoration: none;
  86. padding: 10px 10px;
  87. }
  88. menu.sidebar a.active {
  89. background: var(--primary-bg);
  90. }
  91. /* The user avatar */
  92. menu.sidebar img {
  93. width: 50px;
  94. height: 50px;
  95. margin: 0 auto;
  96. border-radius: 50%;
  97. }
  98. menu.sidebar a:hover {
  99. color: var(--text-light);
  100. cursor: pointer;
  101. }
  102. menu.sidebar svg {
  103. height: 24px;
  104. width: 24px;
  105. }
  106. .spinner {
  107. animation: rotate 2s linear infinite;
  108. z-index: 2;
  109. top: 50%;
  110. left: 50%;
  111. margin: -25px 0 0 -25px;
  112. width: 50px;
  113. height: 50px;
  114. }
  115. .spinner .path {
  116. stroke: var(--text);
  117. stroke-linecap: round;
  118. animation: dash 1.5s ease-in-out infinite;
  119. }
  120. @keyframes rotate {
  121. 100% {
  122. transform: rotate(360deg);
  123. }
  124. }
  125. @keyframes dash {
  126. 0% {
  127. stroke-dasharray: 1, 150;
  128. stroke-dashoffset: 0;
  129. }
  130. 50% {
  131. stroke-dasharray: 90, 150;
  132. stroke-dashoffset: -35;
  133. }
  134. 100% {
  135. stroke-dasharray: 90, 150;
  136. stroke-dashoffset: -124;
  137. }
  138. }
  139. .page.loading {
  140. width: 100%;
  141. display: flex;
  142. justify-content: center;
  143. align-items: center;
  144. }
  145. .page {
  146. padding: 0 2%;
  147. width: 100%;
  148. overflow-y: scroll;
  149. scrollbar-width: none;
  150. }
  151. .page section {
  152. margin-top: 50px;
  153. margin: auto;
  154. margin-bottom: 40px;
  155. max-width: 700px;
  156. }
  157. #home.page section:first-of-type {
  158. margin-top: 100px;
  159. }
  160. #home .announce {
  161. min-height: 150px;
  162. border: 1px solid var(--outline);
  163. /* border-radius: 4px; */
  164. }
  165. .page section {
  166. color: var(--text);
  167. }
  168. .page section h3 {
  169. margin-left: 10px;
  170. color: var(--text-lighter);
  171. }
  172. section.loans-list {
  173. display: flex;
  174. flex-direction: column;
  175. width: fit-content;
  176. margin: 0 0 50px 0;
  177. justify-content: center;
  178. border-left: 1px solid var(--text-lightest);
  179. padding: 10px;
  180. margin-bottom: 50px;
  181. }
  182. .loans-list h3:not(.sel) {
  183. color: var(--text-lightest);
  184. }
  185. .loans-list h3 {
  186. cursor: pointer;
  187. width: fit-content;
  188. min-height: 20px;
  189. min-width: 20px;
  190. }
  191. .loans-list .add svg {
  192. width: 35px;
  193. height: 35px;
  194. margin: auto;
  195. display: block;
  196. }
  197. .loans-list .add svg:hover {
  198. color: black;
  199. }
  200. section.radios {
  201. display: grid;
  202. grid-template-columns: 50px 1fr;
  203. justify-content: center;
  204. row-gap: 20px;
  205. max-width: 250px;
  206. }
  207. section.inputs {
  208. display: flex;
  209. flex-flow: column;
  210. max-width: 250px;
  211. row-gap: 15px;
  212. position: relative;
  213. }
  214. .settings.page section.letterhead {
  215. max-width: 400px;
  216. }
  217. .settings.page .letterhead canvas {
  218. max-width: 400px;
  219. width: 100%;
  220. }
  221. section.radios h3 {
  222. grid-column: 1 / 3;
  223. }
  224. .form button {
  225. }
  226. .form.radios input {
  227. height: 20px;
  228. }
  229. svg.close {
  230. position: absolute;
  231. right: 10px;
  232. top: 10px;
  233. height: 50px;
  234. width: 50px;
  235. cursor: pointer;
  236. color: var(--text);
  237. }
  238. .close-btn {
  239. width: 30px;
  240. height: 30px;
  241. }
  242. div.sidebar-toggle {
  243. width: 50px;
  244. }
  245. div.sidebar-toggle svg {
  246. width: 100%;
  247. height: 60px;
  248. color: var(--text);
  249. cursor: pointer;
  250. }
  251. div.hint {
  252. position: absolute;
  253. top: 10px;
  254. right: 15%;
  255. /* margin: auto; */
  256. }
  257. div.hint img {
  258. width: 25px;
  259. height: 25px;
  260. }
  261. div.hint .tooltip {
  262. position: absolute;
  263. width: 150px;
  264. right: -2em;
  265. background: white;
  266. color: grey;
  267. padding: 10px;
  268. border-radius: 3px;
  269. box-shadow: var(--shadow);
  270. visibility: hidden;
  271. }
  272. div.hint:hover .tooltip {
  273. visibility: visible;
  274. }
  275. section.form .fee {
  276. display: flex;
  277. }
  278. section.form .fee.required {
  279. display: flex;
  280. background: #ddd;
  281. }
  282. section.form .fee img {
  283. margin-left: auto;
  284. }
  285. div.modal {
  286. position: fixed;
  287. z-index: 5;
  288. width: 100vw;
  289. width: 100vw;
  290. height: 100vh;
  291. top: 0;
  292. left: 0;
  293. }
  294. div.modal .form {
  295. z-index: 5;
  296. margin: auto auto;
  297. margin-top: 10%;
  298. width: 100%;
  299. max-width: 300px;
  300. padding: 20px 10px;
  301. background: white;
  302. box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  303. border-radius: 3px;
  304. }
  305. div.modal .form img.close-btn {
  306. right: 10px;
  307. top: 10px;
  308. position: absolute;
  309. }
  310. section.dialog.form {
  311. padding-top: 30px;
  312. }
  313. section.centered {
  314. margin-top: 25%;
  315. }
  316. section.special {
  317. border: 2px solid var(--outline);
  318. border-radius: 3px;
  319. padding: 25px 10px;
  320. }
  321. section.mi .row {
  322. width: 100%;
  323. display: flex;
  324. gap: 10px;
  325. }
  326. section.mi .row input[type=checkbox] {
  327. margin-right: 0;
  328. }
  329. .loading span.error {
  330. top: 40px;
  331. position: absolute;
  332. }
  333. label.error {
  334. color: var(--text-important);
  335. }
  336. section.estimates .entry {
  337. padding: 10px 3px;
  338. border-bottom: 2px solid var(--outline);
  339. border-radius: 3px;
  340. }
  341. section.estimates .entry:hover {
  342. cursor: pointer;
  343. }
  344. section.estimates .details {
  345. display: flex;
  346. flex-flow: column;
  347. gap: 10px;
  348. }
  349. canvas.displayer {
  350. margin: auto;
  351. }