mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Use <pre> for list styling. it's much prettier, but it's meant for
code formatting, so this might cause issues in the future - revert if so
This commit is contained in:
@@ -17,24 +17,24 @@ html,body,p,h1,ul,li,table,tr,th,td
|
|||||||
padding: 12px 16px
|
padding: 12px 16px
|
||||||
white-space: nowrap
|
white-space: nowrap
|
||||||
|
|
||||||
.color-worst
|
.color-worst pre
|
||||||
background-color: rgb(230, 184, 175)
|
background-color: rgb(230, 184, 175)
|
||||||
.color-worse
|
.color-worse pre
|
||||||
background-color: rgb(244, 204, 204)
|
background-color: rgb(244, 204, 204)
|
||||||
.color-bad
|
.color-bad pre
|
||||||
background-color: rgb(252, 229, 205)
|
background-color: rgb(252, 229, 205)
|
||||||
.color-neutral
|
.color-neutral pre
|
||||||
background-color: rgb(255, 242, 204)
|
background-color: rgb(255, 242, 204)
|
||||||
.color-good
|
.color-good pre
|
||||||
background-color: rgb(217, 234, 211)
|
background-color: rgb(217, 234, 211)
|
||||||
.color-better
|
.color-better pre
|
||||||
background-color: rgb(208, 224, 227)
|
background-color: rgb(208, 224, 227)
|
||||||
.color-best
|
.color-best pre
|
||||||
background-color: rgb(201, 218, 248)
|
background-color: rgb(201, 218, 248)
|
||||||
.completed
|
.completed pre
|
||||||
background-color: rgb(217, 217, 217)
|
background-color: rgb(217, 217, 217)
|
||||||
color: rgb(153, 153, 153)
|
color: rgb(153, 153, 153)
|
||||||
.reward
|
.reward pre
|
||||||
background-color: white
|
background-color: white
|
||||||
|
|
||||||
h1.todos, h1.rewards
|
h1.todos, h1.rewards
|
||||||
@@ -49,13 +49,12 @@ li:hover .task-meta .edit-link
|
|||||||
|
|
||||||
.task
|
.task
|
||||||
list-style:none
|
list-style:none
|
||||||
-moz-border-radius: 3px
|
|
||||||
-webkit-border-radius: 3px
|
pre
|
||||||
border-radius: 3px
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif
|
||||||
border: 1px solid black
|
font-size: 13px
|
||||||
margin-bottom: 5px
|
line-height: 18px
|
||||||
padding:5px
|
color: black
|
||||||
text-shadow:none
|
|
||||||
|
|
||||||
.task-meta
|
.task-meta
|
||||||
float:right
|
float:right
|
||||||
|
|||||||
@@ -101,6 +101,7 @@
|
|||||||
|
|
||||||
<task:>
|
<task:>
|
||||||
<li data-id={{:task.id}} class="task {taskClasses(:task.type, :task.completed, :task.value, _hideCompleted)}">
|
<li data-id={{:task.id}} class="task {taskClasses(:task.type, :task.completed, :task.value, _hideCompleted)}">
|
||||||
|
<pre>
|
||||||
<div class="task-meta">
|
<div class="task-meta">
|
||||||
<!-- TODO make this a popover -->
|
<!-- TODO make this a popover -->
|
||||||
|
|
||||||
@@ -128,6 +129,7 @@
|
|||||||
<div class="task-text" x-bind=keydown:shortcuts contenteditable>{unescaped :task.text}</div>
|
<div class="task-text" x-bind=keydown:shortcuts contenteditable>{unescaped :task.text}</div>
|
||||||
|
|
||||||
<app:editPopover />
|
<app:editPopover />
|
||||||
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<editPopover:>
|
<editPopover:>
|
||||||
|
|||||||
Reference in New Issue
Block a user