2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +00:00

separate datatable styles

This commit is contained in:
Faris Ansari 2018-04-26 15:50:36 +05:30
parent 30436ef256
commit 40b652449f
2 changed files with 40 additions and 34 deletions

View File

@ -0,0 +1,34 @@
@import "./variables.scss";
@import "node_modules/frappe-datatable/dist/frappe-datatable";
.dt-header {
background-color: $gray-200 !important;
}
.dt-cell__edit {
padding: 0px;
input, textarea {
outline: none;
border-radius: none;
border: none;
margin: none;
padding: $spacer-2;
&:focus {
border: none;
box-shadow: none;
}
}
.awesomplete > ul {
position: fixed;
left: auto;
width: auto;
min-width: 120px;
}
}
.dt-cell--highlight {
background-color: $gray-200;
}

View File

@ -3,7 +3,6 @@
@import "node_modules/flatpickr/dist/flatpickr";
@import "node_modules/flatpickr/dist/themes/airbnb";
@import "node_modules/codemirror/lib/codemirror";
@import "node_modules/frappe-datatable/dist/frappe-datatable";
@import "./variables.scss";
@import "./indicators.scss";
@ -169,39 +168,6 @@ html {
margin-top: $spacer-2;
}
.data-table {
.body-scrollable {
border-bottom: 0px !important;
tr:first-child {
.data-table-col {
border-top: 0px !important;
}
}
}
thead td {
background-color: $gray-200 !important;
}
.data-table-cell .edit-cell {
padding: 0px !important;
input, textarea {
border-radius: none;
margin: none;
padding: $spacer-2;
}
.awesomplete > ul {
position: fixed;
left: auto;
width: auto;
min-width: 120px;
}
}
}
.CodeMirror {
font-family: "SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace;
border: 1px solid $gray-300;
@ -212,6 +178,11 @@ html {
.awesomplete {
display: block;
ul {
max-height: 150px;
overflow: auto;
}
> ul > li {
padding: .75rem .375rem;
}
@ -262,6 +233,7 @@ mark {
}
@import "./tree.scss";
@import "./datatable.scss";
// just for accounting