MediaWiki talk:Common.css: Difference between revisions

From NeoGeo Development Wiki
Jump to navigation Jump to search
(Created page with "Latest load.php from Mediawiki 1.40 doesn't like the "url" directive. It compiles it to an empty url... It needs some investigation. #home-cat .cat-base { background-image: url("/images/a/ac/Ban2_base.jpg") } #home-cat .cat-video { background-image: url("/images/6/6a/Ban2_video.jpg") } #home-cat .cat-audio { background-image: url("/images/f/f3/Ban2_audio.jpg") } #home-cat .cat-repair { background-image: url("/images/4/46/Ban2_repair.jpg") } #home-cat .cat-cart { backgr...")
 
(Replaced content with "Latest load.php from Mediawiki 1.40 doesn't like the "url" directive. It compiles it to an empty url... It needs some investigation. <syntaxhighlight lang=javascript> //In order to work again: //change from: #home-cat .cat-base { background-image: url("/images/a/ac/Ban2_base.jpg") } //to: #home-cat .cat-base { background-image: url( images/a/ac/Ban2_base.jpg ) } //sources: // https://www.mediawiki.org/wiki/Manual:Coding_conventions/CSS // https://w...")
Tag: Replaced
 
(7 intermediate revisions by 3 users not shown)
Line 2: Line 2:
It needs some investigation.
It needs some investigation.


<syntaxhighlight lang=javascript>
//In order to work again:
//change from:
#home-cat .cat-base { background-image: url("/images/a/ac/Ban2_base.jpg") }
//to:
#home-cat .cat-base { background-image: url( images/a/ac/Ban2_base.jpg ) }
//sources:
//    https://www.mediawiki.org/wiki/Manual:Coding_conventions/CSS
//    https://www.mediawiki.org/wiki/MediaWiki:Common.css
</syntaxhighlight>


#home-cat .cat-base { background-image: url("/images/a/ac/Ban2_base.jpg") }
#home-cat .cat-base { background-image: url("/images/a/ac/Ban2_base.jpg") }
Line 12: Line 25:
#home-cat .cat-chips { background-image: url("/images/a/a5/Ban2_chips.jpg") }
#home-cat .cat-chips { background-image: url("/images/a/a5/Ban2_chips.jpg") }
#home-cat .cat-games { background-image: url("/images/0/07/Ban2_games.jpg") }
#home-cat .cat-games { background-image: url("/images/0/07/Ban2_games.jpg") }
Thanks for the investigation and finding the cause. I can't edit Common.css because I don't have the appropriate rights anymore. Tried reaching Elbarto. [[User:Furrtek|Furrtek]] ([[User talk:Furrtek|talk]]) 10:47, 10 May 2025 (UTC)
Rom1:
We could also use the embedded images in CSS, but it's very dirty. The best option that doesn't use "url()" is to put a normal image but change CSS a bit so it resize the image tag to cover the whole background. It's easy but I would need to change CSS too.

Latest revision as of 16:25, 6 January 2026

Latest load.php from Mediawiki 1.40 doesn't like the "url" directive. It compiles it to an empty url... It needs some investigation.

 //In order to work again:
 //change from:
 #home-cat .cat-base { background-image: url("/images/a/ac/Ban2_base.jpg") }
 
 //to:
 #home-cat .cat-base { background-image: url( images/a/ac/Ban2_base.jpg ) }
 
 //sources:
 //    https://www.mediawiki.org/wiki/Manual:Coding_conventions/CSS
 //    https://www.mediawiki.org/wiki/MediaWiki:Common.css
  1. home-cat .cat-base { background-image: url("/images/a/ac/Ban2_base.jpg") }
  2. home-cat .cat-video { background-image: url("/images/6/6a/Ban2_video.jpg") }
  3. home-cat .cat-audio { background-image: url("/images/f/f3/Ban2_audio.jpg") }
  4. home-cat .cat-repair { background-image: url("/images/4/46/Ban2_repair.jpg") }
  5. home-cat .cat-cart { background-image: url("/images/b/b5/Ban2_cart.jpg") }
  6. home-cat .cat-cd { background-image: url("/images/d/df/Ban2_cd.jpg") }
  7. home-cat .cat-code { background-image: url("/images/3/3a/Ban2_code.jpg") }
  8. home-cat .cat-chips { background-image: url("/images/a/a5/Ban2_chips.jpg") }
  9. home-cat .cat-games { background-image: url("/images/0/07/Ban2_games.jpg") }


Thanks for the investigation and finding the cause. I can't edit Common.css because I don't have the appropriate rights anymore. Tried reaching Elbarto. Furrtek (talk) 10:47, 10 May 2025 (UTC)


Rom1: We could also use the embedded images in CSS, but it's very dirty. The best option that doesn't use "url()" is to put a normal image but change CSS a bit so it resize the image tag to cover the whole background. It's easy but I would need to change CSS too.