jekyll-v4-theme-primer 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.md +22 -0
- data/README.md +116 -0
- data/_includes/.gitkeep +1 -0
- data/_includes/head-custom-google-analytics.html +10 -0
- data/_includes/head-custom.html +9 -0
- data/_includes/theme.html +11 -0
- data/_layouts/default.html +29 -0
- data/_layouts/home.html +4 -0
- data/_layouts/page.html +4 -0
- data/_layouts/post.html +4 -0
- data/_sass/@primer/css/actionlist/action-list-item-divider.scss +48 -0
- data/_sass/@primer/css/actionlist/action-list-item.scss +593 -0
- data/_sass/@primer/css/actionlist/action-list-tree.scss +118 -0
- data/_sass/@primer/css/actionlist/action-list-variables.scss +8 -0
- data/_sass/@primer/css/actionlist/action-list.scss +67 -0
- data/_sass/@primer/css/actionlist/index.scss +6 -0
- data/_sass/@primer/css/alerts/flash.scss +1 -0
- data/_sass/@primer/css/alerts/index.scss +3 -0
- data/_sass/@primer/css/autocomplete/autocomplete.scss +1 -0
- data/_sass/@primer/css/autocomplete/index.scss +4 -0
- data/_sass/@primer/css/autocomplete/suggester.scss +92 -0
- data/_sass/@primer/css/avatars/avatar-parent-child.scss +17 -0
- data/_sass/@primer/css/avatars/avatar-stack.scss +1 -0
- data/_sass/@primer/css/avatars/avatar.scss +1 -0
- data/_sass/@primer/css/avatars/circle-badge.scss +55 -0
- data/_sass/@primer/css/avatars/index.scss +7 -0
- data/_sass/@primer/css/base/base.scss +160 -0
- data/_sass/@primer/css/base/index.scss +6 -0
- data/_sass/@primer/css/base/kbd.scss +19 -0
- data/_sass/@primer/css/base/normalize.scss +381 -0
- data/_sass/@primer/css/base/octicons.scss +6 -0
- data/_sass/@primer/css/base/typography-base.scss +89 -0
- data/_sass/@primer/css/blankslate/blankslate.scss +1 -0
- data/_sass/@primer/css/blankslate/index.scss +2 -0
- data/_sass/@primer/css/box/box-overlay.scss +42 -0
- data/_sass/@primer/css/box/box.scss +1 -0
- data/_sass/@primer/css/box/index.scss +3 -0
- data/_sass/@primer/css/branch-name/branch-name.scss +31 -0
- data/_sass/@primer/css/branch-name/index.scss +3 -0
- data/_sass/@primer/css/breadcrumb/breadcrumb.scss +1 -0
- data/_sass/@primer/css/breadcrumb/index.scss +3 -0
- data/_sass/@primer/css/buttons/button-group.scss +92 -0
- data/_sass/@primer/css/buttons/button.scss +340 -0
- data/_sass/@primer/css/buttons/index.scss +4 -0
- data/_sass/@primer/css/buttons/misc.scss +231 -0
- data/_sass/@primer/css/color-modes/index.scss +12 -0
- data/_sass/@primer/css/color-modes/native.scss +22 -0
- data/_sass/@primer/css/color-modes/themes/dark.scss +6 -0
- data/_sass/@primer/css/color-modes/themes/dark_colorblind.scss +6 -0
- data/_sass/@primer/css/color-modes/themes/dark_dimmed.scss +6 -0
- data/_sass/@primer/css/color-modes/themes/dark_high_contrast.scss +6 -0
- data/_sass/@primer/css/color-modes/themes/dark_tritanopia.scss +6 -0
- data/_sass/@primer/css/color-modes/themes/light.scss +6 -0
- data/_sass/@primer/css/color-modes/themes/light_colorblind.scss +6 -0
- data/_sass/@primer/css/color-modes/themes/light_high_contrast.scss +6 -0
- data/_sass/@primer/css/color-modes/themes/light_tritanopia.scss +6 -0
- data/_sass/@primer/css/core/index.scss +30 -0
- data/_sass/@primer/css/dropdown/dropdown.scss +1 -0
- data/_sass/@primer/css/dropdown/index.scss +2 -0
- data/_sass/@primer/css/forms/FormControl.scss +1 -0
- data/_sass/@primer/css/forms/form-control.scss +267 -0
- data/_sass/@primer/css/forms/form-group.scss +287 -0
- data/_sass/@primer/css/forms/form-select.scss +46 -0
- data/_sass/@primer/css/forms/form-validation.scss +369 -0
- data/_sass/@primer/css/forms/index.scss +9 -0
- data/_sass/@primer/css/forms/input-group.scss +71 -0
- data/_sass/@primer/css/forms/radio-group.scss +62 -0
- data/_sass/@primer/css/header/header.scss +47 -0
- data/_sass/@primer/css/header/index.scss +2 -0
- data/_sass/@primer/css/index.scss +19 -0
- data/_sass/@primer/css/labels/counters.scss +1 -0
- data/_sass/@primer/css/labels/diffstat.scss +37 -0
- data/_sass/@primer/css/labels/index.scss +7 -0
- data/_sass/@primer/css/labels/issue-labels.scss +23 -0
- data/_sass/@primer/css/labels/labels.scss +1 -0
- data/_sass/@primer/css/labels/mixins.scss +37 -0
- data/_sass/@primer/css/labels/states.scss +1 -0
- data/_sass/@primer/css/layout/app-frame.scss +156 -0
- data/_sass/@primer/css/layout/container.scss +30 -0
- data/_sass/@primer/css/layout/grid-offset.scss +20 -0
- data/_sass/@primer/css/layout/grid.scss +65 -0
- data/_sass/@primer/css/layout/index.scss +8 -0
- data/_sass/@primer/css/layout/layout.scss +1 -0
- data/_sass/@primer/css/layout/page-layout.scss +413 -0
- data/_sass/@primer/css/layout/stack.scss +220 -0
- data/_sass/@primer/css/links/index.scss +3 -0
- data/_sass/@primer/css/links/link.scss +60 -0
- data/_sass/@primer/css/loaders/index.scss +2 -0
- data/_sass/@primer/css/loaders/loaders.scss +19 -0
- data/_sass/@primer/css/markdown/blob-csv.scss +29 -0
- data/_sass/@primer/css/markdown/code.scss +77 -0
- data/_sass/@primer/css/markdown/footnotes.scss +55 -0
- data/_sass/@primer/css/markdown/headings.scss +96 -0
- data/_sass/@primer/css/markdown/images.scss +130 -0
- data/_sass/@primer/css/markdown/index.scss +9 -0
- data/_sass/@primer/css/markdown/lists.scss +98 -0
- data/_sass/@primer/css/markdown/markdown-body.scss +96 -0
- data/_sass/@primer/css/markdown/tables.scss +36 -0
- data/_sass/@primer/css/marketing/buttons/button.scss +164 -0
- data/_sass/@primer/css/marketing/buttons/index.scss +3 -0
- data/_sass/@primer/css/marketing/index.scss +15 -0
- data/_sass/@primer/css/marketing/links/index.scss +3 -0
- data/_sass/@primer/css/marketing/links/link.scss +50 -0
- data/_sass/@primer/css/marketing/support/index.scss +2 -0
- data/_sass/@primer/css/marketing/support/variables.scss +127 -0
- data/_sass/@primer/css/marketing/type/index.scss +3 -0
- data/_sass/@primer/css/marketing/type/typography.scss +118 -0
- data/_sass/@primer/css/marketing/utilities/animations.scss +51 -0
- data/_sass/@primer/css/marketing/utilities/borders.scss +4 -0
- data/_sass/@primer/css/marketing/utilities/filters.scss +3 -0
- data/_sass/@primer/css/marketing/utilities/index.scss +6 -0
- data/_sass/@primer/css/marketing/utilities/layout.scss +51 -0
- data/_sass/@primer/css/navigation/filter-list.scss +82 -0
- data/_sass/@primer/css/navigation/index.scss +8 -0
- data/_sass/@primer/css/navigation/menu.scss +1 -0
- data/_sass/@primer/css/navigation/sidenav.scss +99 -0
- data/_sass/@primer/css/navigation/subnav.scss +146 -0
- data/_sass/@primer/css/navigation/tabnav.scss +1 -0
- data/_sass/@primer/css/navigation/underline-nav.scss +1 -0
- data/_sass/@primer/css/overlay/index.scss +2 -0
- data/_sass/@primer/css/overlay/overlay.scss +1 -0
- data/_sass/@primer/css/pagination/index.scss +3 -0
- data/_sass/@primer/css/pagination/pagination.scss +156 -0
- data/_sass/@primer/css/popover/index.scss +3 -0
- data/_sass/@primer/css/popover/popover.scss +1 -0
- data/_sass/@primer/css/primitives/index.scss +10 -0
- data/_sass/@primer/css/primitives/temp-typography-tokens.scss +22 -0
- data/_sass/@primer/css/product/index.scss +28 -0
- data/_sass/@primer/css/progress/index.scss +3 -0
- data/_sass/@primer/css/progress/progress.scss +1 -0
- data/_sass/@primer/css/select-menu/index.scss +3 -0
- data/_sass/@primer/css/select-menu/select-menu.scss +463 -0
- data/_sass/@primer/css/subhead/index.scss +3 -0
- data/_sass/@primer/css/subhead/subhead.scss +1 -0
- data/_sass/@primer/css/support/index.scss +10 -0
- data/_sass/@primer/css/support/mixins/color-modes.scss +109 -0
- data/_sass/@primer/css/support/mixins/layout.scss +58 -0
- data/_sass/@primer/css/support/mixins/misc.scss +73 -0
- data/_sass/@primer/css/support/mixins/typography.scss +91 -0
- data/_sass/@primer/css/support/variables/layout.scss +230 -0
- data/_sass/@primer/css/support/variables/misc.scss +18 -0
- data/_sass/@primer/css/support/variables/typography.scss +43 -0
- data/_sass/@primer/css/table-object/index.scss +1 -0
- data/_sass/@primer/css/table-object/table-object.scss +23 -0
- data/_sass/@primer/css/timeline/index.scss +2 -0
- data/_sass/@primer/css/timeline/timeline-item.scss +1 -0
- data/_sass/@primer/css/toasts/index.scss +2 -0
- data/_sass/@primer/css/toasts/toasts.scss +127 -0
- data/_sass/@primer/css/toggle-switch/index.scss +2 -0
- data/_sass/@primer/css/toggle-switch/toggle-switch.scss +1 -0
- data/_sass/@primer/css/tooltips/index.scss +2 -0
- data/_sass/@primer/css/tooltips/tooltips.scss +281 -0
- data/_sass/@primer/css/truncate/index.scss +2 -0
- data/_sass/@primer/css/truncate/truncate.scss +2 -0
- data/_sass/@primer/css/utilities/animations.scss +196 -0
- data/_sass/@primer/css/utilities/borders.scss +74 -0
- data/_sass/@primer/css/utilities/box-shadow.scss +25 -0
- data/_sass/@primer/css/utilities/colors.scss +95 -0
- data/_sass/@primer/css/utilities/details.scss +105 -0
- data/_sass/@primer/css/utilities/flexbox.scss +52 -0
- data/_sass/@primer/css/utilities/index.scss +14 -0
- data/_sass/@primer/css/utilities/layout.scss +96 -0
- data/_sass/@primer/css/utilities/margin.scss +71 -0
- data/_sass/@primer/css/utilities/padding.scss +56 -0
- data/_sass/@primer/css/utilities/typography.scss +332 -0
- data/_sass/@primer/css/utilities/visibility-display.scss +123 -0
- data/_sass/@primer/primitives/dist/scss/colors/_dark.scss +443 -0
- data/_sass/@primer/primitives/dist/scss/colors/_dark_colorblind.scss +443 -0
- data/_sass/@primer/primitives/dist/scss/colors/_dark_dimmed.scss +443 -0
- data/_sass/@primer/primitives/dist/scss/colors/_dark_high_contrast.scss +443 -0
- data/_sass/@primer/primitives/dist/scss/colors/_dark_tritanopia.scss +443 -0
- data/_sass/@primer/primitives/dist/scss/colors/_light.scss +443 -0
- data/_sass/@primer/primitives/dist/scss/colors/_light_colorblind.scss +443 -0
- data/_sass/@primer/primitives/dist/scss/colors/_light_high_contrast.scss +443 -0
- data/_sass/@primer/primitives/dist/scss/colors/_light_tritanopia.scss +443 -0
- data/_sass/@primer/primitives/dist/scss/spacing/_normal.scss +11 -0
- data/_sass/@primer/primitives/dist/scss/typography/_normal.scss +15 -0
- data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/base/size/size.scss +21 -0
- data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/base/typography/typography.scss +8 -0
- data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/border.scss +14 -0
- data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +10 -0
- data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +7 -0
- data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +7 -0
- data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/size.scss +51 -0
- data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/size/viewport.scss +10 -0
- data/_sass/@primer/primitives/tokens-v2-private/scss/tokens/functional/typography/typography.scss +44 -0
- data/_sass/@primer/view-components/LICENSE.txt +21 -0
- data/_sass/@primer/view-components/README.md +17 -0
- data/_sass/@primer/view-components/app/assets/javascripts/primer_view_components.js +2 -0
- data/_sass/@primer/view-components/app/assets/javascripts/primer_view_components.js.map +1 -0
- data/_sass/@primer/view-components/app/assets/styles/primer_view_components.css +3 -0
- data/_sass/@primer/view-components/app/assets/styles/primer_view_components.css.map +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/action_list.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/action_list.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/auto_complete.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/auto_complete.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/banner.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/banner.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/button_marketing.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/button_marketing.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/dialog.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/dialog.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/dropdown/menu.d.ts +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/dropdown/menu.js +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/dropdown.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/dropdown.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/dropdown.d.ts +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/dropdown.js +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/image_crop.d.ts +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/image_crop.js +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/layout.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/layout.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/menu.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/menu.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/modal_dialog.d.ts +18 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/modal_dialog.js +150 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/nav_list.d.ts +25 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/nav_list.js +130 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.d.ts +12 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.js +47 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/tab_nav.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/tab_nav.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/text_field.css +3 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/text_field.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.d.ts +29 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.js +144 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/tool_tip.d.ts +25 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/tool_tip.js +389 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/underline_nav.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/underline_nav.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/x_banner.d.ts +11 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/x_banner.js +35 -0
- data/_sass/@primer/view-components/app/components/primer/beta/auto_complete/auto_complete.d.ts +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/auto_complete/auto_complete.js +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/avatar.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/avatar.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/avatar_stack.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/avatar_stack.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/blankslate.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/blankslate.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/border_box.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/border_box.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/breadcrumbs.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/breadcrumbs.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/button.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/button.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/clipboard_copy.d.ts +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/clipboard_copy.js +43 -0
- data/_sass/@primer/view-components/app/components/primer/beta/counter.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/counter.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/flash.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/flash.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/label.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/label.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/link.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/link.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/popover.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/popover.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/progress_bar.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/progress_bar.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/truncate.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/beta/truncate.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/local_time.d.ts +1 -0
- data/_sass/@primer/view-components/app/components/primer/local_time.js +1 -0
- data/_sass/@primer/view-components/app/components/primer/primer.d.ts +15 -0
- data/_sass/@primer/view-components/app/components/primer/primer.js +15 -0
- data/_sass/@primer/view-components/app/components/primer/state_component.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/state_component.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/subhead_component.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/subhead_component.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/tab_container_component.d.ts +1 -0
- data/_sass/@primer/view-components/app/components/primer/tab_container_component.js +1 -0
- data/_sass/@primer/view-components/app/components/primer/time_ago_component.d.ts +1 -0
- data/_sass/@primer/view-components/app/components/primer/time_ago_component.js +1 -0
- data/_sass/@primer/view-components/app/components/primer/timeline_item_component.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/timeline_item_component.css.json +1 -0
- data/_sass/@primer/view-components/app/components/primer/truncate.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/truncate.css.json +1 -0
- data/_sass/@primer/view-components/lib/primer/forms/primer_multi_input.d.ts +10 -0
- data/_sass/@primer/view-components/lib/primer/forms/primer_multi_input.js +45 -0
- data/_sass/@primer/view-components/lib/primer/forms/primer_text_field.d.ts +1 -0
- data/_sass/@primer/view-components/lib/primer/forms/primer_text_field.js +62 -0
- data/_sass/@primer/view-components/package.json +95 -0
- data/_sass/@primer/view-components/static/arguments.json +2586 -0
- data/_sass/@primer/view-components/static/audited_at.json +100 -0
- data/_sass/@primer/view-components/static/constants.json +1157 -0
- data/_sass/@primer/view-components/static/statuses.json +100 -0
- data/_sass/jekyll-theme-primer.scss +8 -0
- data/_sass/primer.scss +4 -0
- data/_sass/rouge.scss +213 -0
- data/assets/css/style.scss +4 -0
- metadata +444 -0
@@ -0,0 +1,156 @@
|
|
1
|
+
// Needs refactoring
|
2
|
+
// stylelint-disable selector-max-type
|
3
|
+
.pagination {
|
4
|
+
a,
|
5
|
+
span,
|
6
|
+
em {
|
7
|
+
min-width: 32px;
|
8
|
+
// stylelint-disable-next-line primer/spacing
|
9
|
+
padding: 5px 10px;
|
10
|
+
font-style: normal;
|
11
|
+
// stylelint-disable-next-line primer/typography
|
12
|
+
line-height: 20px;
|
13
|
+
color: var(--color-fg-default);
|
14
|
+
text-align: center;
|
15
|
+
white-space: nowrap;
|
16
|
+
vertical-align: middle;
|
17
|
+
cursor: pointer;
|
18
|
+
user-select: none;
|
19
|
+
border: $border-width $border-style transparent;
|
20
|
+
border-radius: $border-radius;
|
21
|
+
transition: border-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
|
22
|
+
|
23
|
+
&:hover,
|
24
|
+
&:focus {
|
25
|
+
text-decoration: none;
|
26
|
+
border-color: var(--color-border-default);
|
27
|
+
transition-duration: 0.1s;
|
28
|
+
}
|
29
|
+
|
30
|
+
&:active {
|
31
|
+
border-color: var(--color-border-muted);
|
32
|
+
transition: none;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.previous_page,
|
37
|
+
.next_page {
|
38
|
+
color: var(--color-accent-fg);
|
39
|
+
}
|
40
|
+
|
41
|
+
.current,
|
42
|
+
.current:hover,
|
43
|
+
[aria-current]:not([aria-current='false']) {
|
44
|
+
color: var(--color-fg-on-emphasis);
|
45
|
+
background-color: var(--color-accent-emphasis);
|
46
|
+
border-color: transparent;
|
47
|
+
}
|
48
|
+
|
49
|
+
.gap,
|
50
|
+
.disabled,
|
51
|
+
[aria-disabled='true'],
|
52
|
+
.gap:hover,
|
53
|
+
.disabled:hover,
|
54
|
+
[aria-disabled='true']:hover {
|
55
|
+
color: var(--color-primer-fg-disabled);
|
56
|
+
cursor: default;
|
57
|
+
border-color: transparent;
|
58
|
+
}
|
59
|
+
|
60
|
+
// chevron icons using clip-path
|
61
|
+
@supports (clip-path: polygon(50% 0, 100% 50%, 50% 100%)) {
|
62
|
+
.previous_page::before,
|
63
|
+
.next_page::after {
|
64
|
+
display: inline-block;
|
65
|
+
width: 16px;
|
66
|
+
height: 16px;
|
67
|
+
vertical-align: text-bottom;
|
68
|
+
content: '';
|
69
|
+
// stylelint-disable-next-line primer/colors
|
70
|
+
background-color: currentColor;
|
71
|
+
}
|
72
|
+
|
73
|
+
// chevron-left
|
74
|
+
.previous_page::before {
|
75
|
+
margin-right: $spacer-1;
|
76
|
+
clip-path:
|
77
|
+
polygon(
|
78
|
+
9.8px 12.8px,
|
79
|
+
8.7px 12.8px,
|
80
|
+
4.5px 8.5px,
|
81
|
+
4.5px 7.5px,
|
82
|
+
8.7px 3.2px,
|
83
|
+
9.8px 4.3px,
|
84
|
+
6.1px 8px,
|
85
|
+
9.8px 11.7px,
|
86
|
+
9.8px 12.8px
|
87
|
+
);
|
88
|
+
}
|
89
|
+
|
90
|
+
// chevron-right
|
91
|
+
.next_page::after {
|
92
|
+
margin-left: $spacer-1;
|
93
|
+
clip-path:
|
94
|
+
polygon(
|
95
|
+
6.2px 3.2px,
|
96
|
+
7.3px 3.2px,
|
97
|
+
11.5px 7.5px,
|
98
|
+
11.5px 8.5px,
|
99
|
+
7.3px 12.8px,
|
100
|
+
6.2px 11.7px,
|
101
|
+
9.9px 8px,
|
102
|
+
6.2px 4.3px,
|
103
|
+
6.2px 3.2px
|
104
|
+
);
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
// Responsive
|
109
|
+
|
110
|
+
// Hide everything by default
|
111
|
+
> * {
|
112
|
+
display: none;
|
113
|
+
}
|
114
|
+
|
115
|
+
// 0 -> sm
|
116
|
+
// Only show [Previous] [Next]
|
117
|
+
|
118
|
+
> :first-child,
|
119
|
+
> :last-child,
|
120
|
+
> .previous_page,
|
121
|
+
> .next_page {
|
122
|
+
display: inline-block;
|
123
|
+
}
|
124
|
+
|
125
|
+
// sm -> md
|
126
|
+
// Also show [first] [last] [current number] and [...]
|
127
|
+
|
128
|
+
@include breakpoint(sm) {
|
129
|
+
> :nth-child(2),
|
130
|
+
> :nth-last-child(2),
|
131
|
+
> .current,
|
132
|
+
> .gap {
|
133
|
+
display: inline-block;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
// md -> or more
|
138
|
+
// Show everything
|
139
|
+
|
140
|
+
@include breakpoint(md) {
|
141
|
+
> * {
|
142
|
+
display: inline-block;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
// Unified centered pagination across the site
|
148
|
+
.paginate-container {
|
149
|
+
margin-top: $spacer-3;
|
150
|
+
margin-bottom: $spacer-3;
|
151
|
+
text-align: center;
|
152
|
+
|
153
|
+
.pagination {
|
154
|
+
display: inline-block;
|
155
|
+
}
|
156
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
@import '@primer/view-components/app/components/primer/beta/popover';
|
@@ -0,0 +1,10 @@
|
|
1
|
+
@import '@primer/primitives/tokens-v2-private/css/tokens/base/size/size';
|
2
|
+
@import '@primer/primitives/tokens-v2-private/css/tokens/base/typography/typography';
|
3
|
+
@import '@primer/primitives/tokens-v2-private/css/tokens/functional/size/border';
|
4
|
+
@import '@primer/primitives/tokens-v2-private/css/tokens/functional/size/breakpoints';
|
5
|
+
@import '@primer/primitives/tokens-v2-private/css/tokens/functional/size/size-coarse';
|
6
|
+
@import '@primer/primitives/tokens-v2-private/css/tokens/functional/size/size-fine';
|
7
|
+
@import '@primer/primitives/tokens-v2-private/css/tokens/functional/size/size';
|
8
|
+
@import '@primer/primitives/tokens-v2-private/css/tokens/functional/size/viewport';
|
9
|
+
@import '@primer/primitives/tokens-v2-private/css/tokens/functional/typography/typography';
|
10
|
+
@import './temp-typography-tokens.scss';
|
@@ -0,0 +1,22 @@
|
|
1
|
+
// Temporary typography vars in rem units variables
|
2
|
+
:root {
|
3
|
+
// Heading sizes - mobile
|
4
|
+
// h4-h6 remain the same size on both mobile & desktop
|
5
|
+
--h00-size-mobile: 2.5rem;
|
6
|
+
--h0-size-mobile: 2rem;
|
7
|
+
--h1-size-mobile: 1.625rem;
|
8
|
+
--h2-size-mobile: 1.375rem;
|
9
|
+
--h3-size-mobile: 1.125rem;
|
10
|
+
|
11
|
+
// Heading sizes - desktop
|
12
|
+
--h00-size: 3rem;
|
13
|
+
--h0-size: 2.5rem;
|
14
|
+
--h1-size: 2rem;
|
15
|
+
--h2-size: 1.5rem;
|
16
|
+
--h3-size: 1.25rem;
|
17
|
+
--h4-size: 1rem;
|
18
|
+
--h5-size: 0.875rem;
|
19
|
+
--h6-size: 0.75rem;
|
20
|
+
--body-font-size: 0.875rem;
|
21
|
+
--font-size-small: 0.75rem;
|
22
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/*!
|
2
|
+
* @primer/css/product
|
3
|
+
* http://primer.style/css
|
4
|
+
*
|
5
|
+
* Released under MIT license. Copyright (c) 2019 GitHub Inc.
|
6
|
+
*/
|
7
|
+
|
8
|
+
// Global requirements
|
9
|
+
@import '../support/index.scss';
|
10
|
+
|
11
|
+
// Product specific css modules
|
12
|
+
@import '../alerts/index.scss';
|
13
|
+
@import '../autocomplete/index.scss';
|
14
|
+
@import '../avatars/index.scss';
|
15
|
+
@import '../blankslate/index.scss';
|
16
|
+
@import '../branch-name/index.scss';
|
17
|
+
@import '../dropdown/index.scss';
|
18
|
+
@import '../header/index.scss';
|
19
|
+
@import '../labels/index.scss';
|
20
|
+
@import '../loaders/index.scss';
|
21
|
+
@import '../markdown/index.scss';
|
22
|
+
@import '../popover/index.scss';
|
23
|
+
@import '../progress/index.scss';
|
24
|
+
@import '../select-menu/index.scss';
|
25
|
+
@import '../subhead/index.scss';
|
26
|
+
@import '../timeline/index.scss';
|
27
|
+
@import '../toasts/index.scss';
|
28
|
+
@import '../toggle-switch/index.scss';
|
@@ -0,0 +1 @@
|
|
1
|
+
@import '@primer/view-components/app/components/primer/beta/progress_bar';
|
@@ -0,0 +1,463 @@
|
|
1
|
+
// stylelint-disable selector-max-type
|
2
|
+
// selector-max-type is needed for body:not(.intent-mouse) to target keyboard only styles.
|
3
|
+
|
4
|
+
$SelectMenu-max-height: 480px !default;
|
5
|
+
|
6
|
+
// Select Menu
|
7
|
+
//
|
8
|
+
// A more advanced menu with support for navigation, filtering, and more.
|
9
|
+
|
10
|
+
.SelectMenu {
|
11
|
+
position: fixed;
|
12
|
+
top: 0;
|
13
|
+
right: 0;
|
14
|
+
bottom: 0;
|
15
|
+
left: 0;
|
16
|
+
z-index: 99;
|
17
|
+
display: flex;
|
18
|
+
padding: $spacer-3;
|
19
|
+
pointer-events: none;
|
20
|
+
flex-direction: column;
|
21
|
+
|
22
|
+
@include breakpoint(sm) {
|
23
|
+
position: absolute;
|
24
|
+
top: auto;
|
25
|
+
right: auto;
|
26
|
+
bottom: auto;
|
27
|
+
left: auto;
|
28
|
+
padding: 0;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
// Backdrop
|
33
|
+
//
|
34
|
+
// Adds a dark, semi transparent "cover" underneath the modal. Only visible for xs.
|
35
|
+
|
36
|
+
.SelectMenu::before {
|
37
|
+
position: absolute;
|
38
|
+
top: 0;
|
39
|
+
right: 0;
|
40
|
+
bottom: 0;
|
41
|
+
left: 0;
|
42
|
+
pointer-events: none;
|
43
|
+
content: '';
|
44
|
+
background-color: var(--color-primer-canvas-backdrop);
|
45
|
+
|
46
|
+
@include breakpoint(sm) {
|
47
|
+
display: none;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
// Modal
|
52
|
+
//
|
53
|
+
// The main "box" that contains the content
|
54
|
+
|
55
|
+
.SelectMenu-modal {
|
56
|
+
position: relative;
|
57
|
+
z-index: 99; // Needs to be higher than .details-overlay's z-index: 80.
|
58
|
+
display: flex;
|
59
|
+
max-height: 66%;
|
60
|
+
margin: auto 0;
|
61
|
+
overflow: hidden; // Enables border radius on scrollable child elements
|
62
|
+
pointer-events: auto;
|
63
|
+
flex-direction: column;
|
64
|
+
background-color: var(--color-canvas-overlay);
|
65
|
+
border: $border-width $border-style var(--color-select-menu-backdrop-border);
|
66
|
+
// stylelint-disable-next-line primer/borders
|
67
|
+
border-radius: $border-radius * 2;
|
68
|
+
box-shadow: var(--color-shadow-large);
|
69
|
+
animation: SelectMenu-modal-animation 0.12s cubic-bezier(0, 0.1, 0.1, 1) backwards;
|
70
|
+
|
71
|
+
@keyframes SelectMenu-modal-animation {
|
72
|
+
0% {
|
73
|
+
opacity: 0;
|
74
|
+
transform: scale(0.9);
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
@keyframes SelectMenu-modal-animation--sm {
|
79
|
+
0% {
|
80
|
+
opacity: 0;
|
81
|
+
transform: translateY(-$spacer-3);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
@include breakpoint(sm) {
|
86
|
+
width: 300px;
|
87
|
+
height: auto;
|
88
|
+
max-height: $SelectMenu-max-height;
|
89
|
+
margin: $spacer-2 0 $spacer-3 0;
|
90
|
+
font-size: $font-size-small;
|
91
|
+
border-color: var(--color-border-default);
|
92
|
+
border-radius: $border-radius;
|
93
|
+
box-shadow: var(--color-shadow-large);
|
94
|
+
animation-name: SelectMenu-modal-animation--sm;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
// Header
|
99
|
+
//
|
100
|
+
// Used for showing a title and the close button. Close button is only visible for xs.
|
101
|
+
|
102
|
+
.SelectMenu-header {
|
103
|
+
display: flex;
|
104
|
+
padding: $spacer-3;
|
105
|
+
flex: none; // fixes header from getting squeezed in Safari iOS
|
106
|
+
align-items: center;
|
107
|
+
border-bottom: $border-width $border-style var(--color-border-muted);
|
108
|
+
|
109
|
+
@include breakpoint(sm) {
|
110
|
+
// stylelint-disable-next-line primer/spacing
|
111
|
+
padding: 7px 7px 7px $spacer-3;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
.SelectMenu-title {
|
116
|
+
flex: 1;
|
117
|
+
font-size: $body-font-size;
|
118
|
+
font-weight: $font-weight-bold;
|
119
|
+
|
120
|
+
@include breakpoint(sm) {
|
121
|
+
font-size: inherit;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
.SelectMenu-closeButton {
|
126
|
+
padding: $spacer-3;
|
127
|
+
margin: -$spacer-3;
|
128
|
+
line-height: 1;
|
129
|
+
color: var(--color-fg-muted);
|
130
|
+
background-color: transparent;
|
131
|
+
border: 0;
|
132
|
+
|
133
|
+
@include breakpoint(sm) {
|
134
|
+
padding: $spacer-2;
|
135
|
+
// stylelint-disable-next-line primer/spacing
|
136
|
+
margin: (-$spacer-2) (-7px); // Using -7px fixes a :focus glitch
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
// Filter
|
141
|
+
//
|
142
|
+
// An input to filter a large list
|
143
|
+
|
144
|
+
.SelectMenu-filter {
|
145
|
+
padding: $spacer-3;
|
146
|
+
margin: 0;
|
147
|
+
border-bottom: $border-width $border-style var(--color-border-muted);
|
148
|
+
|
149
|
+
@include breakpoint(sm) {
|
150
|
+
padding: $spacer-2;
|
151
|
+
}
|
152
|
+
}
|
153
|
+
|
154
|
+
.SelectMenu-input {
|
155
|
+
display: block;
|
156
|
+
width: 100%;
|
157
|
+
|
158
|
+
@include breakpoint(sm) {
|
159
|
+
font-size: $h5-size;
|
160
|
+
}
|
161
|
+
}
|
162
|
+
|
163
|
+
// List
|
164
|
+
//
|
165
|
+
// The container that holds all the list items. Starts scrolling when the list gets too long.
|
166
|
+
|
167
|
+
.SelectMenu-list {
|
168
|
+
position: relative;
|
169
|
+
padding: 0;
|
170
|
+
margin: 0;
|
171
|
+
// stylelint-disable-next-line primer/spacing
|
172
|
+
margin-bottom: -$border-width; // Hides the last border in the list
|
173
|
+
flex: auto;
|
174
|
+
overflow-x: hidden;
|
175
|
+
overflow-y: auto;
|
176
|
+
background-color: var(--color-canvas-overlay);
|
177
|
+
-webkit-overflow-scrolling: touch; // Adds momentum + bouncy scrolling
|
178
|
+
}
|
179
|
+
|
180
|
+
// List Item
|
181
|
+
//
|
182
|
+
// The interactive element used to make a selection
|
183
|
+
|
184
|
+
.SelectMenu-item {
|
185
|
+
display: flex;
|
186
|
+
align-items: center;
|
187
|
+
width: 100%;
|
188
|
+
padding: $spacer-3;
|
189
|
+
overflow: hidden;
|
190
|
+
color: var(--color-fg-default);
|
191
|
+
text-align: left;
|
192
|
+
cursor: pointer;
|
193
|
+
background-color: var(--color-canvas-overlay);
|
194
|
+
border: 0;
|
195
|
+
border-bottom: $border-width $border-style var(--color-border-muted);
|
196
|
+
|
197
|
+
@include breakpoint(sm) {
|
198
|
+
// stylelint-disable-next-line primer/spacing
|
199
|
+
padding-top: 7px;
|
200
|
+
// stylelint-disable-next-line primer/spacing
|
201
|
+
padding-bottom: 7px;
|
202
|
+
}
|
203
|
+
|
204
|
+
// Borderless
|
205
|
+
.SelectMenu-list--borderless & {
|
206
|
+
border-bottom: 0;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
// Icon
|
211
|
+
//
|
212
|
+
// Icon shown on the left of a list item.
|
213
|
+
|
214
|
+
.SelectMenu-icon {
|
215
|
+
width: $spacer-3; // fixed width to make sure following content aligns
|
216
|
+
margin-right: $spacer-2;
|
217
|
+
flex-shrink: 0;
|
218
|
+
}
|
219
|
+
|
220
|
+
// Check icon
|
221
|
+
.SelectMenu-icon--check {
|
222
|
+
visibility: hidden;
|
223
|
+
transition: transform 0.12s cubic-bezier(0.5, 0.1, 1, 0.5), visibility 0s 0.12s linear;
|
224
|
+
transform: scale(0);
|
225
|
+
}
|
226
|
+
|
227
|
+
// Tabs
|
228
|
+
//
|
229
|
+
// Allows switching between multiple lists
|
230
|
+
|
231
|
+
.SelectMenu-tabs {
|
232
|
+
display: flex;
|
233
|
+
flex-shrink: 0;
|
234
|
+
overflow-x: auto;
|
235
|
+
overflow-y: hidden;
|
236
|
+
// stylelint-disable-next-line primer/box-shadow
|
237
|
+
box-shadow: inset 0 -1px 0 var(--color-border-muted);
|
238
|
+
-webkit-overflow-scrolling: touch;
|
239
|
+
|
240
|
+
// Hide scrollbar so it doesn't cover the text
|
241
|
+
&::-webkit-scrollbar {
|
242
|
+
display: none;
|
243
|
+
}
|
244
|
+
|
245
|
+
@include breakpoint(sm) {
|
246
|
+
padding: $spacer-2 $spacer-2 0 $spacer-2;
|
247
|
+
}
|
248
|
+
}
|
249
|
+
|
250
|
+
.SelectMenu-tab {
|
251
|
+
flex: 1;
|
252
|
+
padding: $spacer-2 $spacer-3;
|
253
|
+
font-size: $font-size-small;
|
254
|
+
font-weight: $font-weight-semibold;
|
255
|
+
color: var(--color-fg-muted);
|
256
|
+
text-align: center;
|
257
|
+
background-color: transparent;
|
258
|
+
border: 0;
|
259
|
+
// stylelint-disable-next-line primer/box-shadow
|
260
|
+
box-shadow: inset 0 -1px 0 var(--color-border-muted);
|
261
|
+
|
262
|
+
@include breakpoint(sm) {
|
263
|
+
flex: none;
|
264
|
+
padding: $spacer-1 $spacer-3;
|
265
|
+
border: $border-width $border-style transparent;
|
266
|
+
border-bottom-width: 0;
|
267
|
+
border-top-left-radius: $border-radius;
|
268
|
+
border-top-right-radius: $border-radius;
|
269
|
+
}
|
270
|
+
|
271
|
+
&[aria-selected='true'] {
|
272
|
+
z-index: 1; // Keeps box-shadow visible when hovering
|
273
|
+
color: var(--color-fg-default);
|
274
|
+
cursor: default;
|
275
|
+
background-color: var(--color-canvas-overlay);
|
276
|
+
// stylelint-disable-next-line primer/box-shadow
|
277
|
+
box-shadow: 0 0 0 1px var(--color-border-muted);
|
278
|
+
|
279
|
+
@include breakpoint(sm) {
|
280
|
+
border-color: var(--color-border-muted);
|
281
|
+
box-shadow: none;
|
282
|
+
}
|
283
|
+
}
|
284
|
+
}
|
285
|
+
|
286
|
+
// Message
|
287
|
+
//
|
288
|
+
// A container used to show different kinds of text messages.
|
289
|
+
|
290
|
+
.SelectMenu-message {
|
291
|
+
// stylelint-disable-next-line primer/spacing
|
292
|
+
padding: 7px $spacer-3;
|
293
|
+
text-align: center;
|
294
|
+
background-color: var(--color-canvas-overlay);
|
295
|
+
border-bottom: $border-width $border-style var(--color-border-muted);
|
296
|
+
}
|
297
|
+
|
298
|
+
// Blankslate and Loading
|
299
|
+
//
|
300
|
+
// A container used to show a blankslate or the loading animation.
|
301
|
+
|
302
|
+
.SelectMenu-blankslate,
|
303
|
+
.SelectMenu-loading {
|
304
|
+
padding: $spacer-4 $spacer-3;
|
305
|
+
text-align: center;
|
306
|
+
background-color: var(--color-canvas-overlay);
|
307
|
+
}
|
308
|
+
|
309
|
+
// Divider
|
310
|
+
//
|
311
|
+
// Can be used to divide the list into multiple groups
|
312
|
+
|
313
|
+
.SelectMenu-divider {
|
314
|
+
padding: $spacer-1 $spacer-3;
|
315
|
+
margin: 0;
|
316
|
+
font-size: $font-size-small;
|
317
|
+
font-weight: $font-weight-semibold;
|
318
|
+
color: var(--color-fg-muted);
|
319
|
+
background-color: var(--color-canvas-subtle);
|
320
|
+
border-bottom: $border-width $border-style var(--color-border-muted);
|
321
|
+
|
322
|
+
// Borderless
|
323
|
+
.SelectMenu-list--borderless & {
|
324
|
+
border-top: $border-width $border-style var(--color-border-muted);
|
325
|
+
|
326
|
+
&:empty {
|
327
|
+
padding: 0;
|
328
|
+
border-top: 0;
|
329
|
+
}
|
330
|
+
}
|
331
|
+
}
|
332
|
+
|
333
|
+
// Footer
|
334
|
+
//
|
335
|
+
// A container at the bottom.
|
336
|
+
|
337
|
+
.SelectMenu-footer {
|
338
|
+
z-index: 0; // Avoid top border from getting covered by the negative margin of the list
|
339
|
+
padding: $spacer-2 $spacer-3;
|
340
|
+
font-size: $font-size-small;
|
341
|
+
color: var(--color-fg-muted);
|
342
|
+
text-align: center;
|
343
|
+
border-top: $border-width $border-style var(--color-border-muted);
|
344
|
+
|
345
|
+
@include breakpoint(sm) {
|
346
|
+
// stylelint-disable-next-line primer/spacing
|
347
|
+
padding: 7px $spacer-3;
|
348
|
+
}
|
349
|
+
}
|
350
|
+
|
351
|
+
// Has Filter (modifier)
|
352
|
+
//
|
353
|
+
// Makes sure that the filter input keeps a fixed position at the top while typing. Only visible for xs.
|
354
|
+
|
355
|
+
.SelectMenu--hasFilter {
|
356
|
+
.SelectMenu-modal {
|
357
|
+
height: 80%;
|
358
|
+
max-height: none;
|
359
|
+
margin-top: 0;
|
360
|
+
|
361
|
+
@include breakpoint(sm) {
|
362
|
+
height: auto;
|
363
|
+
max-height: $SelectMenu-max-height;
|
364
|
+
margin-top: $spacer-2;
|
365
|
+
}
|
366
|
+
}
|
367
|
+
}
|
368
|
+
|
369
|
+
// States
|
370
|
+
//
|
371
|
+
// Different states
|
372
|
+
|
373
|
+
// Reset outlines
|
374
|
+
.SelectMenu-tab:focus,
|
375
|
+
.SelectMenu-item:focus {
|
376
|
+
outline: 0;
|
377
|
+
}
|
378
|
+
|
379
|
+
// Reset <a> elements
|
380
|
+
.SelectMenu-item:hover {
|
381
|
+
text-decoration: none;
|
382
|
+
}
|
383
|
+
|
384
|
+
// Selected
|
385
|
+
//
|
386
|
+
// Visible when a user clicks/taps on a list item
|
387
|
+
|
388
|
+
.SelectMenu-item[aria-checked='true'] {
|
389
|
+
font-weight: $font-weight-semibold;
|
390
|
+
color: var(--color-fg-default);
|
391
|
+
|
392
|
+
.SelectMenu-icon--check {
|
393
|
+
visibility: visible;
|
394
|
+
transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), visibility 0s linear;
|
395
|
+
transform: scale(1);
|
396
|
+
}
|
397
|
+
}
|
398
|
+
|
399
|
+
// Disabled
|
400
|
+
//
|
401
|
+
// Prevent list items to be selected
|
402
|
+
|
403
|
+
.SelectMenu-item:disabled,
|
404
|
+
.SelectMenu-item[aria-disabled='true'] {
|
405
|
+
color: var(--color-primer-fg-disabled);
|
406
|
+
pointer-events: none;
|
407
|
+
}
|
408
|
+
|
409
|
+
// Can hover states
|
410
|
+
//
|
411
|
+
// For mouse/keyboard input
|
412
|
+
|
413
|
+
@media (hover: hover) {
|
414
|
+
body:not(.intent-mouse) .SelectMenu-closeButton:focus,
|
415
|
+
.SelectMenu-closeButton:hover {
|
416
|
+
color: var(--color-fg-default);
|
417
|
+
}
|
418
|
+
|
419
|
+
.SelectMenu-closeButton:active {
|
420
|
+
color: var(--color-fg-muted);
|
421
|
+
}
|
422
|
+
|
423
|
+
body:not(.intent-mouse) .SelectMenu-item:focus,
|
424
|
+
.SelectMenu-item:hover {
|
425
|
+
background-color: var(--color-neutral-subtle);
|
426
|
+
}
|
427
|
+
|
428
|
+
.SelectMenu-item:active {
|
429
|
+
background-color: var(--color-canvas-subtle);
|
430
|
+
}
|
431
|
+
|
432
|
+
body:not(.intent-mouse) .SelectMenu-tab:focus {
|
433
|
+
background-color: var(--color-select-menu-tap-focus-bg);
|
434
|
+
}
|
435
|
+
|
436
|
+
.SelectMenu-tab:hover {
|
437
|
+
color: var(--color-fg-default);
|
438
|
+
}
|
439
|
+
|
440
|
+
.SelectMenu-tab:not([aria-selected='true']):active {
|
441
|
+
color: var(--color-fg-default);
|
442
|
+
background-color: var(--color-canvas-subtle);
|
443
|
+
}
|
444
|
+
}
|
445
|
+
|
446
|
+
// Can not hover states
|
447
|
+
//
|
448
|
+
// For touch input
|
449
|
+
|
450
|
+
@media (hover: none) {
|
451
|
+
// Android
|
452
|
+
.SelectMenu-item:focus,
|
453
|
+
.SelectMenu-item:active {
|
454
|
+
background-color: var(--color-canvas-subtle);
|
455
|
+
}
|
456
|
+
|
457
|
+
// iOS Safari
|
458
|
+
// :active would work if ontouchstart is added to the button
|
459
|
+
// Instead this tweaks the "native" highlight color
|
460
|
+
.SelectMenu-item {
|
461
|
+
-webkit-tap-highlight-color: var(--color-select-menu-tap-highlight);
|
462
|
+
}
|
463
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
@import '@primer/view-components/app/components/primer/subhead_component';
|