Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

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