mirror of
https://github.com/Hutchy68/pivot.git
synced 2024-11-21 18:09:03 +01:00
Sitenotice fix (#32)
* removing classes .panel and .radius from sitenotice and usertalk * Fixes for echo, indicators, missing indicator.gif
This commit is contained in:
parent
afc69b150a
commit
bc2ade0124
@ -187,14 +187,15 @@ class pivotTemplate extends BaseTemplate {
|
||||
<div id="echo-notifications">
|
||||
<div id="echo-notifications-alerts"></div>
|
||||
<div id="echo-notifications-messages"></div>
|
||||
<div id="echo-notifications-notice"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<!--[if lt IE 9]>
|
||||
<div id="siteNotice" class="sitenotice panel radius"><?php echo $this->text('sitename') . ' '. wfMessage( 'pivot-browsermsg' )->text(); ?></div>
|
||||
<div id="siteNotice" class="sitenotice"><?php echo $this->text('sitename') . ' '. wfMessage( 'pivot-browsermsg' )->text(); ?></div>
|
||||
<![endif]-->
|
||||
|
||||
<?php if ( $this->data['sitenotice'] ) { ?><div id="siteNotice" class="sitenotice panel radius"><?php $this->html( 'sitenotice' ); ?></div><?php } ?>
|
||||
<?php if ( $this->data['newtalk'] ) { ?><div id="usermessage" class="newtalk panel radius"><?php $this->html( 'newtalk' ); ?></div><?php } ?>
|
||||
<?php if ( $this->data['sitenotice'] ) { ?><div id="siteNotice" class="sitenotice"><?php $this->html( 'sitenotice' ); ?></div><?php } ?>
|
||||
<?php if ( $this->data['newtalk'] ) { ?><div id="usermessage" class="newtalk"><?php $this->html( 'newtalk' ); ?></div><?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -11,8 +11,10 @@ jQuery(document).ready(function() {
|
||||
|
||||
// The Echo extension puts an item in personal tools that Foreground really should have in the top menu
|
||||
// to make this easier, we move it here and loaded earlier to speed up transform
|
||||
jQuery("#pt-notifications").prependTo("#echo-notifications-alerts");
|
||||
jQuery("#pt-notifications-message").prependTo("#echo-notifications-messages");
|
||||
jQuery("#pt-notifications-alert").prependTo("#echo-notifications-alerts");
|
||||
jQuery("#pt-notifications-notice").prependTo("#echo-notifications-notice");
|
||||
|
||||
// Append font-awesome icons
|
||||
jQuery('[id^=ca-nstab] a').prepend('<div id="drop-icon"><i class="fa fa-file fa-fw"></i></div>')
|
||||
|
BIN
assets/stylesheets/indicator.gif
Normal file
BIN
assets/stylesheets/indicator.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 673 B |
@ -772,49 +772,57 @@ div.mw-htmlform-field-HTMLCheckField div.mw-label { height:0; }
|
||||
#echo-notifications {
|
||||
float: right;
|
||||
display: inline-block;
|
||||
margin: -.5em 0;
|
||||
margin: -1em 1em .5em;
|
||||
position: relative;
|
||||
z-index: 10000;
|
||||
height: 23px;
|
||||
z-index: 500;
|
||||
max-height: 30px;
|
||||
}
|
||||
#echo-notifications-notice,
|
||||
#echo-notifications-alerts,
|
||||
#echo-notifications-messages,
|
||||
#echo-notifications {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#pt-notifications-notice .mw-echo-notifications-badge,
|
||||
#pt-notifications-alert .mw-echo-notifications-badge,
|
||||
#pt-notifications-message .mw-echo-notifications-badge {
|
||||
background-size: 1.6em !important;
|
||||
display: inline !important;
|
||||
font-size: 1.2em;
|
||||
filter: invert(25%);
|
||||
background-size: 1.4em !important;
|
||||
font-size: 1.1em;
|
||||
color: transparent;
|
||||
filter: invert(15%);
|
||||
height: auto !important;
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
#echo-notifications li {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#echo-notifications-messages {
|
||||
float: right;
|
||||
}
|
||||
#echo-notifications-alerts {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#pt-notifications-alert .mw-echo-unseen-notifications,
|
||||
#pt-notifications-message .mw-echo-unseen-notifications {
|
||||
#pt-notifications-alert .mw-echo-unseen-notifications, #pt-notifications-message .mw-echo-unseen-notifications {
|
||||
color: #0645ad !important;
|
||||
}
|
||||
|
||||
#echo-notifications li {
|
||||
margin: 0 0 0 1em;
|
||||
}
|
||||
|
||||
/* Make Echo extension more mobile friendly on small widths */
|
||||
|
||||
@media only screen and (max-width: 450px) {
|
||||
.oo-ui-popupWidget-popup {
|
||||
.oo-ui-popupWidget-popup {
|
||||
width: auto !important;
|
||||
position: relative !important;
|
||||
margin-left: -260px !important;
|
||||
font-size: 75% !important;
|
||||
}
|
||||
.oo-ui-clippableElement-clippable.oo-ui-popupWidget-body {
|
||||
}
|
||||
.oo-ui-clippableElement-clippable.oo-ui-popupWidget-body {
|
||||
width: 100% !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Aside CSS */
|
||||
@ -1162,8 +1170,11 @@ ul[class*="block-grid"] {
|
||||
line-height: 1.6;
|
||||
font-size: 0.875em;
|
||||
position: relative;
|
||||
margin: -.5em .5em 0;
|
||||
max-height: 25px;
|
||||
margin: -1em .5em .5em 1em;
|
||||
max-height: 30px;
|
||||
width: auto;
|
||||
z-index: 1;
|
||||
}
|
||||
.mw-indicator {
|
||||
display: inline-block;
|
||||
}
|
Loading…
Reference in New Issue
Block a user