/
_layout.scss
131 lines (104 loc) · 3.07 KB
/
_layout.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
$grid-hierarchy-col-width: 32px !default;
// TODO: perhaps these should be the values for cell-padding-x/-y
$grid-grouping-row-border-top: 0px !default;
$grid-group-footer-border-y: 1px !default;
$grid-group-footer-second-cell-border: 0px !default;
$grid-header-first-border: 1px !default;
$grid-sorted-icon-spacing: 4px !default;
$grid-header-menu-icon-spacing: 14px !default;
$grid-group-indicator-border-radius: calc( #{$font-size} + #{$kendo-button-padding-y} ) !default;
$grid-group-indicator-gap: 8px !default;
$grid-group-dropclue-height: calc( #{$font-size * 2} + #{$padding-y * 2} ) !default;
$grid-group-dropclue-top: calc( ( #{$kendo-button-calc-size} + #{$grid-grouping-header-padding-y * 2} - #{$grid-group-dropclue-height} ) / 2) !default;
@import "~@progress/kendo-theme-default/scss/grid/_layout.scss";
@include exports ("grid/layout/material") {
.k-grid {
.k-group-footer td {
border-top-width: 0;
}
&[dir="rtl"],
.k-rtl & {
th {
border-width: 0 $grid-cell-vertical-border-width 1px 0;
}
td {
border-width: 0 $grid-cell-vertical-border-width $grid-cell-horizontal-border-width 0;
}
}
.k-command-cell .k-button {
@include box-shadow( none );
}
}
.k-grid-header {
th {
font-weight: 700;
.k-grid-filter {
font-weight: normal;
}
}
.k-grid-filter {
border-radius: 50%;
}
.k-header-column-menu {
border-radius: 50%;
}
.k-resizable-columns th:not(.k-group-cell) {
border-right-width: 1px;
border-right-style: solid;
}
.k-resizable-columns .k-resize-handle .k-resize-handle-inner {
width: 1px;
height: 100%;
cursor: col-resize;
}
}
.k-cell-inner {
.k-grid-filter,
.k-header-column-menu,
.k-hierarchy-cell .k-icon {
line-height: normal;
}
}
.k-grouping-header {
.k-group-indicator {
border-width: 0;
line-height: $kendo-button-line-height;
}
}
.k-grouping-dropclue {
width: 0;
height: $grid-group-dropclue-height;
top: $grid-group-dropclue-top;
border-style: solid;
border-width: 0 2px 0 0;
&::before {
border-width: 0;
}
}
.k-resize-handle:hover .k-resize-handle-inner {
width: 1px;
height: 100%;
}
.k-column-resizer:hover::after {
display: block;
content: "";
height: 100%;
border-right: 2px solid currentColor;
}
.k-reorder-cue {
margin-left: -1px;
width: 2px;
}
.k-column-menu .k-menu:not(.k-context-menu) {
.k-item {
& > .k-link::before {
content: none;
}
}
&.k-menu-vertical {
& > .k-item + .k-item {
margin-top: 0;
}
}
}
}