MediaWiki:Common.css: Unterschied zwischen den Versionen
Aus SSV Wiki
Wbu (Diskussion | Beiträge) |
Wbu (Diskussion | Beiträge) |
||
Zeile 28: | Zeile 28: | ||
display: inline-block;} | display: inline-block;} | ||
− | <!-- No [view source] tab for | + | <!-- No [view source] tab for users who can not edit --> |
− | <?php global $wgUser; if( $wgUser-> | + | <?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?> |
<style type="text/css"> | <style type="text/css"> | ||
#ca-viewsource { display: none !important; } | #ca-viewsource { display: none !important; } | ||
</style> | </style> | ||
<?php } ?> | <?php } ?> |
Version vom 13. Mai 2019, 18:33 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
#ca-talk { display:none!important; }
.box {float: right;
background-color: #000099;
color: white;
padding: 2px;
margin-top: 1em;
margin-left: 1em;
margin-bottom: 0.5em;
width: 15em;}
.menu {font-variant: small-caps;
font-weight: bold;}
.wlink {color:white}
.breadcrumbs {background-color:#EFF5FB; font-size:85%; margin-bottom: 1em}
.xyz {font-family: verdana, sans-serif;
line-height: 150%;
margin-left: 2em;
padding: 1em;
border: 3px solid red;
background-color: #f89;
display: inline-block;}
<!-- No [view source] tab for users who can not edit -->
<?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?>
<style type="text/css">
#ca-viewsource { display: none !important; }
</style>
<?php } ?>