blob: 3fcaab671f315f82aa5d0e930a4c7399bd2bff6d (
plain)
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
|
.gl-new-card {
@include gl-mt-5;
@include gl-bg-gray-10;
@include gl-border-1;
@include gl-border-solid;
@include gl-border-gray-100;
@include gl-rounded-base;
&-header {
@include gl-px-5;
@include gl-py-4;
@include gl-display-flex;
@include gl-justify-content-space-between;
@include gl-bg-white;
@include gl-border-b-1;
@include gl-border-b-solid;
@include gl-border-b-gray-100;
@include gl-rounded-top-base;
}
&[aria-expanded=false] &-header {
@include gl-border-bottom-0;
@include gl-rounded-base;
}
&-title-wrapper {
@include gl-display-flex;
@include gl-flex-grow-1;
}
&-title {
@include gl-display-flex;
@include gl-font-base;
@include gl-font-weight-bold;
@include gl-relative;
@include gl-m-0;
@include gl-line-height-24;
}
&-count {
@include gl-mx-3;
@include gl-font-base;
@include gl-font-weight-bold;
@include gl-text-gray-500;
@include gl-display-inline-flex;
@include gl-align-items-center;
}
&-description {
@include gl-font-sm;
@include gl-text-gray-500;
@include gl-m-0;
}
&-toggle {
@include gl-pl-3;
@include gl-ml-3;
@include gl-mr-n2;
@include gl-border-l-1;
@include gl-border-l-solid;
@include gl-border-l-gray-100;
}
&-body {
@include gl-rounded-bottom-base;
@include gl-px-3;
@include gl-py-0;
}
&-content {
@include gl-px-2;
@include gl-py-3;
}
&-empty {
@include gl-p-2;
@include gl-mb-0;
@include gl-text-gray-500;
}
&-footer {
@include gl-bg-white;
}
&-add-form {
@include gl-p-4;
@include gl-my-2;
@include gl-bg-white;
@include gl-border-1;
@include gl-border-solid;
@include gl-border-gray-100;
@include gl-rounded-base;
}
}
.gl-new-card-body {
// Table adjustments
@mixin new-card-table-adjustments {
tbody > tr {
&:first-of-type > td[data-label],
&:first-of-type > td:first-of-type:last-of-type {
@include gl-border-t-0;
}
> td[data-label] {
@include gl-border-left-0;
@include gl-border-l-none;
@include gl-border-right-0;
@include gl-border-r-none;
}
> th {
@include gl-border-t-1;
@include gl-border-b-0;
}
&::after {
@include gl-bg-white;
}
&:last-child::after {
@include gl-display-none;
}
}
}
table.b-table-stacked-sm,
table.b-table-stacked-md {
@include gl-mb-0;
tr:first-of-type th {
@include gl-border-t-0;
}
tr:last-of-type td {
@include gl-border-b-0;
}
}
table.gl-table.b-table.b-table-stacked-sm {
@include gl-media-breakpoint-down(sm) {
@include new-card-table-adjustments;
}
}
table.gl-table.b-table.b-table-stacked-md {
@include gl-media-breakpoint-down(md) {
@include new-card-table-adjustments;
}
}
}
|