Browse Source

Adding bullet points

crobi 10 years ago
parent
commit
b6d9266dca
2 changed files with 24 additions and 0 deletions
  1. 15
    0
      generator/css/cards.css
  2. 9
    0
      generator/js/cards.js

+ 15
- 0
generator/css/cards.css View File

180
     margin-top: 0.5em;
180
     margin-top: 0.5em;
181
     margin-bottom: 0.2em;
181
     margin-bottom: 0.2em;
182
 }
182
 }
183
+
184
+.card-bullet-line {
185
+    font-size: inherit;
186
+    color: black;
187
+    padding-left: 16px;
188
+    padding-bottom: 0;
189
+    margin-bottom: 0;
190
+    margin-top: 0;
191
+}
192
+
193
+.card-bullet {
194
+    margin-bottom: 0;
195
+    margin-top: 0;
196
+    font-size: inherit;
197
+}

+ 9
- 0
generator/js/cards.js View File

113
     return result;
113
     return result;
114
 }
114
 }
115
 
115
 
116
+function card_element_bullet(params, card_data, options) {
117
+    var result = "";
118
+    result += '<ul class="card-bullet-line">';
119
+    result += '   <li class="card-bullet">' + params[0] + '</li>';
120
+    result += '</ul>';
121
+    return result;
122
+}
123
+
116
 function card_element_section(params, card_data, options) {
124
 function card_element_section(params, card_data, options) {
117
     var color = card_data_color_front(card_data, options);
125
     var color = card_data_color_front(card_data, options);
118
     var section = params[0] || "";
126
     var section = params[0] || "";
135
     ruler: card_element_ruler,
143
     ruler: card_element_ruler,
136
     description: card_element_description,
144
     description: card_element_description,
137
     text: card_element_text,
145
     text: card_element_text,
146
+    bullet: card_element_bullet,
138
     fill: card_element_fill,
147
     fill: card_element_fill,
139
     section: card_element_section
148
     section: card_element_section
140
 };
149
 };

Loading…
Cancel
Save