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">
<button class="add" on:click="{ showAdd }"><i class="material-icons">add</i></button>
{#each $counters as counter}
<Counter counterId={ counter.id }></Counter>
{/each}
<button class="add" on:click="{ showAdd }"><i class="material-icons">add</i></button>
</div>
{#if showAddDialog}
<div class="dialog">

View file

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