Skip to content

Commit

Permalink
Merge pull request #11 from moreonion/datasets_app-fixes
Browse files Browse the repository at this point in the history
Datasets app fixes - mark invalid table fields.
  • Loading branch information
torotil authored Feb 26, 2019
2 parents fcfd59f + c9bd010 commit ad3bdd3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 20 deletions.
32 changes: 14 additions & 18 deletions modules_css/vue_app_overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,22 +143,6 @@
font-size: 7px;
color: #514f4f;
}
.el-select .el-input__inner {
color: #514f4f;
background: #F5F1E8;
border: 0 none;
padding: 0 1rem 0 0.6rem;
height: 1.8rem;
width: 4.8rem;
}
.el-select .el-input__inner:focus {
background-color: #D6D2CC;
}
.el-select .el-input .el-input__icon {
width: 1rem;
font-size: 7px;
color: #514f4f;
}
.el-dropdown__caret-button {
padding-left: 0.4rem;
padding-right: 0.4rem;
Expand Down Expand Up @@ -944,15 +928,27 @@
overflow-x: auto;
}
.datasets-app .dsa-edit-dataset-dialog table tr:not(.VueTables__no-results) td {
padding-right: 1rem;
padding: 0;
}
.datasets-app .dsa-edit-dataset-dialog table tr:not(.VueTables__no-results) td:first-of-type {
min-width: 1.4rem;
color: #d66540;
border-right: 0 none;
padding-right: 0px;
padding: 5px 0 5px 5px;
font-size: 130%;
}
.datasets-app .dsa-edit-dataset-dialog table tr:not(.VueTables__no-results) td:last-of-type {
padding: 5px;
}
.datasets-app .dsa-edit-dataset-dialog table tr:not(.VueTables__no-results) td .dsa-contact-field {
padding: 5px 1rem 5px 5px;
}
.datasets-app .dsa-edit-dataset-dialog table tr:not(.VueTables__no-results) td .dsa-contact-field-invalid {
background-color: rgba(214, 101, 64, 0.5);
}
.datasets-app .dsa-edit-dataset-dialog table tr:not(.VueTables__no-results) td.dsa-edited .dsa-contact-field-invalid {
background-color: transparent;
}
.datasets-app .dsa-edit-dataset-dialog table tr.VueTables__no-results td {
color: #d66540;
text-align: center;
Expand Down
20 changes: 18 additions & 2 deletions modules_css/vue_app_overrides/_datasets_app.less
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,31 @@
}

table tr:not(.VueTables__no-results) td {
padding-right: 1rem;
padding: 0;

&:first-of-type {
min-width: 1.4rem;
color: @red;
border-right: 0 none;
padding-right: 0px;
padding: 5px 0 5px 5px;
font-size: 130%;
}

&:last-of-type {
padding: 5px;
}

.dsa-contact-field {
padding: 5px 1rem 5px 5px;
}

.dsa-contact-field-invalid {
background-color: @invalid-cell-color;
}

&.dsa-edited .dsa-contact-field-invalid {
background-color: transparent;
}
}

table tr.VueTables__no-results td {
Expand Down
1 change: 1 addition & 0 deletions modules_css/vue_app_overrides/_variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@
@spinner-mask-color: rgba(242, 242, 242, 0.9);

@active-cell-color: #fff5aa;
@invalid-cell-color: rgba(214, 101, 64, 0.5);

0 comments on commit ad3bdd3

Please sign in to comment.