... | ... |
@@ -133,7 +133,13 @@ |
133 | 133 |
[:p :li {:font-size :0.8rem :line-height :0.9rem}]) |
134 | 134 |
|
135 | 135 |
(defclass spell-list-panel [] |
136 |
- {}) |
|
136 |
+ {} |
|
137 |
+ title-style |
|
138 |
+ [:ul {:padding-left 0}] |
|
139 |
+ [:li {:list-style :inside |
|
140 |
+ :list-style-type "'* '"} |
|
141 |
+ [s/first-child {:font-weight :bold |
|
142 |
+ :margin-right :0.5rem}]]) |
|
137 | 143 |
|
138 | 144 |
(defclass item-list-panel [] |
139 | 145 |
{}) |
... | ... |
@@ -74,7 +74,7 @@ |
74 | 74 |
|
75 | 75 |
(defn- heading |
76 | 76 |
[x] |
77 |
- [:h1 (x :name)]) |
|
77 |
+ [:h1 (get x :name (str x))]) |
|
78 | 78 |
|
79 | 79 |
(defn- pounds [w] |
80 | 80 |
(if (= w 1) |
... | ... |
@@ -189,8 +189,12 @@ |
189 | 189 |
(cost weapon)) |
190 | 190 |
(license-notice weapon)])) |
191 | 191 |
|
192 |
-(defn spell-list-panel [_] |
|
193 |
- [:article {:class (styles/spell-list-panel)}]) |
|
192 |
+(defn spell-list-panel [spells] |
|
193 |
+ [:article {:class (styles/spell-list-panel)} |
|
194 |
+ (heading "Spells") |
|
195 |
+ [:ul |
|
196 |
+ (for [spell (sort-by :name spells)] |
|
197 |
+ [:li [:span (spell :name)][:span (-> spell short-spell-description parenthesize)]])]]) |
|
194 | 198 |
|
195 | 199 |
(defn item-list-panel [_] |
196 | 200 |
[:article {:class (styles/item-list-panel)}]) |