Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

1094 lignes
16 KiB

  1. @import "variables.less";
  2. @import "mixins.less";
  3. @import "common.less";
  4. .nav-pills a, .nav-pills a:hover {
  5. border-bottom: none;
  6. }
  7. a.form-link {
  8. color: inherit;
  9. font-weight: bold;
  10. font-size: 102%;
  11. }
  12. a[disabled="disabled"] {
  13. color: @text-muted;
  14. text-decoration: none;
  15. cursor: default;
  16. &:hover {
  17. text-decoration: none;
  18. }
  19. }
  20. .link-btn {
  21. position: absolute;
  22. top: 3px;
  23. right: 4px;
  24. border-radius: 2px;
  25. padding: 3px;
  26. display: none;
  27. z-index: 3;
  28. }
  29. .link-primary& {
  30. color: @brand-primary;
  31. &:hover, &:focus {
  32. color: @brand-primary;
  33. }
  34. }
  35. .scroll-to-top {
  36. background-color: @light-bg;
  37. padding: 7px;
  38. border-radius: 3px;
  39. }
  40. .alert-badge {
  41. margin: 4px 0px;
  42. }
  43. .alert-badge .badge {
  44. margin-top: 3px;
  45. }
  46. /* alert */
  47. #alert-container {
  48. position: fixed;
  49. bottom: 0px;
  50. right: 20px;
  51. z-index: 1050;
  52. }
  53. #alert-container .desk-alert {
  54. -webkit-box-shadow: 0 0px 5px rgba(0, 0, 0, 0.1);
  55. -moz-box-shadow: 0 0px 5px rgba(0, 0, 0, 0.1);
  56. box-shadow: 0 0px 5px rgba(0, 0, 0, 0.1);
  57. padding: 10px 40px 10px 20px;
  58. max-width: 400px;
  59. min-width: 200px;
  60. max-height: 200px;
  61. background-color: @light-yellow;
  62. border: 1px solid @border-color;
  63. // word-break: break-all;
  64. overflow-y: auto;
  65. position: relative;
  66. .close {
  67. color: inherit;
  68. line-height: inherit;
  69. opacity: 1;
  70. font-size: inherit;
  71. float: none;
  72. margin-left: 15px;
  73. margin-right: 15px;
  74. position: absolute;
  75. right: 0px;
  76. }
  77. }
  78. .missing-image {
  79. background-color: @light-bg;
  80. display: table-cell;
  81. vertical-align: middle;
  82. text-align: center;
  83. width: 140px;
  84. height: 140px;
  85. }
  86. .missing-image .octicon {
  87. font-size: 32px;
  88. color: @border-color;
  89. }
  90. .missing-image.small {
  91. width: 20px;
  92. height: 20px;
  93. }
  94. .missing-image.small .octicon {
  95. font-size: 16px;
  96. }
  97. .frappe-editor {
  98. cursor: text;
  99. }
  100. .frappe-editor img {
  101. max-width: 100%;
  102. }
  103. textarea.form-control {
  104. height: 120px;
  105. }
  106. .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
  107. background-color: @light-bg;
  108. }
  109. .link-select-row {
  110. padding: 5px;
  111. border-bottom: 1px solid @light-border-color;
  112. }
  113. .datepicker {
  114. font-family: inherit;
  115. z-index: 9999 !important;
  116. &--time-current-hours, &--time-current-minutes, &--time-current-seconds {
  117. font-family: inherit;
  118. }
  119. &--day-name {
  120. color: @text-color;
  121. }
  122. &--cell {
  123. &.-current- {
  124. color: @brand-primary;
  125. &.-in-range- {
  126. color: @brand-primary;
  127. }
  128. }
  129. &.-range-from-, &.-range-to- {
  130. border: 1px solid fade(@brand-primary, 30%);
  131. background: fade(@brand-primary, 10%);
  132. }
  133. &.-selected-, &.-current-.-selected- {
  134. background: @brand-primary;
  135. }
  136. &.-in-range- {
  137. background: fade(@brand-primary, 5%);
  138. }
  139. &.-in-range-.-focus- {
  140. background: fade(@brand-primary, 10%);
  141. }
  142. &.-selected-.-focus- {
  143. background: fade(@brand-primary, 90%);
  144. }
  145. }
  146. }
  147. .datepicker--button {
  148. color: @brand-primary;
  149. }
  150. .hidden-xs-inline, .hidden-xs-inline-block {
  151. display: none;
  152. }
  153. .awesomplete {
  154. width: 100%;
  155. &> ul {
  156. z-index: 1041 !important;
  157. transition: none;
  158. background-color: #fff;
  159. max-height: 200px;
  160. overflow-y: auto;
  161. overflow-x: hidden;
  162. border-radius: 0px 0px 4px 4px;
  163. box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.176);
  164. border-color: @border-color;
  165. &:before {
  166. display: none;
  167. }
  168. li[aria-selected="true"] mark, mark {
  169. padding: 0px;
  170. background-color: inherit;
  171. }
  172. &> li {
  173. font-size: 12px;
  174. padding: 9px 11.8px;
  175. }
  176. &> li .link-option {
  177. font-weight: normal;
  178. }
  179. &> li:hover, &> li[aria-selected=true] {
  180. background-color: @btn-bg;
  181. color: @text-color;
  182. text-shadow: none;
  183. }
  184. a:hover {
  185. text-decoration: none;
  186. }
  187. p {
  188. margin: 3px 0;
  189. }
  190. }
  191. @media (max-width: @screen-sm) {
  192. &>ul {
  193. top: 26px;
  194. }
  195. }
  196. }
  197. .barcode-wrapper {
  198. text-align: center;
  199. }
  200. @media (min-width: 768px) {
  201. .video-modal .modal-dialog {
  202. width: 700px;
  203. }
  204. }
  205. @media (min-width: 768px) {
  206. .hidden-xs-inline {
  207. display: inline;
  208. }
  209. .hidden-xs-inline-block {
  210. display: inline-block;
  211. }
  212. .listview-main-section {
  213. border-right: 1px solid @border-color;
  214. }
  215. }
  216. .panel-bg {
  217. background-color: @panel-bg;
  218. }
  219. .light-bg {
  220. background-color: @light-bg;
  221. }
  222. .modal-backdrop {
  223. opacity: 0.5;
  224. position: fixed;
  225. }
  226. .modal-header {
  227. padding: 10px 15px;
  228. }
  229. .modal-title {
  230. margin-top: 5px;
  231. }
  232. .btn-primary.disabled {
  233. background-color: #b1bdca;
  234. color: #fff;
  235. border-color: #b1bdca;
  236. }
  237. .form-control {
  238. position: relative;
  239. input {
  240. // for vertically aligned text in inputs
  241. padding: 6px 10px 8px;
  242. }
  243. }
  244. .link-field.ui-front {
  245. z-index: inherit;
  246. }
  247. .modal .hasDatepicker {
  248. z-index: 1140;
  249. }
  250. .link-field.ui-front {
  251. z-index: inherit;
  252. }
  253. .form-group {
  254. margin-bottom: 7px;
  255. }
  256. .print-preview {
  257. padding: 0px;
  258. max-width: 8.3in;
  259. margin: auto;
  260. min-height: 11.69in;
  261. }
  262. .open-notification {
  263. position:relative;
  264. left: 2px;
  265. display:inline-block;
  266. background:#ff5858;
  267. font-size: @text-medium;
  268. line-height:20px;
  269. padding:0 8px;
  270. color:#fff;
  271. border-radius:10px;
  272. cursor: pointer;
  273. margin-right: 10px;
  274. }
  275. a.progress-small {
  276. .progress-chart {
  277. width: 40px;
  278. margin-top: 4px;
  279. float: right;
  280. }
  281. .progress {
  282. margin-bottom: 0;
  283. }
  284. .progress-bar {
  285. transition: unset;
  286. background-color: #98d85b;
  287. }
  288. }
  289. li.user-progress {
  290. .progress-chart {
  291. width: 50px;
  292. margin-top: 8px;
  293. }
  294. .progress {
  295. margin-bottom: 0;
  296. background-color: #fff;
  297. border: 1px solid #e5e7e9;
  298. }
  299. .progress-bar {
  300. transition: unset;
  301. background-color: #98d85b;
  302. }
  303. }
  304. /* on small screens, show only icons on top */
  305. @media (max-width: 767px) {
  306. .module-view-layout .nav-stacked > li {
  307. float: left;
  308. margin-bottom: 5px;
  309. }
  310. .nav-stacked > li + li {
  311. margin-top: 0px;
  312. margin-left: 2px;
  313. }
  314. li.user-progress .progress-chart {
  315. width: 25px;
  316. }
  317. }
  318. .msg-box {
  319. padding: 30px 15px;
  320. text-align: center;
  321. color: @text-muted;
  322. }
  323. .no-border {
  324. border: none !important;
  325. }
  326. .message-row {
  327. padding: 10px 15px;
  328. }
  329. .message-row .indicator {
  330. margin-left: -5px;
  331. margin-right: -20px;
  332. }
  333. .message-box {
  334. .indicator {
  335. margin-right: 15px;
  336. margin-top: 7px;
  337. }
  338. .timeline-head {
  339. padding: 30px;
  340. border: 0px;
  341. border-bottom: 1px solid @border-color;
  342. }
  343. }
  344. .page-only-label {
  345. margin-top: 5px;
  346. text-align: center;
  347. }
  348. .intro-area {
  349. padding: 15px 30px;
  350. }
  351. .footnote-area {
  352. padding: 0px 15px;
  353. border-top: 1px solid @border-color;
  354. }
  355. .file-upload {
  356. .input-group-addon {
  357. color: @text-muted;
  358. font-size: 12px;
  359. }
  360. .file-upload-or {
  361. font-size: 12px;
  362. margin: 0px 7px;
  363. }
  364. .uploaded-filename,
  365. .web-link-wrapper,
  366. .input-upload,
  367. .input-link {
  368. display: inline-block;
  369. vertical-align: middle;
  370. }
  371. .input-upload {
  372. vertical-align: top;
  373. }
  374. .uploaded-filename {
  375. border: 1px solid @border-color;
  376. border-radius: 3px;
  377. }
  378. .uploaded-filename .btn-group {
  379. margin-right: 5px;
  380. margin-bottom: 5px;
  381. }
  382. .uploaded-filename-display {
  383. max-width: 150px;
  384. }
  385. .file-public-column {
  386. flex: 0 0 36px;
  387. order: -1;
  388. justify-content: flex-end;
  389. input[type="checkbox"] {
  390. margin-right: 0;
  391. }
  392. }
  393. }
  394. .frappe-rtl input ,.frappe-rtl textarea {
  395. direction: rtl;
  396. }
  397. .frappe-rtl .checkbox .disp-area {
  398. margin-right: -20px;
  399. margin-left: 0px;
  400. }
  401. .checkbox .disp-area {
  402. margin-left: -20px;
  403. }
  404. .text-editor {
  405. height: 400px;
  406. background-color: white;
  407. border-collapse: separate;
  408. border: 1px solid rgb(204, 204, 204);
  409. padding: 4px;
  410. box-sizing: content-box;
  411. -webkit-box-shadow: rgba(0, 0, 0, 0.0745098) 0px 1px 1px 0px inset;
  412. box-shadow: rgba(0, 0, 0, 0.0745098) 0px 1px 1px 0px inset;
  413. border-radius: 3px;
  414. overflow: scroll;
  415. outline: none;
  416. }
  417. .markdown-text-editor {
  418. height: 451px;
  419. font-family: Monaco, "Courier New", monospace;
  420. }
  421. .breadcrumb {
  422. font-size: 12px;
  423. background-color: #fff;
  424. }
  425. .breadcrumb.for-file-list {
  426. margin-bottom: 0px;
  427. padding: 18px 15px;
  428. border-bottom: 1px solid @border-color;
  429. border-radius: 0px;
  430. }
  431. // like pop-over
  432. .liked-by-popover {
  433. min-width: 200px;
  434. margin-top: -10px;
  435. margin-bottom: -10px;
  436. li {
  437. margin: 15px 0px;
  438. }
  439. }
  440. .screenshot {
  441. border: 1px solid @border-color;
  442. box-shadow: 1px 1px 7px rgba(0,0,0,0.15);
  443. margin: 8px 0px;
  444. max-width: 100%;
  445. }
  446. .help-modal {
  447. a {
  448. color: @brand-primary;
  449. }
  450. .modal-dialog {
  451. width: 768px;
  452. }
  453. .modal-body {
  454. padding: 15px 27px;
  455. }
  456. .parent-link {
  457. &:before {
  458. font-family: 'Octicons';
  459. content: '\f0a4';
  460. }
  461. }
  462. .edit-container {
  463. padding-bottom: 12px;
  464. }
  465. @media (max-width: @screen-xs) {
  466. .modal-dialog {
  467. width: auto;
  468. }
  469. .modal-content {
  470. height: auto !important;
  471. }
  472. iframe {
  473. height: auto;
  474. width: 100%;
  475. }
  476. }
  477. }
  478. .search-result {
  479. margin-bottom: 24px;
  480. }
  481. // summernote editor
  482. .note-editor {
  483. margin-top: 5px;
  484. &.note-frame {
  485. border-color: @border-color;
  486. }
  487. .btn {
  488. outline: none !important;
  489. }
  490. .dropdown-style > li > a > * {
  491. margin: 0;
  492. }
  493. .fa.fa-check {
  494. color: @text-color !important;
  495. }
  496. .dropdown-menu {
  497. z-index: 100;
  498. max-height: 300px;
  499. overflow: auto;
  500. }
  501. .note-image-input {
  502. height: auto;
  503. }
  504. }
  505. // hide some buttons in modal
  506. .modal .note-editor {
  507. .note-btn-italic,
  508. .note-btn-underline,
  509. [data-original-title="Font Size"],
  510. [data-original-title="Video"],
  511. [data-original-title="Table"] {
  512. display: none;
  513. }
  514. }
  515. .note-hint-popover {
  516. border-radius: 3px;
  517. border-color: @border-color;
  518. padding: 0;
  519. .popover-content {
  520. padding: 0;
  521. }
  522. .note-hint-item {
  523. color: @text-color !important;
  524. padding: 5px 8.8px !important;
  525. }
  526. .note-hint-item.active {
  527. background-color: @btn-bg !important;
  528. }
  529. }
  530. .search-dialog {
  531. .modal-dialog {
  532. width: 768px;
  533. }
  534. .search-header {
  535. display: flex;
  536. align-items: center;
  537. padding: 5px;
  538. }
  539. .modal-body {
  540. padding: 0px 15px;
  541. }
  542. .empty-state {
  543. color: #d4d9dd;
  544. height: 500px;
  545. display: flex;
  546. justify-content: center;
  547. align-items: center;
  548. text-align: center;
  549. .status-icon {
  550. font-size: 40px;
  551. position: relative;
  552. margin-bottom: 10px;
  553. }
  554. p {
  555. font-size: 15px;
  556. display: block;
  557. }
  558. .cover {
  559. color: white;
  560. font-size: 6px;
  561. position: absolute;
  562. }
  563. }
  564. @keyframes twinkle {
  565. 0% { opacity:1; }
  566. 50% { opacity:0; }
  567. 100% { opacity:1; }
  568. }
  569. @-o-keyframes twinkle {
  570. 0% { opacity:1; }
  571. 50% { opacity:0; }
  572. 100% { opacity:1; }
  573. }
  574. @-moz-keyframes twinkle {
  575. 0% { opacity:1; }
  576. 50% { opacity:0; }
  577. 100% { opacity:1; }
  578. }
  579. @-webkit-keyframes twinkle {
  580. 0% { opacity:1; }
  581. 50% { opacity:0; }
  582. 100% { opacity:1; }
  583. }
  584. .twinkle-one {
  585. -webkit-animation: twinkle 1.5s ease infinite;
  586. -moz-animation: twinkle 1.5s ease infinite;
  587. -o-animation: twinkle 1.5s ease infinite;
  588. animation: twinkle 1.5s ease infinite;
  589. }
  590. .twinkle-two {
  591. -webkit-animation: twinkle 1.5s ease infinite 0.5s;
  592. -moz-animation: twinkle 1.5s ease infinite 0.5s;
  593. -o-animation: twinkle 1.5s ease infinite 0.5s;
  594. animation: twinkle 1.5s ease infinite 0.5s;
  595. }
  596. .twinkle-three {
  597. -webkit-animation: twinkle 1.5s ease infinite 1s;
  598. -moz-animation: twinkle 1.5s ease infinite 1s;
  599. -o-animation: twinkle 1.5s ease infinite 1s;
  600. animation: twinkle 1.5s ease infinite 1s;
  601. }
  602. input.form-control {
  603. border: none;
  604. border-left-style:none;
  605. }
  606. input.form-control:focus {
  607. outline: none;
  608. box-shadow: none;
  609. }
  610. .layout-side-section,
  611. .layout-main-section {
  612. height: 500px;
  613. padding: 0px;
  614. overflow-y: auto;
  615. }
  616. .layout-side-section {
  617. .module-sidebar-nav {
  618. margin-top: 0px;
  619. }
  620. .help-link {
  621. padding-top: 20px;
  622. text-transform: uppercase;
  623. }
  624. .nav {
  625. li a {
  626. display: flex;
  627. align-items: center;
  628. justify-content: space-between;
  629. padding-left: 20px;
  630. background-color: #ffffff;
  631. i {
  632. visibility: hidden;
  633. }
  634. }
  635. .active i {
  636. visibility: visible;
  637. }
  638. .select a, a:hover {
  639. background-color: #f7fafc;
  640. }
  641. }
  642. }
  643. .results-area {
  644. .single-link a {
  645. color: #36414c;
  646. }
  647. }
  648. .module-section {
  649. .back-link {
  650. margin-bottom: 20px;
  651. margin-top: -10px;
  652. }
  653. .all-results-link:before {
  654. font-family: 'Octicons';
  655. content: '\f0a4';
  656. }
  657. .result {
  658. margin-bottom: 5px;
  659. }
  660. }
  661. .full-list {
  662. .result {
  663. margin-top: 15px;
  664. .result-subtype {
  665. float: right;
  666. margin-left: 10px;
  667. }
  668. }
  669. .result-with-subtype {
  670. border-bottom: 1px solid #d1d8dd;
  671. margin-top: 10px;
  672. }
  673. .section-head {
  674. margin-bottom: 25px;
  675. }
  676. }
  677. .dual-section {
  678. .result-subtype{
  679. display: none;
  680. }
  681. }
  682. .result-status {
  683. margin-top: 30px;
  684. text-align: center;
  685. }
  686. .more-results {
  687. display: none;
  688. }
  689. .result {
  690. p {
  691. margin-top: 5px;
  692. margin-bottom: 5px;
  693. }
  694. .result-image {
  695. display: inline-block;
  696. margin-right: 10px;
  697. height: 60px;
  698. width: 60px;
  699. background-color: #fafbfc;
  700. .flex-text {
  701. display: flex;
  702. height: 60px;
  703. align-items: center;
  704. justify-content: center;
  705. }
  706. span {
  707. font-size: 30px;
  708. color: @text-extra-muted;
  709. }
  710. }
  711. }
  712. @media (max-width: @screen-xs) {
  713. .modal-dialog {
  714. width: auto;
  715. }
  716. .modal-content {
  717. height: auto !important;
  718. }
  719. }
  720. @media (max-width: @screen-sm) {
  721. .module-body {
  722. margin: 0px;
  723. border-top: none;
  724. }
  725. }
  726. @media (min-width: 600px) {
  727. .results-area .back-link {
  728. display: none;
  729. }
  730. }
  731. }
  732. .note-editor.note-frame .note-editing-area .note-editable {
  733. color: @text-color;
  734. }
  735. // custom font awesome checkbox
  736. input[type="checkbox"] {
  737. visibility: hidden;
  738. position: relative;
  739. &:before {
  740. position: absolute;
  741. font-family: 'FontAwesome';
  742. content: '\f096';
  743. visibility: visible;
  744. font-style: normal;
  745. font-weight: normal;
  746. font-variant: normal;
  747. text-transform: none;
  748. line-height: 14px;
  749. display: inline-block;
  750. font-size: 14px;
  751. color: @text-extra-muted;
  752. .transition(150ms color);
  753. }
  754. &:checked:before {
  755. content: '\f14a';
  756. font-size: 13px;
  757. color: @checkbox-color;
  758. }
  759. }
  760. // Will not be required after commonifying lists with empty state
  761. .multiselect-empty-state{
  762. min-height: 300px;
  763. display: flex;
  764. align-items: center;
  765. justify-content: center;
  766. height: 100%;
  767. }
  768. // mozilla doesn't support
  769. // pseudo elements on checkbox
  770. @-moz-document url-prefix() {
  771. input[type="checkbox"] {
  772. visibility: visible;
  773. }
  774. }
  775. // edge doesn't support pseudo elements on checkbox
  776. //Microsoft Edge Browser 12+ (All)
  777. @supports (-ms-ime-align:auto) {
  778. input[type="checkbox"] {
  779. visibility: visible;
  780. }
  781. }
  782. // color picker
  783. .color-picker {
  784. position: relative;
  785. z-index: 999;
  786. .color-picker-pallete {
  787. border-radius: 4px;
  788. box-shadow: 0 4px 12px rgba(0,0,0,.15);
  789. background: #fff;
  790. border: 1px solid @border-color;
  791. width: 290px;
  792. height: 106px;
  793. padding-top: 10px;
  794. padding-left: 5px;
  795. position: absolute;
  796. top: 0;
  797. left: 0;
  798. &:after,
  799. &:before {
  800. border: solid transparent;
  801. content: " ";
  802. height: 0;
  803. width: 0;
  804. pointer-events: none;
  805. position: absolute;
  806. bottom: 100%;
  807. left: 30px;
  808. }
  809. &:after {
  810. border-color: rgba(255, 255, 255, 0);
  811. border-bottom-color: #fff;
  812. border-width: 8px;
  813. margin-left: -8px;
  814. }
  815. &:before {
  816. border-color: rgba(221, 221, 221, 0);
  817. border-bottom-color: @border-color;
  818. border-width: 9px;
  819. margin-left: -9px;
  820. }
  821. }
  822. .color-box {
  823. cursor: pointer;
  824. display: inline-block;
  825. width: 20px;
  826. height: 20px;
  827. margin: -2px 0 0 3px;
  828. border: 1px solid rgba(0,0,0, 0.25);
  829. }
  830. }
  831. // Slides
  832. .slides-wrapper {
  833. &:focus {
  834. outline: none;
  835. }
  836. .fa-circle {
  837. font-size: 10px;
  838. margin: 0px 2px;
  839. &.active {
  840. color: #5e64ff;
  841. }
  842. &.link {
  843. cursor: pointer;
  844. }
  845. }
  846. .slide-wrapper {
  847. &:focus {
  848. outline: none;
  849. }
  850. }
  851. .form {
  852. margin-top: 30px;
  853. .form-layout {
  854. margin-top: 0px;
  855. margin-bottom: 0px;
  856. }
  857. .form-section {
  858. padding: 0px 7px;
  859. border: none;
  860. }
  861. }
  862. .add-more {
  863. margin-bottom: 30px;
  864. }
  865. .lead {
  866. margin-top: 20px;
  867. }
  868. .success-state {
  869. margin-bottom: 20px;
  870. }
  871. .next-steps-links {
  872. .title {
  873. text-transform: uppercase;
  874. color: #8D99A6;
  875. font-size: 11px;
  876. }
  877. }
  878. .btn-primary {
  879. font-weight: bold;
  880. }
  881. .footer {
  882. margin-top: 15px;
  883. padding: 0px 7px;
  884. .btn:not(:last-child) {
  885. margin-right: 3px;
  886. }
  887. a.make-btn.disabled {
  888. background-color: #b1bdca;
  889. color: #fff;
  890. border-color: #b1bdca;
  891. }
  892. }
  893. }
  894. // User Progress Dialog
  895. .user-progress-dialog {
  896. .slides-progress {
  897. margin-top: 15px;
  898. }
  899. .done-state {
  900. .check-container {
  901. font-size: 64px;
  902. margin: 40px;
  903. }
  904. .title {
  905. font-weight: normal;
  906. }
  907. .help-links {
  908. a {
  909. margin: 0px 10px;
  910. }
  911. }
  912. }
  913. }