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 10 11
  z-index: 10;
  position: absolute;
  outline: none;
}

A
afc163 已提交
12
.@{calendar-prefix-cls}-time-panel-header {
A
afc163 已提交
13 14 15 16 17 18 19
  padding: 0 10px;
  height: 34px;
  line-height: 34px;
  position: relative;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
A
afc163 已提交
20
  border-bottom: 1px solid #e9e9e9;
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 57

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

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

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