Skip to content

Commit

Permalink
AMP-3152:
Browse files Browse the repository at this point in the history
- fix item-search table row selection style
- fix deliverable table row selection style
- style.scss is added but not in use now. could be useful in the future
  • Loading branch information
yingfeng-iu committed May 7, 2024
1 parent 1913381 commit 0676fc3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,8 @@ svg.icon-user {
height: 250px;
overflow-y: scroll; }

.highlight {
background: #F8ECB4; }
/* .highlight {
background: #F8ECB4; } */

.scrollDiv td, .scrollDiv th {
text-align: left; }
Expand Down
3 changes: 3 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ export default {
<style lang="css">
@import './styles/style.css';
</style>
<style lang="scss">
@import './styles/style.scss';
</style>
4 changes: 2 additions & 2 deletions src/components/deliverables/Deliverables.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@
v-on:keyup.down="onArrowDown"
v-on:keyup.up="onArrowUp"
v-on:click="rowClicked(index)"
v-bind:class="{
highlight: rowSelected(pfile.primaryfileId),
:class="{
'table-dark': rowSelected(pfile.primaryfileId),
}"
>
<td>{{ pfile.collectionName }}</td>
Expand Down
11 changes: 8 additions & 3 deletions src/components/shared/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@
:class="
type === 'item-search'
? source.id === selectedItemId
? 'item-cls trActive'
? 'item-cls table-dark'
: 'item-cls'
: ''
"
Expand Down Expand Up @@ -1086,9 +1086,14 @@ export default {
</script>

<style scoped>
/*
table tbody tr:nth-of-type(odd) {
background-color: #f8ecb4;
}
.table-striped tbody tr:nth-of-type(odd) {
background-color: #f8ecb4;
}
*/
.table td,
.table th {
padding: 0.75rem;
Expand Down Expand Up @@ -1124,10 +1129,10 @@ table tbody tr:nth-of-type(odd) {
.item-cls {
cursor: pointer;
}
.trActive {
/* .trActive {
background-color: #153c4d !important;
color: #fff;
}
} */
.trActive {
animation-name: expandOpen;
animation-duration: 0.3s;
Expand Down
1 change: 1 addition & 0 deletions src/styles/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*$table-bg: #f8ecb4;*/

0 comments on commit 0676fc3

Please sign in to comment.