Vulcan/packages/telescope-theme-hubble/lib/client/sass/modules/_notifications.scss

80 lines
1.3 KiB
SCSS
Raw Normal View History

2012-10-04 13:30:57 +09:00
.notifications{
2014-07-10 11:45:34 +09:00
@include small{
margin-bottom: 10px;
&.no-notifications{
display: none;
}
.read{
display: none;
}
}
@include medium-large{
position:fixed;
height:100%;
width:260px;
top:0px;
left:-260px;
}
background:#f3f3f3;
2012-10-05 09:42:13 +09:00
@include single-transition(ease-out, left, 400ms, 0ms);
2014-07-09 09:46:24 +09:00
z-index: 1000;
.mark-as-read{
display:block;
text-align:center;
padding:10px;
font-size:13px;
border-bottom:1px solid $lighter-grey;
background:#f3f3f3;
&:link, &:visited{
color:$blue;
}
}
2012-10-04 13:30:57 +09:00
ul{
height:100%;
overflow:auto;
2012-10-04 13:30:57 +09:00
li{
padding:10px;
border-bottom:1px solid $lighter-grey;
font-size:13px;
background:white;
2012-10-04 13:30:57 +09:00
.notification-timestamp{
color:$light-text;
font-size:12px;
}
&.read{
color:$light-text;
background:#f3f3f3;
2012-10-04 13:30:57 +09:00
}
}
}
2012-10-04 17:25:10 +09:00
.notifications-open &{
left:0px;
@include box-shadow(1px 0px 1px black(0.15));
2012-10-04 17:25:10 +09:00
}
2014-07-09 09:46:24 +09:00
}
.notifications-toggle{
2014-07-10 11:45:34 +09:00
@include small{
display: none;
}
2014-07-09 09:46:24 +09:00
display:block;
position:absolute;
left:260px;
top:80px;
white-space:nowrap;
background:white;
@include border-radius(0px 3px 3px 0px);
@include box-shadow(0 1px 1px black(0.15));
padding:3px 10px;
font-size:13px;
2014-07-10 11:45:34 +09:00
z-index: 10;
2014-07-09 09:46:24 +09:00
&.no-notifications{
background:white(0.3);
@include box-shadow(none);
color:$light-text;
}
.notifications-open &{
background: white;
color: $text;
}
2012-10-04 13:30:57 +09:00
}