You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devdocs/assets/stylesheets/components/_notif.scss

125 lines
2.2 KiB

._notif, %notif {
11 years ago
position: absolute;
z-index: 2;
top: 1rem;
right: 1rem;
width: 25rem;
max-width: 90%;
padding: .625rem 1rem;
11 years ago
font-size: .75rem;
10 years ago
color: $notifColor;
background: $notifBackground;
11 years ago
border-radius: .25rem;
transition: opacity .2s;
opacity: 0;
cursor: default;
@extend %border-box, %user-select-none;
&._in { opacity: 1; }
}
._notif-title {
margin: 0 0 .5rem;
11 years ago
line-height: 1rem;
font-size: inherit;
}
._notif-text { margin-bottom: 0; }
._notif-text + ._notif-text { margin-top: .25rem; }
._notif-info {
float: right;
color: $textColorLight;
}
11 years ago
._notif-link,
._notif-link:hover {
color: inherit;
text-decoration: underline;
}
._notif-close {
position: absolute;
top: 0;
right: 0;
padding: .625rem;
opacity: .9;
cursor: pointer;
&:before { @extend %icon, %icon-close-white; }
}
._notif-content {
max-height: calc(50vh - 4.5rem);
margin: 0 -.25rem 0 0;
padding-right: .75rem;
11 years ago
overflow-y: auto;
&::-webkit-scrollbar { -webkit-appearance: none; width: 10px; }
&::-webkit-scrollbar-button { display: none; }
&::-webkit-scrollbar-track { background: $notifBackground; }
&::-webkit-scrollbar-thumb {
min-height: 2rem;
background: $scrollbarColor;
background-clip: padding-box;
border: 3px solid $notifBackground;
border-radius: 5px;
&:active {
background-color: $scrollbarColorHover;
border-width: 2px;
}
}
11 years ago
> ._notif-title {
10 years ago
margin-bottom: .5rem;
11 years ago
text-align: center;
}
}
11 years ago
._notif-news {
11 years ago
> ._news-row {
line-height: 1.125rem;
font-size: .6875rem;
10 years ago
color: $notifColorLight;
10 years ago
margin-bottom: .25rem;
11 years ago
+ ._news-row { margin-top: .625rem; }
11 years ago
}
._news-title {
display: block;
margin-bottom: .25rem;
font-size: .75rem;
font-weight: normal;
color: white;
}
._news-date {
float: right;
margin-left: 1rem;
font-weight: bold;
}
code {
display: inline-block;
vertical-align: baseline;
line-height: 0;
margin: 0 .25rem;
11 years ago
padding: 0;
color: inherit;
background: none;
border: 0;
}
}
._notif-list {
padding-left: 1rem;
}
._notif-tip {
color: $textColor;
background: rgba($tipBackground, .95);
border: 1px solid $tipBorder;
}