【发布时间】:2015-07-30 11:23:30
【问题描述】:
我正在尝试从我的 css 中减少一些,现在我已经做了很多,但是我对 KENDO Grid 的长选择器有问题,它将元素包裹在奇怪的地方,然后很难找到。这就是我现在所拥有的
少
.k-grid {
.k-pager-wrap {
.color-background(@white);
border-top: 0 none;
}
.k-grid-header {
.color-background(@white);
thead tr[role="row"]:first-child {
display: none;
}
.k-grid-header-wrap {
table {
thead {
tr {
th.k-header {
font-size: @font-size-large;
}
}
}
}
}
}
.k-grid-content {
overflow: auto !important;
}
}
.k-pager-numbers {
li {
a.k-link {
.color-text(@grey) !important;
&:hover, &:active, &:focus, &:visited {
.color-background(@grey-background) !important;
.color-text(@brand) !important;
}
}
.k-state-selected {
.color-background(@grey-background) !important;
border: medium none;
.color-text(@brand);
}
}
}
问题是我有另一个 CSS,我试图把这个 k-grid 放在这个 k-grid 的 inisde 中,这里是
CSS
.k-grid-header-wrap table thead tr.k-filter-row th span.k-filtercell span.k-operator-hidden button.k-button.k-button-icon {
height: 26px;
}
.k-grid-header-wrap table thead tr.k-filter-row th span.k-filtercell span.k-operator-hidden button.k-button.k-button-icon span.k-icon.k-i-close {
margin-bottom:18px;
}
table thead tr.k-filter-row th span.k-filtercell span.k-operator-hidden span.k-widget.k-autocomplete.k-header.k-state-focused,
table thead tr.k-filter-row th span.k-filtercell span.k-operator-hidden span.k-widget.k-autocomplete.k-header.k-state-hover {
.lh-box-shadow(none) !important;
border-color: @grey-border !important;
}
.k-grid-header-wrap table thead tr.k-filter-row th {
padding-top:5px;
padding-bottom:5px;
}
div.k-grid-header div.k-grid-header-wrap {
border-right-width: 0;
width: 101%;
}
您可能会看到它是非常长的选择器,但是我需要将我所有的 CSS 转换为我已经拥有的更少,只是为了附加 LESS,有人可以帮助我。我已经失去了一整天的时间,因为现在用这个 CSS 我没有运气。赠品
【问题讨论】:
-
你已经尝试过在线转换 css 来减少像 this 那样的东西?
-
@NikunjChotaliya - 您可能想将其发布为答案。干杯!