You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

894 regels
13 KiB

  1. @import "variables.less";
  2. .form-print-wrapper {
  3. border: 1px solid @border-color;
  4. border-top: none;
  5. }
  6. .print-preview-wrapper {
  7. padding: 30px 0px;
  8. background-color: @navbar-bg;
  9. }
  10. .print-toolbar {
  11. margin: 0px;
  12. padding: 10px 0px;
  13. border-bottom: 1px solid @border-color;
  14. }
  15. .form-inner-toolbar {
  16. padding: 10px 15px 0px;
  17. background-color: @light-bg;
  18. text-align: right;
  19. .btn {
  20. margin-bottom: 10px;
  21. }
  22. }
  23. .form-clickable-section {
  24. border-top: 1px solid @border-color;
  25. padding: 10px 15px;
  26. background-color: @panel-bg;
  27. }
  28. .form-page.second-page {
  29. border-top: 1px solid @border-color;
  30. }
  31. .form-message {
  32. padding: 15px 30px;
  33. border-bottom: 1px solid @border-color;
  34. }
  35. .document-flow-wrapper {
  36. padding: 40px 15px 30px;
  37. font-size: @text-medium;
  38. border-bottom: 1px solid @light-border-color;
  39. .document-flow {
  40. display: inline-block;
  41. position: relative;
  42. left: 50%;
  43. transform: translateX(-50%);
  44. .document-flow-link-wrapper {
  45. width: 140px;
  46. display: inline-block;
  47. }
  48. .document-flow-link-wrapper:not(:last-child) {
  49. border-top: 1px solid @indicator-darkgrey;
  50. // padding-left: 20px;
  51. // padding-right: 20px;
  52. margin-right: -4px;
  53. }
  54. .document-flow-link-wrapper:first-child {
  55. // padding-left: 0px;
  56. }
  57. .document-flow-link-wrapper:last-child {
  58. // padding-right: 0px;
  59. margin-right: -140px;
  60. }
  61. .document-flow-link {
  62. margin-top: -10px;
  63. display: inline-block;
  64. }
  65. .document-flow-link:not(.disabled):hover,
  66. .document-flow-link:not(.disabled):focus,
  67. .document-flow-link:not(.disabled):active {
  68. .document-flow-link-label {
  69. text-decoration: underline;
  70. }
  71. }
  72. .document-flow-link-label {
  73. display: inline-block;
  74. margin-left: -50%;
  75. margin-top: 5px;
  76. }
  77. }
  78. }
  79. @media(max-width: @screen-xs) {
  80. .document-flow-wrapper {
  81. display: none;
  82. }
  83. }
  84. .form-dashboard {
  85. background-color: @light-bg;
  86. }
  87. .form-dashboard-wrapper {
  88. margin: -15px 0px;
  89. }
  90. .form-documents h6 {
  91. margin-top: 15px;
  92. }
  93. .form-dashboard-section {
  94. margin: 0px -15px;
  95. padding: 15px 30px;
  96. border-bottom: 1px solid @light-border-color;
  97. }
  98. .form-dashboard-section:first-child {
  99. padding-top: 0px;
  100. }
  101. .form-dashboard-section:last-child {
  102. border-bottom: none;
  103. }
  104. .form-heatmap {
  105. .heatmap-message {
  106. margin-top: 10px;
  107. }
  108. @media (max-width: @screen-sm) {
  109. overflow: hidden;
  110. overflow-x: scroll;
  111. }
  112. }
  113. .inline-graph {
  114. .inline-graph-half {
  115. width: 48%;
  116. display: inline-block;
  117. position: relative;
  118. height: 30px;
  119. .inline-graph-count {
  120. font-size: 10px;
  121. position: absolute;
  122. left: 0;
  123. right: 0;
  124. top: 3px;
  125. padding: 0px 5px;
  126. text-align: left;
  127. }
  128. .inline-graph-bar {
  129. position: absolute;
  130. left: 0;
  131. right: 0;
  132. top: 20px;
  133. }
  134. .inline-graph-bar-inner {
  135. display: block;
  136. float: left;
  137. background-color: @border-color;
  138. height: 6px;
  139. border-radius: 0px 3px 3px 0px;
  140. }
  141. .inline-graph-bar-inner.dark {
  142. background-color: @text-color;
  143. }
  144. }
  145. .inline-graph-half:first-child {
  146. border-right: 1px solid @border-color;
  147. margin-right: -3px;
  148. .inline-graph-count {
  149. text-align: right;
  150. }
  151. .inline-graph-bar-inner {
  152. float: right;
  153. border-radius: 3px 0px 0px 3px;
  154. }
  155. }
  156. }
  157. .progress-area {
  158. padding-top: 15px;
  159. padding-bottom: 15px;
  160. }
  161. .form-links {
  162. .document-link {
  163. margin-bottom: 10px;
  164. height: 22px;
  165. }
  166. .document-link:hover .badge-link {
  167. text-decoration: underline;
  168. }
  169. .document-link:hover .badge-link[disabled='disabled'] {
  170. text-decoration: none;
  171. }
  172. .count {
  173. display: inline-block;
  174. margin-left: 5px;
  175. margin-right: 5px;
  176. }
  177. }
  178. h6.uppercase, .h6.uppercase {
  179. font-size: 11px;
  180. font-weight: normal;
  181. letter-spacing: 0.4px;
  182. text-transform: uppercase;
  183. color: @text-muted;
  184. }
  185. .form-section {
  186. margin: 0px;
  187. padding: 15px;
  188. .form-section-description {
  189. margin-bottom: 10px;
  190. }
  191. .form-section-heading {
  192. margin: 10px 0px;
  193. }
  194. .section-head {
  195. margin: 0px 0px 15px 15px;
  196. cursor: pointer;
  197. .collapse-indicator {
  198. color: @text-extra-muted;
  199. margin-left: 10px;
  200. position: relative;
  201. bottom: -1px;
  202. }
  203. .collapse-indicator.octicon-chevron-up {
  204. bottom: -2px;
  205. }
  206. }
  207. .section-head.collapsed {
  208. margin-bottom: 0px;
  209. }
  210. }
  211. .form-section:not(:last-child),
  212. .form-inner-toolbar {
  213. border-bottom: 1px solid @border-color;
  214. }
  215. .empty-section {
  216. display: none !important;
  217. }
  218. .shaded-section {
  219. //background-color: @light-bg;
  220. }
  221. .modal {
  222. .form-layout {
  223. margin: -15px;
  224. }
  225. .form-grid .form-layout {
  226. margin: 0px;
  227. }
  228. .form-section {
  229. padding: 15px 7px;
  230. }
  231. }
  232. .help ol {
  233. padding-left: 19px;
  234. }
  235. .field_description_top {
  236. margin-bottom: 3px;
  237. }
  238. .user-actions {
  239. margin-bottom: 15px;
  240. }
  241. .user-actions a {
  242. font-weight: bold;
  243. }
  244. .badge-important {
  245. background-color: #e74c3c;
  246. }
  247. .address-box {
  248. background-color: @light-bg;
  249. padding: 0px 15px;
  250. margin: 15px 0px;
  251. border: 1px solid @border-color;
  252. border-radius: 3px;
  253. font-size: 12px;
  254. }
  255. .timeline {
  256. margin: 30px 0px;
  257. .timeline-head {
  258. .comment-input {
  259. height: auto;
  260. }
  261. }
  262. }
  263. .timeline-item {
  264. margin-top: 0px;
  265. b {
  266. color: @text-color !important;
  267. }
  268. blockquote {
  269. font-size: inherit;
  270. }
  271. .btn-more {
  272. margin-left: 65px;
  273. }
  274. .gmail_extra {
  275. display: none;
  276. }
  277. }
  278. .timeline-items {
  279. position: relative;
  280. }
  281. .timeline {
  282. position: relative;
  283. }
  284. .timeline::before {
  285. content: " ";
  286. border-left: 1px solid @border-color;
  287. position: absolute;
  288. top: 0px;
  289. bottom: -124px;
  290. left: 43px;
  291. z-index: 0;
  292. }
  293. .timeline.in-dialog::before {
  294. bottom: 0px;
  295. }
  296. @media(max-width: @screen-sm) {
  297. .timeline::before {
  298. bottom: -64px;
  299. }
  300. }
  301. .timeline-item.user-content {
  302. margin: 30px 0px 30px 27px;
  303. .media-body {
  304. border: 1px solid @border-color;
  305. border-radius: 3px;
  306. margin-left: -7px;
  307. position: relative;
  308. max-width: calc(~"100% - 50px");
  309. padding-right: 0px;
  310. // to display the triangle beside the box
  311. overflow: visible;
  312. }
  313. .avatar-medium {
  314. margin-right: 10px;
  315. height: 45px;
  316. width: 45px;
  317. }
  318. .action-btns {
  319. position: absolute;
  320. right: 0;
  321. padding: 8px 15px 0 5px;
  322. .edit-btn-container {
  323. margin-right: 13px;
  324. }
  325. }
  326. .comment-header {
  327. background-color: @light-bg;
  328. padding: 10px 15px 8px 13px;
  329. margin: 0px;
  330. color: @text-muted;
  331. border-bottom: 1px solid @light-border-color;
  332. &.links-active {
  333. padding-right: 77px;
  334. }
  335. .asset-details {
  336. display: inline-block;
  337. width: 100%;
  338. .btn-link {
  339. border: 0;
  340. border-radius: 0;
  341. padding: 0;
  342. &:hover {
  343. text-decoration: none;
  344. }
  345. }
  346. }
  347. .commented-on-small {
  348. display: none;
  349. }
  350. .octicon-heart {
  351. color: @heart-color;
  352. cursor: pointer;
  353. }
  354. }
  355. .reply {
  356. padding: 15px;
  357. overflow: auto;
  358. & > div > p:first-child {
  359. margin-top: 0px;
  360. }
  361. & > div > p:last-child {
  362. margin-bottom: 0px;
  363. }
  364. hr {
  365. margin: 10px 0px;
  366. }
  367. }
  368. .close-btn-container {
  369. .close {
  370. color: inherit;
  371. opacity: 1;
  372. padding: 0;
  373. font-size: 18px;
  374. }
  375. }
  376. .edit-btn-container {
  377. padding: 0;
  378. .edit {
  379. color: inherit;
  380. font-size: 21px;
  381. line-height: 1;
  382. .octicon-check {
  383. font-size: 1em;
  384. }
  385. &:hover, &:focus {
  386. color: #000;
  387. }
  388. }
  389. }
  390. .comment-likes {
  391. margin-left: 5px;
  392. }
  393. .media-body:after, .media-body:before {
  394. right: 100%;
  395. top: 15px;
  396. border: solid transparent;
  397. content: " ";
  398. height: 0;
  399. width: 0;
  400. position: absolute;
  401. pointer-events: none;
  402. }
  403. .media-body:after {
  404. border-color: rgba(136, 183, 213, 0);
  405. border-right-color: #fafbfc;
  406. border-width: 6px;
  407. margin-top: -6px;
  408. }
  409. .media-body:before {
  410. border-color: rgba(194, 225, 245, 0);
  411. border-right-color: @border-color;
  412. border-width: 7px;
  413. margin-top: -7px;
  414. }
  415. }
  416. .timeline-item.notification-content {
  417. padding-left: 30px;
  418. margin: 30px 0px;
  419. position: relative;
  420. color: @text-muted;
  421. * {
  422. color: @text-muted;
  423. }
  424. .fa-fw {
  425. margin-left: 36px;
  426. }
  427. div.small {
  428. padding-left: 40px;
  429. .fa-fw {
  430. margin-left: 0px;
  431. }
  432. }
  433. .octicon-heart {
  434. color: @heart-color !important;
  435. }
  436. }
  437. .timeline-indicator() {
  438. content: " ";
  439. width: 7px;
  440. height: 7px;
  441. background-color: @border-color;
  442. // background-color: white;
  443. // border: 1px solid @border-color;
  444. position: absolute;
  445. left: 40px;
  446. border-radius: 50%;
  447. top: 5px;
  448. }
  449. .timeline-item.notification-content::before {
  450. .timeline-indicator();
  451. }
  452. .timeline-item .reply-link {
  453. margin-left: 15px;
  454. font-size: 12px;
  455. }
  456. .timeline-head {
  457. background-color: white;
  458. // padding: 15px 30px;
  459. border: 1px solid @border-color;
  460. border-radius: 3px;
  461. position: relative;
  462. z-index: 1;
  463. .comment-input-header {
  464. background-color: @light-bg;
  465. padding: 7px 15px;
  466. border-bottom: 1px solid @light-border-color;
  467. }
  468. .comment-input-container {
  469. padding: 15px;
  470. .awesomplete > ul {
  471. min-width: 200px;
  472. }
  473. }
  474. .comment-input {
  475. border-color: @light-border-color;
  476. max-width: 100%;
  477. &:focus {
  478. box-shadow: none;
  479. }
  480. }
  481. }
  482. @media(max-width: @screen-xs) {
  483. .timeline-head {
  484. border-left: none;
  485. border-right: none;
  486. border-radius: 0px;
  487. }
  488. }
  489. .signature-field {
  490. min-height: 300px;
  491. background: #fff;
  492. border: 1px solid @border-color;
  493. border-radius: 3px;
  494. position: relative;
  495. margin-top: -10px;
  496. }
  497. .signature-display {
  498. margin: 7px 0px;
  499. background: #fff;
  500. }
  501. .signature-btn-row {
  502. position: absolute;
  503. bottom: 12px;
  504. right: 12px;
  505. }
  506. .signature-reset {
  507. height: 30px;
  508. width: 30px;
  509. padding: 4px 0px;
  510. }
  511. .signature-img {
  512. border: 1px solid @border-color;
  513. background: #fff;
  514. border-radius: 3px;
  515. margin-top: 5px;
  516. width: 100%;
  517. max-height: 300px;
  518. }
  519. .timeline-new-email {
  520. margin: 30px 0px;
  521. padding-left: 70px;
  522. position: relative;
  523. }
  524. .timeline-new-email::before {
  525. .timeline-indicator();
  526. }
  527. .form-footer h5 {
  528. margin: 15px 0px;
  529. font-weight: bold;
  530. }
  531. .control-label, .grid-heading-row {
  532. color: @text-muted;
  533. font-size: 12px;
  534. }
  535. .control-label {
  536. margin-bottom: 5px;
  537. font-weight: normal;
  538. }
  539. .like-disabled-input {
  540. margin-bottom: 7px;
  541. border-radius: 3px;
  542. min-height: 30px;
  543. font-weight: bold;
  544. background-color: @navbar-bg;
  545. padding: 5px 10px;
  546. border-radius: 3px;
  547. }
  548. .disabled-check {
  549. color: @navbar-bg;
  550. margin-right: 3px;
  551. margin-bottom: -2px;
  552. }
  553. .like-disabled-input.for-description {
  554. font-weight: normal;
  555. font-size: 12px;
  556. }
  557. .frappe-control& {
  558. margin-bottom: 10px;
  559. .help-box {
  560. margin-top: 3px;
  561. }
  562. pre {
  563. white-space: pre-wrap;
  564. background-color: inherit;
  565. border: none;
  566. padding: 0px;
  567. margin: 0px;
  568. }
  569. }
  570. .flex-justify-center {
  571. display: flex;
  572. justify-content: center;
  573. }
  574. .flex-justify-end {
  575. display: flex;
  576. justify-content: flex-end;
  577. }
  578. .hide-control {
  579. display: none !important;
  580. }
  581. .shared-user {
  582. margin-bottom: 10px;
  583. }
  584. .attach-missing-image,
  585. .attach-image-display {
  586. cursor: pointer;
  587. }
  588. select.form-control {
  589. -webkit-appearance: none;
  590. -moz-appearance: none;
  591. appearance: none;
  592. }
  593. .form-control.bold {
  594. color: #000;
  595. font-weight: bold;
  596. background-color: @extra-light-yellow;
  597. }
  598. .form-control[data-fieldtype="Password"] {
  599. position: inherit;
  600. }
  601. .password-strength-indicator {
  602. float: right;
  603. padding: 15px;
  604. margin-top: -41px;
  605. margin-right: -7px;
  606. }
  607. .password-strength-message {
  608. margin-top: -10px;
  609. }
  610. .delivery-status-indicator {
  611. display: inline-block;
  612. margin-top: -3px;
  613. margin-left: 1px;
  614. font-weight: 500;
  615. color: @text-muted;
  616. }
  617. // above mobile
  618. @media (min-width: 768px) {
  619. .layout-main .form-column.col-sm-12 > form > .input-max-width {
  620. max-width: 50%;
  621. padding-right: 15px;
  622. }
  623. // don't max-width when in form-grid with half width
  624. .col-sm-6 .form-grid .form-column.col-sm-12 > form > .input-max-width {
  625. max-width: none;
  626. padding-right: 0px;
  627. }
  628. .form-column.col-sm-6 textarea[data-fieldtype="Code"] {
  629. height: 120px !important;
  630. }
  631. }
  632. // upto tablets
  633. @media (max-width: @screen-sm) {
  634. .form-section .form-section-heading {
  635. margin-top: 10px;
  636. }
  637. }
  638. // mobile
  639. @media (max-width: @screen-xs) {
  640. // padding to form section on mobile
  641. .form-section {
  642. .section-head {
  643. padding: 15px 15px 15px 0px;
  644. }
  645. .section-body .form-column:first-child{
  646. .radio, .checkbox{
  647. margin-top: 0;
  648. }
  649. }
  650. }
  651. .form-column {
  652. border-bottom: 1px solid @light-border-color;
  653. padding-top: 15px;
  654. padding-bottom: 15px;
  655. }
  656. .form-column:last-child {
  657. border-bottom: 0px;
  658. }
  659. .form-section {
  660. padding-left: 0px !important;
  661. padding-right: 0px !important;
  662. }
  663. .form-grid {
  664. margin-left: -17px;
  665. margin-right: -17px;
  666. border-left: none !important;
  667. border-right: none !important;
  668. border-radius: none;
  669. }
  670. // forms
  671. .form-page {
  672. .form-section {
  673. padding: 0px 15px;
  674. }
  675. .frappe-control& {
  676. padding: 7px 15px;
  677. border-bottom: 1px solid @light-border-color;
  678. margin: 0px -15px;
  679. .link-btn {
  680. top: -2px;
  681. }
  682. .like-disabled-input {
  683. min-height: 0px !important;
  684. }
  685. &:last-child {
  686. margin-bottom: 0px;
  687. }
  688. }
  689. .frappe-control:last-child {
  690. border-bottom: 0px;
  691. }
  692. .frappe-control[data-fieldtype="Table"] {
  693. padding: 0px 15px;
  694. margin-top: -1px;
  695. border-bottom: none;
  696. label {
  697. margin-top: 7px;
  698. }
  699. }
  700. // .form-section:last-child .form-column:last-child .frappe-control:last-child {
  701. // border-bottom: none;
  702. // }
  703. .form-control {
  704. border: none;
  705. border-bottom: 1px solid @border-color;
  706. box-shadow: none;
  707. background-color: inherit;
  708. height: auto;
  709. padding: 0px;
  710. margin-bottom: 7px;
  711. border-radius: 0px;
  712. // make all fields left-aligned!
  713. text-align: left !important;
  714. }
  715. .form-control:focus {
  716. box-shadow: none;
  717. }
  718. // select.form-control {
  719. // text-indent: -2px;
  720. // }
  721. }
  722. }
  723. /* goals */
  724. .goals-page-container {
  725. background-color: #fafbfc;
  726. padding-top: 1px;
  727. .goal-container {
  728. background-color: #fff;
  729. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  730. border-radius: 2px;
  731. padding: 10px;
  732. margin: 10px;
  733. }
  734. }
  735. body[data-route^="Form/Communication"] textarea[data-fieldname="subject"] {
  736. height: 80px !important;
  737. }