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
base: master
Are you sure you want to change the base?
Conversation
|
Is the "MediaWiki" (probably |
It uses the |
|
Text in code blocks looks smaller because Timeless doesn't use the Since we're setting 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,
|
|
All changes done, I can squash them later.
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. |
|
IMHO leave it as it is. We'll just edit MediaWiki:timeless-sitetitle to remove the title. |
|
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. |
|
The split-off PR was merged. @progandy could you rebase? |
|
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. |
There was a problem hiding this 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; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| } | |
| } | |
| #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; | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| } | |
| } | |
| /* 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; | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| } | |
| } | |
| /* 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; | |
| } | |
| } |
|
The category links in the (left or right) sidebar are probably fine. Currently we have an override in MediaWiki/Common.css to place |
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. |
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. |

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
It was not tested in an archwiki installation, but with this userscript on mediawiki.org:
https://gist.github.com/progandy/c3459f7e49c295e70563a44e0a27ba73