MediaWiki talk:Common.css

From Wikinews, the free news source you can write!
Jump to navigation Jump to search
This interface message may be documented at Meta-Wiki or MediaWiki.

Line-height[edit]

Hi! When a title is long and occupies two or more lines, both lines tend to "overlap" (see here). It is somewhat bad-looking. Just to solve this, I'd like a line to be added:

/* Interlining in titles */
 
h1.firstHeading { line-height: 1em; }

Byes! - Jurock (reply here) 14:29, 20 October 2007 (UTC)[reply]

Done. I'm using all sorts of custom css, so the effect is not apperent to me, and I can't test the effectiveness of if this worked (but i remember before I modified my css this used to happen ocasionally). I'm also not sure if this is monobook only and should be in mediawiki:Monobook.css. Bawolff 22:51, 22 October 2007 (UTC)[reply]

Edit request[edit]

{{editprotected}}

Could you add

div.PointCarte
{
   position:absolute;
   width:1px;
   height:1px;
   background:#000000;
   border: 1px solid #FFFFFF;    
}

Thanks --Diego Grez return fire 01:52, 14 June 2010 (UTC)[reply]

Why? —Mikemoral♪♫ 01:54, 14 June 2010 (UTC)[reply]
It's perfectly safe, but pointless. It draws a 1px by 1px black dot with a 1px white border. It's also not something that needs to go in common.css: Diego could do the same thing by embedding it into his template. — μ 01:59, June 14 2010 (UTC)
Not to mention attribution issues. If you're going to copy it, at least try and translate it into English... — μ 02:00, June 14 2010 (UTC)
Hmm. Wikinews:Map of Wikinewsies. Seems stupid but well. --Diego Grez return fire 02:05, 14 June 2010 (UTC)[reply]

Removing the border on .the_table[edit]

I would like to remove the border on .the_table, which is the table that contains all the main content on the main page. This content is already boxed by the content div, so adding another layer of lines around it serves no purpose. This is classic boxitis (which Wikimedia projects seem to be especially afflicted with). Would anyone object to me removing it? Kaldari (talk) 04:56, 24 March 2012 (UTC)[reply]

Error in css codes[edit]

Hi using code editor it shows that there are errors in the codes please fix them. 86.173.55.194 (talk) 19:32, 6 May 2014 (UTC)[reply]

What errors are you receiving? Microchip08 (talk) 19:39, 6 May 2014 (UTC)[reply]
Xe may be referring to the fact that if you edit the code using the now-built-in wiki editor, it reports lots and lots of warnings. It doesn't report any errors at all, and the "warnings" I looked at didn't look to me like things that should be objected to. --Pi zero (talk) 19:46, 6 May 2014 (UTC)[reply]

Editprotected[edit]

{{editprotected}} The template to substitute current {{translated quote}} is working fine. So please append the following CSS code in order to change the template.
Agastya Chandrakant ⚽️ 🏆 🎾 🎬 🎤 📰 21:23, 29 January 2017 (UTC)[reply]

.lang-quote {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
    color: #0645ad;
    cursor: pointer;
}

.lang-quote .transquote {
    visibility: hidden;
    width: 300px;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 1s;
    background: rgba(0, 0, 0, 0.8);
}

.lang-quote:hover .transquote {
    visibility: visible;
    opacity: 1;
}
Done --Pi zero (talk) 22:30, 29 January 2017 (UTC)[reply]

editprotected[edit]

{{editprotected}} z-index should be 3 in .lang-quote .transquote {}.

The audio/video player has a z-index of 2 (the Inspect element tells me) and thus, the tooltip can be rendered useless in situations like this one for Wikinews interviews Irene Villa
acagastya 09:55, 12 May 2017 (UTC)[reply]

Changed but waiting to see if it works. --Pi zero (talk) 11:24, 12 May 2017 (UTC)[reply]
Seems to have worked. --Pi zero (talk) 11:41, 12 May 2017 (UTC)[reply]