重新着色bootstrap-datetimepicker

时间:2016-01-23 13:22:57

标签: css twitter-bootstrap-3 less bootstrap-datetimepicker

我正在使用bootstrap-datetimepicker并且我不想重新着色.today标志,但我找不到正确的css选择器。

这就是我所拥有的:

#datetimepicker .dropdown-menu {
    td.active{
        color: red;
        background-color: blue;
    }

    td.today:not(.active) {
        color: white;
        background-color: orange;
    }
 }

enter image description here

2 个答案:

答案 0 :(得分:2)

更改

.bootstrap-datetimepicker-widget table td.active.today:before {
    border-bottom-color: #fff;
}

您可能还想在

中更改border-bottom-color: #337ab7;
.bootstrap-datetimepicker-widget table td.today:before {
    content: '';
    display: inline-block;
    border: solid transparent;
    border-width: 0 0 7px 7px;
    border-bottom-color: #337ab7;
    border-top-color: rgba(0, 0, 0, 0.2);
    position: absolute;
    bottom: 4px;
    right: 4px;
}

答案 1 :(得分:2)

由于插件的更新版本,类名可能会不时更改。

.bootstrap-datetimepicker-widget.dropdown-menu {
  background-color: #30363b;
  border-color: #2b3135;
  width: 100%;
}
.bootstrap-datetimepicker-widget.dropdown-menu:after,
.bootstrap-datetimepicker-widget.dropdown-menu:before {
  display: none !important;
}
.bootstrap-datetimepicker-widget.dropdown-menu .arrow {
  display: none !important;
}
.bootstrap-datetimepicker-widget.dropdown-menu .arrow:after,
.bootstrap-datetimepicker-widget.dropdown-menu .arrow:before {
  display: none !important;
}
.bootstrap-datetimepicker-widget.dropdown-menu a span:hover,
.bootstrap-datetimepicker-widget.dropdown-menu a span:focus {
  background-color: #32aa62 !important;
  color: #fff !important;
}