Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

874 рядки
13 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: 2px;
  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;
  157. transition: none;
  158. background: #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. @media (min-width: 768px) {
  198. .video-modal {
  199. width: 700px;
  200. }
  201. }
  202. @media (min-width: 768px) {
  203. .hidden-xs-inline {
  204. display: inline;
  205. }
  206. .hidden-xs-inline-block {
  207. display: inline-block;
  208. }
  209. .listview-main-section {
  210. border-right: 1px solid @border-color;
  211. }
  212. }
  213. .panel-bg {
  214. background-color: @panel-bg;
  215. }
  216. .light-bg {
  217. background-color: @light-bg;
  218. }
  219. .modal-backdrop {
  220. opacity: 0.5;
  221. position: fixed;
  222. }
  223. .modal-header {
  224. padding: 10px 15px;
  225. }
  226. .modal-title {
  227. margin-top: 5px;
  228. }
  229. .form-control {
  230. position: relative;
  231. input {
  232. // for vertically aligned text in inputs
  233. padding: 6px 10px 8px;
  234. }
  235. }
  236. .link-field.ui-front {
  237. z-index: inherit;
  238. }
  239. .modal .hasDatepicker {
  240. z-index: 1140;
  241. }
  242. .link-field.ui-front {
  243. z-index: inherit;
  244. }
  245. .form-group {
  246. margin-bottom: 7px;
  247. }
  248. .print-preview {
  249. padding: 0px;
  250. max-width: 8.3in;
  251. margin: auto;
  252. min-height: 11.69in;
  253. }
  254. .open-notification {
  255. position:relative;
  256. left: 2px;
  257. display:inline-block;
  258. background:#ff5858;
  259. font-size: @text-medium;
  260. line-height:20px;
  261. padding:0 8px;
  262. color:#fff;
  263. border-radius:10px;
  264. cursor: pointer;
  265. margin-right: 10px;
  266. }
  267. /* on small screens, show only icons on top */
  268. @media (max-width: 767px) {
  269. .module-view-layout .nav-stacked > li {
  270. float: left;
  271. margin-bottom: 5px;
  272. }
  273. .nav-stacked > li + li {
  274. margin-top: 0px;
  275. margin-left: 2px;
  276. }
  277. }
  278. .msg-box {
  279. padding: 30px 15px;
  280. text-align: center;
  281. color: @text-muted;
  282. }
  283. .no-border {
  284. border: none !important;
  285. }
  286. .message-row {
  287. padding: 10px 15px;
  288. }
  289. .message-row .indicator {
  290. margin-left: -5px;
  291. margin-right: -20px;
  292. }
  293. .message-box {
  294. .indicator {
  295. margin-right: 15px;
  296. margin-top: 7px;
  297. }
  298. .timeline-head {
  299. padding: 30px;
  300. border: 0px;
  301. border-bottom: 1px solid @border-color;
  302. }
  303. }
  304. .page-only-label {
  305. margin-top: 5px;
  306. text-align: center;
  307. }
  308. .intro-area {
  309. padding: 15px 30px;
  310. }
  311. .footnote-area {
  312. padding: 0px 15px;
  313. border-top: 1px solid @border-color;
  314. }
  315. .file-upload {
  316. .input-group-addon {
  317. color: @text-muted;
  318. font-size: 12px;
  319. }
  320. .file-upload-or {
  321. font-size: 12px;
  322. margin: 0px 7px;
  323. }
  324. .uploaded-filename,
  325. .web-link-wrapper,
  326. .input-upload,
  327. .input-link {
  328. display: inline-block;
  329. vertical-align: middle;
  330. }
  331. .uploaded-filename-display {
  332. max-width: 194px;
  333. }
  334. }
  335. .frappe-rtl input ,.frappe-rtl textarea {
  336. direction: rtl
  337. }
  338. .text-editor {
  339. height: 400px;
  340. background-color: white;
  341. border-collapse: separate;
  342. border: 1px solid rgb(204, 204, 204);
  343. padding: 4px;
  344. box-sizing: content-box;
  345. -webkit-box-shadow: rgba(0, 0, 0, 0.0745098) 0px 1px 1px 0px inset;
  346. box-shadow: rgba(0, 0, 0, 0.0745098) 0px 1px 1px 0px inset;
  347. border-radius: 3px;
  348. overflow: scroll;
  349. outline: none;
  350. }
  351. .markdown-text-editor {
  352. height: 451px;
  353. font-family: Monaco, "Courier New", monospace;
  354. }
  355. .breadcrumb {
  356. font-size: 12px;
  357. background-color: #fff;
  358. }
  359. .breadcrumb.for-file-list {
  360. margin-bottom: 0px;
  361. padding: 18px 15px;
  362. border-bottom: 1px solid @border-color;
  363. border-radius: 0px;
  364. }
  365. // like pop-over
  366. .liked-by-popover {
  367. min-width: 200px;
  368. margin-top: -10px;
  369. margin-bottom: -10px;
  370. li {
  371. margin: 15px 0px;
  372. }
  373. }
  374. .screenshot {
  375. border: 1px solid @border-color;
  376. box-shadow: 1px 1px 7px rgba(0,0,0,0.15);
  377. margin: 8px 0px;
  378. max-width: 100%;
  379. }
  380. .help-modal {
  381. a {
  382. color: @brand-primary;
  383. }
  384. .modal-dialog {
  385. width: 768px;
  386. }
  387. .modal-body {
  388. padding: 15px 27px;
  389. }
  390. .parent-link {
  391. &:before {
  392. font-family: 'Octicons';
  393. content: '\f0a4';
  394. }
  395. }
  396. .edit-container {
  397. padding-bottom: 12px;
  398. }
  399. @media (max-width: @screen-xs) {
  400. .modal-dialog {
  401. width: auto;
  402. }
  403. .modal-content {
  404. height: auto !important;
  405. }
  406. iframe {
  407. height: auto;
  408. width: 100%;
  409. }
  410. }
  411. }
  412. .search-result {
  413. margin-bottom: 24px;
  414. }
  415. // summernote editor
  416. .note-editor {
  417. margin-top: 5px;
  418. &.note-frame {
  419. border-color: @border-color;
  420. }
  421. .btn {
  422. outline: none !important;
  423. }
  424. .dropdown-style > li > a > * {
  425. margin: 0;
  426. }
  427. .fa.fa-check {
  428. color: @text-color !important;
  429. }
  430. .dropdown-menu {
  431. z-index: 100;
  432. max-height: 300px;
  433. overflow: auto;
  434. }
  435. }
  436. // hide some buttons in modal
  437. .modal .note-editor {
  438. .note-btn-italic,
  439. .note-btn-underline,
  440. [data-original-title="Font Size"],
  441. [data-original-title="Video"],
  442. [data-original-title="Table"] {
  443. display: none;
  444. }
  445. }
  446. .search-dialog {
  447. .modal-dialog {
  448. width: 768px;
  449. }
  450. .search-header {
  451. display: flex;
  452. align-items: center;
  453. padding: 5px;
  454. }
  455. .modal-body {
  456. padding: 0px 15px;
  457. }
  458. .empty-state {
  459. color: #d4d9dd;
  460. height: 500px;
  461. display: flex;
  462. justify-content: center;
  463. align-items: center;
  464. text-align: center;
  465. .status-icon {
  466. font-size: 40px;
  467. position: relative;
  468. margin-bottom: 10px;
  469. }
  470. p {
  471. font-size: 15px;
  472. display: block;
  473. }
  474. .cover {
  475. color: white;
  476. font-size: 6px;
  477. position: absolute;
  478. }
  479. }
  480. @keyframes twinkle {
  481. 0% { opacity:1; }
  482. 50% { opacity:0; }
  483. 100% { opacity:1; }
  484. }
  485. @-o-keyframes twinkle {
  486. 0% { opacity:1; }
  487. 50% { opacity:0; }
  488. 100% { opacity:1; }
  489. }
  490. @-moz-keyframes twinkle {
  491. 0% { opacity:1; }
  492. 50% { opacity:0; }
  493. 100% { opacity:1; }
  494. }
  495. @-webkit-keyframes twinkle {
  496. 0% { opacity:1; }
  497. 50% { opacity:0; }
  498. 100% { opacity:1; }
  499. }
  500. .twinkle-one {
  501. -webkit-animation: twinkle 1.5s ease infinite;
  502. -moz-animation: twinkle 1.5s ease infinite;
  503. -o-animation: twinkle 1.5s ease infinite;
  504. animation: twinkle 1.5s ease infinite;
  505. }
  506. .twinkle-two {
  507. -webkit-animation: twinkle 1.5s ease infinite 0.5s;
  508. -moz-animation: twinkle 1.5s ease infinite 0.5s;
  509. -o-animation: twinkle 1.5s ease infinite 0.5s;
  510. animation: twinkle 1.5s ease infinite 0.5s;
  511. }
  512. .twinkle-three {
  513. -webkit-animation: twinkle 1.5s ease infinite 1s;
  514. -moz-animation: twinkle 1.5s ease infinite 1s;
  515. -o-animation: twinkle 1.5s ease infinite 1s;
  516. animation: twinkle 1.5s ease infinite 1s;
  517. }
  518. input.form-control {
  519. border: none;
  520. border-left-style:none;
  521. }
  522. input.form-control:focus {
  523. outline: none;
  524. box-shadow: none;
  525. }
  526. .layout-side-section,
  527. .layout-main-section {
  528. height: 500px;
  529. padding: 0px;
  530. overflow-y: auto;
  531. }
  532. .layout-side-section {
  533. .module-sidebar-nav {
  534. margin-top: 0px;
  535. }
  536. .help-link {
  537. padding-top: 20px;
  538. text-transform: uppercase;
  539. }
  540. .nav {
  541. li a {
  542. display: flex;
  543. align-items: center;
  544. justify-content: space-between;
  545. padding-left: 20px;
  546. background-color: #ffffff;
  547. i {
  548. visibility: hidden;
  549. }
  550. }
  551. .active i {
  552. visibility: visible;
  553. }
  554. .select a, a:hover {
  555. background-color: #f7fafc;
  556. }
  557. }
  558. }
  559. .results-area {
  560. .single-link a {
  561. color: #36414c;
  562. }
  563. }
  564. .module-section {
  565. .back-link {
  566. margin-bottom: 20px;
  567. margin-top: -10px;
  568. }
  569. .all-results-link:before {
  570. font-family: 'Octicons';
  571. content: '\f0a4';
  572. }
  573. .result {
  574. margin-bottom: 5px;
  575. }
  576. }
  577. .full-list {
  578. .result {
  579. margin-top: 15px;
  580. .result-subtype {
  581. float: right;
  582. margin-left: 10px;
  583. }
  584. }
  585. .result-with-subtype {
  586. border-bottom: 1px solid #d1d8dd;
  587. margin-top: 10px;
  588. }
  589. .section-head {
  590. margin-bottom: 25px;
  591. }
  592. }
  593. .dual-section {
  594. .result-subtype{
  595. display: none;
  596. }
  597. }
  598. .result-status {
  599. margin-top: 30px;
  600. text-align: center;
  601. }
  602. .more-results {
  603. display: none;
  604. }
  605. .result {
  606. p {
  607. margin-top: 5px;
  608. margin-bottom: 5px;
  609. }
  610. .result-image {
  611. display: inline-block;
  612. margin-right: 10px;
  613. height: 60px;
  614. width: 60px;
  615. background-color: #fafbfc;
  616. .flex-text {
  617. display: flex;
  618. height: 60px;
  619. align-items: center;
  620. justify-content: center;
  621. }
  622. span {
  623. font-size: 30px;
  624. color: @text-extra-muted;
  625. }
  626. }
  627. }
  628. @media (max-width: @screen-xs) {
  629. .modal-dialog {
  630. width: auto;
  631. }
  632. .modal-content {
  633. height: auto !important;
  634. }
  635. }
  636. @media (max-width: @screen-sm) {
  637. .module-body {
  638. margin: 0px;
  639. border-top: none;
  640. }
  641. }
  642. @media (min-width: 600px) {
  643. .results-area .back-link {
  644. display: none;
  645. }
  646. }
  647. }
  648. .note-editor.note-frame .note-editing-area .note-editable {
  649. color: @text-color;
  650. }
  651. .c3 svg {
  652. font-family: inherit;
  653. font-size: 10px;
  654. color: @text-color;
  655. }
  656. .c3-line {
  657. stroke-width: 3px;
  658. }
  659. .c3-tooltip {
  660. box-shadow: 3px 3px 3px rgba(0,0,0,0.1);
  661. border-radius: 3px;
  662. opacity: 1;
  663. }
  664. .c3-tooltip tr {
  665. border: none;
  666. }
  667. .c3-tooltip th {
  668. color: @text-muted;
  669. background-color: #ffffff;
  670. font-size: 12px;
  671. font-weight: normal;
  672. padding: 2px 5px;
  673. text-align: left;
  674. border: 1px solid @border-color;
  675. }
  676. .c3-tooltip td {
  677. color: @text-color;
  678. font-size: 11px;
  679. padding: 3px 6px;
  680. background-color: #fff;
  681. border: 1px solid @border-color;
  682. }
  683. .c3-tooltip td > span {
  684. display: inline-block;
  685. width: 10px;
  686. height: 10px;
  687. margin-right: 6px;
  688. }
  689. .c3-tooltip td.value {
  690. text-align: right; }
  691. // custom font awesome checkbox
  692. input[type="checkbox"] {
  693. visibility: hidden;
  694. position: relative;
  695. &:before {
  696. position: absolute;
  697. font-family: 'FontAwesome';
  698. content: '\f096';
  699. visibility: visible;
  700. font-style: normal;
  701. font-weight: normal;
  702. font-variant: normal;
  703. text-transform: none;
  704. line-height: 14px;
  705. display: inline-block;
  706. font-size: 14px;
  707. color: @text-extra-muted;
  708. .transition(150ms color);
  709. }
  710. &:checked:before {
  711. content: '\f14a';
  712. font-size: 13px;
  713. color: @checkbox-color;
  714. }
  715. }
  716. // mozilla doesn't support
  717. // pseudo elements on checkbox
  718. @-moz-document url-prefix() {
  719. input[type="checkbox"] {
  720. visibility: visible;
  721. }
  722. }