liquid_feedback_frontend

diff style/mdl/list/_list.scss @ 1309:32cc544d5a5b

Cumulative patch for upcoming frontend version 4
author bsw/jbe
date Sun Jul 15 14:07:29 2018 +0200 (2018-07-15)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/style/mdl/list/_list.scss	Sun Jul 15 14:07:29 2018 +0200
     1.3 @@ -0,0 +1,157 @@
     1.4 +/**
     1.5 + * Copyright 2015 Google Inc. All Rights Reserved.
     1.6 + *
     1.7 + * Licensed under the Apache License, Version 2.0 (the "License");
     1.8 + * you may not use this file except in compliance with the License.
     1.9 + * You may obtain a copy of the License at
    1.10 + *
    1.11 + *      http://www.apache.org/licenses/LICENSE-2.0
    1.12 + *
    1.13 + * Unless required by applicable law or agreed to in writing, software
    1.14 + * distributed under the License is distributed on an "AS IS" BASIS,
    1.15 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    1.16 + * See the License for the specific language governing permissions and
    1.17 + * limitations under the License.
    1.18 + */
    1.19 +
    1.20 +@import "../variables";
    1.21 +@import "../mixins";
    1.22 +
    1.23 +
    1.24 +.mdl-list {
    1.25 +  display: block;
    1.26 +  padding: $list-border 0;
    1.27 +  list-style: none;
    1.28 +}
    1.29 +
    1.30 +.mdl-list__item {
    1.31 +  @include typo-subhead();
    1.32 +  line-height: 1;
    1.33 +  display: flex;
    1.34 +  min-height: $list-min-height;
    1.35 +  box-sizing: border-box;
    1.36 +  flex-direction: row;
    1.37 +  flex-wrap: nowrap;
    1.38 +  align-items: center;
    1.39 +  padding: $list-min-padding;
    1.40 +  cursor: default;
    1.41 +  color: $list-main-text-text-color;
    1.42 +  overflow: hidden;
    1.43 +
    1.44 +  & .mdl-list__item-primary-content {
    1.45 +    order: 0;
    1.46 +    flex-grow: 2;
    1.47 +    text-decoration: none;
    1.48 +    box-sizing: border-box;
    1.49 +    display: flex;
    1.50 +    align-items: center;
    1.51 +
    1.52 +    & .mdl-list__item-icon {
    1.53 +      margin-right: $list-icon-text-left-distance - $list-icon-size - $list-min-padding;
    1.54 +    }
    1.55 +
    1.56 +    & .mdl-list__item-avatar {
    1.57 +      margin-right: $list-avatar-text-left-distance - $list-avatar-size - $list-min-padding;
    1.58 +    }
    1.59 +  }
    1.60 +
    1.61 +  & .mdl-list__item-secondary-content {
    1.62 +    display: flex;
    1.63 +    flex-flow: column;
    1.64 +    align-items: flex-end;
    1.65 +    margin-left: $list-min-padding;
    1.66 +
    1.67 +    & .mdl-list__item-secondary-action label { display: inline; }
    1.68 +    & .mdl-list__item-secondary-info {
    1.69 +      @include typo-caption();
    1.70 +      color: $list-supporting-text-text-color;
    1.71 +    }
    1.72 +    & .mdl-list__item-sub-header {
    1.73 +      padding: 0 0 0 $list-min-padding;
    1.74 +    }
    1.75 +  }
    1.76 +}
    1.77 +
    1.78 +.mdl-list__item-icon,
    1.79 +.mdl-list__item-icon.material-icons {
    1.80 +  height: $list-icon-size;
    1.81 +  width: $list-icon-size;
    1.82 +  font-size: $list-icon-size;
    1.83 +  box-sizing: border-box;
    1.84 +  color: $list-icon-color;
    1.85 +}
    1.86 +
    1.87 +.mdl-list__item-avatar,
    1.88 +.mdl-list__item-avatar.material-icons {
    1.89 +  height: $list-avatar-size;
    1.90 +  width: $list-avatar-size;
    1.91 +  box-sizing: border-box;
    1.92 +  border-radius: 50%;
    1.93 +  // Set a background colour in case the user doesn't provide an image.
    1.94 +  background-color: $list-icon-color;
    1.95 +  // Set a font size and color in case the user provides a Material Icon.
    1.96 +  font-size: $list-avatar-size;
    1.97 +  color: $list-avatar-color;
    1.98 +}
    1.99 +
   1.100 +.mdl-list__item--two-line {
   1.101 +  height: $list-two-line-height;
   1.102 +
   1.103 +  & .mdl-list__item-primary-content {
   1.104 +    height: $list-two-line-height - $list-min-padding - $list-bottom-padding;
   1.105 +    line-height: 20px;
   1.106 +    display: block;
   1.107 +
   1.108 +    & .mdl-list__item-avatar{
   1.109 +      float: left;
   1.110 +    }
   1.111 +
   1.112 +    & .mdl-list__item-icon {
   1.113 +      float: left;
   1.114 +      // Icons are aligned to center of text in a two line list.
   1.115 +      margin-top:
   1.116 +        ($list-two-line-height - $list-min-padding - $list-bottom-padding -
   1.117 +         $list-icon-size) / 2;
   1.118 +    }
   1.119 +
   1.120 +    & .mdl-list__item-secondary-content {
   1.121 +      height: $list-two-line-height - $list-min-padding - $list-bottom-padding;
   1.122 +    }
   1.123 +
   1.124 +    & .mdl-list__item-sub-title {
   1.125 +      @include typo-body-1();
   1.126 +      line-height: 18px;
   1.127 +      color: $list-supporting-text-text-color;
   1.128 +      display: block;
   1.129 +      padding: 0;
   1.130 +    }
   1.131 +  }
   1.132 +}
   1.133 +
   1.134 +.mdl-list__item--three-line {
   1.135 +  height: $list-three-line-height;
   1.136 +
   1.137 +  & .mdl-list__item-primary-content {
   1.138 +    height: $list-three-line-height - $list-min-padding - $list-bottom-padding;
   1.139 +    line-height: 20px;
   1.140 +    display: block;
   1.141 +
   1.142 +    & .mdl-list__item-avatar,
   1.143 +    & .mdl-list__item-icon {
   1.144 +      float: left;
   1.145 +    }
   1.146 +  }
   1.147 +
   1.148 +  & .mdl-list__item-secondary-content {
   1.149 +    height: $list-three-line-height - $list-min-padding - $list-bottom-padding;
   1.150 +  }
   1.151 +
   1.152 +  & .mdl-list__item-text-body {
   1.153 +    @include typo-body-1();
   1.154 +    line-height: 18px;
   1.155 +    height: $list-three-line-height - $list-min-padding - $list-bottom-padding;
   1.156 +    color: $list-supporting-text-text-color;
   1.157 +    display: block;
   1.158 +    padding: 0;
   1.159 +  }
   1.160 +}

Impressum / About Us