Skip to content

Commit

Permalink
tweak display of new state reach table
Browse files Browse the repository at this point in the history
  • Loading branch information
ngottlieb committed Jun 3, 2024
1 parent 605218e commit 6f1265f
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions src/app/views/river-index/rivers-by-state.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<span v-if="reach.altname">({{ reach.altname }})</span>
</router-link>
</td>
<td>
<td class="reach-flow">
<template v-if="reach.loading">
<cv-inline-loading
small
Expand Down Expand Up @@ -125,16 +125,34 @@ export default {
}
</script>
<style lang="scss">
@each $class, $color in $flow-map {
tr.reach.#{$class} td {
background-color: $color;
}
}
.bx--tag--stale {
background-color: #dfe3e6;
:hover > & {
background-color: $stale;
}
}
#rivers-by-state {
thead {
position: sticky;
top: 51px;
}
tr {
border-left: 0.5rem solid $ui-03;
@each $class, $color in $flow-map {
&.#{$class} {
td:first-child {
border-left: 0.5rem solid $color;
}
td.reach-flow {
background: $color;
}
}
}
}
}
</style>

0 comments on commit 6f1265f

Please sign in to comment.