TimePanel.less 1.3 KB
Newer Older
A
afc163 已提交
1 2 3 4 5
.@{calendar-prefix-cls}-time-panel {
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
A
afc163 已提交
6
  background: #fff;
A
afc163 已提交
7 8 9
  z-index: 10;
  position: absolute;
  outline: none;
10
  border-radius: @border-radius-base;
A
afc163 已提交
11 12
}

A
afc163 已提交
13
.@{calendar-prefix-cls}-time-panel-header {
A
afc163 已提交
14 15 16 17 18 19
  padding: 0 10px;
  height: 34px;
  line-height: 34px;
  position: relative;
  text-align: center;
  user-select: none;
A
afc163 已提交
20
  border-bottom: 1px solid @border-color-split;
A
afc163 已提交
21 22
}

A
afc163 已提交
23
.@{calendar-prefix-cls}-time-panel-body {
A
afc163 已提交
24
  padding: 2px 10px;
A
afc163 已提交
25 26
}

A
afc163 已提交
27
.@{calendar-prefix-cls}-time-panel-title {
A
afc163 已提交
28 29 30 31 32 33 34 35 36 37
  width: 180px;
  font-weight: bold;
  display: inline-block;
  padding: 4px 5px;
  text-align: center;
  height: 30px;
  line-height: 22px;
  border-radius: 4px;
}

A
afc163 已提交
38
.@{calendar-prefix-cls}-time-panel-table {
A
afc163 已提交
39 40 41 42 43
  table-layout: fixed;
  width: 100%;
  border-collapse: separate;
}

A
afc163 已提交
44
.@{calendar-prefix-cls}-time-panel-cell {
A
afc163 已提交
45
  text-align: center;
A
afc163 已提交
46
  height: 40px;
A
afc163 已提交
47 48 49
  vertical-align: middle;
}

A
afc163 已提交
50
.@{calendar-prefix-cls}-time-panel-time {
A
afc163 已提交
51
  line-height: 24px;
A
afc163 已提交
52 53 54
  display: block;
  border-radius: 4px;
  margin: 0 auto;
A
afc163 已提交
55
  color: #666;
A
afc163 已提交
56
  transition: background 0.3s ease;
A
afc163 已提交
57 58

  &:hover {
A
afc163 已提交
59
    background: tint(@primary-color, 90%);
A
afc163 已提交
60 61 62 63
    cursor: pointer;
  }
}

A
afc163 已提交
64
.@{calendar-prefix-cls}-time-panel-selected-cell .@{calendar-prefix-cls}-time-panel-time {
A
afc163 已提交
65
  background: @primary-color;
A
afc163 已提交
66 67 68
  color: #fff;

  &:hover {
A
afc163 已提交
69
    background: @primary-color;
A
afc163 已提交
70 71
    color: #fff;
  }
A
afc163 已提交
72
}