diff --git a/templates/css.widget b/templates/css.widget
index 3b32a18..342402f 100644
--- a/templates/css.widget
+++ b/templates/css.widget
@@ -180,6 +180,10 @@ body {
color: gray;
}
+.item-body {
+ padding-top: 5px;
+}
+
.item-traits,
.item-notes,
.item-description,
diff --git a/templates/item-info.widget b/templates/item-info.widget
index a438f8e..9fc8cc6 100644
--- a/templates/item-info.widget
+++ b/templates/item-info.widget
@@ -30,6 +30,7 @@ HTML
============================================================
+ {{> item-info-anchor }}
{{> item-info-title }}
{{> item-info-controls }}
@@ -41,58 +42,88 @@ HTML
CSS
------------------------------------------------------------
.item-info {
+ padding-bottom: 12px;
padding: 10px 15px;
}
+.item-info .section.normal {
+ display: flex;
+}
+HTML: item-info-anchor
+------------------------------------------------------------
+
HTML: item-info-title
------------------------------------------------------------
-
- #
+
{{> item-title}}
-
-{{> space em=2 }}
-
+
+
{{#item.group_}}{{.}}{{/item.group_}}{{^item.group_}}other{{/item.group_}}
-
+
+CSS
+------------------------------------------------------------
+.item-group {
+ padding-left: 2em;
+}
HTML: item-info-controls
------------------------------------------------------------
-
- {{> img-button
- src = "/arrow-thick-top.svg"
- title = "move item up"
- class = "move-item-up"
- action = [| moveItem("up", {{{%js item.uid}}}); |] }}
- {{> img-button
- src = "/arrow-thick-bottom.svg"
- title = "move item down"
- class = "move-item-down"
- action = [| moveItem("down", {{{%js item.uid}}}); |] }}
- {{> space em=1.5 }}
- {{> img-button
- src = "/pencil.svg"
- title = "edit item info"
- class = "edit-item-info"
- action = [| editItemInfo({{{%js item.uid}}}); |] }}
- {{> space em=0.5 }}
- {{> img-button
- src = "/x.svg"
- title = "delete item"
- class = "delete-item"
- action = [| deleteItem({{{%js item.uid}}}); |] }}
-
+
+
+ {{> img-button
+ src = "/arrow-thick-top.svg"
+ title = "move item up"
+ class = "move-item-up"
+ action = [| moveItem("up", {{{%js item.uid}}}); |] }}
+ {{> img-button
+ src = "/arrow-thick-bottom.svg"
+ title = "move item down"
+ class = "move-item-down"
+ action = [| moveItem("down", {{{%js item.uid}}}); |] }}
+
+
+ {{> img-button
+ src = "/pencil.svg"
+ title = "edit item info"
+ class = "edit-item-info"
+ action = [| editItemInfo({{{%js item.uid}}}); |] }}
+ {{> space em=0.4 }}
+ {{> img-button
+ src = "/x.svg"
+ title = "delete item"
+ class = "delete-item"
+ action = [| deleteItem({{{%js item.uid}}}); |] }}
+
+
CSS
------------------------------------------------------------
.item-info .controls {
- float: right;
+ margin-left: auto;
+ padding-left: 2em;
+}
+.item-info .controls > span {
+ white-space: nowrap;
+}
+/* on big screens we don't want to wrap the controls */
+@media (min-width: 480px) {
+ .item-info .controls {
+ white-space: nowrap;
+ }
+ .item-info .controls > span:first-child {
+ padding-right: 1em;
+ }
}
.item-info .controls img {
opacity: 0.4;
- height: 23px;
+ height: 20px;
+ position: relative;
+ bottom: -3px;
}
JS