Better style for history tables

Fixed button placement to get proper bottom margin
This commit is contained in:
CheddarCrisp 2020-02-16 14:17:18 -05:00
parent fdbc654a86
commit 52b73be176
2 changed files with 12 additions and 4 deletions

View file

@ -1,8 +1,8 @@
<div class="app"> <div class="app">
<button class="add" on:click="{ showAdd }"><i class="material-icons">add</i></button>
{#each $counters as counter} {#each $counters as counter}
<Counter counterId={ counter.id }></Counter> <Counter counterId={ counter.id }></Counter>
{/each} {/each}
<button class="add" on:click="{ showAdd }"><i class="material-icons">add</i></button>
</div> </div>
{#if showAddDialog} {#if showAddDialog}
<div class="dialog"> <div class="dialog">

View file

@ -129,15 +129,23 @@ function close(){
margin-left: auto; margin-left: auto;
} }
.history {
width: 100%;
}
.history th { .history th {
font-weight: 600; font-weight: 600;
position: sticky; position: sticky;
background-color: white; background-color: #CDCDCD;
top: 0; top: 0;
text-align: left;
} }
.history th, .history td { .history tr:nth-child(even){
border: 1px solid black; background-color: #F0F0F0;
}
.history td, .history th {
padding: 5px; padding: 5px;
} }
</style> </style>