mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Added arrows to Topbar Notification Dropdowns
This commit is contained in:
parent
e7d062fa49
commit
d4e28a15ee
@ -24,4 +24,20 @@
|
||||
|
||||
.placeholder {
|
||||
color: #77777A;
|
||||
}
|
||||
}
|
||||
|
||||
#dropdown-messages .arrow {
|
||||
top: -11px !important;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
|
||||
#dropdown-messages {
|
||||
width: 300px !important;
|
||||
|
||||
}
|
||||
|
||||
.arrow {
|
||||
margin-left: -101px !important;
|
||||
}
|
||||
}
|
||||
|
@ -47,7 +47,7 @@
|
||||
$('#dropdown-messages').find('ul').remove();
|
||||
|
||||
// append title and loader to dropdown
|
||||
$('#dropdown-messages').append('<li class="dropdown-header"><?php echo Yii::t('base', 'Messages'); ?> <?php echo CHtml::link(Yii::t('MailModule.base', 'New message'), $this->createUrl('//mail/mail/create', array('ajax' => 1)), array('class' => 'btn btn-info btn-xs', 'id' => 'create-message-button', 'data-toggle' => 'modal', 'data-target' => '#globalModal')); ?></li> <ul class="media-list"><li id="loader_messages"><div class="loader"></div></li></ul><li><div class="dropdown-footer"><a class="btn btn-default col-md-12" href="<?php echo Yii::app()->createUrl('//mail/mail/index'); ?>"><?php echo Yii::t('base', 'Show all messages'); ?></a></div></li>');
|
||||
$('#dropdown-messages').append('<li class="dropdown-header"><div class="arrow"></div><?php echo Yii::t('base', 'Messages'); ?> <?php echo CHtml::link(Yii::t('MailModule.base', 'New message'), $this->createUrl('//mail/mail/create', array('ajax' => 1)), array('class' => 'btn btn-info btn-xs', 'id' => 'create-message-button', 'data-toggle' => 'modal', 'data-target' => '#globalModal')); ?></li> <ul class="media-list"><li id="loader_messages"><div class="loader"></div></li></ul><li><div class="dropdown-footer"><a class="btn btn-default col-md-12" href="<?php echo Yii::app()->createUrl('//mail/mail/index'); ?>"><?php echo Yii::t('base', 'Show all messages'); ?></a></div></li>');
|
||||
|
||||
// load newest notifications
|
||||
$.ajax({
|
||||
|
@ -191,7 +191,7 @@
|
||||
$('#dropdown-notifications').find('li').remove();
|
||||
|
||||
// append title and loader to dropdown
|
||||
$('#dropdown-notifications').append('<li class="dropdown-header"><?php echo Yii::t('base', 'Notifications'); ?></li><li id="loader_notifications"><div class="loader"></div></li>');
|
||||
$('#dropdown-notifications').append('<li class="dropdown-header"><div class="arrow"></div><?php echo Yii::t('base', 'Notifications'); ?></li><li id="loader_notifications"><div class="loader"></div></li>');
|
||||
|
||||
// load newest notifications
|
||||
$.ajax({
|
||||
|
Loading…
x
Reference in New Issue
Block a user