replicasetdetail.scss 3.0 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
// 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
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// 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

B
bryk 已提交
17
$replicasetdetails-sidebar-bg: #fafafa;
18
$replicasetdetails-sidebar-width: 315px;
19

20 21 22
$table-cell-height: 6 * $baseline-grid;
$table-cell-height-half: $table-cell-height / 2;

23 24 25 26
.kd-replicasetdetail-app-name {
  color: $foreground-2;
  font-weight: $regular-font-weight;
}
27 28 29

.kd-replicasetdetail-sidebar {
  background-color: $replicasetdetails-sidebar-bg;
30
  max-width: $replicasetdetails-sidebar-width + 10 * $baseline-grid;
31
  min-width: $replicasetdetails-sidebar-width;
32 33
}

34 35 36 37 38
.kd-replicasetdetail-sidebar-item {
  padding-left: 2 * $baseline-grid;
  padding-right: $baseline-grid;  
}

39 40 41 42 43
.kd-replicasetdetail-table {
  width: 100%;
}

.kd-replicasetdetail-sidebar-header {
44
  height: $table-cell-height;
45 46
}

47 48
.kd-replicasetdetail-sidebar-header-wrapper {
  border-bottom: 1px solid $foreground-4;
49 50 51
}

.kd-replicasetdetail-sidebar-title {
52
  font-size: $subhead-font-size-base;
53 54
  font-weight: $bold-font-weight;
  padding: $baseline-grid 0;
55 56 57
}

.kd-replicasetdetail-sidebar-line {
58 59 60
  color: $foreground-2;
  font-size: $body-font-size-base;
  padding-bottom: $baseline-grid;
61 62 63
}

.kd-replicasetdetail-sidebar-subline {
64 65 66
  color: $foreground-1;
  font-size: $body-font-size-base;
  overflow: hidden;
67
  padding-bottom: $baseline-grid;
68
  text-overflow: ellipsis;
69 70
}

M
Marcin Maciaszczyk 已提交
71
.kd-replicasetdetail-warning-icon {
72
  color: $warning;
73 74
  font-size: $table-cell-height-half;
  padding: 0 $baseline-grid;
B
bryk 已提交
75 76 77
  vertical-align: middle;
}

78
.kd-replicasetdetail-options {
79
  margin: 2 * $baseline-grid;
80 81 82
}

.kd-replicasetdetail-sidebar-info {
83 84 85 86 87 88
  // 6px needed to offset for md-button padding.
  padding-left: $baseline-grid + 6px;
}

.kd-replicasetdetail-sidebar-actions {
  padding-top: $baseline-grid;
89 90 91
}

.kd-replicasetdetail-option-picker {
92 93
  padding-right: 2 * $baseline-grid;
  width: 15 * $baseline-grid;
94 95
}

96
.kd-replicasetdetail-table-header {
97 98
  border-bottom: 1px solid $foreground-4;
  color: $foreground-2;
99 100
  font-size: $body-font-size-base;
  font-weight: $regular-font-weight;
101 102
  height: $table-cell-height;
  padding: 0 0 0 (2 * $baseline-grid);
B
bryk 已提交
103
  text-align: left;
104
  white-space: nowrap;
105
}
106 107

.kd-replicasetdetail-table-cell {
108 109 110 111
  border-bottom: 1px solid $foreground-4;
  font-size: $body-font-size-base;
  height: $table-cell-height;
  padding: 0 0 0 (2 * $baseline-grid);
112 113 114
}

.kd-replicasetdetail-table-icon {
115
  font-size: inherit;
116
  vertical-align: top;
117
}
118 119

.kd-replicasetdetail-help-icon {
120 121 122 123 124
  color: $foreground-2;
  cursor: default;
  font-size: inherit;
  height: inherit;
  vertical-align: text-top;
125
}