feat: expand sidebar once open form editor page.

feat: rounding money amount.
feat: optimize page form structure.
feat: refactoring make journal and expense form with FastField component.
This commit is contained in:
Ahmed Bouhuolia
2020-11-29 00:06:59 +02:00
parent 53dd447540
commit 011542e2a3
118 changed files with 3883 additions and 2660 deletions

View File

@@ -4,7 +4,7 @@
.bigcapital-datatable{
.normal{
.#{$ns}-icon{
color: #838d9b;
color: #6E8091;
padding-left: 15px;
}
}
@@ -12,8 +12,8 @@
.table{
.tbody{
.tr:not(.no-results) .td{
padding-top: 0.36rem;
padding-bottom: 0.36rem;
padding-top: 0.3rem;
padding-bottom: 0.3rem;
}
.account_name{
> div{

View File

@@ -7,6 +7,11 @@
#{$self}__header{
display: flex;
&-fields{
flex: 1 0 0;
}
.bp3-form-group{
margin-bottom: 18px;
}
@@ -19,21 +24,10 @@
.bp3-form-group{
&.bp3-inline{
max-width: 420px;
max-width: 440px;
}
&.form-group{
&--vendor{
max-width: 650px
}
&--due-date{
max-width: 300px;
.bp3-label{
min-width: 95px;
}
}
&--expiration-date{
max-width: 340px;

View File

@@ -10,7 +10,7 @@
display: flex;
justify-content: space-between;
background-color: #fff;
border-bottom: 1px solid #F2EFEF;
border-bottom: 1px solid #dddee3;
&-right,
&-left{

View File

@@ -6,6 +6,7 @@
padding-bottom: 30px;
display: flex;
flex-direction: column;
.bp3-form-group {
width: 100%;
margin: 25px 20px 15px;
@@ -23,6 +24,7 @@
width: 120%;
}
}
&__table {
padding: 15px 15px 0;

View File

@@ -6,6 +6,11 @@
$self: '.page-form';
#{$self}__header{
display: flex;
&-fields{
flex: 1 0 0;
}
.bp3-form-group{
margin-bottom: 18px;
@@ -20,31 +25,9 @@
.bp3-form-group{
&.bp3-inline{
max-width: 420px;
max-width: 440px;
}
}
.bp3-form-group{
&.form-group{
&--customer{
max-width: 650px;
}
&--expiration-date{
max-width: 340px;
.bp3-label{
min-width: 120px;
}
}
}
}
.col--estimate-date{
max-width: 435px;
}
}

View File

@@ -1,239 +1,38 @@
.dashboard__insider--expense-form {
padding-bottom: 80px;
display: flex;
flex-direction: column;
background: #fff;
&__header {
padding: 25px 27px 20px;
background: #fbfbfb;
width: 100%;
.bp3-form-group {
.bp3-label {
font-weight: 500;
font-size: 13px;
color: #444;
}
.bp3-form-content {
.bp3-button:not([class*='bp3-intent-']):not(.bp3-minimal) {
}
}
.bp3-input-group {
}
&.form-group--ref_no {
.bp3-input-group .bp3-input {
}
}
}
.form-group--payment_account {
.bp3-form-group {
}
.bp3-form-content {
.bp3-button:not([class*='bp3-intent-']):not(.bp3-minimal) {
}
}
}
.form-group--currency {
.bp3-form-group {
}
.bp3-form-content {
.bp3-button:not([class*='bp3-intent-']):not(.bp3-minimal) {
}
}
}
}
&__table {
padding: 15px 15px 0;
.bp3-form-group {
margin-bottom: 0;
}
.table {
border: 1px solid #d2dce2;
border-bottom: transparent;
border-left: transparent;
.th,
.td {
border-left: 1px dotted rgb(195, 195, 195);
&.index {
> span,
> div {
text-align: center;
width: 100%;
font-weight: 500;
}
}
&:first-child{
border-left: 1px solid #d2dce2;
}
}
.thead {
.tr .th {
padding: 10px 10px;
background-color: #f2f5fa;
font-size: 14px;
font-weight: 500;
color: #333;
}
}
.tbody {
.tr .td {
padding: 7px;
border-bottom: 1px dotted rgb(195, 195, 195);
min-height: 46px;
&.index {
background-color: #f2f5fa;
text-align: center;
> span {
margin-top: auto;
margin-bottom: auto;
}
}
}
.tr {
.bp3-form-group .bp3-input,
.form-group--select-list .bp3-button {
border-radius: 3px;
padding-left: 8px;
padding-right: 8px;
}
.bp3-form-group:not(.bp3-intent-danger) .bp3-input,
.form-group--select-list:not(.bp3-intent-danger) .bp3-button {
border-color: #E5E5E5;
}
&:last-of-type {
.td {
border-bottom: transparent;
.bp3-button,
.bp3-input-group {
display: none;
}
}
}
.td.actions {
.bp3-button {
background-color: transparent;
color: #e68f8e;
&:hover {
color: #c23030;
}
}
}
&.row--total {
.td.amount{
font-weight: bold;
}
}
}
}
.th {
color: #444;
font-weight: 600;
border-bottom: 1px dotted #666;
}
.td {
border-bottom: 1px dotted #999;
&.description{
.bp3-form-group{
width: 100%;
}
}
}
.actions.td {
.bp3-button {
background: transparent;
margin: 0;
}
}
}
}
.bp3-button {
&.button--clear-lines {
background-color: #fcefef;
}
}
.button--clear-lines,
.button--new-line {
padding-left: 14px;
padding-right: 14px;
}
.dropzone-container {
margin-top: 0;
align-self: flex-end;
}
.dropzone {
width: 300px;
height: 75px;
}
.expense-form-footer{
display: flex;
padding: 30px 25px 0;
justify-content: space-between;
}
.form-group--description {
.bp3-label {
font-weight: 500;
font-size: 13px;
color: #444;
}
.bp3-form-content {
// width: 280px;
textarea {
width: 450px;
min-height: 75px;
}
}
}
.dashboard__insider--expense-form{
background-color: #fff;
}
.page-form--expense{
$self: '.page-form';
#{$self}__header{
display: flex;
.dashboard__insider--expenses{
&-fields{
flex: 1 0 0;
}
.bigcapital-datatable{
.bp3-label{
min-width: 140px;
}
.bp3-form-content{
width: 100%;
}
.tbody{
.total_amount{
font-weight: 600;
.bp3-form-group{
margin-bottom: 18px;
&.bp3-inline{
max-width: 440px;
}
}
}
.td.description{
.bp3-icon{
color: #666;
}
.bp3-tooltip-indicator{
cursor: initial;
border-bottom: 0;
}
}
.form-group--description{
max-width: 500px;
textarea{
min-height: 60px;
width: 100%;
}
}
}

View File

@@ -6,6 +6,12 @@
$self: '.page-form';
#{$self}__header{
display: flex;
&-fields{
flex: 1 0 0;
}
.bp3-label{
min-width: 140px;
}
@@ -17,23 +23,9 @@
margin-bottom: 18px;
&.bp3-inline{
max-width: 420px;
}
&.form-group{
&--customer-name{
max-width: 600px
}
&--due-date{
max-width: 300px;
.bp3-label{
min-width: 95px;
}
}
max-width: 440px;
}
}
.col--invoice-date{
max-width: 435px;
}

View File

@@ -1,49 +1,34 @@
.make-journal-entries {
padding-bottom: 20px;
display: flex;
flex-direction: column;
&__header {
padding: 25px 27px 20px;
background: #fbfbfb;
.page-form--make-journal-entries{
$self: '.page-form';
.bp3-form-group {
.bp3-label {
font-weight: 500;
font-size: 13px;
color: #444;
#{$self}__header{
.bp3-label{
min-width: 140px;
}
.bp3-form-content{
width: 100%;
}
.bp3-form-group{
margin-bottom: 18px;
&.bp3-inline{
max-width: 440px;
}
}
}
&__table {
}
.form-group--description{
max-width: 500px;
.bp3-button {
&.button--clear-lines {
background-color: #fcefef;
textarea{
min-height: 60px;
width: 100%;
}
}
.button--clear-lines,
.button--new-line {
padding-left: 14px;
padding-right: 14px;
}
.dropzone-container {
margin-left: auto;
}
.dropzone {
width: 300px;
height: 75px;
margin-right: 20px;
}
}
.dialog--journal-number-settings{
.paragraph {

View File

@@ -42,7 +42,6 @@
.table .tbody{
.tr.no-results{
.td{
border-bottom: 1px solid #e2e2e2;
font-size: 15px;
padding: 26px 0;
color: #5a5a77;

View File

@@ -43,7 +43,6 @@
.table .tbody{
.tr.no-results{
.td{
border-bottom: 1px solid #e2e2e2;
font-size: 15px;
padding: 26px 0;
color: #5a5a77;

View File

@@ -6,6 +6,11 @@
$self: '.page-form';
#{$self}__header{
display: flex;
&-fields{
flex: 1 0 0;
}
.bp3-label{
min-width: 140px;
}
@@ -19,12 +24,6 @@
&.bp3-inline{
max-width: 450px;
}
&.form-group{
&--customer{
max-width: 600px
}
}
}
}