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

134 lines
2.3 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;
9 years ago
border: $notifBorder;
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: $notifColorLight;
}
11 years ago
._notif-link,
._notif-link:hover {
color: inherit;
text-decoration: underline;
cursor: pointer;
11 years ago
}
._notif-close {
position: absolute;
top: 0;
right: 0;
9 years ago
width: 2.25rem;
height: 2.25rem;
11 years ago
opacity: .9;
9 years ago
@extend %hide-text;
11 years ago
9 years ago
&:before {
position: absolute;
top: .625rem;
left: .625rem;
@extend %icon, %icon-close-white;
}
11 years ago
}
._notif-content {
max-height: calc(50vh - 4.5rem);
margin: 0 -.25rem 0 0;
padding-right: .75rem;
11 years ago
overflow-y: auto;
&::-webkit-scrollbar { width: 10px !important; }
&::-webkit-scrollbar-track {
background: $notifBackground !important;
border: 0 !important;
border-radius: 5px !important;
}
&::-webkit-scrollbar-thumb {
border: 3px solid $notifBackground !important;
&:hover, &:active { border-width: 2px !important; }
}
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: $boldFontWeight;
11 years ago
}
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 {
margin: 0;
padding-left: 1rem;
}
._notif-tip {
color: $textColor;
9 years ago
background: $tipBackground;
border: $tipBorder;
._notif-info { color: $textColorLight; }
}