fix: FastField re-rendering.

fix: Allocate landed cost dialog.
This commit is contained in:
a.bouhuolia
2021-07-26 19:45:16 +02:00
parent 77d987ef1f
commit 9baf81f803
77 changed files with 1046 additions and 364 deletions

View File

@@ -10,7 +10,7 @@
.th,
.td {
border-left: 1px dashed #e2e2e2;
border-left: 1px solid #e2e2e2;
&.index {
text-align: center;
@@ -55,6 +55,19 @@
margin-bottom: auto;
}
}
&.landed-cost{
.bp3-control{
margin-top: 0;
margin-left: 34px;
}
.bp3-control-indicator{
height: 18px;
width: 18px;
border-color: #e0e0e0;
}
}
}
.tr {
.bp3-form-group:not(.bp3-intent-danger) .bp3-input,

View File

@@ -0,0 +1,21 @@
.details-menu {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
&.is-vertical {}
.detail-item {
&__label {
color: #666666;
font-weight: 500;
}
&__content {
text-transform: capitalize;
margin: 5px 0;
}
}
}

View File

@@ -0,0 +1,17 @@
.bp3-drawer {
.bp3-drawer-header {
margin-bottom: 2px;
background-color: #FFF;
.bp3-heading {
font-weight: 500;
}
.bp3-heading,
.bp3-icon {
color: #354152;
}
}
}

View File

@@ -1,14 +1,4 @@
.bp3-drawer-header {
box-shadow: 0 0 0;
.bp3-heading{
font-size: 16px;
}
.bp3-button{
min-height: 28px;
min-width: 28px;
}
}
.account-drawer {
background-color: #fbfbfb;
@@ -94,29 +84,4 @@
}
}
}
}
.bp3-drawer.bp3-position-right {
bottom: 0;
right: 0;
top: 0;
overflow: auto;
height: 100%;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
.bp3-drawer-header {
margin-bottom: 2px;
box-shadow: (0, 0, 0);
background-color: #6a7993;
.bp3-heading,
.bp3-icon {
color: white;
}
}
}

View File

@@ -4,14 +4,15 @@
.bp3-tabs {
.bp3-tab-list {
position: relative;
background-color: #FFF;
&:before {
content: '';
position: absolute;
bottom: 0;
width: 100%;
height: 2px;
background: #f0f0f0;
background: #e1e2e8;
}
> *:not(:last-child) {
@@ -29,14 +30,18 @@
}
}
}
.bp3-tab-panel{
margin-top: 0;
.card{
margin: 15px;
}
}
}
.bigcapital-datatable {
.datatable--landed-cost-transactions {
.table {
max-height: 500px;
border: 1px solid #d1dee2;
min-width: auto;
margin: 12px;
.tbody,
.tbody-inner {
@@ -48,34 +53,13 @@
}
.tbody {
.tr .td {
padding: 0.8rem;
padding: 0.6rem;
&.amount{
font-weight: 600;
}
}
}
}
}
}
.bp3-drawer.bp3-position-right {
bottom: 0;
right: 0;
top: 0;
overflow: auto;
height: 100%;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
.bp3-drawer-header {
margin-bottom: 2px;
box-shadow: (0, 0, 0);
background-color: #6a7993;
.bp3-heading,
.bp3-icon {
color: white;
}
}
}
}

View File

@@ -122,6 +122,7 @@
top: 0;
overflow: auto;
height: 100%;
.bp3-drawer-header .bp3-heading {
overflow: hidden;
text-overflow: ellipsis;

View File

@@ -1,6 +1,5 @@
.journal-drawer,
.expense-drawer {
background: #f5f5f5;
&__content {
display: flex;
@@ -18,8 +17,8 @@
justify-content: flex-start;
margin: 15px 0 20px;
font-size: 14px;
// color: #333333;
color: #666666;
> div {
flex-grow: 1;
span {
@@ -44,17 +43,17 @@
&--table {
flex-grow: 1;
flex-shrink: 0;
.table {
color: #666666;
font-size: 14px;
.thead .tr .th .resizer {
display: none;
}
.thead .th {
background: transparent;
color: #222222;
border-bottom: 1px solid #000000;
padding: 0.5rem;
}
.thead .th,
.tbody .tr .td {
background: transparent;
padding: 0.8rem 0.5rem;
@@ -63,7 +62,6 @@
.desc {
margin: 20px 0 60px;
// margin: 20px 0;
> b {
color: #2f2f2f;
}
@@ -93,25 +91,3 @@
}
}
}
.bp3-drawer.bp3-position-right {
bottom: 0;
right: 0;
top: 0;
overflow: auto;
height: 100%;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
.bp3-drawer-header {
margin-bottom: 2px;
box-shadow: (0, 0, 0);
background-color: #6a7993;
.bp3-heading,
.bp3-icon {
color: white;
}
}
}

View File

@@ -11,7 +11,6 @@ body.page-bill-edit{
padding-bottom: 64px;
}
.page-form--bill{
$self: '.page-form';
@@ -36,7 +35,7 @@ body.page-bill-edit{
max-width: 440px;
}
&.form-group{
&.form-group{
&--expiration-date{
max-width: 340px;

View File

@@ -1,11 +1,10 @@
.dashboard__insider--expenses {
.dashboard__insider--expenses{
.bigcapital-datatable {
.bigcapital-datatable{
.tbody{
.tr .td.total_amount{
span{
.tbody {
.tr .td.total_amount {
span {
font-weight: 600;
}
}
@@ -13,36 +12,64 @@
}
}
.page-form--expense{
.page-form--expense {
$self: '.page-form';
#{$self}__header{
#{$self}__header {
display: flex;
&-fields{
&-fields {
flex: 1 0 0;
}
.bp3-label{
.bp3-label {
min-width: 140px;
}
.bp3-form-content{
.bp3-form-content {
width: 100%;
}
.bp3-form-group{
.bp3-form-group {
margin-bottom: 18px;
&.bp3-inline{
max-width: 440px;
&.bp3-inline {
max-width: 440px;
}
}
}
.form-group--description{
.datatable-editor--expense-form {
.table {
.tbody {
.tr .td {
&.landed-cost {
.bp3-control {
margin-top: 0;
margin-left: 34px;
}
.bp3-control-indicator {
height: 18px;
width: 18px;
border-color: #e0e0e0;
}
}
}
}
}
}
.form-group--description {
max-width: 500px;
textarea{
textarea {
min-height: 60px;
width: 100%;
}

View File

@@ -1,3 +1,7 @@
// Noto Sans
// -------------------------------------
@font-face {
font-family: Noto Sans;
src: local('Noto Sans'), url('../fonts/NotoSans-SemiBold.woff') format('woff');
@@ -30,46 +34,8 @@
font-display: swap;
}
// arabic regular
@font-face {
font-family: Noto Sans Arabic;
src: local('Noto Sans'),
url('../fonts/NotoSansArabicUI-SemiCondensed.woff') format('woff');
font-style: normal;
font-weight: 400;
font-display: swap;
}
// arabic black
@font-face {
font-family: Noto Sans Arabic;
src: local('Noto Sans'),
url('../fonts/NotoSansArabicUI-SemiCondensedBlack.woff') format('woff');
font-style: normal;
font-weight: 900;
font-display: swap;
}
//arabic Medium
@font-face {
font-family: Noto Sans Arabic;
src: local('Noto Sans'),
url('../fonts/NotoSansArabicUI-SemiCondensedMedium.woff') format('woff');
font-style: normal;
font-weight: 500;
font-display: swap;
}
//arabic SemiBold
@font-face {
font-family: Noto Sans Arabic;
src: local('Noto Sans'),
url('../fonts/NotoSansArabicUI-SemiCondensedSemiBold.woff') format('woff');
font-style: normal;
font-weight: 600;
font-display: swap;
}
// Segoe UI Arabic
// -------------------------------------
// Segoe UI Arabic - Regular
@font-face {
font-family: 'Segoe UI';

View File

@@ -16,7 +16,7 @@ $menu-item-color-active: $light-gray3;
$breadcrumbs-collapsed-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#6B8193' enable-background='new 0 0 16 16' xml:space='preserve'><g><circle cx='2' cy='8.03' r='2'/><circle cx='14' cy='8.03' r='2'/><circle cx='8' cy='8.03' r='2'/></g></svg>");
$sidebar-zindex: 15;
$pt-font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont,
$pt-font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont,
Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Open Sans, Helvetica Neue,
Icons16, sans-serif;