Tweak style

This commit is contained in:
2021-04-30 15:18:23 +02:00
parent 73b14c0105
commit 8ebf2a4771
2 changed files with 17 additions and 6 deletions

View File

@ -14,17 +14,17 @@ a {
a:link { a:link {
color: #fff; color: #fff;
border-bottom: 1px solid #ff0000; border-bottom: 0.05em solid #ff0000;
} }
a:visited { a:visited {
color: #fff; color: #fff;
border-bottom: 1px solid #b3b3b3; border-bottom: 0.05em solid #b3b3b3;
} }
a:hover { a:hover {
color: #7bd09f; color: #7bd09f;
border-bottom: 1px solid #000099; border-bottom: 0.05em solid #000099;
} }
ul.striped_list { ul.striped_list {
@ -122,6 +122,9 @@ ul.striped_list > li:nth-child(odd) ul li:nth-child(odd) { background-color:#30
.history_entry { .history_entry {
padding: 0.2em; padding: 0.2em;
padding-left: 0.5em;
padding-right: 0.5em;
text-align: right;
} }
.history_entry_category { .history_entry_category {
@ -130,6 +133,14 @@ ul.striped_list > li:nth-child(odd) ul li:nth-child(odd) { background-color:#30
.history_entry_duration { .history_entry_duration {
color: #e4c9ff; color: #e4c9ff;
display: inline-block;
border: solid dimgray 0.05em;
background: black;
font-family: Ubuntu Mono;
padding-right: 0.3em;
padding-left: 0.3em;
min-width: 4em;
text-align: center;
} }
.history_entry_started { .history_entry_started {
@ -154,7 +165,7 @@ ul.striped_list > li:nth-child(odd) ul li:nth-child(odd) { background-color:#30
.tooltip { .tooltip {
position: relative; position: relative;
display: inline-block; display: inline-block;
border-bottom: 1px dotted black; border-bottom: 0.05em dotted black;
} }
.tooltip .tooltiptext { .tooltip .tooltiptext {

View File

@ -7,12 +7,12 @@
<ul class="striped_list"> <ul class="striped_list">
{{#each entries}} {{#each entries}}
<li class="history_entry"> <li class="history_entry">
<span class="history_entry_category">{{this.category.name}}</span> <a class="history_entry_category" href="/stats/{{this.session.category}}">{{this.category.name}}</a>
<span>under</span> <span>under</span>
<span class="history_entry_duration">{{pretty_seconds this.duration.secs}}</span> <span class="history_entry_duration">{{pretty_seconds this.duration.secs}}</span>
<span>från</span> <span>från</span>
<span class="history_entry_started">{{pretty_datetime this.session.started}}</span> <span class="history_entry_started">{{pretty_datetime this.session.started}}</span>
<span>tills</span> <span>till</span>
<span class="history_entry_ended">{{pretty_datetime this.session.ended}}</span> <span class="history_entry_ended">{{pretty_datetime this.session.ended}}</span>
<span>---</span> <span>---</span>
<a href="/session/{{this.session_id}}/edit" class="history_entry_edit_button">ändra</a> <a href="/session/{{this.session_id}}/edit" class="history_entry_edit_button">ändra</a>