Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / third_party / ot-br-posix / repo / third_party / mdl / repo / src / list / _list.scss
1 /**
2  * Copyright 2015 Google Inc. All Rights Reserved.
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 @import "../variables";
18 @import "../mixins";
19
20
21 .mdl-list {
22   display: block;
23   padding: $list-border 0;
24   list-style: none;
25 }
26
27 .mdl-list__item {
28   @include typo-subhead();
29   line-height: 1;
30   display: flex;
31   min-height: $list-min-height;
32   box-sizing: border-box;
33   flex-direction: row;
34   flex-wrap: nowrap;
35   align-items: center;
36   padding: $list-min-padding;
37   cursor: default;
38   color: $list-main-text-text-color;
39   overflow: hidden;
40
41   & .mdl-list__item-primary-content {
42     order: 0;
43     flex-grow: 2;
44     text-decoration: none;
45     box-sizing: border-box;
46     display: flex;
47     align-items: center;
48
49     & .mdl-list__item-icon {
50       margin-right: $list-icon-text-left-distance - $list-icon-size - $list-min-padding;
51     }
52
53     & .mdl-list__item-avatar {
54       margin-right: $list-avatar-text-left-distance - $list-avatar-size - $list-min-padding;
55     }
56   }
57
58   & .mdl-list__item-secondary-content {
59     display: flex;
60     flex-flow: column;
61     align-items: flex-end;
62     margin-left: $list-min-padding;
63
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;
68     }
69     & .mdl-list__item-sub-header {
70       padding: 0 0 0 $list-min-padding;
71     }
72   }
73 }
74
75 .mdl-list__item-icon,
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;
82 }
83
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;
89   border-radius: 50%;
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;
95 }
96
97 .mdl-list__item--two-line {
98   height: $list-two-line-height;
99
100   & .mdl-list__item-primary-content {
101     height: $list-two-line-height - $list-min-padding - $list-bottom-padding;
102     line-height: 20px;
103     display: block;
104
105     & .mdl-list__item-avatar{
106       float: left;
107     }
108
109     & .mdl-list__item-icon {
110       float: left;
111       // Icons are aligned to center of text in a two line list.
112       margin-top:
113         ($list-two-line-height - $list-min-padding - $list-bottom-padding -
114          $list-icon-size) / 2;
115     }
116
117     & .mdl-list__item-secondary-content {
118       height: $list-two-line-height - $list-min-padding - $list-bottom-padding;
119     }
120
121     & .mdl-list__item-sub-title {
122       @include typo-body-1();
123       line-height: 18px;
124       color: $list-supporting-text-text-color;
125       display: block;
126       padding: 0;
127     }
128   }
129 }
130
131 .mdl-list__item--three-line {
132   height: $list-three-line-height;
133
134   & .mdl-list__item-primary-content {
135     height: $list-three-line-height - $list-min-padding - $list-bottom-padding;
136     line-height: 20px;
137     display: block;
138
139     & .mdl-list__item-avatar,
140     & .mdl-list__item-icon {
141       float: left;
142     }
143   }
144
145   & .mdl-list__item-secondary-content {
146     height: $list-three-line-height - $list-min-padding - $list-bottom-padding;
147   }
148
149   & .mdl-list__item-text-body {
150     @include typo-body-1();
151     line-height: 18px;
152     height: $list-three-line-height - $list-min-padding - $list-bottom-padding;
153     color: $list-supporting-text-text-color;
154     display: block;
155     padding: 0;
156   }
157 }