-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpanels.css
More file actions
87 lines (77 loc) · 1.79 KB
/
Copy pathpanels.css
File metadata and controls
87 lines (77 loc) · 1.79 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
@layer components {
.panel {
padding: 0.7895em;
margin-bottom: 0.7895em;
border-left: solid;
@apply box-border clear-both border-gray-grey2;
}
.panel:first-child {
@apply mt-0;
}
.panel:only-child,
.panel:last-child {
@apply mb-0;
}
.panel-border-wide {
border-left-width: 10px;
}
/* Used to show the left edge of "toggled" content */
.panel-border-narrow {
border-left-width: 5px;
}
/* Panels within form groups
By default, panels have 15px bottom margin
- Remove the bottom padding as .form-group sets a bottom margin
- Don't remove the bottom margin for all panels, assume they are often within stacked groups
*/
.form-group .panel-border-narrow {
@apply float-left w-full pb-0;
}
/* Note: This is incredibly fragile, and needs rebuilding. */
/* The first panel in a group */
.form-group .panel-border-narrow:first-child {
@apply mt-4;
}
/* The last panel in a group */
.form-group .panel-border-narrow:last-child {
@apply my-0;
}
/* For inline panels */
.inline .panel-border-narrow,
.inline .panel-border-narrow:last-child {
@apply mt-4 mb-0;
}
/* Template Formatting Guide styles */
.panel-container {
@apply flex w-full flex-col mb-12;
}
@variant lg {
.panel-container {
@apply flex-row;
}
}
.panel-container > * {
min-width: 200px;
padding: 1em;
@apply inline-block border-1 border-solid border-gray-lightgrey flex-1;
}
.panel-preview {
@apply mt-6 ml-0;
}
@variant lg {
.panel-preview {
@apply mt-0 ml-6;
}
}
.panel-container > .panel-input {
border-left-width: 24px;
@apply border-gray-grey2;
}
.panel-container h3 {
@apply mt-0;
}
.panel-preview ul li,
.panel-preview ol li {
@apply my-2;
}
}