mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
chrone: sperate client and server to different repos.
This commit is contained in:
363
src/style/components/DataTable/DataTable.scss
Normal file
363
src/style/components/DataTable/DataTable.scss
Normal file
@@ -0,0 +1,363 @@
|
||||
@import 'src/style/Base.scss';
|
||||
|
||||
.bigcapital-datatable {
|
||||
display: block;
|
||||
|
||||
.dashboard__page-content & {
|
||||
.table .thead {
|
||||
.th {
|
||||
border-bottom-color: #d2dde2;
|
||||
}
|
||||
}
|
||||
}
|
||||
.table {
|
||||
text-align: left;
|
||||
border-spacing: 0;
|
||||
min-width: 100%;
|
||||
display: block;
|
||||
|
||||
.thead {
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
|
||||
.th {
|
||||
padding: 0.7rem 0.5rem;
|
||||
background: #f5f5f5;
|
||||
font-size: 14px;
|
||||
color: #3b495d;
|
||||
font-weight: 600;
|
||||
border-bottom: 1px solid rgb(224, 224, 224);
|
||||
|
||||
> div{
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
.sort-icon {
|
||||
width: 0;
|
||||
height: 0;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
|
||||
&--desc {
|
||||
border-left: 4px solid transparent;
|
||||
border-right: 4px solid transparent;
|
||||
border-bottom: 6px solid #666;
|
||||
}
|
||||
&--asc {
|
||||
border-left: 4px solid transparent;
|
||||
border-right: 4px solid transparent;
|
||||
border-top: 6px solid #666;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tr {
|
||||
display: flex;
|
||||
flex: 1 0 auto;
|
||||
|
||||
&:last-child {
|
||||
.td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.bp3-context-menu-popover-target{
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.tr-context{
|
||||
display: flex;
|
||||
flex: 1 0 auto;
|
||||
}
|
||||
|
||||
&:hover .td.clickable{
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.th,
|
||||
.td {
|
||||
box-sizing: border-box;
|
||||
flex: 0 0 auto;
|
||||
justify-content: flex-start;
|
||||
align-items: flex-start;
|
||||
display: flex;
|
||||
margin: 0;
|
||||
padding: 0.5rem;
|
||||
|
||||
.cell-inner{
|
||||
flex: 1 0 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.bp3-control {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.resizer {
|
||||
display: inline-block;
|
||||
background: transparent;
|
||||
width: 10px;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
transform: translateX(50%);
|
||||
z-index: 1;
|
||||
touch-action: none;
|
||||
|
||||
.inner-resizer {
|
||||
height: 100%;
|
||||
width: 1px;
|
||||
border-left: 1px solid #E6E6E6;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
&.isResizing .inner-resizer {
|
||||
background: #1183da;
|
||||
}
|
||||
}
|
||||
|
||||
.bp3-control.bp3-checkbox .bp3-control-indicator {
|
||||
border: 1px solid #c2c2c2;
|
||||
|
||||
&,
|
||||
&:hover {
|
||||
height: 15px;
|
||||
width: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.bp3-control.bp3-checkbox {
|
||||
input:checked ~ .bp3-control-indicator,
|
||||
input:indeterminate ~ .bp3-control-indicator {
|
||||
border-color: #0052ff;
|
||||
}
|
||||
}
|
||||
|
||||
.skeleton{
|
||||
animation: skeleton-fade-in .3s linear forwards,
|
||||
skeleton-glow 1s linear infinite alternate;
|
||||
|
||||
animation-delay: 0s,.3s;
|
||||
height: 8px;
|
||||
opacity: 1;
|
||||
width: 65%;
|
||||
margin: 10px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.th{
|
||||
.skeleton{
|
||||
margin: 5px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.tbody {
|
||||
width: 100%;
|
||||
overflow: auto;
|
||||
|
||||
.tbody-inner {
|
||||
> .loading {
|
||||
padding-top: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
.tr .td {
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
align-items: center;
|
||||
color: #101219;
|
||||
|
||||
.placeholder {
|
||||
color: #a0a0a0;
|
||||
}
|
||||
.text-overview{
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.bp3-form-group {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&.is-text-overview {
|
||||
.expend-padding{
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
.tr:hover .td {
|
||||
background: #f3f7fc;
|
||||
}
|
||||
.tr.is-context-menu-active .td {
|
||||
background: #f3fafc;
|
||||
}
|
||||
.td.actions .#{$ns}-button {
|
||||
background: #e6effb;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
padding: 5px 15px;
|
||||
border-radius: 8px;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: #cfdcee;
|
||||
}
|
||||
svg {
|
||||
color: #425361;
|
||||
}
|
||||
.bp3-icon-more-h-16 {
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
.tr.no-results {
|
||||
|
||||
.td {
|
||||
flex-direction: column;
|
||||
padding: 18px 20px;
|
||||
color: #777;
|
||||
align-items: center;
|
||||
font-size: 14px;
|
||||
border-bottom: 0;
|
||||
|
||||
&:hover{
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> .loading {
|
||||
padding-top: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
.tr .th,
|
||||
.tr .td {
|
||||
.expand-toggle {
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
padding: 0 8px 0 0;
|
||||
padding-left: 0;
|
||||
margin: auto 0;
|
||||
margin-left: 4px;
|
||||
|
||||
.arrow-right {
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-top: 5px solid transparent;
|
||||
border-bottom: 5px solid transparent;
|
||||
border-left: 8px solid #acacac;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.arrow-down {
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 5px solid transparent;
|
||||
border-right: 5px solid transparent;
|
||||
border-top: 8px solid #acacac;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tr-inner{
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.no-results {
|
||||
color: #666;
|
||||
|
||||
.td {
|
||||
padding-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&.has-sticky-header {
|
||||
.thead {
|
||||
.tr .th {
|
||||
position: sticky;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.has-sticky {
|
||||
.thead,
|
||||
.tfoot {
|
||||
position: sticky;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.thead {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.tfoot {
|
||||
bottom: 0;
|
||||
}
|
||||
.tbody {
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
[data-sticky-td] {
|
||||
position: sticky;
|
||||
}
|
||||
|
||||
[data-sticky-last-left-td] {
|
||||
// box-shadow: 2px 0px 3px #ccc;
|
||||
}
|
||||
|
||||
[data-sticky-first-right-td] {
|
||||
// box-shadow: -2px 0px 3px #ccc;
|
||||
}
|
||||
}
|
||||
|
||||
&.has-virtualized-rows {
|
||||
.tbody {
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.ReactVirtualized__Grid{
|
||||
will-change: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.table-constrant {
|
||||
.table {
|
||||
.thead .th {
|
||||
background: transparent;
|
||||
color: #222222;
|
||||
border-bottom: 1px solid #000000;
|
||||
border-top: 1px solid #000000;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.tbody .tr .td {
|
||||
background: transparent;
|
||||
padding: 0.5rem 0.5rem;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.tbody .tr:last-child .td {
|
||||
border-bottom: 1px solid #d2dce2;
|
||||
}
|
||||
}
|
||||
}
|
||||
249
src/style/components/DataTable/DataTableEditable.scss
Normal file
249
src/style/components/DataTable/DataTableEditable.scss
Normal file
@@ -0,0 +1,249 @@
|
||||
.datatable-editor {
|
||||
|
||||
.bp3-form-group {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.table {
|
||||
border: 1px solid #d2dce2;
|
||||
border-left: transparent;
|
||||
background-color: #FFF;
|
||||
|
||||
.th,
|
||||
.td {
|
||||
border-left: 1px solid #e2e2e2;
|
||||
|
||||
&.index {
|
||||
text-align: center;
|
||||
|
||||
span {
|
||||
width: 100%;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
&:first-child {
|
||||
border-left: 1px solid #d2dce2;
|
||||
}
|
||||
}
|
||||
|
||||
.thead {
|
||||
.tr .th {
|
||||
padding: 10px 10px;
|
||||
background-color: #f0f2f8;
|
||||
font-size: 14px;
|
||||
color: #415060;
|
||||
border-bottom: 1px solid #d2dce2;
|
||||
|
||||
&.index > div {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tbody {
|
||||
.tr .td {
|
||||
padding: 4px;
|
||||
border-bottom: 0;
|
||||
border-top: 1px solid #d8d8d8;
|
||||
min-height: 40px;
|
||||
|
||||
&.index {
|
||||
background-color: #f0f2f8;
|
||||
color: #718294;
|
||||
|
||||
> span {
|
||||
margin-top: auto;
|
||||
margin-bottom: auto;
|
||||
}
|
||||
}
|
||||
|
||||
&.landed-cost{
|
||||
|
||||
.bp3-control{
|
||||
margin-top: 0;
|
||||
margin-left: 34px;
|
||||
}
|
||||
.bp3-control-indicator{
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
border-color: #dbdbdb;
|
||||
}
|
||||
}
|
||||
}
|
||||
.tr {
|
||||
.bp3-form-group:not(.bp3-intent-danger) .bp3-input,
|
||||
.form-group--select-list .bp3-button {
|
||||
border-color: #ffffff;
|
||||
color: #222;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.bp3-form-group:not(.bp3-intent-danger) .bp3-input {
|
||||
border-radius: 2px;
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
|
||||
&:focus {
|
||||
box-shadow: 0 0 0 2px #116cd0;
|
||||
}
|
||||
}
|
||||
.form-group--select-list .bp3-button {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
|
||||
&:after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.form-group--select-list,
|
||||
.bp3-form-group {
|
||||
&.bp3-intent-danger {
|
||||
.bp3-button:not(.bp3-minimal),
|
||||
.bp3-input {
|
||||
border-color: #f7b6b6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:first-of-type {
|
||||
.td {
|
||||
border-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.td.actions {
|
||||
.bp3-button {
|
||||
background-color: transparent;
|
||||
color: #e66d6d;
|
||||
|
||||
&:hover {
|
||||
color: #c23030;
|
||||
}
|
||||
|
||||
svg {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.row--total {
|
||||
.account.td,
|
||||
.debit.td,
|
||||
.credit.td {
|
||||
> span {
|
||||
padding-top: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.td {
|
||||
&.note {
|
||||
.bp3-form-group {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tfooter{
|
||||
.td{
|
||||
min-height: 38px;
|
||||
}
|
||||
}
|
||||
.th {
|
||||
color: #444;
|
||||
font-weight: 600;
|
||||
border-bottom: 1px dotted #666;
|
||||
}
|
||||
|
||||
.td {
|
||||
border-bottom: 1px dotted #999;
|
||||
}
|
||||
|
||||
.actions.td {
|
||||
.bp3-button {
|
||||
background: transparent;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.tbody,
|
||||
.thead,
|
||||
.tfooter{
|
||||
|
||||
// .total,
|
||||
.quantity,
|
||||
.rate,
|
||||
.discount,
|
||||
.total{
|
||||
|
||||
&,
|
||||
input{
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.table {
|
||||
.tbody {
|
||||
.tr .td.actions .bp3-button {
|
||||
background-color: transparent;
|
||||
color: #e66d6d;
|
||||
|
||||
svg {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__actions {
|
||||
margin-top: 12px;
|
||||
|
||||
.bp3-button {
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.button--clear-lines {
|
||||
&.bp3-button:not([class*='bp3-intent-']):not(.bp3-minimal) {
|
||||
background-color: #fcefef;
|
||||
|
||||
&:hover{
|
||||
background-color: #f8e4e4;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tfooter{
|
||||
.debit.td,
|
||||
.credit.td {
|
||||
> span {
|
||||
font-weight: 600;
|
||||
color: #444;
|
||||
}
|
||||
}
|
||||
.td {
|
||||
border-top-width: 2px;
|
||||
border-top-color: #e9e9ef;
|
||||
border-top-style: solid;
|
||||
min-height: 40px;
|
||||
font-weight: 500;
|
||||
|
||||
|
||||
&:not(.index) {
|
||||
background-color: #fcfcfd;
|
||||
}
|
||||
|
||||
&:first-of-type{
|
||||
background-color: #f0f2f8;
|
||||
}
|
||||
|
||||
|
||||
&.index span {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
.root {
|
||||
max-width: 500px;
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
padding-bottom: 40px;
|
||||
text-align: center;
|
||||
|
||||
&_title {
|
||||
font-size: 20px;
|
||||
color: #2c3a5d;
|
||||
font-weight: 600;
|
||||
margin-left: auto;
|
||||
margin-bottom: 10px;
|
||||
margin-right: auto;
|
||||
margin-top: 0;
|
||||
line-height: 1.4;
|
||||
|
||||
html[lang='ar'] & {
|
||||
font-size: 22px;
|
||||
}
|
||||
}
|
||||
&_desc {
|
||||
font-size: 16px;
|
||||
color: #1f3255;
|
||||
opacity: 0.8;
|
||||
line-height: 1.6;
|
||||
}
|
||||
&_actions {
|
||||
margin-top: 26px;
|
||||
|
||||
:global .bp3-button {
|
||||
min-height: 36px;
|
||||
|
||||
& + .bp3-button {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
118
src/style/components/DataTable/Pagination.scss
Normal file
118
src/style/components/DataTable/Pagination.scss
Normal file
@@ -0,0 +1,118 @@
|
||||
|
||||
.pagination{
|
||||
display: flex;
|
||||
padding: 20px 14px;
|
||||
font-size: 13px;
|
||||
|
||||
.bp3-button{
|
||||
background: transparent;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
&__item{
|
||||
min-width: 24px;
|
||||
min-height: 24px;
|
||||
|
||||
&:not([class*="bp3-intent-"]){
|
||||
color: #666666;
|
||||
border-radius: 5px;
|
||||
|
||||
&:hover{
|
||||
background-color: #E6EFFB;
|
||||
}
|
||||
}
|
||||
|
||||
.bp3-icon{
|
||||
margin-right: 4px;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.pagination .pagination__buttons-group .bp3-button-group &{
|
||||
border-radius: 5px;
|
||||
}
|
||||
&--next,
|
||||
&--previous{
|
||||
|
||||
&.bp3-button{
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
|
||||
.bp3-icon {
|
||||
|
||||
[dir="rtl"] & {
|
||||
transform: scale(-1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
&.is-active{
|
||||
&.bp3-intent-primary:disabled,
|
||||
&.bp3-intent-primary.bp3-disabled{
|
||||
background-color: #E6EFFB;
|
||||
}
|
||||
|
||||
&:not([class*="bp3-intent-"]) {
|
||||
}
|
||||
.bp3-button-text{
|
||||
color: #000;
|
||||
}
|
||||
}
|
||||
|
||||
&--next{
|
||||
|
||||
.bp3-icon{
|
||||
order: 1;
|
||||
margin-right: 0;
|
||||
margin-left: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__info{
|
||||
color: #888;
|
||||
margin-left: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&__controls{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: auto;
|
||||
|
||||
.bp3-html-select{
|
||||
margin-left: 6px;
|
||||
|
||||
select{
|
||||
height: 24px;
|
||||
width: auto;
|
||||
padding: 0;
|
||||
padding-right: 0px;
|
||||
border: 1px solid #e8e8e8;
|
||||
font-size: 13px;
|
||||
border-radius: 3px;
|
||||
color: #666;
|
||||
padding-right: 14px;
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
&::after{
|
||||
border-left-width: 3px;
|
||||
border-right-width: 3px;
|
||||
border-top-width: 4px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__goto-control{
|
||||
display: none;
|
||||
}
|
||||
|
||||
&__pagesize-control{
|
||||
margin-left: 12px;
|
||||
color: #888;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user