Jump to content

Another forum update - cosmetic change


UCyborg

Recommended Posts

Seems the forum was recently updated. I don't remember the extra whitespace between member information and post content in people's posts. Is this just how the default theme that comes with the software is now or are there settings on the server side?

Either way, I prefer the old look, I find the extra whitespace screaming "Hey, look at me!". The old look can be achieved by applying the following CSS:

.ipsComment_author {
  margin: unset !important;
}

Or you could do:

.ipsComment_author {
  margin: 0 10px 0 0 !important;
}

I find this prettier, considering the space on the left. Beauty is in the eye of the beholder, so YMMV.

Edited by UCyborg
Link to comment
Share on other sites


  • 1 year later...

After our conversation was ended abruptly in the other thread by the oppressive dictators...new update, new changes. Yes, @mina7601, I also noticed, wanted to reply there, but couldn't for obvious reasons.

Correcting reply counter position on the main page under Topics section for browsers not supporting inset-inline-end CSS property, most notably Chromium <= 86:

.ipsWidget,
.ipsDataItem_main,
.cWidgetComments,
.ipsCommentCount {
  right: 0;
}

"right" indeed works, @NotHereToPlayGames. I suppose new property would be useful in combination with other properties mentioned on that MDN page.

Another change with recent update is font-weight set on elements with the class .ipsDataItem_title, it's used for thread titles on pages where forums threads of specific sub-forum are listed. Noticeable particularly on newer Chromium based browsers.

Before - font-weight: 400

spacer.png

After the update: font-weight: 500

spacer.png

Reverting to old look:

.ipsDataItem_title {
  font-weight: 400 !important;
}
Edited by UCyborg
insert->inset
Link to comment
Share on other sites

15 hours ago, UCyborg said:

Correcting reply counter position on the main page under Topics section for browsers not supporting insert-inline-end CSS property, most notably Chromium <= 86:

"right" indeed works, @NotHereToPlayGames. I suppose new property would be useful in combination with other properties mentioned on that MDN page.

I haven't found a method yet, but I would prefer insert-inline-end: to be replaced with right: by using Tampermonkey instead of Proxomitron.

Link to comment
Share on other sites

Seems inset-inline-end support can be enabled in Chromium 86 by turning on experimental web platform features (chrome://flags/#enable-experimental-web-platform-features).

I think more technically correct approach in this case in the absence of support for that property would be having another 2 selectors checking HTML document (text) direction, like so:

html[dir="ltr"] .ipsWidget .ipsDataItem_main.cWidgetComments .ipsCommentCount {
  right: 0;
}

html[dir="rtl"] .ipsWidget .ipsDataItem_main.cWidgetComments .ipsCommentCount {
  left: 0;
}

Regarding replacing, I'm not sure it's possible to directly intercept the network request initiated by web browser when it encounters links in page's HTML to external resources from user script, extensions can do that, but what can be done:

document.querySelectorAll('link[rel="stylesheet"], link[rel="preload"][as="style"]').forEach(e => {
  fetch(e.href)
    .then(response => response.text())
    .then(data => {
      const s = document.createElement('style');
      const m = e.getAttribute('media');
      m && s.setAttribute('media', m);
      s.innerHTML = data.replace(...); // replacement logic here - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace
      e.parentNode.replaceChild(s, e);
    })
    .catch(err => console.log(err));
});

Basically replacing link elements linking to CSS files with style elements, embedding content of linked CSS files, which may be manipulated before put in place.

Link to comment
Share on other sites

  • 1 month later...
On 6/9/2023 at 7:51 PM, xper said:

Fixed all. Thx.

What exactly has changed? I've made this thread back in 2022 to point out much larger spacing between user's profile data and the content of the forum post. This was reduced at some point, so I guess someone on the forum side did look at it.

But at present day, after the relatively recent forum update (the one that apparently sent some people into panic mode for the forum not being available for few days), an inconsistency appeared in boldness of fonts between updated Firefox and updated Chromium browsers on the pages with thread lists. See the two images in few posts above (still relevant at the time of writing this post).

Both pictures are from Edge, but the text would still appear like in the first picture in Firefox because there's not much (if any) difference between CSS font-weight values of 400 (before forum update) and 500 (after forum update) on that browser, the value of 500 being used since the update that makes the text noticeably bolder in Chromium.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...