crobi преди 10 години
родител
ревизия
b6d9266dca
променени са 2 файла, в които са добавени 24 реда и са изтрити 0 реда
  1. 15
    0
      generator/css/cards.css
  2. 9
    0
      generator/js/cards.js

+ 15
- 0
generator/css/cards.css Целия файл

@@ -180,3 +180,18 @@
180 180
     margin-top: 0.5em;
181 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 Целия файл

@@ -113,6 +113,14 @@ function card_element_text(params, card_data, options) {
113 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 124
 function card_element_section(params, card_data, options) {
117 125
     var color = card_data_color_front(card_data, options);
118 126
     var section = params[0] || "";
@@ -135,6 +143,7 @@ var card_element_generators = {
135 143
     ruler: card_element_ruler,
136 144
     description: card_element_description,
137 145
     text: card_element_text,
146
+    bullet: card_element_bullet,
138 147
     fill: card_element_fill,
139 148
     section: card_element_section
140 149
 };

Loading…
Отказ
Запис