(css) Improve contacts and messages lists

This commit is contained in:
Francis Lachapelle
2015-05-08 12:06:52 -04:00
parent 395f3585ca
commit 499e66ffe9
10 changed files with 94 additions and 111 deletions

View File

@@ -18,12 +18,9 @@
position: absolute;
}
// In use in MAILER messages list but re-usable
// --------------------------------------------
md-item-content {
padding: 0 0 0 $mg;
margin: $mg 0;
transition: all 0.20s $swift-ease-in-timing-function 0.12s;
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);
@@ -33,62 +30,44 @@
color: sg-color($sogoBlue, 800);
}
&:focus,
&._selected {
&.sg-active {
background-color: sg-color($sogoBlue, 100);
}
}
.sg-md-subhead-solo {
margin: 0;
}
}
.sg {
&-tile-content {
//@extend .md-tile-content; content of :
align-items: baseline;
flex-direction: row;
flex-wrap: wrap;
flex: 1;
padding: $baseline-grid * 2;
text-overflow: ellipsis;
.name,
.contact-email {
font-weight: $sg-font-light;
margin-top: 0;
margin-bottom: 0;
}
.subject,
.contact-name {
font-weight: $sg-font-medium;
// dirty fix for vs-repeat damages
max-width: 75%;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
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;
}
}
}
.sg-tile-content {
padding: 0 0 0 $layout-gutter-width;
.sg-md-subhead-multi,
.sg-md-subhead-solo {
margin: 0;
}
.sg-md-body-multi {
margin: 0;
}
a {
display: flex;
flex-direction: row;
align-items: baseline;
justify-content: space-between;
flex-wrap: wrap;
}
}
.sg-avatar {

View File

@@ -8,8 +8,8 @@
// Buttons for the sidenav folder tree
// ------------------------------------
sg-folder-tree .md-button,
md-sidenav md-list .md-button {
md-sidenav md-list .md-button,
.view-list md-list .md-button {
// dirty fix to squash the theme style
background-color: transparent !important;
padding: 0 $mg;
@@ -20,6 +20,11 @@ md-sidenav md-list .md-button {
-webkit-font-smoothing: auto;
}
.view-list md-list .md-button {
// Gain some space in lists
padding: 0;
}
.md-sidenav-left .md-button [class^="md-icon"] {
//margin-right: 1em;
}

View File

@@ -34,7 +34,7 @@ md-list {
}
.sg-inline-list-icon-label {
text-transform: uppercase;
text-transform: uppercase;
}
}
@@ -59,8 +59,8 @@ md-list {
padding: $layout-gutter-width;
width: $sg-md-grid-pitch + $baseline-grid;
height: $sg-md-grid-pitch + $baseline-grid;
line-height: $sg-md-grid-pitch + $baseline-grid;
background-clip: content-box;
margin-left: -$layout-gutter-width;
}
.md-tile-right {
margin-right: -$layout-gutter-width;