2019-08-08 20:01:03 +00:00
|
|
|
@import '../../minerva.less/minerva.variables.less';
|
2017-12-13 01:25:10 +00:00
|
|
|
|
|
|
|
.user-button {
|
|
|
|
// Make sure count is positioned correctly in relation to bell icon
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
// can't use display:none class as icons must have a label to retain height
|
|
|
|
.label {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.loading span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-03 08:15:44 +00:00
|
|
|
// FIXME: Belongs in Echo extension.
|
2017-12-13 01:25:10 +00:00
|
|
|
.notification-count {
|
2019-09-11 12:19:47 +00:00
|
|
|
display: inline-block;
|
2017-12-13 01:25:10 +00:00
|
|
|
margin: auto;
|
|
|
|
background: @notificationBackgroundRead;
|
|
|
|
color: @notificationColorRead;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
.circle {
|
|
|
|
border-radius: 50%;
|
2019-09-13 20:29:14 +00:00
|
|
|
border: 2px solid @notificationColorRead;
|
2017-12-13 01:25:10 +00:00
|
|
|
margin: auto;
|
2019-09-13 20:29:14 +00:00
|
|
|
height: @icon-size-md;
|
|
|
|
width: @icon-size-md;
|
2017-12-13 01:25:10 +00:00
|
|
|
|
|
|
|
/* stylelint-disable declaration-block-no-duplicate-properties */
|
|
|
|
// Center the text number inside the circle
|
|
|
|
display: block; // Fallback for old iOS
|
|
|
|
text-align: center; // Fallback for old iOS
|
|
|
|
display: -webkit-box;
|
|
|
|
display: flex;
|
|
|
|
-webkit-box-align: center;
|
|
|
|
align-items: center;
|
|
|
|
-webkit-box-pack: center;
|
|
|
|
justify-content: center;
|
2020-02-28 20:28:59 +00:00
|
|
|
/* stylelint-enable declaration-block-no-duplicate-properties */
|
2017-12-13 01:25:10 +00:00
|
|
|
|
|
|
|
span {
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 13px;
|
|
|
|
line-height: 1;
|
|
|
|
letter-spacing: -0.5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-13 01:58:09 +00:00
|
|
|
&.notification-count {
|
|
|
|
padding: @icon-padding-md;
|
|
|
|
}
|
|
|
|
|
2017-12-13 01:25:10 +00:00
|
|
|
&.notification-unseen {
|
|
|
|
color: @notificationColorUnread;
|
|
|
|
|
|
|
|
.circle {
|
|
|
|
background: @notificationBackgroundUnread;
|
|
|
|
border-color: @notificationBackgroundUnread;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// FIXME: There must be a better way of doing this
|
|
|
|
&.max {
|
|
|
|
right: 0.2em;
|
|
|
|
width: 2em;
|
|
|
|
height: 2em;
|
|
|
|
line-height: 2em;
|
|
|
|
font-size: 0.7em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|