Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Timeless skin in the ArchLinux extension #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

progandy
Copy link
Contributor

The switch to the new Vector skin caused some controversy among desktop wiki users. The Timeless skin is a more polished alternative responsive skin.
These changes should implement support for the Timeless skin in the ArchLinux extension.

Here are some images of what it should approximately look like:
https://abload.de/gallery.php?key=kSKQLkmd
Bild skintimelessmediawikinmjww.png auf abload.de Bild skintimelessmediawikiayjd0.png auf abload.de Bild skintimelessmediawiki33js1.png auf abload.de Bild skintimelessmediawikigdkuq.png auf abload.de Bild skintimelessmediawikixtjfj.png auf abload.de Bild skintimelessmediawikin7j54.png auf abload.de

It was not tested in an archwiki installation, but with this userscript on mediawiki.org:
https://gist.github.com/progandy/c3459f7e49c295e70563a44e0a27ba73

@lahwaacz
Copy link
Contributor

Is the "MediaWiki" (probably $wgSitename) at the top left corner a feature of the skin? Can it be suppressed?

@nl6720
Copy link
Member

nl6720 commented Dec 26, 2021

Is the "MediaWiki" (probably $wgSitename) at the top left corner a feature of the skin? Can it be suppressed?

It uses the timeless-sitetitle message which defaults to {{int:Sitetitle}}.

@nl6720
Copy link
Member

nl6720 commented Dec 26, 2021

Text in code blocks looks smaller because Timeless doesn't use the font-family: monospace,monospace; workaround (Vector added it a few releases back).

Since we're setting font-family in arch_common.less, it can be fixed for all skins there:

diff --git a/extensions/ArchLinux/modules/arch_common.less b/extensions/ArchLinux/modules/arch_common.less
index 2a6bebaa9..73121c5a6 100644
--- a/extensions/ArchLinux/modules/arch_common.less
+++ b/extensions/ArchLinux/modules/arch_common.less
@@ -49,7 +49,7 @@ body {
     code,
     tt {
         background-color: @code-background-color;
-        font-family: monospace;
+        font-family: monospace, monospace;
     }
 
     code,

@progandy
Copy link
Contributor Author

All changes done, I can squash them later.

Is the "MediaWiki" (probably $wgSitename) at the top left corner a feature of the skin? Can it be suppressed?

What do you propose as a change? Leave it as an empty space or extend the search bar to the left? Personally I like the wiki name (ArchWiki) being there, but if you two prefer it without I can hide it.

@nl6720
Copy link
Member

nl6720 commented Dec 26, 2021

IMHO leave it as it is. We'll just edit MediaWiki:timeless-sitetitle to remove the title.

@pierres
Copy link
Member

pierres commented Dec 29, 2021

I am a little worried about maintenance when we add more and more custom CSS. We already support two Vector versions and Monobook. This makes upstream updates harder as there is no easy way to detected breaking changes.

In general I'd prefer to reduce our customization to a minimal set of patches to the new Vector theme.

@nl6720
Copy link
Member

nl6720 commented Jan 3, 2022

@progandy, could you split off 37e8fef and 8446d46 into a separate PR so that they do not get held up by this PR?

@progandy
Copy link
Contributor Author

progandy commented Jan 3, 2022

@progandy, could you split off 37e8fef and 8446d46 into a separate PR so that they do not get held up by this PR?

Done. If you prefer not to merge the timeless skin, feel free to close this PR.

@nl6720
Copy link
Member

nl6720 commented Mar 29, 2022

The split-off PR was merged. @progandy could you rebase?

@lahwaacz
Copy link
Contributor

I noticed that Timeless renders page categories in the sidebar (just below language links), which feels awkward but there is probably no way to change that.

@progandy
Copy link
Contributor Author

progandy commented Dec 31, 2022

I noticed that Timeless renders page categories in the sidebar (just below language links), which feels awkward but there is probably no way to change that.

Edit: For screen sizes larger than 1340 pixels, there is a sidebar on the right with language and category links. That does not seem awkward to me.

For screen sizes <1100px The categories appear below the content. To make that permanent, the following css would work. You could also limit the change to the range of 1339 to 1100 pixels which has only a left sidebar.

#catlinks {
  display: block;
  padding: 1em;
}

#catlinks-sidebar {
  display: none;
}

Copy link
Contributor

@lahwaacz lahwaacz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The responsive design is still quite inconsistent, because the Arch navbar changes at 845px, whereas Timeless changes to the most narrow style at 850px. But I guess there is no way to easily change the thresholds?

}
#menus-cover {
top: 65px;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}
#mw-content-block {
background: @body-background-color;
}

This makes a difference for the box with categories that are placed below the page with this screen width. Timeless adds background: #ffffff; for #mw-content-block in the smallest screen width, which causes a visual inconsistency.

color: @link-color-hover;
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}
/* reset special border of the page title */
.mw-body {
h1.firstHeading {
border-bottom: solid 3px #c8ccd1;
}
}

The native 4px @blue style does not look nice.

color: @link-color-hover;
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}
/* change MediaWiki's @blue color to Arch's blue */
.suggestions {
.suggestions-result-current {
background-color: @link-color-normal;
}
}
.tools-inline li {
&.selected {
border-bottom-color: @link-color-normal;
}
}

@lahwaacz
Copy link
Contributor

The category links in the (left or right) sidebar are probably fine. Currently we have an override in MediaWiki/Common.css to place #catlinks at the top, but since the links are duplicated in the DOM and can be styled separately with #catlinks and #catlinks-sidebar, it would be possible to adjust it later.

@progandy
Copy link
Contributor Author

progandy commented Dec 31, 2022

The responsive design is still quite inconsistent, because the Arch navbar changes at 845px, whereas Timeless changes to the most narrow style at 850px. But I guess there is no way to easily change the thresholds?

It would be easier and maybe even a better idea to change the threshold for the arch navbar. I already increased it from 830px to 845px to prevent problems with the scrollbar: ad9454a This change would probably be useful for all other components of the arch site using the navbar like the fourm.
image
By the way, the homepage behaves differently from forum or wiki.

@lahwaacz
Copy link
Contributor

lahwaacz commented Dec 31, 2022

By the way, the homepage behaves differently from forum or wiki.

Oh yes, we should find a way to integrate archlinux-common-style in the wiki... Its responsive design is still in a merge request, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants