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

205 lines
2.9 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/codemirror/theme/cobalt";
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
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;
}
.desk-menu {
2018-02-14 12:50:56 +00:00
2018-02-09 12:55:55 +00:00
.list-group-item {
padding: $spacer-2 $spacer-3;
2018-02-12 09:42:26 +00:00
border: none;
2018-02-09 12:55:55 +00:00
}
}
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-02-15 09:53:28 +00:00
.page-head {
padding: $spacer-2 $spacer-3;
background-color: $gray-800;
color: $gray-100;
2018-02-08 11:45:32 +00:00
2018-02-15 09:53:28 +00:00
.page-title {
display: inline-block;
margin-top: 0.3rem;
}
.btn {
margin-left: $spacer-2;
}
2018-02-08 11:45:32 +00:00
}
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-02-15 09:53:28 +00:00
padding: $spacer-3;
2018-02-08 11:45:32 +00:00
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-02-15 09:53:28 +00:00
.list-search {
padding: $spacer-3;
}
2018-02-14 12:50:56 +00:00
.list-body {
.list-row {
2018-02-14 16:44:50 +00:00
padding: $spacer-2 15px;
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
}
2018-02-20 14:11:44 +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;
}
2018-02-08 11:45:32 +00:00
.awesomplete {
display: block;
2018-02-15 09:53:28 +00:00
> ul > li {
padding: .75rem .375rem;
}
2018-02-08 11:45:32 +00:00
2018-02-15 09:53:28 +00:00
> ul > li:hover {
background: $gray-300;
color: $body-color;
}
2018-02-08 11:45:32 +00:00
2018-02-15 09:53:28 +00:00
> 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;
}
2018-02-08 11:45:32 +00:00
}
2018-02-15 09:53:28 +00:00
2018-02-08 11:45:32 +00:00
mark {
padding: none;
background: inherit;
}
.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-02-15 09:53:28 +00:00
.data-table-col .edit-cell {
padding: 0px !important;
input, textarea {
border-radius: none;
margin: none;
padding: $spacer-1;
}
.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
.print-page {
padding: $spacer-5;
line-height: 1.8;
td, th {
padding: $spacer-2;
}
}