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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3130c1eb763e842754269409d5d23d52d6f1c9df1590c8cf116a33b605bc514f
|
4
|
+
data.tar.gz: 88a1d30a84c156d7a6570b456ea2712f5671c6c8077a1e699ba49575cdbe6f9d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6bf9b4c69aa8ce0b2d5a666615fdf64864efa6040a026d9c02f70cec701f5aa97aac720653c79efd3ede618b1fc891978c547db77c8e00293eda238749ba3761
|
7
|
+
data.tar.gz: f38e944afbdab887d7baa8a0f49af69b9112fbfedace568c876ee9e7a4e34ab399abbe91e79957f3a4a9c4e536ca75b91ffacce7add80f40b83654a78111ff2f
|
data/LICENSE.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016-2017 GitHub, Inc.
|
4
|
+
Copyright (c) 2022 George Waters
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
14
|
+
all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
# The Primer theme
|
2
|
+
|
3
|
+
[![.github/workflows/ci.yaml](https://github.com/pages-themes/primer/actions/workflows/ci.yaml/badge.svg)](https://github.com/pages-themes/primer/actions/workflows/ci.yaml) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-primer.svg)](https://badge.fury.io/rb/jekyll-theme-primer)
|
4
|
+
|
5
|
+
*Primer is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](http://pages-themes.github.io/primer), or even [use it today](#usage).*
|
6
|
+
|
7
|
+
![Thumbnail of Primer](thumbnail.png)
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
To use the Primer theme:
|
12
|
+
|
13
|
+
1. Add the following to your site's `_config.yml`:
|
14
|
+
|
15
|
+
```yml
|
16
|
+
remote_theme: pages-themes/primer@v0.2.0
|
17
|
+
plugins:
|
18
|
+
- jekyll-remote-theme # add this line to the plugins list if you already have one
|
19
|
+
```
|
20
|
+
|
21
|
+
2. Optionally, if you'd like to preview your site on your computer, add the following to your site's `Gemfile`:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
gem "github-pages", group: :jekyll_plugins
|
25
|
+
```
|
26
|
+
|
27
|
+
## Customizing
|
28
|
+
|
29
|
+
### Configuration variables
|
30
|
+
|
31
|
+
Primer will respect the following variables, if set in your site's `_config.yml`:
|
32
|
+
|
33
|
+
```yml
|
34
|
+
title: [The title of your site]
|
35
|
+
description: [A short description of your site's purpose]
|
36
|
+
```
|
37
|
+
|
38
|
+
Additionally, you may choose to set the following optional variables:
|
39
|
+
|
40
|
+
```yml
|
41
|
+
show_downloads: ["true" or "false" (unquoted) to indicate whether to provide a download URL]
|
42
|
+
google_analytics: [Your Google Analytics tracking ID]
|
43
|
+
```
|
44
|
+
|
45
|
+
### Stylesheet
|
46
|
+
|
47
|
+
If you'd like to add your own custom styles:
|
48
|
+
|
49
|
+
1. Create a file called `/assets/css/style.scss` in your site
|
50
|
+
2. Add the following content to the top of the file, exactly as shown:
|
51
|
+
```scss
|
52
|
+
---
|
53
|
+
---
|
54
|
+
|
55
|
+
@import "{{ site.theme }}";
|
56
|
+
```
|
57
|
+
3. Add any custom CSS (or Sass, including imports) you'd like immediately after the `@import` line
|
58
|
+
|
59
|
+
*Note: If you'd like to change the theme's Sass variables, you must set new values before the `@import` line in your stylesheet.*
|
60
|
+
|
61
|
+
### Layouts
|
62
|
+
|
63
|
+
If you'd like to change the theme's HTML layout:
|
64
|
+
|
65
|
+
1. For some changes such as a custom `favicon`, you can add custom files in your local `_includes` folder. The files [provided with the theme](https://github.com/pages-themes/primer/tree/master/_includes) provide a starting point and are included by the [original layout template](https://github.com/pages-themes/primer/blob/master/_layouts/default.html).
|
66
|
+
2. For more extensive changes, [copy the original template](https://github.com/pages-themes/primer/blob/master/_layouts/default.html) from the theme's repository<br />(*Pro-tip: click "raw" to make copying easier*)
|
67
|
+
3. Create a file called `/_layouts/default.html` in your site
|
68
|
+
4. Paste the default layout content copied in the first step
|
69
|
+
5. Customize the layout as you'd like
|
70
|
+
|
71
|
+
### Customizing Google Analytics code
|
72
|
+
|
73
|
+
Google has released several iterations to their Google Analytics code over the years since this theme was first created. If you would like to take advantage of the latest code, paste it into `_includes/head-custom-google-analytics.html` in your Jekyll site.
|
74
|
+
|
75
|
+
### Overriding GitHub-generated URLs
|
76
|
+
|
77
|
+
Templates often rely on URLs supplied by GitHub such as links to your repository or links to download your project. If you'd like to override one or more default URLs:
|
78
|
+
|
79
|
+
1. Look at [the template source](https://github.com/pages-themes/primer/blob/master/_layouts/default.html) to determine the name of the variable. It will be in the form of `{{ site.github.zip_url }}`.
|
80
|
+
2. Specify the URL that you'd like the template to use in your site's `_config.yml`. For example, if the variable was `site.github.url`, you'd add the following:
|
81
|
+
```yml
|
82
|
+
github:
|
83
|
+
zip_url: http://example.com/download.zip
|
84
|
+
another_url: another value
|
85
|
+
```
|
86
|
+
3. When your site is built, Jekyll will use the URL you specified, rather than the default one provided by GitHub.
|
87
|
+
|
88
|
+
*Note: You must remove the `site.` prefix, and each variable name (after the `github.`) should be indent with two space below `github:`.*
|
89
|
+
|
90
|
+
For more information, see [the Jekyll variables documentation](https://jekyllrb.com/docs/variables/).
|
91
|
+
|
92
|
+
## Roadmap
|
93
|
+
|
94
|
+
See the [open issues](https://github.com/pages-themes/primer/issues) for a list of proposed features (and known issues).
|
95
|
+
|
96
|
+
## Project philosophy
|
97
|
+
|
98
|
+
The Primer theme is intended to make it quick and easy for GitHub Pages users to create their first (or 100th) website. The theme should meet the vast majority of users' needs out of the box, erring on the side of simplicity rather than flexibility, and provide users the opportunity to opt-in to additional complexity if they have specific needs or wish to further customize their experience (such as adding custom CSS or modifying the default layout). It should also look great, but that goes without saying.
|
99
|
+
|
100
|
+
## Contributing
|
101
|
+
|
102
|
+
Interested in contributing to Primer? We'd love your help. Primer is an open source project, built one contribution at a time by users like you. See [the CONTRIBUTING file](docs/CONTRIBUTING.md) for instructions on how to contribute.
|
103
|
+
|
104
|
+
### Previewing the theme locally
|
105
|
+
|
106
|
+
If you'd like to preview the theme locally (for example, in the process of proposing a change):
|
107
|
+
|
108
|
+
1. Clone down the theme's repository (`git clone https://github.com/pages-themes/primer`)
|
109
|
+
2. `cd` into the theme's directory
|
110
|
+
3. Run `script/bootstrap` to install the necessary dependencies
|
111
|
+
4. Run `bundle exec jekyll serve` to start the preview server
|
112
|
+
5. Visit [`localhost:4000`](http://localhost:4000) in your browser to preview the theme
|
113
|
+
|
114
|
+
### Running tests
|
115
|
+
|
116
|
+
The theme contains a minimal test suite, to ensure a site with the theme would build successfully. To run the tests, simply run `script/cibuild`. You'll need to run `script/bootstrap` once before the test script will work.
|
data/_includes/.gitkeep
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{% if site.google_analytics %}
|
2
|
+
<script>
|
3
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
4
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
5
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
6
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
7
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
8
|
+
ga('send', 'pageview');
|
9
|
+
</script>
|
10
|
+
{% endif %}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<!-- start custom head snippets, customize with your own _includes/head-custom.html file -->
|
2
|
+
|
3
|
+
<!-- Setup Google Analytics -->
|
4
|
+
{% include head-custom-google-analytics.html %}
|
5
|
+
|
6
|
+
<!-- You can set your favicon here -->
|
7
|
+
<!-- link rel="shortcut icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}" -->
|
8
|
+
|
9
|
+
<!-- end custom head snippets -->
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{% capture theme %}{% if page.theme %}{{ page.theme }}{% else %}{{ site.primer.theme }}{% endif %}{% endcapture -%}
|
2
|
+
{%- if theme contains "light" -%}
|
3
|
+
data-color-mode="light" data-light-theme="{{ theme }}"
|
4
|
+
{%- elsif theme contains "dark" -%}
|
5
|
+
data-color-mode="dark" data-dark-theme="{{ theme }}"
|
6
|
+
{%- elsif theme contains "auto" -%}
|
7
|
+
{%- assign partial_theme = theme | remove_first: "auto" -%}
|
8
|
+
data-color-mode="auto" data-light-theme="light{{ partial_theme }}" data-dark-theme="dark{{ partial_theme }}"
|
9
|
+
{%- else -%}
|
10
|
+
data-color-mode="light" data-light-theme="light"
|
11
|
+
{%- endif -%}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en-US" }}" {% include theme.html %}>
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7
|
+
|
8
|
+
{% seo %}
|
9
|
+
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
|
10
|
+
{% include head-custom.html %}
|
11
|
+
</head>
|
12
|
+
<body>
|
13
|
+
<div class="container-lg px-3 my-5 markdown-body">
|
14
|
+
{% if site.title and site.title != page.title %}
|
15
|
+
<h1><a href="{{ "/" | absolute_url }}">{{ site.title }}</a></h1>
|
16
|
+
{% endif %}
|
17
|
+
|
18
|
+
{{ content }}
|
19
|
+
|
20
|
+
{% if site.github.private != true and site.github.license %}
|
21
|
+
<div class="footer border-top border-gray-light mt-5 pt-3 text-right text-gray">
|
22
|
+
This site is open source. {% github_edit_link "Improve this page" %}.
|
23
|
+
</div>
|
24
|
+
{% endif %}
|
25
|
+
</div>
|
26
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous"></script>
|
27
|
+
<script>anchors.add();</script>
|
28
|
+
</body>
|
29
|
+
</html>
|
data/_layouts/home.html
ADDED
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
// empty divider
|
2
|
+
|
3
|
+
.ActionList-sectionDivider {
|
4
|
+
// has children
|
5
|
+
&:not(:empty) {
|
6
|
+
display: flex;
|
7
|
+
padding: ($spacer-1 * 1.5) $spacer-2;
|
8
|
+
font-size: $font-size-small;
|
9
|
+
font-weight: $font-weight-bold;
|
10
|
+
color: var(--color-fg-muted);
|
11
|
+
flex-direction: column;
|
12
|
+
}
|
13
|
+
|
14
|
+
// no children
|
15
|
+
&:empty {
|
16
|
+
display: block;
|
17
|
+
height: 1px;
|
18
|
+
padding: 0;
|
19
|
+
// stylelint-disable-next-line primer/spacing
|
20
|
+
margin: ($spacer-2 - 1px) ($spacer-2 * -1) $spacer-2;
|
21
|
+
list-style: none;
|
22
|
+
background: var(--color-action-list-item-inline-divider);
|
23
|
+
border: 0;
|
24
|
+
}
|
25
|
+
|
26
|
+
.ActionList-sectionDivider-title {
|
27
|
+
font-size: $font-size-small;
|
28
|
+
font-weight: $font-weight-bold;
|
29
|
+
color: var(--color-fg-muted);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
.ActionList-sectionDivider--filled {
|
34
|
+
margin: $spacer-2 ($spacer-2 * -1);
|
35
|
+
background: var(--color-canvas-subtle);
|
36
|
+
border-top: $border-width $border-style var(--color-action-list-item-inline-divider);
|
37
|
+
border-bottom: $border-width $border-style var(--color-action-list-item-inline-divider);
|
38
|
+
|
39
|
+
// if no children, treat as divider
|
40
|
+
&:empty {
|
41
|
+
height: $spacer-2;
|
42
|
+
box-sizing: border-box;
|
43
|
+
}
|
44
|
+
|
45
|
+
&:first-child {
|
46
|
+
margin-top: 0;
|
47
|
+
}
|
48
|
+
}
|