2 * Copyright 2015 Google Inc. All Rights Reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 @import "../variables";
23 padding: $list-border 0;
28 @include typo-subhead();
31 min-height: $list-min-height;
32 box-sizing: border-box;
36 padding: $list-min-padding;
38 color: $list-main-text-text-color;
41 & .mdl-list__item-primary-content {
44 text-decoration: none;
45 box-sizing: border-box;
49 & .mdl-list__item-icon {
50 margin-right: $list-icon-text-left-distance - $list-icon-size - $list-min-padding;
53 & .mdl-list__item-avatar {
54 margin-right: $list-avatar-text-left-distance - $list-avatar-size - $list-min-padding;
58 & .mdl-list__item-secondary-content {
61 align-items: flex-end;
62 margin-left: $list-min-padding;
64 & .mdl-list__item-secondary-action label { display: inline; }
65 & .mdl-list__item-secondary-info {
66 @include typo-caption();
67 color: $list-supporting-text-text-color;
69 & .mdl-list__item-sub-header {
70 padding: 0 0 0 $list-min-padding;
76 .mdl-list__item-icon.material-icons {
77 height: $list-icon-size;
78 width: $list-icon-size;
79 font-size: $list-icon-size;
80 box-sizing: border-box;
81 color: $list-icon-color;
84 .mdl-list__item-avatar,
85 .mdl-list__item-avatar.material-icons {
86 height: $list-avatar-size;
87 width: $list-avatar-size;
88 box-sizing: border-box;
90 // Set a background colour in case the user doesn't provide an image.
91 background-color: $list-icon-color;
92 // Set a font size and color in case the user provides a Material Icon.
93 font-size: $list-avatar-size;
94 color: $list-avatar-color;
97 .mdl-list__item--two-line {
98 height: $list-two-line-height;
100 & .mdl-list__item-primary-content {
101 height: $list-two-line-height - $list-min-padding - $list-bottom-padding;
105 & .mdl-list__item-avatar{
109 & .mdl-list__item-icon {
111 // Icons are aligned to center of text in a two line list.
113 ($list-two-line-height - $list-min-padding - $list-bottom-padding -
114 $list-icon-size) / 2;
117 & .mdl-list__item-secondary-content {
118 height: $list-two-line-height - $list-min-padding - $list-bottom-padding;
121 & .mdl-list__item-sub-title {
122 @include typo-body-1();
124 color: $list-supporting-text-text-color;
131 .mdl-list__item--three-line {
132 height: $list-three-line-height;
134 & .mdl-list__item-primary-content {
135 height: $list-three-line-height - $list-min-padding - $list-bottom-padding;
139 & .mdl-list__item-avatar,
140 & .mdl-list__item-icon {
145 & .mdl-list__item-secondary-content {
146 height: $list-three-line-height - $list-min-padding - $list-bottom-padding;
149 & .mdl-list__item-text-body {
150 @include typo-body-1();
152 height: $list-three-line-height - $list-min-padding - $list-bottom-padding;
153 color: $list-supporting-text-text-color;