39 Commits (cd71b68b6aee8b639de2319d07b64250d9639a26)

Author SHA1 Message Date
Isarra f0fc1a4362 Custom logo rendering, including text wordmark images
Use a file upload onwiki for simplest approach, or specify srcset info in an
array if that's not an option or otherwise not desired.

For instance to just reuse a $wgLogo and $wgLogoHD already set for a 160x160px
logo, but where the HD versions actually come out the right size:
$wgTimelessLogo = [
	'1x' => $wgLogo,
	'1.5x' => $wgLogoHD['1.5x']",
	'2x' => $wgLogoHD['2x'],
	'width' => 160,
	'height' => 160
];

Or to use File:Cows.svg uploaded onwiki:
$wgTimelessLogo = 'Cows.svg';

And the same thing with $wgTimelessWordmark to replace the site title string
with an image version.

Fallback behaviour remains unchanged, if just not using these.

Bug: T132004
Bug: T230663
Change-Id: I0d7b398935045ba69462252d40832ed95ad2d5ed
5 years ago
Isarra 8bca35dec0 Put languages back in sidebar on desktop
Partially reverts I148707085059f458512d328c415ea0bf134163f3 plus some random
cleanup and stuff

Both of the following bugs involve wikibase stuff so I can't actually be entirely
sure this resolves them, but I thiiiink it does because it should be killing the
offending parts of the above change that caused this? Probably?

Bug: T231256
Bug: T231234
Change-Id: Id7c0d90a805450b577271a321572fcd552ecbc3e
5 years ago
Isarra fa969cf9df Better position notifications area (watchlist ajax, preferences changes,
etc) to account for fixed header

Change-Id: I2387866cbc1aef0fa4edb202b1af73659230045b
5 years ago
jenkins-bot 132deaf771 Merge "Fix logo/sidebar alignment on two-column mode" 6 years ago
jenkins-bot 3c317a8312 Merge "Fix fixed header scroll offset in supported browsers" 6 years ago
Isarra d2fc86f919 Fix logo/sidebar alignment on two-column mode
(margins get lost/combined into larger one unless container... stuff;
on three-column flexbox takes care of this for us)

Change-Id: Ib2a93fa0c24f693375fb8c959e77dd47c8087121
6 years ago
jenkins-bot ad711f7b46 Merge "Fix positioning of dropdown icon for personal menu" 6 years ago
Isarra d844571796 Fix positioning of dropdown icon for personal menu
...why was that overflow:hidden even there?

Change-Id: I63a84acc9228baf214fc05c1e2896556d99398d1
6 years ago
Isarra 8a05fb1463 Fix fixed header scroll offset in supported browsers
Kill js solution even for other browsers because it doesn't even really
work to begin with. And I have no clue how to make it work, because I
can't find any examples that do, either.

Fixes current firefox and chrome. Users of old browsers/other
proprietary or whatever things can, uh, suffer, I guess.

Bug: T181484
Change-Id: Ic3415702eaa33cf56ed0b1fabf9ca607c88d1863
6 years ago
Isarra 2808c5c595 CSS-based pokeys
No more need to add in an html pokey element every potential dropdown menu.
Aaaaaagh that made it bigger, didn't it.

Change-Id: I5d3817aa026849a5304710a32a3585f3e698321d
6 years ago
Isarra 1d2a9583a5 Move variants and languages into page tools dropdowns
Hopefully saner access, also clears up some of the sidebar space.
Also forces moving the wikibase other-projects blob into its own
blob entirely.

Not done:
* Pokeys (need to migrate them all to css-only; later patch)
* Handling for no languages for wikidata stuff (may not be possible;
  minerva likewise has no handling)

Bug: T213510
Bug: T181309
Change-Id: I148707085059f458512d328c415ea0bf134163f3
6 years ago
Isarra 0af674dbc7 Kill some more stupid padding and add some comments
Bug: T197057
Change-Id: I44dca71602e7bdcb404e56df9274b8a86f410a6e
6 years ago
Isarra c576c68a1f Add TimelessFileModule and $wgTimelessBackdropImage configuration
option to set configurable background image for the skin as a whole

Defaults to the cat, but can ideally be set to anything appropriate
to the wiki in question. Recommendation is a 20-50% opacity black/
white background image, where the alpha values of the b/w parts are
likewise around 10-50/255.

Bug: T193330
Change-Id: Ica3e2ce2568557ef157d06d1b7127b030f3c38f0
6 years ago
Isarra 5d4b4c8249 Redo cat with only black and white and lose png version
Also made slightly bigger.

Change-Id: I91d41378d30ccb2439d44ccdc2caad646fcb9c37
6 years ago
Isarra 2a4fb34b63 New font stack, plus some generic forms and crap
Follow-up on https://gerrit.wikimedia.org/r/501850:
* new font stack stolen from phabricator and then rearranged a
  bit to be less ornery
* restored searchinput fonts and prodded some other alignment
  issues
* p-personal alignment issues maybe addressed, maybe made worse;
  cannot test windows/mac because don't have either of them or
  any remaining budget with which to purchase either of them
  because holy crap expensive
* some very basic generic form styles to align the base ones a
  tad more consistently
* dumb fix for dateinput widgets being mixed into otherwise
  non-ooui forms

Bug: T221345
Change-Id: I43312b23197ed1ce5ea9cb75fb0b8e8466bac6a1
6 years ago
Isarra 28a6d31912 Remove a bunch of form stuff and adjust random things to compensate
* Remove most of the special styles; most things are migrated to ooui
  now, and that thing is soup, but at least mostly matches the skin
  anyway
* Kill the special snowflake content/monospace fonts; these were
  actually messing up the ooui styles more than anything else
* Also make body text smaller, headers bigger to more clearly
  differentiate between them, with some of the larger sans serif
  options people might wind up with
* Override some overrides. Let's override these and then override the
  overrides for the overrides, and add more overrides later?
* Make whole thing slightly wider, because sheesh, this is narrow
* Make toctoggle show up like how rclegend toggle does

Either affects or should resolve the following:

Bug: T207610
Bug: T211360
Bug: T188968
Bug: T196243
Bug: T204780
Bug: T207601
Change-Id: I767562e4bbc0a9cdf13db61ce3ed493322edc054
6 years ago
Isarra 187dccee9d Make mw-echo-alert (yellow new message link) line up
properly with rest of user dropdown things

Also resolves issues with multiline messages.

bug: T202226
Change-Id: I5635511c4dd51d82fba55dc2c8ef1ca79104993d
6 years ago
Isarra e184ac17bc Less: Linebreaks everywhere, some cleanup
Removed a rule or two.
Also removed the notes file, no longer relevant.

Change-Id: Icc28d3d95ea45e845e29895cfa8044b03ca6258b
6 years ago
Ebrahim Byagowi 142edcb27f [i18n] Fix icons issues of the skin on RTL
* Used nominal values of background-position so CSSJanus can apply
  CSS flipping correctly
* Added the missed RTL search icons, optimized SVG source of the
  LTR search icon, optimized PNG rsvg-convert result of both
  SVGs using optipng

Change-Id: I6a56f8ee448b60742b92d3613394a0d61b9235a1
7 years ago
evad37 b03a2a970f Fix hiding of empty portlets on special pages
* Increased selector specificy so that .emptyPortlet works on portlets within
  #mw-page-header-links
* Moved the `ca-more` dropdown, only shown on mobile, into a new portlet so that
  `p-views` is really empty on Special pages, and has class .emptyPortlet
* Moved languages dropdown, also only shown on mobile, into the new portlet too.
  This way on special pages the two dropdowns are in a single <ul> list with two
  items, rather than two adjacent list each with one item. Also, grouping the
  mobile-only items together means the desktop CSS only has to hide the portlet,
  rather than the individual ietms.

Bug: T182533
Change-Id: I496af1805d200e1fd67b1232e1b3b029b08b82ca
7 years ago
SamanthaNguyen f473b850f9 Remove fake element created before links so background aligns correctly
This rule seems to no longer apply to the skin in it's current state,
and seems to be causing problems with references. These rules are an issue
for that it creates a fake block element (which adds extra spacing at the
top), creates a static height, and pulls it up with a negative top margin.

It seems best to remove this CSS block.

Bug: T181490
Change-Id: Id109e42731202f0c6e1ef6ff8855617e0795b35d
7 years ago
Jack Phoenix 260725618e Fix IE10/11 bug with the fixed header
Apparently not defining the height property makes everything just plain
messed up, and to fix things, all you need is the height property that has
a value (other than "auto") of some kind.

Bug: T173769
Change-Id: Ie8c86e01c77b3f5de11c1bd7c6bf491c8ef0fb26
7 years ago
Umherirrender 77ff62c02c Add stylelint for css and less files
Fixed the following rules:
- number-leading-zero
- length-zero-no-unit
- string-quotes
- max-empty-lines
- selector-pseudo-element-colon-notation
- at-rule-empty-line-before
- at-rule-name-space-after
- media-feature-parentheses-space-inside
- color-hex-case
- declaration-block-semicolon-space-bef
- declaration-property-value-blacklist

Change-Id: Id0b43bff22b3f9ae9b912bd886e2da4c8576b165
8 years ago
Isarra 9811d44774 Move echo styles to the correct module
Change-Id: I28af6af3d1fe4d2dca363175e430976bb3ab03ec
8 years ago
Isarra 8cb2458c99 Refactor TimelessTemplate.php
Structure is generally the same. All html is rendered into a
single variable, output with a single unholy 'echo'.

getPortlet is now more general, and generally used.

Should generally address the issues raised in T158011.
Should also be technically compatible with VE (DOM), but
without styling, and requiring the user to edit
LocalSettings.php (hopefully that gets fixed soon).
Fixed a slight bug with the languages rendering on mobile.

Some randomly missing things were added back in. (Variants,
some hooks)

bug: T161428
bug: T158011
bug: T132005
Change-Id: I3b691c8bfe7aed4a544236d5ac031b77ec4e8337
8 years ago
Isarra 10de923cd3 Move echo icons out of the personal dropdown
Lots of positioning weirdness, and the pokey was being
weird too.

Change-Id: Ia46c4f4cf0ce1c043c5506981b4ebc4b6dc4b5d1
8 years ago
Isarra 693aec5fdc Style and message tweaks
Maybe addresses T160647.

Change-Id: I4f6c73db6784415cdeca269321ba6f0f47c67551
8 years ago
Isarra 83b98586dd Add print styles, add 'mw' to page-header-links id
Bug: T131987

Change-Id: Ia14e7f26dd249e95d1bbe00437b8d1483be08fa5
9 years ago
Isarra f450f7e13b Make this thing responsive
And some other stuff too just because I ran into it on the way:
* Added indicators
* Fixed js in general
* Bumped version number
* Added some stupid hacks
* Cleaned stuff up
* I don't actually know

Change-Id: Ifa557c6f0f8a972d8986c3bffdfe08ddb4b39664
9 years ago
Isarra dc417173b1 Various improvements and fixes
* Consistent dark colours stolen from wikimediadc.org, probably stolen from
  that header template
* More consistent colours for headers
* Fixes for extension:templatesandbox
* pre and center rules, which for some reason aren't in core
* Fix for anchor offset issues caused by the fixed header
* Fixes for the personal dropdown menu
* Update font stack to use only ones with known consistent metrics

Change-Id: I88350e837b96de812c9d5f1308ae83703da6d0b4
9 years ago
Isarra 820154823c Make site title overflow less; add option to just change it for the skin
Just makes the font smaller if over a certain length. Not actually
smart. Will later add an option to replace it entirely with an image.

Change-Id: I7157c80132330c525ac2cb2027307550cee282b4
9 years ago
Isarra 6a25c68b2d Style changes, I don't know
Lowered font size, better menus (maybe), white header bar thingy with
colour

Probably other things.

Change-Id: Ia1b4c3ce0fed3752a9bae529573aa45912cb01ad
9 years ago
Isarra ff28a87f46 Turn this into more of a skin. Formatting, horror, more horror.
Thanks to Skizzers for the catlist db query.
Thanks to HORROR for the tool parsing.
Lots of css and stuff.

Change-Id: I9b6b4c2e3a206d909972929ae32777c933d0be46
9 years ago
Isarra 826140a6b0 Make dark footer
Also separated it from the content a bit, cleaned up the class names to
be more consistent, etc.

Change-Id: Ib0b3539ec112ef162c8d16e91bd805b884a2a502
9 years ago
Isarra a8c2913c26 Style search some more, add an icon
Change-Id: Id2ce1f3761f3948b647e638b5f130d5b5f9cc60a
9 years ago
Isarra a950d154b7 Everything is horrible.
Change-Id: Id35180435716a269edb45cab286ec178e9dd7791
9 years ago
Isarra 6056f7d586 Initial structure
Change-Id: I6457449db49ae1eef083684db75d5280bf404381
9 years ago
Isarra 679bf418b3 Remove unneeded example styles
Change-Id: I773dbf3567acf9ca5343819575007229756e327e
9 years ago
Isarra 3a1bc368de Initial skin from skin:Example; just renamed
Change-Id: Ic60e93eff08abe541635e135faf04e60a756f44c
9 years ago