kickstarter.com - text alignment issue Topic is solved

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2411
Joined: 2012-08-19, 20:32

kickstarter.com - text alignment issue

Unread post by back2themoon » 2024-03-04, 13:07

Example link: (scroll a bit down)

https://www.kickstarter.com/projects/re ... ts/4039259

Text is aligned fully to the left, at the window edge. It should be centred instead.

Only thing I see in the Error Console:

Error: TypeError: k(...) is undefined
Source File: https://cdn.transcend.io/cm/f4a41a3a-db ... /airgap.js
Line: 5
PM 33.0.1

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: kickstarter.com - text alignment issue

Unread post by KlarkKentThe3rd » 2024-03-04, 15:58

Seconding this. Kickstarter is perfectly usable, but text is always left-aligned.

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2411
Joined: 2012-08-19, 20:32

Re: kickstarter.com - text alignment issue

Unread post by back2themoon » 2024-03-04, 16:04

I only very recently noticed it, since it was always correctly aligned. Must be a recent change causing this.

User avatar
adoxa
Fanatic
Fanatic
Posts: 170
Joined: 2019-03-16, 13:26

Re: kickstarter.com - text alignment issue

Unread post by adoxa » 2024-03-05, 02:44

CSS margin-inline is not supported. The main text can be fixed with a custom style:

Code: Select all

.grid-col-center {
  margin-left: auto !important;
  margin-right: auto !important;
}

User avatar
FranklinDM
Add-ons Team
Add-ons Team
Posts: 582
Joined: 2017-01-14, 02:40
Location: Philippines

Re: kickstarter.com - text alignment issue

Unread post by FranklinDM » 2024-03-05, 03:06

adoxa wrote:
2024-03-05, 02:44
CSS margin-inline is not supported.
Filed Issue #2477 (UXP). We do have support for the margin-inline-start/end properties, but not the shorthand.

User avatar
adoxa
Fanatic
Fanatic
Posts: 170
Joined: 2019-03-16, 13:26

Re: kickstarter.com - text alignment issue

Unread post by adoxa » 2024-03-05, 07:19

Okay then, here's an alternative approach that uses a Modify HTTP Response filter to expand margin-inline and padding-inline.

Code: Select all

[["a.kickstarter.com",["/\\.css$/",["/(padding|margin)-inline:(.*?)([;}])/g","$1-inline-start:$2;$1-inline-end:$2$3"]]]]
The scrollbar at the top is due to overflow-y: scroll; it seems Firefox removes this if there's no content.

Didn't track down what's going on the with recommended stuff.

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2411
Joined: 2012-08-19, 20:32

Re: kickstarter.com - text alignment issue

Unread post by back2themoon » 2024-03-05, 11:46

Thank you, FranklinDM & adoxa. :thumbup:

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2411
Joined: 2012-08-19, 20:32

Re: kickstarter.com - text alignment issue

Unread post by back2themoon » 2024-04-23, 16:55

Pale Moon 33.1.0 solves it. Thank you.