_core.scss 16 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055
  1. /*
  2. | =========================================================
  3. | InvoicePlane Core Styles
  4. | https://invoiceplane.com
  5. | =========================================================
  6. | The following styles are needed to display InvoicePlane
  7. | properly. Only edit them if you know what you are doing!
  8. | =========================================================
  9. */
  10. /*
  11. | =========================================================
  12. | Base Styles
  13. | =========================================================
  14. */
  15. html {
  16. min-height: 100vh;
  17. }
  18. body {
  19. min-height: 100vh;
  20. overflow-x: hidden;
  21. }
  22. img {
  23. vertical-align: middle;
  24. max-width: 100%;
  25. }
  26. h1, h2, h3, h4, h5, h6 {
  27. margin: 0;
  28. }
  29. /*
  30. | =========================================================
  31. | Forms
  32. | =========================================================
  33. */
  34. form {
  35. margin: 0;
  36. }
  37. fieldset {
  38. border-radius: $border-radius-base;
  39. border: 1px solid #ddd;
  40. margin-bottom: 15px;
  41. padding: 15px;
  42. }
  43. fieldset legend {
  44. padding: 0 15px;
  45. font-size: $font-size-large;
  46. width: auto;
  47. border: none;
  48. margin: 0;
  49. }
  50. label {
  51. font-weight: normal;
  52. }
  53. textarea {
  54. resize: vertical;
  55. }
  56. .discount-field {
  57. float: right;
  58. max-width: 40%;
  59. margin-left: 10px;
  60. .input-sm {
  61. height: auto;
  62. padding: 3px 5px;
  63. }
  64. .input-group-addon {
  65. min-width: 20px;
  66. }
  67. }
  68. .optional {
  69. float: right;
  70. font-size: small;
  71. color: $color_grey;
  72. }
  73. /*
  74. | =========================================================
  75. | Tables
  76. | =========================================================
  77. */
  78. .table {
  79. margin: 0 0 15px;
  80. font-size: $font-size-base - 1;
  81. &.no-margin {
  82. margin: 0 0 0 0;
  83. }
  84. td {
  85. vertical-align: middle !important;
  86. }
  87. tr.bold-border td {
  88. border-bottom-width: 2px;
  89. }
  90. &.items td {
  91. min-width: 150px;
  92. max-width: 300px;
  93. vertical-align: top !important;
  94. &.td-icon {
  95. max-width: 30px;
  96. min-width: unset;
  97. }
  98. &.td-amount {
  99. max-width: 200px;
  100. text-align: right;
  101. .form-control {
  102. text-align: right;
  103. }
  104. }
  105. &.td-textarea {
  106. min-width: 300px;
  107. max-width: 400px;
  108. }
  109. &.td-quantity {
  110. max-width: 200px;
  111. }
  112. &.td-vert-middle {
  113. vertical-align: middle !important;
  114. }
  115. }
  116. .input-group {
  117. width: 100%;
  118. height: 100%;
  119. }
  120. .input-group-addon {
  121. font-size: 12px;
  122. padding: 4px 8px;
  123. }
  124. }
  125. .table-responsive {
  126. margin-bottom: 0;
  127. }
  128. #item_table {
  129. td, th {
  130. padding: 3px;
  131. }
  132. .form-control {
  133. margin: 0;
  134. }
  135. tr.item {
  136. input, textarea {
  137. border-color: #e5e5e5;
  138. border-radius: 0;
  139. box-shadow: none;
  140. }
  141. }
  142. }
  143. /*
  144. | =========================================================
  145. | Navigation
  146. | =========================================================
  147. */
  148. .navbar {
  149. .navbar-collapse {
  150. padding-left: 0;
  151. padding-right: 0;
  152. }
  153. .navbar-toggle {
  154. padding: 6px 8px;
  155. color: $navbar-inverse-link-color;
  156. border-color: $navbar-inverse-border;
  157. &:hover {
  158. color: $navbar-inverse-link-hover-color;
  159. border-color: $navbar-inverse-link-hover-bg;
  160. }
  161. }
  162. .navbar-form {
  163. margin-left: 0;
  164. margin-right: 0;
  165. }
  166. .navbar-nav .fa {
  167. font-size: $font-size-base + 1;
  168. line-height: $line-height-computed;
  169. }
  170. }
  171. .navbar-inner {
  172. border-radius: 0;
  173. padding: 0;
  174. border: none;
  175. text-align: right;
  176. }
  177. .navbar-search {
  178. margin-top: 0;
  179. }
  180. // Options Dropdown
  181. .options {
  182. margin: 0;
  183. .dropdown-menu {
  184. right: 0;
  185. left: auto;
  186. }
  187. }
  188. #submenu {
  189. max-width: 100% !important;
  190. .submenu-row {
  191. padding: 5px;
  192. }
  193. .nav-pills {
  194. > li > a {
  195. padding: 4px 10px;
  196. }
  197. }
  198. }
  199. /*
  200. | =========================================================
  201. | Sidebar
  202. | =========================================================
  203. */
  204. .sidebar {
  205. display: table-cell;
  206. vertical-align: top;
  207. width: 66px;
  208. height: 100%;
  209. padding: 0;
  210. ul {
  211. margin: 0;
  212. padding: 0;
  213. list-style: none;
  214. }
  215. li {
  216. a {
  217. padding: 14px;
  218. display: block;
  219. border-bottom: 1px solid #ddd;
  220. font-size: $font-size-large;
  221. color: $gray;
  222. text-align: center;
  223. &:hover {
  224. color: $brand-primary;
  225. }
  226. }
  227. }
  228. }
  229. /*
  230. | =========================================================
  231. | Main Layout
  232. | =========================================================
  233. */
  234. #main-area {
  235. display: flex;
  236. max-width: 100%;
  237. flex-direction: row;
  238. padding: 0;
  239. }
  240. #main-content {
  241. width: 100%;
  242. border-left: 1px solid #ddd;
  243. @media screen and (min-width: $screen-md) {
  244. width: calc(100% - 66px);
  245. }
  246. }
  247. #content,
  248. .tab-content {
  249. padding: 15px;
  250. align-content: flex-start;
  251. max-width: 100%;
  252. &.table-content {
  253. padding: 0;
  254. }
  255. .alert {
  256. margin-right: 0;
  257. margin-left: 0;
  258. }
  259. }
  260. // Content classes
  261. .table-content {
  262. padding: 0;
  263. }
  264. .tab-rich-content {
  265. padding: 15px;
  266. }
  267. #headerbar {
  268. min-height: 47px;
  269. padding: 8px 15px;
  270. border-bottom: 1px solid #ddd;
  271. @include clearfix();
  272. .headerbar-item.pull-right {
  273. margin-left: 10px;
  274. }
  275. .headerbar-title {
  276. display: inline-block;
  277. font-size: $font-size-base;
  278. margin: $padding-small-vertical 0 $padding-small-vertical;
  279. line-height: $line-height-small;
  280. }
  281. }
  282. .hidden-sidebar {
  283. #main-area {
  284. display: block !important;
  285. }
  286. #main-content {
  287. width: 100%;
  288. }
  289. }
  290. #form-settings .tab-content,
  291. div.table-content {
  292. .tab-pane {
  293. padding-bottom: 50px;
  294. }
  295. #filter_results,
  296. .table-responsive {
  297. min-height: 300px;
  298. overflow-x: inherit;
  299. }
  300. }
  301. .personal_logo {
  302. max-width: 100%;
  303. height: auto;
  304. }
  305. /*
  306. | =========================================================
  307. | Tabs
  308. | =========================================================
  309. */
  310. .tabbable .table {
  311. margin-bottom: 15px;
  312. }
  313. /*
  314. | =========================================================
  315. | Invoices and Quotes
  316. | =========================================================
  317. */
  318. // Invoices and Quotes Overview
  319. .overview table {
  320. th, td {
  321. border: none;
  322. }
  323. th {
  324. text-transform: uppercase;
  325. font-weight: normal;
  326. font-size: 11px;
  327. padding-bottom: 0;
  328. }
  329. td {
  330. font-size: 1.1em;
  331. padding-left: 10px !important;
  332. font-weight: 500;
  333. }
  334. }
  335. /*
  336. | =========================================================
  337. | Client Profile
  338. | =========================================================
  339. */
  340. .notes textarea {
  341. resize: both;
  342. width: 100%;
  343. max-width: 100%;
  344. }
  345. #actions {
  346. margin: 15px 0 0;
  347. /* Mimic table appearance */
  348. div.table {
  349. display: table;
  350. }
  351. div.table .file-row {
  352. display: table-row;
  353. }
  354. div.table .file-row > div {
  355. display: table-cell;
  356. vertical-align: top;
  357. border-top: 1px solid #ddd;
  358. padding: 8px;
  359. }
  360. div.table .file-row:nth-child(odd) {
  361. background: $table-bg-hover;
  362. }
  363. /* The total progress gets shown by event listeners */
  364. #total-progress {
  365. opacity: 0;
  366. transition: opacity 0.3s linear;
  367. }
  368. /* Hide the progress bar when finished */
  369. #previews .file-row.dz-success .progress {
  370. opacity: 0;
  371. transition: opacity 0.3s linear;
  372. }
  373. /* Hide the delete button initially */
  374. #previews .file-row .delete {
  375. display: none;
  376. }
  377. #previews img {
  378. width: 80px;
  379. height: 80px;
  380. }
  381. /* Hide the start and cancel buttons and show the delete button */
  382. #previews .file-row.dz-success .start,
  383. #previews .file-row.dz-success .cancel {
  384. display: none;
  385. }
  386. #previews .file-row.dz-success .delete {
  387. display: block;
  388. }
  389. }
  390. /*
  391. | =========================================================
  392. | Invoice and Quotes Global Styles
  393. | =========================================================
  394. */
  395. // Invoices and Quotes Status Colors
  396. .draft {
  397. color: $color_status_draft;
  398. }
  399. .sent {
  400. color: $color_status_sent;
  401. }
  402. .viewed {
  403. color: $color_status_viewed;
  404. }
  405. .paid,
  406. .approved {
  407. color: $color_status_paid_approved;
  408. }
  409. .rejected,
  410. .overdue {
  411. color: $color_status_rejected_overdue;
  412. }
  413. .canceled {
  414. color: $color_status_canceled;
  415. }
  416. // Invoices and Quotes Status
  417. .label {
  418. font-weight: normal;
  419. padding: $padding-base-vertical $padding-base-horizontal;
  420. color: white !important; // override status text color on labels
  421. display: block;
  422. width: 100%;
  423. &.label-inline {
  424. display: inline;
  425. width: auto;
  426. }
  427. &.draft {
  428. background-color: lighten($color_status_draft, 10%);
  429. }
  430. &.sent {
  431. background-color: lighten($color_status_sent, 10%);
  432. }
  433. &.viewed {
  434. background-color: lighten($color_status_viewed, 10%);
  435. }
  436. &.paid,
  437. &.approved {
  438. background-color: lighten($color_status_paid_approved, 10%);
  439. }
  440. &.rejected,
  441. &.overdue {
  442. background-color: lighten($color_status_rejected_overdue, 10%);
  443. }
  444. &.canceled {
  445. background-color: lighten($color_status_canceled, 10%);
  446. }
  447. }
  448. /*
  449. | =========================================================
  450. | Quotes
  451. | =========================================================
  452. */
  453. .quote .cf {
  454. margin-bottom: 30px;
  455. .quote-properties {
  456. margin-bottom: 5px;
  457. label {
  458. margin: 0;
  459. }
  460. &:last-child {
  461. margin-bottom: 0;
  462. }
  463. }
  464. }
  465. /*
  466. | =========================================================
  467. | Invoices
  468. | =========================================================
  469. */
  470. .invoice {
  471. .total td:first-child,
  472. .total:hover td:first-child {
  473. background: none !important;
  474. }
  475. .total td:last-child {
  476. border-left: none;
  477. }
  478. .subtotal, .tax, .total,
  479. th.align-right, td.align-right {
  480. text-align: right;
  481. }
  482. .tax {
  483. background: none;
  484. }
  485. .invoice-properties {
  486. margin-bottom: 5px;
  487. label {
  488. margin: 0;
  489. }
  490. &:last-child {
  491. margin-bottom: 0;
  492. }
  493. }
  494. }
  495. .invoice-labels {
  496. span.label {
  497. float: left;
  498. width: auto;
  499. margin: 6px 3px 4px 0;
  500. &:last-child {
  501. margin-right: 0;
  502. }
  503. }
  504. }
  505. /*
  506. | =========================================================
  507. | Dashboard
  508. | =========================================================
  509. */
  510. #panel-overdue-invoices,
  511. #panel-recent-quotes,
  512. #panel-recent-invoices {
  513. .panel-body {
  514. padding: 0;
  515. }
  516. table {
  517. td:first-child,
  518. th:first-child {
  519. padding-left: 10px;
  520. }
  521. }
  522. }
  523. #panel-overdue-invoices p {
  524. margin: 15px;
  525. }
  526. .quick-actions .btn {
  527. border: none;
  528. border-right: 1px solid #ddd;
  529. &:last-child {
  530. border-right: none;
  531. }
  532. }
  533. /*
  534. | =========================================================
  535. | Various Styles
  536. | =========================================================
  537. */
  538. .alert {
  539. margin-left: 15px;
  540. margin-right: 15px;
  541. }
  542. .alert.alert-default {
  543. background: lighten($gray-lighter, 5%);
  544. border: 1px solid $gray-lighter;
  545. }
  546. .fa {
  547. min-width: 15px;
  548. text-align: center;
  549. }
  550. .fa.fa-margin {
  551. margin-right: 7px;
  552. }
  553. .fa-credit-invoice {
  554. &:before {
  555. content: '-';
  556. }
  557. &:after {
  558. font-family: FontAwesome;
  559. content: '\f155';
  560. }
  561. }
  562. .fa-read-only {
  563. @extend .fa-ban;
  564. }
  565. .cursor-pointer {
  566. cursor: pointer;
  567. }
  568. .cursor-move {
  569. cursor: move;
  570. }
  571. .amount {
  572. text-align: right;
  573. }
  574. .no-border-radius {
  575. border-radius: 0;
  576. }
  577. .no-margin {
  578. margin: 0 !important;
  579. }
  580. .no-padding {
  581. padding: 0 !important;
  582. }
  583. .modal {
  584. margin: 30px auto;
  585. overflow-y: auto;
  586. }
  587. .details-box {
  588. @extend .panel;
  589. @extend .panel-default;
  590. @extend .panel-body;
  591. padding: 10px;
  592. label {
  593. margin: 3px 0;
  594. }
  595. }
  596. #email_template_pdf_template > option {
  597. display: none;
  598. }
  599. #settings-tabs {
  600. text-align: center;
  601. > li {
  602. float: none;
  603. display: inline-block;
  604. }
  605. }
  606. #ipnews-results {
  607. margin-top: 15px;
  608. .alert {
  609. margin-left: 0 !important;
  610. margin-right: 0 !important;
  611. }
  612. }
  613. // Fullpage loader
  614. #fullpage-loader {
  615. z-index: 99999;
  616. position: fixed;
  617. top: 0;
  618. left: 0;
  619. width: 100%;
  620. height: 100%;
  621. background: rgba(0, 0, 0, .65);
  622. color: #fff;
  623. .loader-content {
  624. position: absolute;
  625. top: 20%;
  626. left: 0;
  627. font-size: 200px;
  628. width: 100%;
  629. text-align: center;
  630. #loader-error {
  631. font-size: $font-size-large;
  632. margin-bottom: 1rem;
  633. }
  634. }
  635. .fullpage-loader-close {
  636. font-size: $font-size-large;
  637. margin: 2rem 2rem 0 0;
  638. }
  639. }
  640. .model-pager {
  641. .btn .fa {
  642. font-size: $font-size-small;
  643. line-height: $font-size-small * $line-height-small;
  644. }
  645. }
  646. .index-options {
  647. margin-bottom: 0;
  648. }
  649. .padded {
  650. padding: 15px 0;
  651. }
  652. legend, .install-step h2 {
  653. border-image: none;
  654. border-style: none none solid;
  655. border-width: 0 0 1px;
  656. color: $gray;
  657. display: block;
  658. font-size: $font-size-large;
  659. line-height: 40px;
  660. margin-bottom: 15px;
  661. padding: 0;
  662. width: 100%;
  663. }
  664. .login-logo {
  665. display: block;
  666. margin-left: auto;
  667. margin-right: auto;
  668. margin-bottom: 15px;
  669. }
  670. .font-overdue {
  671. color: $brand-danger;
  672. font-weight: bold;
  673. }
  674. .nav-tabs-noborder > li > a {
  675. border-top-right-radius: 0;
  676. border-top-left-radius: 0;
  677. border-top: 0 !important;
  678. }
  679. .html-tags {
  680. .html-tag {
  681. border-bottom: none;
  682. border-bottom-right-radius: 0;
  683. border-bottom-left-radius: 0;
  684. min-height: 30px;
  685. vertical-align: middle;
  686. }
  687. }
  688. #email_template_body {
  689. border-top-left-radius: 0;
  690. }
  691. #email-template-preview {
  692. width: 100%;
  693. border: 0;
  694. }
  695. .webpreview-header {
  696. h2 {
  697. display: inline-block;
  698. vertical-align: baseline;
  699. }
  700. .btn-group {
  701. display: inline-block;
  702. vertical-align: baseline;
  703. float: right;
  704. }
  705. }
  706. .invoice-items {
  707. position: relative;
  708. }
  709. .paid-stamp, .overdue-stamp {
  710. position: absolute;
  711. bottom: 0;
  712. left: -20px;
  713. transform: rotate(22deg);
  714. }
  715. .passwordmeter-input {
  716. border-bottom-left-radius: 0;
  717. border-bottom-right-radius: 0;
  718. border-bottom: 0;
  719. padding-bottom: $padding-base-vertical + 3px;
  720. + .progress {
  721. height: 3px;
  722. margin: -3px 0 0;
  723. }
  724. }
  725. /*
  726. | =========================================================
  727. | Login
  728. | =========================================================
  729. */
  730. #login {
  731. @extend .panel;
  732. @extend .panel-default;
  733. @extend .panel-body;
  734. .form-horizontal {
  735. margin-bottom: 15px;
  736. }
  737. .form-group {
  738. margin-bottom: 15px;
  739. }
  740. h1 {
  741. margin: 0 0 15px;
  742. }
  743. .alert {
  744. margin-bottom: 15px;
  745. }
  746. }
  747. /*
  748. | =========================================================
  749. | Error Pages
  750. | =========================================================
  751. */
  752. body.error {
  753. #ip-logo {
  754. display: block;
  755. margin-left: auto;
  756. margin-right: auto;
  757. width: 400px;
  758. height: 200px;
  759. }
  760. div.error-container {
  761. display: block;
  762. width: 80%;
  763. height: auto;
  764. margin-top: 5em;
  765. margin-left: auto;
  766. margin-right: auto;
  767. text-align: center;
  768. h1 {
  769. margin-bottom: 1em;
  770. }
  771. }
  772. }
  773. /*
  774. | =========================================================
  775. | Responsive Media Queries
  776. | =========================================================
  777. */
  778. // Styles for large devices (> lg)
  779. @media (min-width: $screen-lg) {
  780. .navbar-nav .visible-lg {
  781. display: inline-block !important;
  782. }
  783. #submenu {
  784. .submenu-row {
  785. float: left;
  786. margin-right: 10px;
  787. }
  788. }
  789. }
  790. // Styles for medium devices (sm > md)
  791. @media (max-width: $screen-md-max) {
  792. #submenu {
  793. .submenu-row {
  794. float: left;
  795. margin-right: 10px;
  796. }
  797. }
  798. }
  799. // Styles for small devices (xs > sm)
  800. @media (max-width: $screen-sm-max) {
  801. .sidebar li a {
  802. padding: 7px;
  803. }
  804. #content {
  805. padding: 15px;
  806. }
  807. .navbar-nav {
  808. margin: 7px 0;
  809. }
  810. .text-left-xs {
  811. text-align: left;
  812. }
  813. #submenu .navbar-collapse {
  814. margin-top: 7px;
  815. }
  816. // put icons on same line as text
  817. .navbar-nav {
  818. .visible-xs {
  819. display: inline-block !important;
  820. }
  821. }
  822. }
  823. // Styles for very small devices (< xs)
  824. @media (max-width: $screen-xs-max) {
  825. .navbar-nav {
  826. margin: 7px 0;
  827. .dropdown .dropdown-menu {
  828. background: $navbar-inverse-border;
  829. }
  830. }
  831. #content {
  832. padding: 10px;
  833. .row {
  834. margin-left: -10px;
  835. margin-right: -10px;
  836. }
  837. }
  838. .headerbar {
  839. padding: 8px !important;
  840. }
  841. .pull-right {
  842. margin-left: 5px !important;
  843. }
  844. #fullpage-loader .loader-content {
  845. font-size: 150px;
  846. top: 10%;
  847. left: 0;
  848. margin-top: 0;
  849. margin-left: 0;
  850. }
  851. }