@mixtint/primer-view-components 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +21 -0
- package/README.md +30 -0
- package/app/assets/images/loading_indicator.svg +1 -0
- package/app/assets/javascripts/components/primer/alpha/action_bar_element.d.ts +17 -0
- package/app/assets/javascripts/components/primer/alpha/action_list.d.ts +16 -0
- package/app/assets/javascripts/components/primer/alpha/action_menu/action_menu_element.d.ts +49 -0
- package/app/assets/javascripts/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts +17 -0
- package/app/assets/javascripts/components/primer/alpha/dropdown/menu.d.ts +1 -0
- package/app/assets/javascripts/components/primer/alpha/dropdown.d.ts +1 -0
- package/app/assets/javascripts/components/primer/alpha/modal_dialog.d.ts +18 -0
- package/app/assets/javascripts/components/primer/alpha/segmented_control.d.ts +12 -0
- package/app/assets/javascripts/components/primer/alpha/select_panel_element.d.ts +65 -0
- package/app/assets/javascripts/components/primer/alpha/tab_container.d.ts +1 -0
- package/app/assets/javascripts/components/primer/alpha/toggle_switch.d.ts +34 -0
- package/app/assets/javascripts/components/primer/alpha/tool_tip.d.ts +27 -0
- package/app/assets/javascripts/components/primer/alpha/tree_view/tree_view.d.ts +42 -0
- package/app/assets/javascripts/components/primer/alpha/tree_view/tree_view_icon_pair_element.d.ts +15 -0
- package/app/assets/javascripts/components/primer/alpha/tree_view/tree_view_include_fragment_element.d.ts +9 -0
- package/app/assets/javascripts/components/primer/alpha/tree_view/tree_view_roving_tab_index.d.ts +3 -0
- package/app/assets/javascripts/components/primer/alpha/tree_view/tree_view_sub_tree_node_element.d.ts +45 -0
- package/app/assets/javascripts/components/primer/alpha/x_banner.d.ts +18 -0
- package/app/assets/javascripts/components/primer/anchored_position.d.ts +27 -0
- package/app/assets/javascripts/components/primer/beta/auto_complete/auto_complete.d.ts +1 -0
- package/app/assets/javascripts/components/primer/beta/clipboard_copy.d.ts +1 -0
- package/app/assets/javascripts/components/primer/beta/details_toggle_element.d.ts +40 -0
- package/app/assets/javascripts/components/primer/beta/nav_list.d.ts +20 -0
- package/app/assets/javascripts/components/primer/beta/nav_list_group_element.d.ts +19 -0
- package/app/assets/javascripts/components/primer/beta/relative_time.d.ts +1 -0
- package/app/assets/javascripts/components/primer/dialog_helper.d.ts +15 -0
- package/app/assets/javascripts/components/primer/focus_group.d.ts +19 -0
- package/app/assets/javascripts/components/primer/open_project/border_box/collapsible_header.d.ts +11 -0
- package/app/assets/javascripts/components/primer/open_project/collapsible.d.ts +13 -0
- package/app/assets/javascripts/components/primer/open_project/collapsible_section.d.ts +10 -0
- package/app/assets/javascripts/components/primer/open_project/danger_dialog_form_helper.d.ts +14 -0
- package/app/assets/javascripts/components/primer/open_project/filterable_tree_view.d.ts +29 -0
- package/app/assets/javascripts/components/primer/open_project/page_header_element.d.ts +9 -0
- package/app/assets/javascripts/components/primer/open_project/sub_header_element.d.ts +17 -0
- package/app/assets/javascripts/components/primer/open_project/zen_mode_button.d.ts +18 -0
- package/app/assets/javascripts/components/primer/primer.d.ts +40 -0
- package/app/assets/javascripts/components/primer/scrollable_region.d.ts +13 -0
- package/app/assets/javascripts/components/primer/shared_events.d.ts +26 -0
- package/app/assets/javascripts/components/primer/utils.d.ts +1 -0
- package/app/assets/javascripts/lib/primer/forms/primer_multi_input.d.ts +10 -0
- package/app/assets/javascripts/lib/primer/forms/primer_text_field.d.ts +28 -0
- package/app/assets/javascripts/lib/primer/forms/toggle_switch_input.d.ts +5 -0
- package/app/assets/javascripts/primer_view_components.js +2 -0
- package/app/assets/javascripts/primer_view_components.js.map +1 -0
- package/app/assets/styles/primer_view_components.css +7336 -0
- package/app/assets/styles/primer_view_components.css.map +1 -0
- package/app/components/primer/alpha/action_bar.css +49 -0
- package/app/components/primer/alpha/action_bar.css.json +14 -0
- package/app/components/primer/alpha/action_bar_element.d.ts +17 -0
- package/app/components/primer/alpha/action_bar_element.js +170 -0
- package/app/components/primer/alpha/action_list.css +526 -0
- package/app/components/primer/alpha/action_list.css.json +117 -0
- package/app/components/primer/alpha/action_list.d.ts +16 -0
- package/app/components/primer/alpha/action_list.js +70 -0
- package/app/components/primer/alpha/action_menu/action_menu_element.d.ts +49 -0
- package/app/components/primer/alpha/action_menu/action_menu_element.js +591 -0
- package/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts +17 -0
- package/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.js +62 -0
- package/app/components/primer/alpha/auto_complete.css +131 -0
- package/app/components/primer/alpha/auto_complete.css.json +21 -0
- package/app/components/primer/alpha/banner.css +146 -0
- package/app/components/primer/alpha/banner.css.json +26 -0
- package/app/components/primer/alpha/button_marketing.css +183 -0
- package/app/components/primer/alpha/button_marketing.css.json +30 -0
- package/app/components/primer/alpha/dialog.css +377 -0
- package/app/components/primer/alpha/dialog.css.json +66 -0
- package/app/components/primer/alpha/dropdown/menu.d.ts +1 -0
- package/app/components/primer/alpha/dropdown/menu.js +1 -0
- package/app/components/primer/alpha/dropdown.css +296 -0
- package/app/components/primer/alpha/dropdown.css.json +40 -0
- package/app/components/primer/alpha/dropdown.d.ts +1 -0
- package/app/components/primer/alpha/dropdown.js +1 -0
- package/app/components/primer/alpha/layout.css +374 -0
- package/app/components/primer/alpha/layout.css.json +74 -0
- package/app/components/primer/alpha/menu.css +124 -0
- package/app/components/primer/alpha/menu.css.json +26 -0
- package/app/components/primer/alpha/modal_dialog.d.ts +18 -0
- package/app/components/primer/alpha/modal_dialog.js +187 -0
- package/app/components/primer/alpha/overlay.css +25 -0
- package/app/components/primer/alpha/overlay.css.json +12 -0
- package/app/components/primer/alpha/segmented_control.css +161 -0
- package/app/components/primer/alpha/segmented_control.css.json +31 -0
- package/app/components/primer/alpha/segmented_control.d.ts +12 -0
- package/app/components/primer/alpha/segmented_control.js +59 -0
- package/app/components/primer/alpha/select_panel.css +10 -0
- package/app/components/primer/alpha/select_panel.css.json +7 -0
- package/app/components/primer/alpha/select_panel_element.d.ts +65 -0
- package/app/components/primer/alpha/select_panel_element.js +988 -0
- package/app/components/primer/alpha/skeleton_box.css +36 -0
- package/app/components/primer/alpha/skeleton_box.css.json +6 -0
- package/app/components/primer/alpha/stack.css +266 -0
- package/app/components/primer/alpha/stack.css.json +94 -0
- package/app/components/primer/alpha/stack_item.css +27 -0
- package/app/components/primer/alpha/stack_item.css.json +12 -0
- package/app/components/primer/alpha/tab_container.d.ts +1 -0
- package/app/components/primer/alpha/tab_container.js +1 -0
- package/app/components/primer/alpha/tab_nav.css +112 -0
- package/app/components/primer/alpha/tab_nav.css.json +22 -0
- package/app/components/primer/alpha/text_field.css +838 -0
- package/app/components/primer/alpha/text_field.css.json +134 -0
- package/app/components/primer/alpha/toggle_switch.css +230 -0
- package/app/components/primer/alpha/toggle_switch.css.json +40 -0
- package/app/components/primer/alpha/toggle_switch.d.ts +34 -0
- package/app/components/primer/alpha/toggle_switch.js +179 -0
- package/app/components/primer/alpha/tool_tip.d.ts +27 -0
- package/app/components/primer/alpha/tool_tip.js +443 -0
- package/app/components/primer/alpha/tree_view/tree_view.d.ts +42 -0
- package/app/components/primer/alpha/tree_view/tree_view.js +391 -0
- package/app/components/primer/alpha/tree_view/tree_view_icon_pair_element.d.ts +15 -0
- package/app/components/primer/alpha/tree_view/tree_view_icon_pair_element.js +62 -0
- package/app/components/primer/alpha/tree_view/tree_view_include_fragment_element.d.ts +9 -0
- package/app/components/primer/alpha/tree_view/tree_view_include_fragment_element.js +28 -0
- package/app/components/primer/alpha/tree_view/tree_view_roving_tab_index.d.ts +3 -0
- package/app/components/primer/alpha/tree_view/tree_view_roving_tab_index.js +130 -0
- package/app/components/primer/alpha/tree_view/tree_view_sub_tree_node_element.d.ts +45 -0
- package/app/components/primer/alpha/tree_view/tree_view_sub_tree_node_element.js +429 -0
- package/app/components/primer/alpha/tree_view.css +396 -0
- package/app/components/primer/alpha/tree_view.css.json +52 -0
- package/app/components/primer/alpha/underline_nav.css +150 -0
- package/app/components/primer/alpha/underline_nav.css.json +26 -0
- package/app/components/primer/alpha/x_banner.d.ts +18 -0
- package/app/components/primer/alpha/x_banner.js +51 -0
- package/app/components/primer/anchored_position.d.ts +27 -0
- package/app/components/primer/anchored_position.js +159 -0
- package/app/components/primer/beta/auto_complete/auto_complete.d.ts +1 -0
- package/app/components/primer/beta/auto_complete/auto_complete.js +1 -0
- package/app/components/primer/beta/avatar.css +77 -0
- package/app/components/primer/beta/avatar.css.json +17 -0
- package/app/components/primer/beta/avatar_stack.css +145 -0
- package/app/components/primer/beta/avatar_stack.css.json +28 -0
- package/app/components/primer/beta/blankslate.css +168 -0
- package/app/components/primer/beta/blankslate.css.json +23 -0
- package/app/components/primer/beta/border_box.css +218 -0
- package/app/components/primer/beta/border_box.css.json +54 -0
- package/app/components/primer/beta/breadcrumbs.css +29 -0
- package/app/components/primer/beta/breadcrumbs.css.json +9 -0
- package/app/components/primer/beta/button.css +359 -0
- package/app/components/primer/beta/button.css.json +86 -0
- package/app/components/primer/beta/button_group.css +20 -0
- package/app/components/primer/beta/button_group.css.json +12 -0
- package/app/components/primer/beta/clipboard_copy.d.ts +1 -0
- package/app/components/primer/beta/clipboard_copy.js +58 -0
- package/app/components/primer/beta/counter.css +38 -0
- package/app/components/primer/beta/counter.css.json +10 -0
- package/app/components/primer/beta/details_toggle_element.d.ts +40 -0
- package/app/components/primer/beta/details_toggle_element.js +65 -0
- package/app/components/primer/beta/flash.css +152 -0
- package/app/components/primer/beta/flash.css.json +27 -0
- package/app/components/primer/beta/label.css +109 -0
- package/app/components/primer/beta/label.css.json +24 -0
- package/app/components/primer/beta/link.css +79 -0
- package/app/components/primer/beta/link.css.json +19 -0
- package/app/components/primer/beta/nav_list.d.ts +20 -0
- package/app/components/primer/beta/nav_list.js +192 -0
- package/app/components/primer/beta/nav_list_group_element.d.ts +19 -0
- package/app/components/primer/beta/nav_list_group_element.js +111 -0
- package/app/components/primer/beta/popover.css +215 -0
- package/app/components/primer/beta/popover.css.json +33 -0
- package/app/components/primer/beta/progress_bar.css +27 -0
- package/app/components/primer/beta/progress_bar.css.json +10 -0
- package/app/components/primer/beta/relative_time.d.ts +1 -0
- package/app/components/primer/beta/relative_time.js +1 -0
- package/app/components/primer/beta/state.css +59 -0
- package/app/components/primer/beta/state.css.json +13 -0
- package/app/components/primer/beta/subhead.css +64 -0
- package/app/components/primer/beta/subhead.css.json +14 -0
- package/app/components/primer/beta/timeline_item.css +106 -0
- package/app/components/primer/beta/timeline_item.css.json +16 -0
- package/app/components/primer/beta/truncate.css +30 -0
- package/app/components/primer/beta/truncate.css.json +12 -0
- package/app/components/primer/dialog_helper.d.ts +15 -0
- package/app/components/primer/dialog_helper.js +132 -0
- package/app/components/primer/focus_group.d.ts +19 -0
- package/app/components/primer/focus_group.js +163 -0
- package/app/components/primer/open_project/border_box/collapsible_header.css +21 -0
- package/app/components/primer/open_project/border_box/collapsible_header.css.json +11 -0
- package/app/components/primer/open_project/border_box/collapsible_header.d.ts +11 -0
- package/app/components/primer/open_project/border_box/collapsible_header.js +21 -0
- package/app/components/primer/open_project/border_grid.css +35 -0
- package/app/components/primer/open_project/border_grid.css.json +11 -0
- package/app/components/primer/open_project/collapsible.d.ts +13 -0
- package/app/components/primer/open_project/collapsible.js +67 -0
- package/app/components/primer/open_project/collapsible_section.css +5 -0
- package/app/components/primer/open_project/collapsible_section.css.json +6 -0
- package/app/components/primer/open_project/collapsible_section.d.ts +10 -0
- package/app/components/primer/open_project/collapsible_section.js +16 -0
- package/app/components/primer/open_project/danger_dialog_form_helper.d.ts +14 -0
- package/app/components/primer/open_project/danger_dialog_form_helper.js +54 -0
- package/app/components/primer/open_project/drag_handle.css +6 -0
- package/app/components/primer/open_project/drag_handle.css.json +6 -0
- package/app/components/primer/open_project/filterable_tree_view.d.ts +29 -0
- package/app/components/primer/open_project/filterable_tree_view.js +409 -0
- package/app/components/primer/open_project/input_group.css +22 -0
- package/app/components/primer/open_project/input_group.css.json +12 -0
- package/app/components/primer/open_project/page_header.css +87 -0
- package/app/components/primer/open_project/page_header.css.json +20 -0
- package/app/components/primer/open_project/page_header_element.d.ts +9 -0
- package/app/components/primer/open_project/page_header_element.js +23 -0
- package/app/components/primer/open_project/side_panel/section.css +27 -0
- package/app/components/primer/open_project/side_panel/section.css.json +11 -0
- package/app/components/primer/open_project/sub_header.css +80 -0
- package/app/components/primer/open_project/sub_header.css.json +17 -0
- package/app/components/primer/open_project/sub_header_element.d.ts +17 -0
- package/app/components/primer/open_project/sub_header_element.js +76 -0
- package/app/components/primer/open_project/zen_mode_button.d.ts +18 -0
- package/app/components/primer/open_project/zen_mode_button.js +64 -0
- package/app/components/primer/primer.d.ts +40 -0
- package/app/components/primer/primer.js +40 -0
- package/app/components/primer/scrollable_region.d.ts +13 -0
- package/app/components/primer/scrollable_region.js +52 -0
- package/app/components/primer/shared_events.d.ts +26 -0
- package/app/components/primer/shared_events.js +1 -0
- package/app/components/primer/truncate.css +23 -0
- package/app/components/primer/truncate.css.json +13 -0
- package/app/components/primer/utils.d.ts +1 -0
- package/app/components/primer/utils.js +16 -0
- package/app/lib/primer/forms/primer_multi_input.d.ts +10 -0
- package/app/lib/primer/forms/primer_multi_input.js +44 -0
- package/app/lib/primer/forms/primer_text_field.d.ts +28 -0
- package/app/lib/primer/forms/primer_text_field.js +119 -0
- package/app/lib/primer/forms/toggle_switch_input.d.ts +5 -0
- package/app/lib/primer/forms/toggle_switch_input.js +34 -0
- package/package.json +103 -0
- package/static/arguments.json +6472 -0
- package/static/audited_at.json +173 -0
- package/static/classes.json +781 -0
- package/static/constants.json +1972 -0
- package/static/form_previews.json +118 -0
- package/static/info_arch.json +21331 -0
- package/static/previews.json +9436 -0
- package/static/statuses.json +173 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
/* dropdown */
|
|
2
|
+
|
|
3
|
+
.dropdown {
|
|
4
|
+
position: relative;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.dropdown-caret {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
width: 0;
|
|
10
|
+
height: 0;
|
|
11
|
+
vertical-align: middle;
|
|
12
|
+
content: '';
|
|
13
|
+
border-style: solid;
|
|
14
|
+
border-width: var(--borderWidth-thicker) var(--borderWidth-thicker) 0;
|
|
15
|
+
border-right-color: transparent;
|
|
16
|
+
border-bottom-color: transparent;
|
|
17
|
+
border-left-color: transparent;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Requires a positioning class (e.g., `.dropdown-menu-w`) to determine which
|
|
21
|
+
** way the menu should render from the element triggering it. */
|
|
22
|
+
|
|
23
|
+
.dropdown-menu {
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 100%;
|
|
26
|
+
left: 0;
|
|
27
|
+
z-index: 100;
|
|
28
|
+
width: 160px;
|
|
29
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
30
|
+
padding-top: var(--control-small-paddingBlock);
|
|
31
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
32
|
+
padding-bottom: var(--control-small-paddingBlock);
|
|
33
|
+
margin-top: var(--base-size-2);
|
|
34
|
+
list-style: none;
|
|
35
|
+
background-color: var(--overlay-bgColor);
|
|
36
|
+
background-clip: padding-box;
|
|
37
|
+
border: var(--borderWidth-thin) solid var(--borderColor-default);
|
|
38
|
+
border-radius: var(--borderRadius-medium);
|
|
39
|
+
box-shadow: var(--shadow-floating-legacy, var(--color-shadow-large));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.dropdown-menu::before,.dropdown-menu::after {
|
|
43
|
+
position: absolute;
|
|
44
|
+
display: inline-block;
|
|
45
|
+
content: '';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* caret border */
|
|
49
|
+
|
|
50
|
+
.dropdown-menu::before {
|
|
51
|
+
/* stylelint-disable-next-line primer/borders */
|
|
52
|
+
border: 8px solid transparent;
|
|
53
|
+
border-bottom-color: var(--borderColor-default);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* caret background (should match dropdown background) */
|
|
57
|
+
|
|
58
|
+
.dropdown-menu::after {
|
|
59
|
+
/* stylelint-disable-next-line primer/borders */
|
|
60
|
+
border: 7px solid transparent;
|
|
61
|
+
/* stylelint-disable-next-line primer/colors */
|
|
62
|
+
border-bottom-color: var(--overlay-bgColor);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* stylelint-disable-next-line selector-max-type */
|
|
66
|
+
|
|
67
|
+
.dropdown-menu > ul {
|
|
68
|
+
list-style: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.dropdown-menu-no-overflow {
|
|
72
|
+
width: auto;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.dropdown-menu-no-overflow .dropdown-item {
|
|
76
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
77
|
+
padding: var(--control-small-paddingBlock) var(--control-medium-paddingInline-spacious);
|
|
78
|
+
overflow: visible;
|
|
79
|
+
text-overflow: inherit;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Dropdown items (can be links or buttons) */
|
|
83
|
+
|
|
84
|
+
.dropdown-item {
|
|
85
|
+
display: block;
|
|
86
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
87
|
+
padding: var(--control-small-paddingBlock) var(--control-medium-paddingInline-condensed) var(--control-small-paddingBlock) var(--control-medium-paddingInline-spacious);
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
color: var(--fgColor-default);
|
|
90
|
+
text-overflow: ellipsis;
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.dropdown-item:hover {
|
|
95
|
+
color: var(--fgColor-onEmphasis);
|
|
96
|
+
-webkit-text-decoration: none;
|
|
97
|
+
text-decoration: none;
|
|
98
|
+
background-color: var(--bgColor-accent-emphasis);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.dropdown-item:hover > .octicon {
|
|
102
|
+
color: inherit;
|
|
103
|
+
opacity: 1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.dropdown-item:hover [class*='color-fg-'] {
|
|
107
|
+
color: inherit !important;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.dropdown-item:hover > .Label {
|
|
111
|
+
color: inherit !important;
|
|
112
|
+
border-color: currentcolor;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.dropdown-item.btn-link {
|
|
116
|
+
width: 100%;
|
|
117
|
+
text-align: left;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.dropdown-signout {
|
|
121
|
+
width: 100%;
|
|
122
|
+
text-align: left;
|
|
123
|
+
background: none;
|
|
124
|
+
border: 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.dropdown-divider {
|
|
128
|
+
display: block;
|
|
129
|
+
height: 0;
|
|
130
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
131
|
+
margin: var(--stack-gap-condensed) 0;
|
|
132
|
+
border-top: var(--borderWidth-thin) solid var(--borderColor-default);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.dropdown-header {
|
|
136
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
137
|
+
padding: var(--control-small-paddingBlock) var(--control-medium-paddingInline-spacious);
|
|
138
|
+
font-size: var(--text-body-size-small);
|
|
139
|
+
color: var(--fgColor-muted);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.dropdown-item[aria-checked='false'] .octicon-check {
|
|
143
|
+
display: none;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* Directional classes
|
|
147
|
+
**
|
|
148
|
+
** Move the menu and the caret attached to it. Requires at least one of these on
|
|
149
|
+
** the `.dropdown-menu` element. */
|
|
150
|
+
|
|
151
|
+
.dropdown-menu-w {
|
|
152
|
+
top: 0;
|
|
153
|
+
right: 100%;
|
|
154
|
+
left: auto;
|
|
155
|
+
width: auto;
|
|
156
|
+
margin-top: 0;
|
|
157
|
+
margin-right: var(--base-size-8);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.dropdown-menu-w::before {
|
|
161
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
162
|
+
top: 10px;
|
|
163
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
164
|
+
right: -16px;
|
|
165
|
+
left: auto;
|
|
166
|
+
border-color: transparent;
|
|
167
|
+
border-left-color: var(--borderColor-default);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.dropdown-menu-w::after {
|
|
171
|
+
top: var(--base-size-12);
|
|
172
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
173
|
+
right: -14px;
|
|
174
|
+
left: auto;
|
|
175
|
+
border-color: transparent;
|
|
176
|
+
/* stylelint-disable-next-line primer/colors */
|
|
177
|
+
border-left-color: var(--overlay-bgColor);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.dropdown-menu-e {
|
|
181
|
+
top: 0;
|
|
182
|
+
left: 100%;
|
|
183
|
+
width: auto;
|
|
184
|
+
margin-top: 0;
|
|
185
|
+
margin-left: var(--base-size-8);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.dropdown-menu-e::before {
|
|
189
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
190
|
+
top: 10px;
|
|
191
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
192
|
+
left: -16px;
|
|
193
|
+
border-color: transparent;
|
|
194
|
+
border-right-color: var(--borderColor-default);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.dropdown-menu-e::after {
|
|
198
|
+
top: var(--base-size-12);
|
|
199
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
200
|
+
left: -14px;
|
|
201
|
+
border-color: transparent;
|
|
202
|
+
/* stylelint-disable-next-line primer/colors */
|
|
203
|
+
border-right-color: var(--overlay-bgColor);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.dropdown-menu-ne {
|
|
207
|
+
top: auto;
|
|
208
|
+
bottom: 100%;
|
|
209
|
+
left: 0;
|
|
210
|
+
margin-bottom: var(--base-size-4);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.dropdown-menu-ne::before,.dropdown-menu-ne::after {
|
|
214
|
+
top: auto;
|
|
215
|
+
right: auto;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.dropdown-menu-ne::before {
|
|
219
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
220
|
+
bottom: -8px;
|
|
221
|
+
left: var(--base-size-8);
|
|
222
|
+
/* stylelint-disable-next-line primer/borders */
|
|
223
|
+
border-top: 8px solid var(--borderColor-default);
|
|
224
|
+
/* stylelint-disable-next-line primer/borders */
|
|
225
|
+
border-right: 8px solid transparent;
|
|
226
|
+
border-bottom: 0;
|
|
227
|
+
/* stylelint-disable-next-line primer/borders */
|
|
228
|
+
border-left: 8px solid transparent;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.dropdown-menu-ne::after {
|
|
232
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
233
|
+
bottom: -7px;
|
|
234
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
235
|
+
left: 10px;
|
|
236
|
+
/* stylelint-disable-next-line primer/borders, primer/colors */
|
|
237
|
+
border-top: 7px solid var(--overlay-bgColor);
|
|
238
|
+
/* stylelint-disable-next-line primer/borders */
|
|
239
|
+
border-right: 7px solid transparent;
|
|
240
|
+
border-bottom: 0;
|
|
241
|
+
/* stylelint-disable-next-line primer/borders */
|
|
242
|
+
border-left: 7px solid transparent;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.dropdown-menu-s {
|
|
246
|
+
right: 50%;
|
|
247
|
+
left: auto;
|
|
248
|
+
transform: translateX(50%);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.dropdown-menu-s::before {
|
|
252
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
253
|
+
top: -16px;
|
|
254
|
+
right: 50%;
|
|
255
|
+
transform: translateX(50%);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.dropdown-menu-s::after {
|
|
259
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
260
|
+
top: -14px;
|
|
261
|
+
right: 50%;
|
|
262
|
+
transform: translateX(50%);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.dropdown-menu-sw {
|
|
266
|
+
right: 0;
|
|
267
|
+
left: auto;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.dropdown-menu-sw::before {
|
|
271
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
272
|
+
top: -16px;
|
|
273
|
+
right: var(--base-size-8);
|
|
274
|
+
left: auto;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.dropdown-menu-sw::after {
|
|
278
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
279
|
+
top: -14px;
|
|
280
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
281
|
+
right: 10px;
|
|
282
|
+
left: auto;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.dropdown-menu-se::before {
|
|
286
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
287
|
+
top: -16px;
|
|
288
|
+
left: var(--base-size-8);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.dropdown-menu-se::after {
|
|
292
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
293
|
+
top: -14px;
|
|
294
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
295
|
+
left: 10px;
|
|
296
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "alpha/dropdown",
|
|
3
|
+
"selectors": [
|
|
4
|
+
".dropdown",
|
|
5
|
+
".dropdown-caret",
|
|
6
|
+
".dropdown-menu",
|
|
7
|
+
".dropdown-menu::before",
|
|
8
|
+
".dropdown-menu::after",
|
|
9
|
+
".dropdown-menu > ul",
|
|
10
|
+
".dropdown-menu-no-overflow",
|
|
11
|
+
".dropdown-menu-no-overflow .dropdown-item",
|
|
12
|
+
".dropdown-item",
|
|
13
|
+
".dropdown-item:hover",
|
|
14
|
+
".dropdown-item:hover > .octicon",
|
|
15
|
+
".dropdown-item:hover [class*='color-fg-']",
|
|
16
|
+
".dropdown-item:hover > .Label",
|
|
17
|
+
".dropdown-item.btn-link",
|
|
18
|
+
".dropdown-signout",
|
|
19
|
+
".dropdown-divider",
|
|
20
|
+
".dropdown-header",
|
|
21
|
+
".dropdown-item[aria-checked='false'] .octicon-check",
|
|
22
|
+
".dropdown-menu-w",
|
|
23
|
+
".dropdown-menu-w::before",
|
|
24
|
+
".dropdown-menu-w::after",
|
|
25
|
+
".dropdown-menu-e",
|
|
26
|
+
".dropdown-menu-e::before",
|
|
27
|
+
".dropdown-menu-e::after",
|
|
28
|
+
".dropdown-menu-ne",
|
|
29
|
+
".dropdown-menu-ne::before",
|
|
30
|
+
".dropdown-menu-ne::after",
|
|
31
|
+
".dropdown-menu-s",
|
|
32
|
+
".dropdown-menu-s::before",
|
|
33
|
+
".dropdown-menu-s::after",
|
|
34
|
+
".dropdown-menu-sw",
|
|
35
|
+
".dropdown-menu-sw::before",
|
|
36
|
+
".dropdown-menu-sw::after",
|
|
37
|
+
".dropdown-menu-se::before",
|
|
38
|
+
".dropdown-menu-se::after"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './dropdown/menu';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './dropdown/menu';
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
/* Layout */
|
|
2
|
+
|
|
3
|
+
.Layout {
|
|
4
|
+
display: grid;
|
|
5
|
+
|
|
6
|
+
--Layout-sidebar-width: 220px;
|
|
7
|
+
--Layout-gutter: 16px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media (max-width: calc(544px - 0.02px)) {
|
|
11
|
+
|
|
12
|
+
.Layout {
|
|
13
|
+
grid-auto-flow: row;
|
|
14
|
+
grid-template-columns: 1fr !important;
|
|
15
|
+
}
|
|
16
|
+
.Layout .Layout-sidebar,.Layout .Layout-divider,.Layout .Layout-main {
|
|
17
|
+
width: 100% !important;
|
|
18
|
+
grid-column: 1 !important;
|
|
19
|
+
}
|
|
20
|
+
.Layout.Layout--sidebarPosition-flowRow-start .Layout-sidebar {
|
|
21
|
+
grid-row: 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.Layout.Layout--sidebarPosition-flowRow-start .Layout-main {
|
|
25
|
+
grid-row: 2 / span 2;
|
|
26
|
+
}
|
|
27
|
+
.Layout.Layout--sidebarPosition-flowRow-end .Layout-sidebar {
|
|
28
|
+
grid-row: 2 / span 2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.Layout.Layout--sidebarPosition-flowRow-end .Layout-main {
|
|
32
|
+
grid-row: 1;
|
|
33
|
+
}
|
|
34
|
+
.Layout.Layout--sidebarPosition-flowRow-none .Layout-sidebar {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
.Layout.Layout--divided {
|
|
38
|
+
--Layout-gutter: 0;
|
|
39
|
+
}
|
|
40
|
+
.Layout.Layout--divided .Layout-divider {
|
|
41
|
+
height: 1px;
|
|
42
|
+
grid-row: 2;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.Layout-divider--flowRow-hidden:is(.Layout.Layout--divided .Layout-divider) {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.Layout-divider--flowRow-shallow:is(.Layout.Layout--divided .Layout-divider) {
|
|
50
|
+
height: 8px;
|
|
51
|
+
margin-right: 0;
|
|
52
|
+
background: var(--bgColor-inset);
|
|
53
|
+
border-color: var(--borderColor-default);
|
|
54
|
+
border-style: solid;
|
|
55
|
+
border-width: var(--borderWidth-thin) 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.Layout.Layout--divided .Layout-main {
|
|
59
|
+
grid-row: 3 / span 1;
|
|
60
|
+
}
|
|
61
|
+
.Layout.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-sidebar {
|
|
62
|
+
grid-row: 3 / span 1;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.Layout.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-main {
|
|
66
|
+
grid-row: 1;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@media (max-width: calc(768px - 0.02px)) {
|
|
71
|
+
|
|
72
|
+
.Layout.Layout--flowRow-until-md {
|
|
73
|
+
grid-auto-flow: row;
|
|
74
|
+
grid-template-columns: 1fr !important;
|
|
75
|
+
}
|
|
76
|
+
.Layout.Layout--flowRow-until-md .Layout-sidebar,.Layout.Layout--flowRow-until-md .Layout-divider,.Layout.Layout--flowRow-until-md .Layout-main {
|
|
77
|
+
width: 100% !important;
|
|
78
|
+
grid-column: 1 !important;
|
|
79
|
+
}
|
|
80
|
+
.Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-start .Layout-sidebar {
|
|
81
|
+
grid-row: 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-start .Layout-main {
|
|
85
|
+
grid-row: 2 / span 2;
|
|
86
|
+
}
|
|
87
|
+
.Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-end .Layout-sidebar {
|
|
88
|
+
grid-row: 2 / span 2;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-end .Layout-main {
|
|
92
|
+
grid-row: 1;
|
|
93
|
+
}
|
|
94
|
+
.Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-none .Layout-sidebar {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
.Layout.Layout--flowRow-until-md.Layout--divided {
|
|
98
|
+
--Layout-gutter: 0;
|
|
99
|
+
}
|
|
100
|
+
.Layout.Layout--flowRow-until-md.Layout--divided .Layout-divider {
|
|
101
|
+
height: 1px;
|
|
102
|
+
grid-row: 2;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.Layout-divider--flowRow-hidden:is(.Layout.Layout--flowRow-until-md.Layout--divided .Layout-divider) {
|
|
106
|
+
display: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.Layout-divider--flowRow-shallow:is(.Layout.Layout--flowRow-until-md.Layout--divided .Layout-divider) {
|
|
110
|
+
height: 8px;
|
|
111
|
+
margin-right: 0;
|
|
112
|
+
background: var(--bgColor-inset);
|
|
113
|
+
border-color: var(--borderColor-default);
|
|
114
|
+
border-style: solid;
|
|
115
|
+
border-width: var(--borderWidth-thin) 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.Layout.Layout--flowRow-until-md.Layout--divided .Layout-main {
|
|
119
|
+
grid-row: 3 / span 1;
|
|
120
|
+
}
|
|
121
|
+
.Layout.Layout--flowRow-until-md.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-sidebar {
|
|
122
|
+
grid-row: 3 / span 1;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.Layout.Layout--flowRow-until-md.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-main {
|
|
126
|
+
grid-row: 1;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@media (max-width: calc(1012px - 0.02px)) {
|
|
131
|
+
|
|
132
|
+
.Layout.Layout--flowRow-until-lg {
|
|
133
|
+
grid-auto-flow: row;
|
|
134
|
+
grid-template-columns: 1fr !important;
|
|
135
|
+
}
|
|
136
|
+
.Layout.Layout--flowRow-until-lg .Layout-sidebar,.Layout.Layout--flowRow-until-lg .Layout-divider,.Layout.Layout--flowRow-until-lg .Layout-main {
|
|
137
|
+
width: 100% !important;
|
|
138
|
+
grid-column: 1 !important;
|
|
139
|
+
}
|
|
140
|
+
.Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-start .Layout-sidebar {
|
|
141
|
+
grid-row: 1;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-start .Layout-main {
|
|
145
|
+
grid-row: 2 / span 2;
|
|
146
|
+
}
|
|
147
|
+
.Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-end .Layout-sidebar {
|
|
148
|
+
grid-row: 2 / span 2;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-end .Layout-main {
|
|
152
|
+
grid-row: 1;
|
|
153
|
+
}
|
|
154
|
+
.Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-none .Layout-sidebar {
|
|
155
|
+
display: none;
|
|
156
|
+
}
|
|
157
|
+
.Layout.Layout--flowRow-until-lg.Layout--divided {
|
|
158
|
+
--Layout-gutter: 0;
|
|
159
|
+
}
|
|
160
|
+
.Layout.Layout--flowRow-until-lg.Layout--divided .Layout-divider {
|
|
161
|
+
height: 1px;
|
|
162
|
+
grid-row: 2;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.Layout-divider--flowRow-hidden:is(.Layout.Layout--flowRow-until-lg.Layout--divided .Layout-divider) {
|
|
166
|
+
display: none;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.Layout-divider--flowRow-shallow:is(.Layout.Layout--flowRow-until-lg.Layout--divided .Layout-divider) {
|
|
170
|
+
height: 8px;
|
|
171
|
+
margin-right: 0;
|
|
172
|
+
background: var(--bgColor-inset);
|
|
173
|
+
border-color: var(--borderColor-default);
|
|
174
|
+
border-style: solid;
|
|
175
|
+
border-width: var(--borderWidth-thin) 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.Layout.Layout--flowRow-until-lg.Layout--divided .Layout-main {
|
|
179
|
+
grid-row: 3 / span 1;
|
|
180
|
+
}
|
|
181
|
+
.Layout.Layout--flowRow-until-lg.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-sidebar {
|
|
182
|
+
grid-row: 3 / span 1;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.Layout.Layout--flowRow-until-lg.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-main {
|
|
186
|
+
grid-row: 1;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.Layout {
|
|
191
|
+
|
|
192
|
+
/* Flow as column */
|
|
193
|
+
|
|
194
|
+
grid-auto-flow: column;
|
|
195
|
+
grid-template-columns: auto 0 minmax(0, calc(100% - var(--Layout-sidebar-width) - var(--Layout-gutter))); /* sidebar column, separator, main column */
|
|
196
|
+
grid-gap: var(--Layout-gutter);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.Layout .Layout-sidebar {
|
|
200
|
+
grid-column: 1;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.Layout .Layout-divider {
|
|
204
|
+
display: none;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.Layout .Layout-main {
|
|
208
|
+
grid-column: 2 / span 2;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/* Gutter spacing */
|
|
212
|
+
|
|
213
|
+
@media (min-width: 1012px) {
|
|
214
|
+
|
|
215
|
+
.Layout {
|
|
216
|
+
--Layout-gutter: 24px;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.Layout.Layout--gutter-none {
|
|
221
|
+
--Layout-gutter: 0px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.Layout.Layout--gutter-condensed {
|
|
225
|
+
--Layout-gutter: 16px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
@media (min-width: 1012px) {
|
|
229
|
+
|
|
230
|
+
.Layout.Layout--gutter-spacious {
|
|
231
|
+
--Layout-gutter: 32px;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
@media (min-width: 1280px) {
|
|
236
|
+
|
|
237
|
+
.Layout.Layout--gutter-spacious {
|
|
238
|
+
--Layout-gutter: 40px;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* Sidebar width */
|
|
243
|
+
|
|
244
|
+
@media (min-width: 544px) {
|
|
245
|
+
|
|
246
|
+
.Layout {
|
|
247
|
+
--Layout-sidebar-width: 220px;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@media (min-width: 768px) {
|
|
252
|
+
|
|
253
|
+
.Layout {
|
|
254
|
+
--Layout-sidebar-width: 256px;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
@media (min-width: 1012px) {
|
|
259
|
+
|
|
260
|
+
.Layout {
|
|
261
|
+
--Layout-sidebar-width: 296px;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
@media (min-width: 768px) {
|
|
266
|
+
|
|
267
|
+
.Layout.Layout--sidebar-narrow {
|
|
268
|
+
--Layout-sidebar-width: 240px;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
@media (min-width: 1012px) {
|
|
273
|
+
|
|
274
|
+
.Layout.Layout--sidebar-narrow {
|
|
275
|
+
--Layout-sidebar-width: 256px;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
@media (min-width: 1012px) {
|
|
280
|
+
|
|
281
|
+
.Layout.Layout--sidebar-wide {
|
|
282
|
+
--Layout-sidebar-width: 320px;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@media (min-width: 1280px) {
|
|
287
|
+
|
|
288
|
+
.Layout.Layout--sidebar-wide {
|
|
289
|
+
--Layout-sidebar-width: 336px;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/* Sidebar position */
|
|
294
|
+
|
|
295
|
+
.Layout.Layout--sidebarPosition-start .Layout-sidebar {
|
|
296
|
+
grid-column: 1;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.Layout.Layout--sidebarPosition-start .Layout-main {
|
|
300
|
+
grid-column: 2 / span 2;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.Layout.Layout--sidebarPosition-end {
|
|
304
|
+
grid-template-columns: minmax(0, calc(100% - var(--Layout-sidebar-width) - var(--Layout-gutter))) 0 auto;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.Layout.Layout--sidebarPosition-end .Layout-main {
|
|
308
|
+
grid-column: 1;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.Layout.Layout--sidebarPosition-end .Layout-sidebar {
|
|
312
|
+
grid-column: 2 / span 2;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* Sidebar divider */
|
|
316
|
+
|
|
317
|
+
.Layout.Layout--divided .Layout-divider {
|
|
318
|
+
display: block;
|
|
319
|
+
grid-column: 2;
|
|
320
|
+
width: 1px;
|
|
321
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
322
|
+
margin-right: -1px;
|
|
323
|
+
/* stylelint-disable-next-line primer/colors */
|
|
324
|
+
background: var(--borderColor-default);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.Layout.Layout--divided .Layout-main {
|
|
328
|
+
grid-column: 3 / span 1;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.Layout.Layout--divided.Layout--sidebarPosition-end .Layout-sidebar {
|
|
332
|
+
grid-column: 3 / span 1;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.Layout.Layout--divided.Layout--sidebarPosition-end .Layout-main {
|
|
336
|
+
grid-column: 1;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.Layout-divider {
|
|
340
|
+
display: none;
|
|
341
|
+
width: 1px;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.Layout-sidebar {
|
|
345
|
+
width: var(--Layout-sidebar-width);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.Layout-main {
|
|
349
|
+
min-width: 0;
|
|
350
|
+
|
|
351
|
+
/* Centered main column
|
|
352
|
+
** FIXME: right-aligned sidebar */
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl {
|
|
356
|
+
margin-right: auto;
|
|
357
|
+
margin-left: auto;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
:is(.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl) > .container-md,:is(.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl) > .container-lg,:is(.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl) > .container-xl {
|
|
361
|
+
margin-left: 0;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.Layout-main .Layout-main-centered-md {
|
|
365
|
+
max-width: calc(var(--breakpoint-medium) + var(--Layout-sidebar-width) + var(--Layout-gutter));
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.Layout-main .Layout-main-centered-lg {
|
|
369
|
+
max-width: calc(var(--breakpoint-large) + var(--Layout-sidebar-width) + var(--Layout-gutter));
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.Layout-main .Layout-main-centered-xl {
|
|
373
|
+
max-width: calc(var(--breakpoint-xlarge) + var(--Layout-sidebar-width) + var(--Layout-gutter));
|
|
374
|
+
}
|