skin-dt-32 0.0.75 → 0.0.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -270,30 +270,36 @@ Vue.component('foro-foro', {
270
270
  <div class="forum-title is-tweakeable">
271
271
  <span class="is-measurable">{{ dataName }}</span>
272
272
  </div>
273
- <div class="forum-misc">
274
- <div class="forum-stats">{{ dataPosts }} mensajes — {{ dataTopics }} temas</div>
275
- </div>
273
+ <div class="forum-stats">{{ dataPosts }} mensajes — {{ dataTopics }} temas</div>
276
274
  </a>
277
275
  <div class="forum-content">
278
- <ul class="columns is-gapless is-multiline">
279
- <li class="column is-half">
280
- <div class="forum-interior">
281
- <slot name="desc"></slot>
282
- </div>
283
- <div class="forum-last">
284
- <template v-if="dataLasturl.length">
285
- <div class="lastpost-content"><a :href="dataLasturl" :title="'Último mensaje en el tema «' + dataLastname + '» por '" class="lastpost-link">{{ dataLastname }}</a> por <slot name="last-who"></slot>, <slot name="last-date"></slot></div>
286
- </template>
287
- <template v-else>Este subforo no tiene mensajes</template>
288
- </div>
289
- </li>
290
- <li class="column is-half">
291
- <div class="lastpost-avatar">
292
- <slot name="last-avatar"></slot>
293
- </div>
294
- <div class="lastpost-name"></div>
295
- </li>
296
- </ul>
276
+ <div class="forum-info">
277
+ <ul class="columns is-gapless is-multiline">
278
+ <li class="column is-two-thirds">
279
+ <div class="forum-misc"></div>
280
+ <div class="forum-last">
281
+ <template v-if="dataLasturl.length">
282
+ <div class="lastpost-content">
283
+ <div class="is-hidden-desktop">
284
+ <a :href="dataLasturl" :title="'Último mensaje en el tema «' + dataLastname + '» por '" class="lastpost-link">{{ dataLastname }}</a> por <slot name="last-who"></slot>, <slot name="last-date"></slot>
285
+ </div>
286
+ <div class="is-hidden-touch"></div>
287
+ </div>
288
+ </template>
289
+ <template v-else>Este subforo no tiene mensajes</template>
290
+ </div>
291
+ </li>
292
+ <li class="column is-one-third">
293
+ <div class="lastpost-avatar">
294
+ <slot name="last-avatar"></slot>
295
+ </div>
296
+ <div class="lastpost-name"></div>
297
+ </li>
298
+ </ul>
299
+ </div>
300
+ <div class="forum-image">
301
+ <slot name="desc"></slot>
302
+ </div>
297
303
  </div>
298
304
  </section>
299
305
  `
package/general.js CHANGED
@@ -832,7 +832,28 @@ document.addEventListener('DOMContentLoaded', () => {
832
832
  }
833
833
  });
834
834
 
835
- /* Hide topbar and header */
835
+ document.addEventListener('DOMContentLoaded', () => {
836
+ if (document.querySelector('.forum-forum')) {
837
+ [].forEach.call(document.querySelectorAll('.forum-forum'), (item) => {
838
+ if (item.querySelector('.forum-misc') && item.querySelector('.forum-box')) {
839
+ item.querySelector('.forum-misc').insertAdjacentHTML('beforeend', item.querySelector('.forum-box').outerHTML);
840
+ item.querySelector('.forum-content .forum-box').remove();
841
+ }
842
+ });
843
+ }
844
+ });
845
+
846
+ document.addEventListener('forumReady', () => {
847
+ if (document.querySelector('.forum-forum')) {
848
+ [].forEach.call(document.querySelectorAll('.forum-forum'), (item) => {
849
+ console.log(item.querySelector('.forum-last > strong'));
850
+ if (item.querySelector('.forum-last > strong')) {
851
+ item.querySelector('.lastpost-name').insertAdjacentHTML('beforeend', item.querySelector('.forum-last > strong').outerHTML);
852
+ }
853
+ });
854
+ }
855
+ });
856
+
836
857
  document.addEventListener('forumReady', () => {
837
858
  if (window.location.pathname !== '/' && document.querySelector('#forum-topbar') && forumConfig.skinOptions.hideTopbar) {
838
859
  document.querySelector('#forum-header').remove();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skin-dt-32",
3
- "version": "0.0.75",
3
+ "version": "0.0.78",
4
4
  "main": "readme.md",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/stylesheet.css CHANGED
@@ -338,7 +338,7 @@ a {
338
338
  .forum-head {
339
339
  display: flex;
340
340
  align-items: center;
341
- margin-bottom: 1.25rem;
341
+ margin-bottom: 1.5rem;
342
342
  }
343
343
 
344
344
  .forum-head i {
@@ -373,6 +373,10 @@ h3.is-tweakeable small {
373
373
  color: var(--color-four);
374
374
  }
375
375
 
376
+ .forum-header:hover {
377
+ color: var(--color-four);
378
+ }
379
+
376
380
  .forum-title {
377
381
  max-width: 500px;
378
382
  font-size: 1.5rem;