MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 834: | Line 834: | ||
#mw-dismissable-notice-dismiss:hover { | #mw-dismissable-notice-dismiss:hover { | ||
opacity: 1 !important; | opacity: 1 !important; | ||
} | |||
/* Kill ALL visual styling on dismiss link */ | |||
#mw-dismissable-notice-dismiss { | |||
background: none !important; | |||
border: none !important; | |||
box-shadow: none !important; | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
width: auto !important; | |||
height: auto !important; | |||
color: transparent !important; | |||
font-size: 0 !important; | |||
line-height: 0 !important; | |||
} | |||
/* Replace it visually with a pseudo-element */ | |||
#mw-dismissable-notice-dismiss::after { | |||
content: "×"; | |||
color: #999; | |||
font-size: 20px; | |||
font-weight: 700; | |||
line-height: 1; | |||
cursor: pointer; | |||
} | |||
/* Hover state */ | |||
#mw-dismissable-notice-dismiss:hover::after { | |||
color: #000; | |||
} | } | ||