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,118 @@
|
|
1
|
+
// Headings
|
2
|
+
.h0-mktg,
|
3
|
+
.h1-mktg,
|
4
|
+
.h2-mktg,
|
5
|
+
.h3-mktg,
|
6
|
+
.h4-mktg,
|
7
|
+
.h5-mktg,
|
8
|
+
.h6-mktg {
|
9
|
+
font-family: $font-mktg;
|
10
|
+
font-feature-settings: $mktg-font-feature-settings;
|
11
|
+
// stylelint-disable-next-line primer/typography
|
12
|
+
font-weight: $mktg-header-weight-default !important;
|
13
|
+
letter-spacing: $mktg-header-spacing-default !important;
|
14
|
+
}
|
15
|
+
|
16
|
+
@each $header, $sizes in $mktg-headers {
|
17
|
+
.h#{$header}-mktg {
|
18
|
+
$pairing: map-get($mktg-header-pairings, nth($sizes, 1));
|
19
|
+
$pairing-md: map-get($mktg-header-pairings, nth($sizes, 2));
|
20
|
+
$pairing-lg: map-get($mktg-header-pairings, nth($sizes, 3));
|
21
|
+
|
22
|
+
font-size: map-get($pairing, 'size') !important;
|
23
|
+
line-height: map-get($pairing, 'lh') !important;
|
24
|
+
|
25
|
+
@if (map-get($pairing, 'size') >= $mktg-header-weight-threshold) { font-weight: $mktg-header-weight-large !important; }
|
26
|
+
|
27
|
+
@if (nth($sizes, 1) != nth($sizes, 2)) {
|
28
|
+
@include breakpoint(md) {
|
29
|
+
font-size: map-get($pairing-md, 'size') !important;
|
30
|
+
line-height: map-get($pairing-md, 'lh') !important;
|
31
|
+
|
32
|
+
@if (map-get($pairing-md, 'size') >= $mktg-header-spacing-threshold and map-get($pairing, 'size') < $mktg-header-spacing-threshold) {
|
33
|
+
letter-spacing: $mktg-header-spacing-large !important;
|
34
|
+
}
|
35
|
+
|
36
|
+
@if (map-get($pairing-md, 'size') >= $mktg-header-weight-threshold and map-get($pairing, 'size') < $mktg-header-weight-threshold) {
|
37
|
+
font-weight: $mktg-header-weight-large !important;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
@if (nth($sizes, 2) != nth($sizes, 3)) {
|
43
|
+
@include breakpoint(lg) {
|
44
|
+
font-size: map-get($pairing-lg, 'size') !important;
|
45
|
+
line-height: map-get($pairing-lg, 'lh') !important;
|
46
|
+
|
47
|
+
@if (map-get($pairing-lg, 'size') >= $mktg-header-spacing-threshold and map-get($pairing-md, 'size') < $mktg-header-spacing-threshold) {
|
48
|
+
letter-spacing: $mktg-header-spacing-large !important;
|
49
|
+
}
|
50
|
+
|
51
|
+
@if (map-get($pairing-lg, 'size') >= $mktg-header-weight-threshold and map-get($pairing-md, 'size') < $mktg-header-weight-threshold) {
|
52
|
+
font-weight: $mktg-header-weight-large !important;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
.f0-mktg,
|
60
|
+
.f1-mktg,
|
61
|
+
.f2-mktg,
|
62
|
+
.f3-mktg,
|
63
|
+
.f4-mktg,
|
64
|
+
.f5-mktg,
|
65
|
+
.f6-mktg {
|
66
|
+
font-family: $font-mktg;
|
67
|
+
font-feature-settings: $mktg-font-feature-settings;
|
68
|
+
font-weight: $font-weight-normal;
|
69
|
+
}
|
70
|
+
|
71
|
+
@each $body, $sizes in $mktg-bodies {
|
72
|
+
.f#{$body}-mktg {
|
73
|
+
$pairing: map-get($mktg-body-pairings, nth($sizes, 1));
|
74
|
+
$pairing-md: map-get($mktg-body-pairings, nth($sizes, 2));
|
75
|
+
$pairing-lg: map-get($mktg-body-pairings, nth($sizes, 3));
|
76
|
+
|
77
|
+
font-size: map-get($pairing, 'size') !important;
|
78
|
+
line-height: map-get($pairing, 'lh') !important;
|
79
|
+
|
80
|
+
@if (map-get($pairing, 'size') >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large !important; }
|
81
|
+
|
82
|
+
@if (map-get($pairing, 'size') >= $mktg-body-weight-threshold) { font-weight: $font-weight-semibold; }
|
83
|
+
|
84
|
+
@if (nth($sizes, 1) != nth($sizes, 2)) {
|
85
|
+
@include breakpoint(md) {
|
86
|
+
font-size: map-get($pairing-md, 'size') !important;
|
87
|
+
line-height: map-get($pairing-md, 'lh') !important;
|
88
|
+
|
89
|
+
@if (map-get($pairing-md, 'size') >= $mktg-body-spacing-threshold and map-get($pairing, 'size') < $mktg-body-spacing-threshold) {
|
90
|
+
letter-spacing: $mktg-body-spacing-large !important;
|
91
|
+
}
|
92
|
+
|
93
|
+
@if (map-get($pairing-md, 'size') >= $mktg-body-weight-threshold and map-get($pairing, 'size') < $mktg-body-weight-threshold) {
|
94
|
+
font-weight: $font-weight-medium;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
@if (nth($sizes, 2) != nth($sizes, 3)) {
|
100
|
+
@include breakpoint(lg) {
|
101
|
+
font-size: map-get($pairing-lg, 'size') !important;
|
102
|
+
line-height: map-get($pairing-lg, 'lh') !important;
|
103
|
+
|
104
|
+
@if (map-get($pairing-lg, 'size') >= $mktg-body-spacing-threshold and map-get($pairing-md, 'size') < $mktg-body-spacing-threshold) {
|
105
|
+
letter-spacing: $mktg-body-spacing-large !important;
|
106
|
+
}
|
107
|
+
|
108
|
+
@if (map-get($pairing-lg, 'size') >= $mktg-body-weight-threshold and map-get($pairing-md, 'size') < $mktg-body-weight-threshold) {
|
109
|
+
font-weight: $font-weight-medium;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
.text-medium {
|
117
|
+
font-weight: $font-weight-medium !important;
|
118
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
// Animation utilities for marketing
|
2
|
+
|
3
|
+
.hover-grow-mktg {
|
4
|
+
transition: transform 0.4s $ease-mktg;
|
5
|
+
|
6
|
+
&:hover {
|
7
|
+
transform: scale3d(1.025, 1.025, 1.025);
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
// Animated arrow symbol, used in marketing links, buttons, etc.
|
12
|
+
.btn-mktg,
|
13
|
+
.link-mktg,
|
14
|
+
.arrow-target-mktg {
|
15
|
+
.octicon {
|
16
|
+
width: 1em;
|
17
|
+
height: 1em;
|
18
|
+
}
|
19
|
+
|
20
|
+
.arrow-symbol-mktg {
|
21
|
+
transition: transform 0.2s;
|
22
|
+
transform: translateX(0);
|
23
|
+
|
24
|
+
// stylelint-disable-next-line selector-max-type
|
25
|
+
path:last-child {
|
26
|
+
stroke-dasharray: 10;
|
27
|
+
stroke-dashoffset: 10;
|
28
|
+
transition: stroke-dashoffset 0.2s;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
33
|
+
&:hover,
|
34
|
+
&:focus {
|
35
|
+
.arrow-symbol-mktg {
|
36
|
+
transform: translateX(4px);
|
37
|
+
|
38
|
+
// stylelint-disable-next-line selector-max-type, selector-max-specificity, max-nesting-depth
|
39
|
+
path:last-child {
|
40
|
+
stroke-dashoffset: 20;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
&:active {
|
46
|
+
.arrow-symbol-mktg {
|
47
|
+
transform: translateX(6px);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
// Layout utilities
|
2
|
+
// stylelint-disable block-opening-brace-space-before
|
3
|
+
|
4
|
+
// Responsive utilities to position content
|
5
|
+
// No utilities for sm and xl breakpoints
|
6
|
+
@each $breakpoint, $variant in $marketing-position-variants {
|
7
|
+
@include breakpoint($breakpoint) {
|
8
|
+
@each $scale, $size in $spacer-map-extended {
|
9
|
+
@if ($size != 0 or $variant != '') {
|
10
|
+
.top#{$variant}-#{$scale} { top: $size !important; }
|
11
|
+
.right#{$variant}-#{$scale} { right: $size !important; }
|
12
|
+
.bottom#{$variant}-#{$scale} { bottom: $size !important; }
|
13
|
+
.left#{$variant}-#{$scale} { left: $size !important; }
|
14
|
+
}
|
15
|
+
|
16
|
+
@if ($size != 0) {
|
17
|
+
.top#{$variant}-n#{$scale} { top: -$size !important; }
|
18
|
+
.right#{$variant}-n#{$scale} { right: -$size !important; }
|
19
|
+
.bottom#{$variant}-n#{$scale} { bottom: -$size !important; }
|
20
|
+
.left#{$variant}-n#{$scale} { left: -$size !important; }
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
// Negative offset columns
|
27
|
+
@each $breakpoint, $variant in $responsive-variants {
|
28
|
+
@include breakpoint($breakpoint) {
|
29
|
+
@for $offset from 1 through 7 {
|
30
|
+
// stylelint-disable-next-line primer/spacing
|
31
|
+
.offset#{$variant}-n#{$offset} { margin-left: -($offset * 0.0833333333 * 100%); }
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
// Width and height utilities, especially needed when the
|
37
|
+
// dimensions of an image are set in HTML
|
38
|
+
.width-auto { width: auto !important; }
|
39
|
+
.height-auto { height: auto !important; }
|
40
|
+
|
41
|
+
// Make an object fill its parent
|
42
|
+
.object-fit-cover { object-fit: cover !important; }
|
43
|
+
|
44
|
+
// Handling z-index
|
45
|
+
.z-1 { z-index: 1 !important; }
|
46
|
+
.z-2 { z-index: 2 !important; }
|
47
|
+
.z-3 { z-index: 3 !important; }
|
48
|
+
|
49
|
+
// Negative z-index
|
50
|
+
.z-n1 { z-index: -1 !important; }
|
51
|
+
.z-n2 { z-index: -2 !important; }
|
@@ -0,0 +1,82 @@
|
|
1
|
+
// stylelint-disable selector-max-specificity
|
2
|
+
|
3
|
+
// Filters list
|
4
|
+
//
|
5
|
+
// A vertical list of filters.
|
6
|
+
.filter-list {
|
7
|
+
list-style-type: none;
|
8
|
+
|
9
|
+
&.small .filter-item {
|
10
|
+
// stylelint-disable-next-line primer/spacing
|
11
|
+
padding: 6px 12px;
|
12
|
+
font-size: $font-size-small;
|
13
|
+
}
|
14
|
+
|
15
|
+
&.pjax-active .filter-item {
|
16
|
+
color: var(--color-fg-muted);
|
17
|
+
background-color: transparent;
|
18
|
+
|
19
|
+
&.pjax-active {
|
20
|
+
color: var(--color-fg-on-emphasis);
|
21
|
+
background-color: var(--color-accent-emphasis);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.filter-item {
|
27
|
+
position: relative;
|
28
|
+
display: block;
|
29
|
+
padding: $spacer-2 $spacer-3;
|
30
|
+
margin-bottom: $spacer-1;
|
31
|
+
overflow: hidden;
|
32
|
+
font-size: $h5-size;
|
33
|
+
color: var(--color-fg-muted);
|
34
|
+
text-decoration: none;
|
35
|
+
text-overflow: ellipsis;
|
36
|
+
white-space: nowrap;
|
37
|
+
cursor: pointer;
|
38
|
+
border-radius: $border-radius;
|
39
|
+
|
40
|
+
&:hover {
|
41
|
+
text-decoration: none;
|
42
|
+
background-color: var(--color-canvas-subtle);
|
43
|
+
}
|
44
|
+
|
45
|
+
&.selected,
|
46
|
+
&[aria-selected='true'],
|
47
|
+
&[aria-current]:not([aria-current='false']) {
|
48
|
+
color: var(--color-fg-on-emphasis);
|
49
|
+
background-color: var(--color-accent-emphasis);
|
50
|
+
|
51
|
+
// fallback :focus state
|
52
|
+
&:focus {
|
53
|
+
@include focusOutlineOnEmphasis;
|
54
|
+
|
55
|
+
// remove fallback :focus if :focus-visible is supported
|
56
|
+
&:not(:focus-visible) {
|
57
|
+
outline: solid 1px transparent;
|
58
|
+
box-shadow: none;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
// default focus state
|
63
|
+
&:focus-visible {
|
64
|
+
@include focusOutlineOnEmphasis;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
.count {
|
69
|
+
float: right;
|
70
|
+
font-weight: $font-weight-bold;
|
71
|
+
}
|
72
|
+
|
73
|
+
.bar {
|
74
|
+
position: absolute;
|
75
|
+
top: 2px;
|
76
|
+
right: 0;
|
77
|
+
bottom: 2px;
|
78
|
+
z-index: -1;
|
79
|
+
display: inline-block;
|
80
|
+
background-color: var(--color-neutral-subtle);
|
81
|
+
}
|
82
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
@import '@primer/view-components/app/components/primer/alpha/menu';
|
@@ -0,0 +1,99 @@
|
|
1
|
+
// Side Nav
|
2
|
+
//
|
3
|
+
// A vertical list of navigational links, typically used on the left side of a page.
|
4
|
+
|
5
|
+
.SideNav {
|
6
|
+
background-color: var(--color-canvas-subtle);
|
7
|
+
}
|
8
|
+
|
9
|
+
.SideNav-item {
|
10
|
+
position: relative;
|
11
|
+
display: block;
|
12
|
+
width: 100%;
|
13
|
+
// stylelint-disable-next-line primer/spacing
|
14
|
+
padding: 12px $spacer-3;
|
15
|
+
color: var(--color-fg-default);
|
16
|
+
text-align: left;
|
17
|
+
background-color: transparent;
|
18
|
+
border: 0;
|
19
|
+
border-top: $border-width $border-style var(--color-border-muted);
|
20
|
+
|
21
|
+
&:first-child {
|
22
|
+
border-top: 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
&:last-child {
|
26
|
+
// makes sure there is a "bottom border" in case the list is not long enough
|
27
|
+
// stylelint-disable-next-line primer/box-shadow
|
28
|
+
box-shadow: 0 $border-width 0 var(--color-border-default);
|
29
|
+
}
|
30
|
+
|
31
|
+
// Bar on the left
|
32
|
+
&::before {
|
33
|
+
position: absolute;
|
34
|
+
top: 0;
|
35
|
+
bottom: 0;
|
36
|
+
left: 0;
|
37
|
+
z-index: 1;
|
38
|
+
width: 2px;
|
39
|
+
pointer-events: none;
|
40
|
+
content: '';
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
// States
|
45
|
+
|
46
|
+
.SideNav-item:hover {
|
47
|
+
text-decoration: none;
|
48
|
+
background-color: var(--color-neutral-subtle);
|
49
|
+
}
|
50
|
+
|
51
|
+
.SideNav-item:active {
|
52
|
+
background-color: var(--color-canvas-subtle);
|
53
|
+
}
|
54
|
+
|
55
|
+
.SideNav-item[aria-current]:not([aria-current='false']),
|
56
|
+
.SideNav-item[aria-selected='true'] {
|
57
|
+
background-color: var(--color-sidenav-selected-bg);
|
58
|
+
|
59
|
+
// Bar on the left
|
60
|
+
&::before {
|
61
|
+
background-color: var(--color-primer-border-active);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
// Icon
|
66
|
+
//
|
67
|
+
// Makes sure multiple icons are vertically aligned
|
68
|
+
|
69
|
+
.SideNav-icon {
|
70
|
+
width: 16px;
|
71
|
+
margin-right: $spacer-2;
|
72
|
+
color: var(--color-fg-muted);
|
73
|
+
}
|
74
|
+
|
75
|
+
// Sub Nav
|
76
|
+
//
|
77
|
+
// A more lightweight version, suited as a sub nav
|
78
|
+
|
79
|
+
.SideNav-subItem {
|
80
|
+
position: relative;
|
81
|
+
display: block;
|
82
|
+
width: 100%;
|
83
|
+
padding: $spacer-1 0;
|
84
|
+
color: var(--color-accent-fg);
|
85
|
+
text-align: left;
|
86
|
+
background-color: transparent;
|
87
|
+
border: 0;
|
88
|
+
}
|
89
|
+
|
90
|
+
.SideNav-subItem:hover {
|
91
|
+
color: var(--color-fg-default);
|
92
|
+
text-decoration: none;
|
93
|
+
}
|
94
|
+
|
95
|
+
.SideNav-subItem[aria-current]:not([aria-current='false']),
|
96
|
+
.SideNav-subItem[aria-selected='true'] {
|
97
|
+
font-weight: $font-weight-semibold;
|
98
|
+
color: var(--color-fg-default);
|
99
|
+
}
|
@@ -0,0 +1,146 @@
|
|
1
|
+
// stylelint-disable selector-max-specificity
|
2
|
+
|
3
|
+
// Needs refactoring
|
4
|
+
// Sub nav
|
5
|
+
.subnav {
|
6
|
+
// stylelint-disable-next-line primer/spacing
|
7
|
+
margin-bottom: 20px;
|
8
|
+
|
9
|
+
@include clearfix();
|
10
|
+
}
|
11
|
+
|
12
|
+
.subnav-bordered {
|
13
|
+
// stylelint-disable-next-line primer/spacing
|
14
|
+
padding-bottom: 20px;
|
15
|
+
border-bottom: $border-width $border-style var(--color-border-muted);
|
16
|
+
}
|
17
|
+
|
18
|
+
.subnav-flush {
|
19
|
+
margin-bottom: 0;
|
20
|
+
}
|
21
|
+
|
22
|
+
.subnav-item {
|
23
|
+
position: relative;
|
24
|
+
float: left;
|
25
|
+
// stylelint-disable-next-line primer/spacing
|
26
|
+
padding: 5px $spacer-3;
|
27
|
+
font-weight: $font-weight-semibold;
|
28
|
+
// stylelint-disable-next-line primer/typography
|
29
|
+
line-height: 20px;
|
30
|
+
color: var(--color-fg-default);
|
31
|
+
border: $border-width $border-style var(--color-border-default);
|
32
|
+
|
33
|
+
+ .subnav-item {
|
34
|
+
// stylelint-disable-next-line primer/spacing
|
35
|
+
margin-left: -1px;
|
36
|
+
}
|
37
|
+
|
38
|
+
&:hover,
|
39
|
+
&:focus {
|
40
|
+
text-decoration: none;
|
41
|
+
background-color: var(--color-canvas-subtle);
|
42
|
+
}
|
43
|
+
|
44
|
+
&.selected,
|
45
|
+
&[aria-selected='true'],
|
46
|
+
&[aria-current]:not([aria-current='false']) {
|
47
|
+
z-index: 2;
|
48
|
+
color: var(--color-fg-on-emphasis);
|
49
|
+
background-color: var(--color-accent-emphasis);
|
50
|
+
border-color: var(--color-accent-emphasis);
|
51
|
+
|
52
|
+
// fallback :focus state
|
53
|
+
&:focus {
|
54
|
+
@include focusOutlineOnEmphasis;
|
55
|
+
|
56
|
+
// remove fallback :focus if :focus-visible is supported
|
57
|
+
&:not(:focus-visible) {
|
58
|
+
outline: solid 1px transparent;
|
59
|
+
box-shadow: none;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
// default focus state
|
64
|
+
&:focus-visible {
|
65
|
+
@include focusOutlineOnEmphasis;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
&:first-child {
|
70
|
+
border-top-left-radius: $border-radius;
|
71
|
+
border-bottom-left-radius: $border-radius;
|
72
|
+
}
|
73
|
+
|
74
|
+
&:last-child {
|
75
|
+
border-top-right-radius: $border-radius;
|
76
|
+
border-bottom-right-radius: $border-radius;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
.subnav-search {
|
81
|
+
position: relative;
|
82
|
+
// stylelint-disable-next-line primer/spacing
|
83
|
+
margin-left: 12px;
|
84
|
+
}
|
85
|
+
|
86
|
+
.subnav-search-input {
|
87
|
+
width: 320px;
|
88
|
+
padding-left: $spacer-5;
|
89
|
+
color: var(--color-fg-muted);
|
90
|
+
}
|
91
|
+
|
92
|
+
.subnav-search-input-wide {
|
93
|
+
// stylelint-disable-next-line primer/responsive-widths
|
94
|
+
width: 500px;
|
95
|
+
}
|
96
|
+
|
97
|
+
.subnav-search-icon {
|
98
|
+
position: absolute;
|
99
|
+
top: 9px;
|
100
|
+
left: 8px;
|
101
|
+
display: block;
|
102
|
+
color: var(--color-fg-muted);
|
103
|
+
text-align: center;
|
104
|
+
pointer-events: none;
|
105
|
+
}
|
106
|
+
|
107
|
+
.subnav-search-context {
|
108
|
+
.btn {
|
109
|
+
border-top-right-radius: 0;
|
110
|
+
border-bottom-right-radius: 0;
|
111
|
+
|
112
|
+
&:hover,
|
113
|
+
&:focus,
|
114
|
+
&:active,
|
115
|
+
&.selected {
|
116
|
+
z-index: 2;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
+ .subnav-search {
|
121
|
+
// stylelint-disable-next-line primer/spacing
|
122
|
+
margin-left: -1px;
|
123
|
+
|
124
|
+
.subnav-search-input {
|
125
|
+
border-top-left-radius: 0;
|
126
|
+
border-bottom-left-radius: 0;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
.select-menu-modal-holder {
|
131
|
+
z-index: 30;
|
132
|
+
}
|
133
|
+
|
134
|
+
.select-menu-modal {
|
135
|
+
width: 220px;
|
136
|
+
}
|
137
|
+
|
138
|
+
.select-menu-item-icon {
|
139
|
+
color: inherit;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
.subnav-spacer-right {
|
144
|
+
// stylelint-disable-next-line primer/spacing
|
145
|
+
padding-right: 12px;
|
146
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
@import '@primer/view-components/app/components/primer/alpha/tab_nav';
|
@@ -0,0 +1 @@
|
|
1
|
+
@import '@primer/view-components/app/components/primer/alpha/underline_nav';
|
@@ -0,0 +1 @@
|
|
1
|
+
@import '@primer/view-components/app/components/primer/alpha/dialog';
|