liquid_feedback_frontend

diff style/mdl/data-table/_data-table.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/data-table/_data-table.scss	Sun Jul 15 14:07:29 2018 +0200
     1.3 @@ -0,0 +1,120 @@
     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 +.mdl-data-table {
    1.24 +  position: relative;
    1.25 +  border: $data-table-dividers;
    1.26 +  border-collapse: collapse;
    1.27 +  white-space: nowrap;
    1.28 +  font-size: $data-table-font-size;
    1.29 +  background-color: unquote("rgb(#{$color-white})");
    1.30 +
    1.31 +  thead {
    1.32 +    padding-bottom: 3px;
    1.33 +
    1.34 +    .mdl-data-table__select {
    1.35 +      margin-top: 0;
    1.36 +    }
    1.37 +  }
    1.38 +
    1.39 +  tbody {
    1.40 +    tr {
    1.41 +      position: relative;
    1.42 +      height: $data-table-row-height;
    1.43 +      @include material-animation-default(0.28s);
    1.44 +      transition-property: background-color;
    1.45 +
    1.46 +      &.is-selected {
    1.47 +        background-color: $data-table-selection-color;
    1.48 +      }
    1.49 +
    1.50 +      &:hover {
    1.51 +        background-color: $data-table-hover-color;
    1.52 +      }
    1.53 +    }
    1.54 +  }
    1.55 +
    1.56 +  td, th {
    1.57 +    padding: 0 $data-table-column-padding 12px $data-table-column-padding;
    1.58 +    text-align: right;
    1.59 +
    1.60 +    &:first-of-type {
    1.61 +      padding-left: 24px;
    1.62 +    }
    1.63 +
    1.64 +    &:last-of-type {
    1.65 +      padding-right: 24px;
    1.66 +    }
    1.67 +  }
    1.68 +
    1.69 +  td {
    1.70 +    position: relative;
    1.71 +    vertical-align: middle;
    1.72 +    height: $data-table-row-height;
    1.73 +    border-top: $data-table-dividers;
    1.74 +    border-bottom: $data-table-dividers;
    1.75 +    padding-top: $data-table-cell-top;
    1.76 +    box-sizing: border-box;
    1.77 +
    1.78 +    .mdl-data-table__select {
    1.79 +      vertical-align: middle;
    1.80 +    }
    1.81 +  }
    1.82 +
    1.83 +  th {
    1.84 +    position: relative;
    1.85 +    vertical-align: bottom;
    1.86 +    text-overflow: ellipsis;
    1.87 +    @include typo-body-2();
    1.88 +    height: $data-table-row-height;
    1.89 +    font-size: $data-table-header-font-size;
    1.90 +    color: $data-table-header-color;
    1.91 +    padding-bottom: 8px;
    1.92 +    box-sizing: border-box;
    1.93 +
    1.94 +    &.mdl-data-table__header--sorted-ascending,
    1.95 +    &.mdl-data-table__header--sorted-descending {
    1.96 +      color: $data-table-header-sorted-color;
    1.97 +      &:before {
    1.98 +        @include typo-icon;
    1.99 +        font-size: $data-table-header-sort-icon-size;
   1.100 +        content: "\e5d8";
   1.101 +        margin-right: 5px;
   1.102 +        vertical-align: sub;
   1.103 +      }
   1.104 +      &:hover {
   1.105 +        cursor: pointer;
   1.106 +        &:before {
   1.107 +          color: $data-table-header-sorted-icon-hover-color;
   1.108 +        }
   1.109 +      }
   1.110 +    }
   1.111 +    &.mdl-data-table__header--sorted-descending:before {
   1.112 +      content: "\e5db";
   1.113 +    }
   1.114 +  }
   1.115 +}
   1.116 +
   1.117 +.mdl-data-table__select {
   1.118 +  width: 16px;
   1.119 +}
   1.120 +
   1.121 +.mdl-data-table__cell--non-numeric.mdl-data-table__cell--non-numeric {
   1.122 +  text-align: left;
   1.123 +}

Impressum / About Us