Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

492 linhas
9.3 KiB

  1. @import "../common/form";
  2. [data-doctype="Web Form"] {
  3. .page-content-wrapper {
  4. .container {
  5. .page-header {
  6. width: 100%;
  7. img {
  8. margin: -1rem 0rem -10.5rem;
  9. object-fit: cover;
  10. width: 100%;
  11. height: 250px;
  12. z-index: -1;
  13. }
  14. }
  15. .page_content {
  16. max-width: 800px;
  17. margin: auto;
  18. h1 {
  19. font-size: 2.25rem;
  20. margin-top: 0;
  21. margin-bottom: 0;
  22. padding-bottom: 2px;
  23. }
  24. .web-form-header {
  25. border: 1px solid var(--dark-border-color);
  26. border-bottom: none;
  27. border-top-left-radius: var(--border-radius-md);
  28. border-top-right-radius: var(--border-radius-md);
  29. background-color: var(--fg-color);
  30. padding: 2rem 2rem 0;
  31. .breadcrumb-container {
  32. padding: 0px;
  33. margin: 0 0 2rem;
  34. ol.breadcrumb {
  35. padding: 0px;
  36. }
  37. }
  38. .web-form-head {
  39. border-bottom: 1px solid var(--dark-border-color);
  40. padding-bottom: 1.25rem;
  41. .title {
  42. display: flex;
  43. justify-content: space-between;
  44. flex-wrap: wrap;
  45. gap: 1rem;
  46. .web-form-title p {
  47. margin-bottom: 0;
  48. }
  49. .web-form-actions {
  50. display: flex;
  51. align-items: center;
  52. justify-content: flex-end;
  53. flex: 1;
  54. .btn {
  55. font-size: var(--text-base);
  56. }
  57. }
  58. }
  59. .web-form-introduction {
  60. color: var(--text-muted);
  61. margin-top: 1.25rem;
  62. p {
  63. color: var(--text-muted);
  64. }
  65. }
  66. }
  67. }
  68. .web-form {
  69. background-color: var(--fg-color);
  70. padding: 1.25rem 2rem 2rem;
  71. border: 1px solid var(--dark-border-color);
  72. border-top: none;
  73. border-bottom-left-radius: var(--border-radius);
  74. border-bottom-right-radius: var(--border-radius);
  75. .web-form-wrapper {
  76. .form-control {
  77. color: var(--text-color);
  78. background-color: var(--control-bg);
  79. }
  80. .form-section {
  81. .section-head {
  82. font-weight: bold;
  83. font-size: var(--text-xl);
  84. padding: var(--padding-md) 0;
  85. }
  86. }
  87. .form-column {
  88. padding: 0 var(--padding-sm);
  89. .frappe-control[data-fieldtype="Rating"] {
  90. .like-disabled-input {
  91. background-color: unset;
  92. padding-left: 0px;
  93. .rating {
  94. cursor: default;
  95. }
  96. }
  97. }
  98. &:first-child {
  99. padding-left: 0;
  100. }
  101. &:last-child {
  102. padding-right: 0;
  103. }
  104. @include media-breakpoint-down(xs) {
  105. padding: 0;
  106. }
  107. }
  108. .web-form-skeleton {
  109. .box-group {
  110. display: flex;
  111. flex-wrap: wrap;
  112. .box-container {
  113. width: 100%;
  114. padding: 0 var(--padding-sm);
  115. margin-bottom: 15px;
  116. &:first-child {
  117. padding-left: 0;
  118. }
  119. &:last-child {
  120. padding-right: 0;
  121. }
  122. @include media-breakpoint-down(xs) {
  123. padding: 0;
  124. }
  125. .box {
  126. background-color: var(--control-bg);
  127. border-radius: var(--border-radius);
  128. }
  129. .box-label {
  130. height: 20px;
  131. width: 100px;
  132. margin-bottom: 0.5rem;
  133. }
  134. .box-area {
  135. height: 34px;
  136. width: 100%;
  137. }
  138. }
  139. }
  140. }
  141. }
  142. .web-form-footer {
  143. margin-top: 1rem;
  144. .web-form-actions {
  145. display: flex;
  146. justify-content: space-between;
  147. flex-wrap: wrap;
  148. .btn {
  149. font-size: var(--text-base);
  150. }
  151. .btn-link {
  152. padding-left: 0px;
  153. color: var(--text-color);
  154. &:hover {
  155. color: var(--text-on-light-blue);
  156. }
  157. }
  158. .left-area {
  159. display: flex;
  160. flex: 1;
  161. @include media-breakpoint-down(sm) {
  162. order: 1
  163. }
  164. }
  165. .center-area {
  166. display: flex;
  167. align-items: center;
  168. font-size: var(--text-base);
  169. .slides-progress {
  170. display: flex;
  171. .slide-step {
  172. @include flex(flex, center, center, null);
  173. height: 18px;
  174. width: 18px;
  175. border-radius: var(--border-radius-full);
  176. border: 1px solid var(--gray-300);
  177. margin: 0 var(--margin-xs);
  178. background-color: var(--card-bg);
  179. .slide-step-indicator {
  180. height: 6px;
  181. width: 6px;
  182. background-color: var(--gray-300);
  183. border-radius: var(--border-radius-full);
  184. }
  185. .slide-step-complete {
  186. display: none;
  187. .icon-xs {
  188. height: 10px;
  189. width: 10px;
  190. }
  191. }
  192. &.active {
  193. border: 1px solid var(--primary);
  194. .slide-step-indicator {
  195. display: block;
  196. background-color: var(--primary);
  197. }
  198. }
  199. &.step-success:not(.active) {
  200. background-color: var(--primary);
  201. border: 1px solid var(--primary);
  202. .slide-step-indicator {
  203. display: none;
  204. }
  205. .slide-step-complete {
  206. display: flex;
  207. .icon use {
  208. stroke-width: 2;
  209. stroke: var(--white);
  210. }
  211. }
  212. }
  213. @include media-breakpoint-down(xs) {
  214. width: 16px;
  215. height: 16px;
  216. }
  217. }
  218. }
  219. @include media-breakpoint-down(sm) {
  220. order: 0;
  221. width: 100%;
  222. justify-content: center;
  223. margin-bottom: 1.5rem;
  224. }
  225. }
  226. .right-area {
  227. display: flex;
  228. justify-content: flex-end;
  229. flex: 1;
  230. @include media-breakpoint-down(sm) {
  231. order: 2
  232. }
  233. }
  234. }
  235. }
  236. }
  237. .attachments {
  238. margin-top: 2rem;
  239. padding: 2rem;
  240. border-radius: var(--border-radius);
  241. border: 1px solid var(--dark-border-color);
  242. .attachment {
  243. display: flex;
  244. justify-content: space-between;
  245. gap: 6px;
  246. color: var(--text-muted);
  247. font-size: var(--text-md);
  248. &:hover {
  249. text-decoration: none;
  250. .file-name span {
  251. text-decoration: underline;
  252. }
  253. }
  254. }
  255. }
  256. .success-page {
  257. background-color: var(--fg-color);
  258. padding: 5rem 2rem;
  259. margin-top: 3rem;
  260. border: 1px solid var(--dark-border-color);
  261. border-radius: var(--border-radius);
  262. text-align: center;
  263. .success-header {
  264. display: flex;
  265. justify-content: center;
  266. align-items: center;
  267. gap: 0.5rem;
  268. margin-top: 1rem;
  269. .success-icon {
  270. width: 3rem;
  271. height: 3rem;
  272. margin: 0;
  273. @include media-breakpoint-down(sm) {
  274. width: 2rem;
  275. height: 2rem;
  276. }
  277. }
  278. .success-title {
  279. margin-top: 0;
  280. margin-bottom: 0;
  281. }
  282. }
  283. .success-body .success-message {
  284. margin: 1rem 0rem 1.5rem;
  285. }
  286. .success-footer a {
  287. margin: 0rem 0.3rem 1rem;
  288. }
  289. }
  290. .web-list-container {
  291. min-height: 470px;
  292. border: 1px solid var(--dark-border-color);
  293. border-radius: var(--border-radius-md);
  294. padding: 2rem;
  295. .web-list-header {
  296. display: flex;
  297. justify-content: space-between;
  298. flex-wrap: wrap;
  299. gap: 1rem;
  300. border-bottom: 1px solid var(--dark-border-color);
  301. padding-bottom: 1.25rem;
  302. .web-list-actions {
  303. display: flex;
  304. align-items: center;
  305. justify-content: flex-end;
  306. flex: 1;
  307. }
  308. }
  309. .web-list-filters {
  310. display: flex;
  311. flex-wrap: wrap;
  312. margin: 1.25rem 0;
  313. gap: 10px;
  314. .form-group.frappe-control {
  315. min-width: 145px;
  316. padding: 0px;
  317. margin: 0px;
  318. align-self: center;
  319. .checkbox {
  320. .input-xs {
  321. height: var(--checkbox-size);
  322. }
  323. .help-box {
  324. display: none;
  325. }
  326. }
  327. .input-xs {
  328. height: 28px;
  329. line-height: 1.2;
  330. }
  331. }
  332. }
  333. .web-list-table {
  334. overflow: auto;
  335. .table {
  336. border-bottom: 1px solid var(--border-color);
  337. border-top: 1px solid var(--border-color);
  338. thead tr {
  339. th {
  340. border: 0;
  341. font-size: 13px;
  342. font-weight: normal;
  343. color: var(--text-muted);
  344. input[type="checkbox"] {
  345. margin-bottom: -2px;
  346. }
  347. }
  348. }
  349. tbody tr {
  350. color: var(--text-color);
  351. cursor: pointer;
  352. td {
  353. font-size: 13px;
  354. border-top: 1px solid var(--border-color);
  355. max-width: 160px;
  356. .ql-editor, p {
  357. width: max-content;
  358. max-width: 150px;
  359. margin-bottom: 0;
  360. &.read-mode {
  361. display: inline-flex;
  362. gap: 5px;
  363. }
  364. }
  365. }
  366. }
  367. input[type="checkbox"] {
  368. margin-top: 2px;
  369. }
  370. .list-col-checkbox {
  371. width: 1rem;
  372. }
  373. .list-col-serial {
  374. width: 1.5rem;
  375. }
  376. }
  377. .no-result {
  378. min-height: 330px;
  379. border-top: 1px solid var(--border-color);
  380. }
  381. }
  382. .web-list-footer {
  383. text-align: right;
  384. }
  385. }
  386. .breadcrumb-container.container {
  387. @include media-breakpoint-up(sm) {
  388. padding-left: 0;
  389. }
  390. }
  391. @include media-breakpoint-down(lg) {
  392. padding-left: 1.5rem;
  393. padding-right: 1.5rem;
  394. }
  395. }
  396. @include media-breakpoint-down(lg) {
  397. padding-left: 0;
  398. padding-right: 0;
  399. }
  400. }
  401. }
  402. }