2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/client/style/style.scss

425 lines
6.0 KiB
SCSS
Raw Normal View History

2018-02-08 11:45:32 +00:00
@import "node_modules/bootstrap/scss/bootstrap";
@import "node_modules/awesomplete/awesomplete";
2018-02-14 12:50:56 +00:00
@import "node_modules/flatpickr/dist/flatpickr";
@import "node_modules/flatpickr/dist/themes/airbnb";
2018-02-20 14:11:44 +00:00
@import "node_modules/codemirror/lib/codemirror";
@import "node_modules/frappe-datatable/dist/frappe-datatable";
2018-03-28 11:29:28 +00:00
// @import "node_modules/octicons/build/build.css";
2018-02-08 11:45:32 +00:00
$spacer-1: 0.25rem;
$spacer-2: 0.5rem;
$spacer-3: 1rem;
$spacer-4: 2rem;
$spacer-5: 3rem;
2018-02-08 11:45:32 +00:00
@import "./indicators.scss";
2018-02-14 12:50:56 +00:00
$page-width: 500px;
2018-02-08 11:45:32 +00:00
html {
2018-02-14 12:50:56 +00:00
font-size: 12px;
2018-02-08 11:45:32 +00:00
}
2018-02-14 16:44:50 +00:00
.desk-body {
2018-02-08 11:45:32 +00:00
border-left: 1px solid $gray-300;
2018-02-15 09:53:28 +00:00
min-height: 100vh;
2018-02-08 11:45:32 +00:00
}
2018-02-14 16:44:50 +00:00
.desk-center {
border-left: 1px solid $gray-300;
}
2018-02-08 11:45:32 +00:00
.hide {
display: none !important;
}
2018-02-14 12:50:56 +00:00
.page {
padding-bottom: $spacer-4;
2018-03-08 13:31:22 +00:00
.page-nav {
2018-02-15 09:53:28 +00:00
padding: $spacer-2 $spacer-3;
background-color: $gray-100;
border-bottom: 1px solid $gray-300;
2018-02-08 11:45:32 +00:00
2018-02-15 09:53:28 +00:00
.btn {
margin-left: $spacer-2;
}
2018-02-08 11:45:32 +00:00
}
2018-03-08 13:31:22 +00:00
.page-title {
font-weight: bold;
padding: $spacer-4;
padding-bottom: 0;
}
.page-links {
padding: $spacer-3 $spacer-4;
}
2018-02-15 09:53:28 +00:00
.page-error {
text-align: center;
padding: 200px 0px;
}
2018-02-08 11:45:32 +00:00
}
.form-body {
2018-03-08 13:31:22 +00:00
padding: $spacer-3 $spacer-4;
2018-02-08 11:45:32 +00:00
2018-03-05 16:45:21 +00:00
.form-check {
margin-bottom: $spacer-2;
.form-check-input {
2018-03-26 12:18:07 +00:00
margin-top: $spacer-1;
2018-03-05 16:45:21 +00:00
}
.form-check-label {
margin-left: $spacer-1;
}
}
2018-02-15 09:53:28 +00:00
.form-control.font-weight-bold {
background-color: lightyellow;
2018-02-08 11:45:32 +00:00
}
.alert {
margin-top: $spacer-3;
}
}
2018-03-26 12:18:07 +00:00
.form-inline {
.form-group {
2018-03-27 13:55:26 +00:00
margin-right: $spacer-3;
margin-bottom: $spacer-3;
2018-03-26 12:18:07 +00:00
}
}
2018-02-15 09:53:28 +00:00
.list-search {
2018-03-08 13:31:22 +00:00
padding: $spacer-3 $spacer-4;
2018-02-15 09:53:28 +00:00
}
2018-02-14 12:50:56 +00:00
.list-body {
.list-row {
2018-03-08 13:31:22 +00:00
padding: $spacer-2 $spacer-4;
2018-02-14 12:50:56 +00:00
border-bottom: 1px solid $gray-200;
2018-02-15 09:53:28 +00:00
cursor: pointer;
2018-02-14 12:50:56 +00:00
.checkbox {
margin-right: $spacer-2;
}
a, a:hover, a:visited, a:active {
color: $gray-800;
}
}
2018-02-15 09:53:28 +00:00
.list-row:hover {
background-color: $gray-100;
}
.list-row.active {
background-color: $gray-200;
}
2018-02-08 11:45:32 +00:00
}
2018-02-14 12:50:56 +00:00
.dropdown-item {
padding: $spacer-2 $spacer-3;
2018-02-08 11:45:32 +00:00
}
.bottom-right-float {
position: fixed;
margin-bottom: 0px;
bottom: $spacer-3;
right: $spacer-3;
max-width: 200px;
padding: $spacer-2 $spacer-3;
}
2018-02-23 16:17:55 +00:00
.desk-menu {
background-color: $gray-200;
.list-row {
border-bottom: 1px solid $gray-200;
}
.list-row:hover {
background-color: $gray-300;
}
.list-row.active {
background-color: $gray-400;
}
}
.print-page {
padding: $spacer-5;
line-height: 1.8;
td, th {
padding: $spacer-2;
}
}
2018-03-08 13:31:22 +00:00
.table-page-wrapper {
width: 100%;
padding: $spacer-3 $spacer-4;
2018-02-08 11:45:32 +00:00
}
2018-03-09 13:00:51 +00:00
.filter-toolbar {
padding: $spacer-3 $spacer-4;
}
2018-02-08 11:45:32 +00:00
.table-wrapper {
2018-02-09 12:55:55 +00:00
margin-top: $spacer-4;
margin-bottom: $spacer-4;
2018-02-08 11:45:32 +00:00
}
.table-toolbar {
margin-top: $spacer-2;
}
2018-02-15 09:53:28 +00:00
.data-table {
.body-scrollable {
border-bottom: 0px !important;
tr:first-child {
.data-table-col {
border-top: 0px !important;
}
}
2018-02-15 09:53:28 +00:00
}
2018-02-08 11:45:32 +00:00
2018-02-15 09:53:28 +00:00
thead td {
background-color: $gray-200 !important;
2018-02-08 11:45:32 +00:00
}
2018-03-07 10:37:58 +00:00
.data-table-cell .edit-cell {
2018-02-15 09:53:28 +00:00
padding: 0px !important;
input, textarea {
border-radius: none;
margin: none;
2018-03-07 10:37:58 +00:00
padding: $spacer-2;
2018-02-15 09:53:28 +00:00
}
.awesomplete > ul {
position: fixed;
left: auto;
width: auto;
min-width: 120px;
}
2018-02-08 11:45:32 +00:00
}
}
2018-02-20 14:11:44 +00:00
2018-03-08 13:31:22 +00:00
.CodeMirror {
font-family: "SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace;
border: 1px solid $gray-300;
border-radius: 0.25rem;
padding: $spacer-2;
}
.awesomplete {
display: block;
> ul > li {
padding: .75rem .375rem;
}
> ul > li:hover {
background: $gray-300;
color: $body-color;
}
> ul > li[aria-selected="true"] {
background: $gray-300;
color: $body-color;
}
> ul > li[aria-selected="true"]:hover {
background: $gray-300;
color: $body-color;
}
li[aria-selected="true"] mark, li[aria-selected="false"] mark {
background: inherit;
color: inherit;
padding: 0px;
}
}
mark {
padding: none;
background: inherit;
}
2018-03-28 11:29:28 +00:00
.align-right {
text-align: right;
}
.align-center {
text-align: center;
}
.btn-sm {
margin: $spacer-1;
}
.vertical-margin {
margin: $spacer-3 0px;
}
2018-03-29 07:49:08 +00:00
.tree {
padding: 15px;
}
.tree li {
list-style: none;
margin: 2px 0px;
}
ul.tree-children {
padding-left: 20px;
}
.tree-link {
cursor: pointer;
display: inline-block;
padding: 1px;
}
.tree-link .node-parent {
color: $gray-600;
font-size: 14px;
width: 10px;
text-align: center;
}
.tree-link .node-leaf {
color: $gray-400;
}
.tree-link .node-parent, .tree-link .node-leaf {
margin-right: 5px;
margin-left: 2px;
margin-top: 3px;
}
.tree-link.active {
svg {
color: $blue;
}
a {
color: $gray-600;
}
}
.tree-hover {
background-color: $gray-200;
min-height: 20px;
border: 1px solid $gray-600;
}
.tree-node-toolbar {
display: inline-block;
padding: 0px 5px;
margin-left: 15px;
margin-bottom: -4px;
margin-top: -8px;
}
// @media (max-width: @screen-xs) {
// ul.tree-children {
// padding-left: 10px;
// }
// }
// decoration
// .tree, .tree-node {
.tree.with-skeleton, .tree.with-skeleton .tree-node {
position: relative;
&.opened::before, &:last-child::after {
content: '';
position: absolute;
top: 12px;
left: 7px;
height: calc(100% - 23px);
width: 1px;
background: $gray-400;
z-index: -1;
}
&:last-child::after {
top: 11px;
left: -13px;
height: calc(100% - 15px);
width: 3px;
background: #fff;
}
&.opened > .tree-children > .tree-node > .tree-link::before {
content: '';
position: absolute;
width: 18px;
height: 1px;
top: 10px;
left: -12px;
z-index: -1;
background: $gray-400;
}
}
.tree.with-skeleton.opened::before {
left: 22px;
top: 33px;
height: calc(100% - 67px);
}
.tree-link.active ~ .balance-area {
color: $gray-600 !important;
}
2018-03-28 11:29:28 +00:00
// just for accounting
.setup-container {
margin: 40px auto;
padding: 20px 0px;
width: 450px;
border: 1px solid $gray-300;
border-radius: 4px;
h3 {
text-align: center;
}
2018-03-30 16:58:34 +00:00
.form-section {
2018-03-28 11:29:28 +00:00
display: none;
}
2018-03-30 16:58:34 +00:00
.form-section.active {
2018-03-28 11:29:28 +00:00
display: block;
}
.setup-link-area {
margin: $spacer-1 $spacer-4;
}
}
2018-03-30 16:58:34 +00:00
// File Input
input[type=file] {
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}
2018-04-02 17:07:56 +00:00
.was-validated input[type=file]:invalid + button {
border-color: $red;
}