|
103 | 103 | #txt h4 span, |
104 | 104 | #txt h5 span, |
105 | 105 | #txt h6 span { |
106 | | - font-size: inherit !important; |
| 106 | + font-size: inherit; |
107 | 107 | } |
108 | 108 |
|
109 | 109 | </style> |
|
218 | 218 |
|
219 | 219 | txt.innerHTML = ''; |
220 | 220 | if (layout != 12) { |
221 | | - if (obj.data.content.text) |
| 221 | + if (obj.data.content.text){ |
| 222 | + console.log(obj.data.content); |
222 | 223 | txt.innerHTML = obj.data.content.text.trim(); |
| 224 | + } |
223 | 225 | } |
224 | 226 | if (txt.innerHTML == '') { |
225 | 227 | txt.classList.add('hide'); |
|
298 | 300 | var iIcon = document.createElement('i'); |
299 | 301 | iIcon.className += " main-icon " + p.iconClassName; |
300 | 302 | if ([3, 4, 5, 6, 7, 9, 10, 11].indexOf(layout) > -1) { |
301 | | - iIcon.style.fontSize = calcFontSize(options, layout) + "px"; |
| 303 | + iIcon.style.fontSize = calcFontSize(options, layout) + "px !important"; |
302 | 304 | } |
303 | 305 | span.append(iIcon); |
304 | 306 | divImg.appendChild(span); |
|
590 | 592 | let postitioning = document.createElement("style"); |
591 | 593 | let justifyContent = "center"; |
592 | 594 | let alignItems = "center"; |
593 | | - let fontSize = textFontSize ? textFontSize + "px" : "2.5vh"; |
| 595 | + let fontSize = textFontSize ? textFontSize + "px !important" : "2.5vh"; |
594 | 596 | if(textAlignHorizontal) justifyContent = textAlignHorizontal; |
595 | 597 | if(textAlignVertical) alignItems = textAlignVertical; |
596 | 598 | let css = `{ |
597 | 599 | justify-content: ${justifyContent} !important; |
598 | 600 | align-items: ${alignItems} !important; |
599 | 601 | }`; |
600 | 602 | let cssFontSize = `{ |
601 | | - font-size: ${fontSize} !important; |
| 603 | + font-size: ${fontSize}; |
602 | 604 | }` |
603 | 605 | postitioning.innerHTML += `span ${cssFontSize}` |
604 | 606 | switch (layout) { |
|
1039 | 1041 | } |
1040 | 1042 |
|
1041 | 1043 | .layout1 .pluginItem .media-holder.media-holder-icon .main-icon { |
1042 | | - font-size: 15vw !important; |
| 1044 | + font-size: 15vw; |
1043 | 1045 | position: relative; |
1044 | 1046 | top: -1px; |
1045 | 1047 | } |
|
1109 | 1111 | } |
1110 | 1112 |
|
1111 | 1113 | .layout2 .pluginItem .media-holder.media-holder-icon .main-icon { |
1112 | | - font-size: 18vw !important; |
| 1114 | + font-size: 18vw; |
1113 | 1115 | position: relative; |
1114 | 1116 | top: -1px; |
1115 | 1117 | } |
|
1213 | 1215 | } |
1214 | 1216 |
|
1215 | 1217 | .layout5 .pluginItem .media-holder.media-holder-icon .main-icon { |
1216 | | - font-size: 48.8vw !important; |
| 1218 | + font-size: 48.8vw; |
1217 | 1219 | position: relative; |
1218 | 1220 | top: -1px; |
1219 | 1221 | } |
|
1252 | 1254 | } |
1253 | 1255 |
|
1254 | 1256 | .layout6 .pluginItem .media-holder.media-holder-icon .main-icon { |
1255 | | - font-size: 42.4vw !important; |
| 1257 | + font-size: 42.4vw ; |
1256 | 1258 | position: relative; |
1257 | 1259 | top: -1px; |
1258 | 1260 | } |
|
1332 | 1334 | } |
1333 | 1335 |
|
1334 | 1336 | .layout8 .pluginItem .media-holder.media-holder-icon .main-icon { |
1335 | | - font-size: 15vw !important; |
| 1337 | + font-size: 15vw ; |
1336 | 1338 | position: relative; |
1337 | 1339 | top: -1px; |
1338 | 1340 | } |
|
1525 | 1527 | } |
1526 | 1528 |
|
1527 | 1529 | .layout11 .pluginItem .media-holder.media-holder-icon .main-icon { |
1528 | | - font-size: 48vw !important; |
| 1530 | + font-size: 48vw; |
1529 | 1531 | position: relative; |
1530 | 1532 | top: -1px; |
1531 | 1533 | } |
|
0 commit comments