chrome.scss 2.9 KB
Newer Older
1 2 3 4 5 6
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
B
bryk 已提交
7
//     http://www.apache.org/licenses/LICENSE-2.0
8 9 10 11 12 13 14
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

15
@import '../variables';
16

17 18
.kd-toolbar-logo {
  height: 42px;
B
bryk 已提交
19
  margin-right: 1em;
B
bryk 已提交
20
  width: 42px;
21
}
B
bryk 已提交
22

D
Denis Poisson 已提交
23 24 25 26
.kd-middle-ellipsised-link {
  display: block;
}

B
bryk 已提交
27
.kd-toolbar {
28
  box-shadow: $whiteframe-shadow-1dp;
29 30
}

31 32 33
chrome {
  display: block;
  overflow: hidden;
B
bryk 已提交
34
}
B
bryk 已提交
35

36 37
body,
.kd-app-content {
38
  background-color: $body;
B
bryk 已提交
39
}
40 41

a {
B
bryk 已提交
42
  color: $primary;
43
  text-decoration: inherit;
B
bryk 已提交
44 45 46 47

  &:visited {
    color: $primary;
  }
48
}
49

50 51 52 53 54 55
.md-toolbar-tools {
  a {
    color: $primary;
  }
}

P
Piotr Bryk 已提交
56 57 58 59 60 61 62 63
.kd-success {
  color: $success-color;
}

.kd-error {
  color: $error-color;
}

M
Marcin Maciaszczyk 已提交
64
.kd-toolbar-tools {
65
  margin: auto;
66 67 68
}

.kd-app-content {
69
  background-color: $body;
70 71
  position: relative;
}
B
bryk 已提交
72

B
bryk 已提交
73
.kd-center-fixed {
B
bryk 已提交
74 75 76 77 78 79 80 81 82 83
  align-items: center;
  bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
}
B
bryk 已提交
84 85 86 87 88 89 90

.kd-text-icon {
  font-size: inherit;
  height: inherit;
  vertical-align: middle;
}

91
.kd-comma-separated-item {
92
  &:not(:last-child) {
93
    &:after {
94
      content: ',';
95 96
    }
  }
97 98

  display: inline-block;
99
}
100 101 102 103 104

// Disables animation on md-tab switch. Avoids some flickering and is simpler.
[role='tabpanel'] {
  transition: none;
}
105 106 107 108

// Responsive table style.
@media only screen and (max-width: $layout-breakpoint-xs) {
  .kd-responsive-table {
109
    table-layout: fixed;
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
    width: 100%;

    // Switches table to blocks.
    thead,
    tbody,
    tr,
    th {
      display: block;
    }

    // Removes table headers.
    thead {
      tr,
      th {
        display: none;
      }
    }

    // Adds border between records.
    tr {
      &:not(:last-child) {
        border-bottom: $baseline-grid / 2 solid $border;
      }
    }

    // Row data style.
    td {
M
Marcin Maciaszczyk 已提交
137 138
      align-items: center;
      display: flex;
139
      height: auto;
M
Marcin Maciaszczyk 已提交
140
      min-height: $table-cell-height - 2 * $baseline-grid;
141
      padding: $baseline-grid $baseline-grid $baseline-grid 12 * $baseline-grid;
142 143
      position: relative;

M
Marcin Maciaszczyk 已提交
144 145 146 147 148
      // Adds border between rows.
      &:not(:last-child) {
        border-bottom: 1px solid $border;
      }

149 150
      // Row title style.
      &::before {
M
Marcin Maciaszczyk 已提交
151 152
        align-items: center;
        bottom: 0;
153
        content: attr(kd-responsive-header);
M
Marcin Maciaszczyk 已提交
154
        display: flex;
155 156 157 158
        font-weight: $bold-font-weight;
        left: $baseline-grid * 2;
        padding-right: $baseline-grid * 2;
        position: absolute;
M
Marcin Maciaszczyk 已提交
159
        top: 0;
160 161 162 163 164
        word-wrap: break-word;
      }
    }
  }
}