sogo/UI/WebServerResources/scss/components/autoScrollList/autoScrollList.scss

83 lines
1.9 KiB
SCSS
Raw Normal View History

2015-04-20 17:56:30 +02:00
/// autoScrollList.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
2015-02-03 16:52:27 +01:00
@import 'extends';
// The only selector for vs-repeat lists is this id, we use attributes selector to
// avoid overspecifying
// todo: create new classes and refactor templates markup
// ----------------------------------------------------------------------------
2015-03-28 02:13:39 +01:00
.vs-repeat-repeated-element {
width: 100%;
}
[id='messagesList'],
[id='contactsList'] {
2015-02-03 22:03:36 +01:00
border-top: 44px solid transparent; // padding for the header.subheader,
border-bottom: 2px solid transparent; //close to a hack
2015-04-20 17:56:30 +02:00
md-list-item {
// dirty fix for vs-repeat damages
position: absolute;
}
2015-02-03 22:03:36 +01:00
md-list-item {
transition: background-color $swift-ease-in-duration $swift-ease-in-timing-function,
color 0.12s linear;
&:hover {
background-color: sg-color($sogoPaper, 300);
color: sg-color($sogoBlue, 800);
cursor: pointer;
}
&:active {
color: sg-color($sogoBlue, 800);
}
&:focus,
&.sg-active {
background-color: sg-color($sogoBlue, 100);
}
2015-02-03 16:52:27 +01:00
}
}
.sg {
&-tile-content {
align-items: baseline;
flex-direction: row;
flex-wrap: wrap;
2015-04-02 16:07:57 +02:00
flex: 1;
justify-content: space-between;
p {
margin: $list-p-margin;
font-size: sg-size(body);
}
.msg-date {
float: right;
font-size: sg-size(body);
font-weight: $sg-font-light;
line-height: $sg-line-height-2;
margin-left: 1em;
}
.#{$md}-subhead-multi,
.#{$md}-subhead-solo,
.#{$md}-body-multi {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.#{$md}-subhead-multi {
@extend .#{$md}-body-1;
font-size: initial;
}
.#{$md}-body-multi {
@extend .#{$md}-caption;
}
2015-02-03 16:52:27 +01:00
}
2015-02-03 22:03:36 +01:00
}
.sg-avatar {
2015-04-23 17:02:11 +02:00
@extend .md-tile-left-card;
margin-right: 0;
margin-left: 0;
}
.sg-list-avatar {
@extend .md-tile-left-list;
margin-right: 0;
2015-02-24 03:33:47 +01:00
margin-left: 0;
2015-04-10 21:37:00 +02:00
}