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

85 lines
1.5 KiB
SCSS
Raw Normal View History

2014-07-11 10:18:09 +09:00
$notifications-width: 260px;
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%;
2014-07-11 10:18:09 +09:00
width:$notifications-width;
2014-07-10 11:45:34 +09:00
top:0px;
2014-07-11 10:18:09 +09:00
left:-$notifications-width;
2014-07-10 11:45:34 +09:00
}
background:#f3f3f3;
2014-07-11 10:18:09 +09:00
@include single-transition(left, 400ms, ease-out, 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-11 10:18:09 +09:00
@include single-transition(left, 400ms, ease-out, 0ms);
2014-07-10 11:45:34 +09:00
@include small{
display: none;
}
2014-07-09 09:46:24 +09:00
display:block;
position:absolute;
2014-07-11 10:18:09 +09:00
left:0px;
2014-07-09 09:46:24 +09:00
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-08-04 09:47:10 +09:00
z-index: 20;
2014-07-09 09:46:24 +09:00
&.no-notifications{
background:white(0.3);
@include box-shadow(none);
color:$light-text;
}
.notifications-open &{
2014-07-11 10:18:09 +09:00
@include box-shadow(0 1px 1px black(0.15));
left: $notifications-width;
2014-07-09 09:46:24 +09:00
background: white;
color: $text;
}
2012-10-04 13:30:57 +09:00
}