-
Notifications
You must be signed in to change notification settings - Fork 214
Expand file tree
/
Copy pathstyle.scss
More file actions
179 lines (156 loc) · 5.64 KB
/
Copy pathstyle.scss
File metadata and controls
179 lines (156 loc) · 5.64 KB
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
.dokan-layout {
.dokan-dashboard-datatable {
.dataviews-wrapper {
height: auto;
.dataviews__view-actions {
display: none;
}
.components-button.is-compact {
opacity: 1;
margin: 0 !important;
&.has-icon:not(.has-text) {
width: auto;
padding: 6px 3px;
&:hover,
&:focus {
background-color: transparent;
box-shadow: none;
border: none;
}
}
&:focus {
outline: none;
}
&:hover {
background-color: transparent;
}
}
}
}
.dokan-admin-dashboard-datatable {
// TODO: Temporary dokan-admin-dashboard-datatable-prefixed DataViews styles for admin compatibility.
// Remove this scoped import once both legacy dashboard tables are migrated
// to Plugin UI DataViews and prefix compatibility is no longer needed.
@import "@wordpress/dataviews/build-style/style.css";
.dataviews-wrapper {
height: auto;
border-radius: 10px;
box-shadow: 0px 1px 3px 0px #0000001a;
table.dataviews-view-table {
border-left: none;
border-right: none;
thead {
z-index: 0;
}
tr td:first-child,
tr th:first-child {
padding-left: 20px;
}
tr td:last-child,
tr th:last-child {
padding-right: 20px;
}
tbody tr td {
min-height: 65px;
padding-top: 14px;
padding-bottom: 14px;
}
}
.components-button.is-compact.has-icon:not(.has-text) {
width: auto;
padding: 6px;
&:hover,
&:focus {
background-color: transparent;
box-shadow: none;
border: none;
}
}
.components-flex.components-h-stack.dataviews-pagination {
width: 100%;
justify-content: space-between;
padding: 15px 20px;
}
.dokan-admin-dashboard-datatable-bulkaction {
.dataviews-bulk-actions-footer__action-buttons {
gap: 10px;
.components-button.is-compact:not(:last-child) {
border: 1px solid #e9e9e9;
border-radius: 6px;
line-height: 1;
}
}
}
}
// Plugin UI wrapper rendered by the new DataViews component.
// Restores admin-table polish (single white card containing tabs +
// filters + table + pagination) that the legacy AdminDataViews
// wrapper used to provide.
.pui-root-dataviews {
background-color: #fff;
border-radius: 10px;
box-shadow: 0px 1px 3px 0px #0000001a;
overflow: hidden;
// Inner table wrapper: drop the duplicate card styling now that
// the outer wrapper carries the rounded corners + shadow.
.dataviews-wrapper {
box-shadow: none;
border-radius: 0;
background-color: transparent;
}
.dataviews-bulk-actions-footer__action-buttons {
gap: 10px;
.components-button.is-compact:not(:last-child) {
border: 1px solid #e9e9e9;
border-radius: 6px;
line-height: 1;
padding: 6px 10px;
}
}
.components-flex.components-h-stack.dataviews-pagination {
width: 100%;
justify-content: space-between;
padding: 15px 20px;
}
// Data rows: keep visual rhythm at 65px even for single-line rows.
table.dataviews-view-table tbody tr td {
min-height: 65px;
padding-top: 14px;
padding-bottom: 14px;
}
// Skeleton rows (rendered while isLoading): match the data row rhythm.
> div table tbody tr td.h-12 {
height: 65px;
}
> div table tbody tr td {
height: 65px;
min-height: 65px;
}
// When the DataViews has only a single tab, it acts as a section
// title (e.g. Reverse Withdrawal's "List of Data"). Neutralise the
// active-tab accent so the label reads as plain heading text.
[data-slot="tabs-list"] [data-slot="tabs-trigger"]:only-child {
color: #25252d !important;
font-weight: 700 !important;
font-size: 16px !important;
border-bottom-color: transparent !important;
cursor: default !important;
}
}
}
}
.dokan_page_dokan-dashboard {
[id^="portal/:"] {
--wp-components-color-accent: #efeaff;
--wp-components-color-accent-inverted: #7047eb;
div[role="menu"] {
padding: 10px 0;
}
div[role="menuitem"] {
padding: 0 16px;
box-sizing: content-box;
min-height: calc(4px * 9);
color: #828282;
}
}
}