jekyll-v4-theme-primer 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/_sass/@primer/css/base/normalize.scss +1 -0
- data/_sass/@primer/css/core/index.scss +0 -1
- data/_sass/@primer/css/forms/form-group.scss +2 -1
- data/_sass/@primer/css/forms/index.scss +0 -1
- data/_sass/@primer/css/labels/index.scss +0 -1
- data/_sass/@primer/css/layout/app-frame.scss +6 -6
- data/_sass/@primer/css/layout/stack.scss +6 -6
- data/_sass/@primer/css/markdown/lists.scss +4 -4
- data/_sass/@primer/css/primitives/index.scss +9 -9
- data/_sass/@primer/css/support/variables/misc.scss +1 -1
- data/_sass/@primer/css/utilities/borders.scss +8 -8
- data/_sass/@primer/css/utilities/visibility-display.scss +10 -9
- data/_sass/@primer/view-components/app/assets/javascripts/primer_view_components.js +1 -1
- data/_sass/@primer/view-components/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/_sass/@primer/view-components/app/assets/styles/primer_view_components.css +3 -3
- data/_sass/@primer/view-components/app/assets/styles/primer_view_components.css.map +1 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/action_list.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/action_list.css.json +131 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/action_menu/action_menu_element.d.ts +29 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/action_menu/action_menu_element.js +217 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/auto_complete.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/auto_complete.css.json +23 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/banner.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/banner.css.json +24 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/button_marketing.css.json +33 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/dialog.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/dialog.css.json +80 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/dropdown.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/dropdown.css.json +40 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/layout.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/layout.css.json +80 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/menu.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/menu.css.json +28 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/modal_dialog.js +12 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/nav_list.d.ts +7 -4
- data/_sass/@primer/view-components/app/components/primer/alpha/nav_list.js +121 -9
- data/_sass/@primer/view-components/app/components/primer/alpha/overlay.css +1 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/overlay.css.json +8 -0
- data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/segmented_control.css.json +31 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/tab_nav.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/tab_nav.css.json +24 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/text_field.css +3 -3
- data/_sass/@primer/view-components/app/components/primer/alpha/text_field.css.json +134 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/toggle_switch.css.json +40 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/underline_nav.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/alpha/underline_nav.css.json +28 -1
- data/_sass/@primer/view-components/app/components/primer/anchored_position.d.ts +27 -0
- data/_sass/@primer/view-components/app/components/primer/anchored_position.js +149 -0
- data/_sass/@primer/view-components/app/components/primer/beta/avatar.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/beta/avatar.css.json +17 -1
- data/_sass/@primer/view-components/app/components/primer/beta/avatar_stack.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/beta/avatar_stack.css.json +28 -1
- data/_sass/@primer/view-components/app/components/primer/beta/blankslate.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/beta/blankslate.css.json +22 -1
- data/_sass/@primer/view-components/app/components/primer/beta/border_box.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/beta/border_box.css.json +54 -1
- data/_sass/@primer/view-components/app/components/primer/beta/breadcrumbs.css.json +11 -1
- data/_sass/@primer/view-components/app/components/primer/beta/button.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/beta/button.css.json +71 -1
- data/_sass/@primer/view-components/app/components/primer/beta/counter.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/beta/counter.css.json +10 -1
- data/_sass/@primer/view-components/app/components/primer/beta/flash.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/beta/flash.css.json +27 -1
- data/_sass/@primer/view-components/app/components/primer/beta/label.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/beta/label.css.json +25 -1
- data/_sass/@primer/view-components/app/components/primer/beta/link.css.json +19 -1
- data/_sass/@primer/view-components/app/components/primer/beta/popover.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/beta/popover.css.json +39 -1
- data/_sass/@primer/view-components/app/components/primer/beta/progress_bar.css.json +10 -1
- data/_sass/@primer/view-components/app/components/primer/beta/state.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/beta/state.css.json +13 -1
- data/_sass/@primer/view-components/app/components/primer/beta/subhead.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/beta/subhead.css.json +12 -1
- data/_sass/@primer/view-components/app/components/primer/beta/timeline_item.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/beta/timeline_item.css.json +16 -1
- data/_sass/@primer/view-components/app/components/primer/beta/truncate.css +1 -1
- data/_sass/@primer/view-components/app/components/primer/beta/truncate.css.json +12 -1
- data/_sass/@primer/view-components/app/components/primer/focus_group.d.ts +19 -0
- data/_sass/@primer/view-components/app/components/primer/focus_group.js +144 -0
- data/_sass/@primer/view-components/app/components/primer/primer.d.ts +5 -2
- data/_sass/@primer/view-components/app/components/primer/primer.js +5 -2
- data/_sass/@primer/view-components/app/components/primer/truncate.css.json +13 -1
- data/_sass/@primer/view-components/lib/primer/forms/primer_text_field.js +17 -6
- data/_sass/@primer/view-components/package.json +6 -4
- data/_sass/@primer/view-components/static/arguments.json +2167 -346
- data/_sass/@primer/view-components/static/audited_at.json +22 -22
- data/_sass/@primer/view-components/static/classes.json +579 -0
- data/_sass/@primer/view-components/static/constants.json +215 -61
- data/_sass/@primer/view-components/static/info_arch.json +9090 -0
- data/_sass/@primer/view-components/static/previews.json +2020 -0
- data/_sass/@primer/view-components/static/statuses.json +23 -23
- data/_sass/{jekyll-theme-primer.scss → jekyll-v4-theme-primer.scss} +3 -3
- data/_sass/primer.scss +1 -1
- data/assets/css/style.scss +1 -1
- metadata +16 -15
- data/_sass/@primer/css/actionlist/action-list-item-divider.scss +0 -48
- data/_sass/@primer/css/actionlist/action-list-item.scss +0 -593
- data/_sass/@primer/css/actionlist/action-list-tree.scss +0 -118
- data/_sass/@primer/css/actionlist/action-list-variables.scss +0 -8
- data/_sass/@primer/css/actionlist/action-list.scss +0 -67
- data/_sass/@primer/css/actionlist/index.scss +0 -6
- data/_sass/@primer/css/forms/form-validation.scss +0 -265
- data/_sass/@primer/css/labels/diffstat.scss +0 -37
- data/_sass/@primer/view-components/app/components/primer/time_ago_component.d.ts +0 -1
- data/_sass/@primer/view-components/app/components/primer/time_ago_component.js +0 -1
- /data/_sass/@primer/view-components/app/components/primer/{local_time.d.ts → beta/relative_time.d.ts} +0 -0
- /data/_sass/@primer/view-components/app/components/primer/{local_time.js → beta/relative_time.js} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45c3c78fc424356151c29623de94840c9eb5e535d480af49a54c3b954f785cb6
|
4
|
+
data.tar.gz: 01100ce75f9fd4cf027f8b9e6b2c9062d1f19f9485736816ada3d4538fa6ee95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c60c2750089af7be8cc9210b635b1274f4eede726a09e07e097f71f50ad4c83ff05231ca9a8cc4a187e1f5bc38c1671fa505e952506259ee98027b2fbe9e40bc
|
7
|
+
data.tar.gz: a68ccc21a145ae64d8024d6d2c9e9ed82f418d534a64b9ae63c47069e74b7c7194de61c36d3213d49b8c8b778598333c88980539a0d6a3c2fbcd6cb36e94a5b8
|
data/README.md
CHANGED
@@ -2,7 +2,10 @@
|
|
2
2
|
|
3
3
|
[![.github/workflows/ci.yaml](https://github.com/dunkmann00/primer/actions/workflows/ci.yaml/badge.svg)](https://github.com/dunkmann00/primer/actions/workflows/ci.yaml) [![Gem Version](https://badge.fury.io/rb/jekyll-v4-theme-primer.svg)](https://badge.fury.io/rb/jekyll-v4-theme-primer)
|
4
4
|
|
5
|
-
*Primer is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](https://georgeh2os.com/primer), or even [use it today](#usage).*
|
5
|
+
*Primer is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](https://www.georgeh2os.com/primer/), or even [use it today](#usage).*
|
6
|
+
|
7
|
+
**This theme is not an official theme for Github Pages**. This is a fork of the original `primer` theme that I have
|
8
|
+
modified to support Jekyll v4 and a newer version of [Primer CSS](https://primer.style/css/).
|
6
9
|
|
7
10
|
|
8
11
|
## Usage
|
@@ -12,7 +15,7 @@ To use the Primer theme:
|
|
12
15
|
1. Add the following to your site's `_config.yml`:
|
13
16
|
|
14
17
|
```yml
|
15
|
-
remote_theme: dunkmann00/primer@v0.
|
18
|
+
remote_theme: dunkmann00/primer@v0.12.0
|
16
19
|
plugins:
|
17
20
|
- jekyll-remote-theme # add this line to the plugins list if you already have one
|
18
21
|
```
|
@@ -36,7 +39,7 @@ To use the Primer theme:
|
|
36
39
|
|
37
40
|
Primer will set the theme based on the theme value set in `_config.yml`. This
|
38
41
|
can be overridden on a per page basis by setting a `theme` variable in the
|
39
|
-
page's frontmatter. If neither is given, the default theme is used.
|
42
|
+
page's frontmatter. If neither is given, the default theme (`auto`) is used.
|
40
43
|
|
41
44
|
```yml
|
42
45
|
primer:
|
@@ -30,7 +30,7 @@
|
|
30
30
|
width: 100%;
|
31
31
|
padding: var(--base-size-16, 16px);
|
32
32
|
background: var(--color-canvas-inset);
|
33
|
-
padding-block-end: calc(var(--base-size-16, 16px) - var(--
|
33
|
+
padding-block-end: calc(var(--base-size-16, 16px) - var(--borderWidth-thin, 1px));
|
34
34
|
isolation: isolate;
|
35
35
|
align-items: center;
|
36
36
|
gap: var(--base-size-8, 8px);
|
@@ -67,7 +67,7 @@
|
|
67
67
|
text-indent: var(--base-size-128, 128px);
|
68
68
|
pointer-events: none;
|
69
69
|
background: var(--color-border-default);
|
70
|
-
border-radius: var(--
|
70
|
+
border-radius: var(--borderRadius-full, 100vh);
|
71
71
|
}
|
72
72
|
|
73
73
|
&:focus {
|
@@ -75,17 +75,17 @@
|
|
75
75
|
display: grid;
|
76
76
|
width: auto;
|
77
77
|
height: auto;
|
78
|
-
min-height: var(--
|
79
|
-
padding: 0 var(--
|
78
|
+
min-height: var(--control-medium-size, 32px);
|
79
|
+
padding: 0 var(--control-medium-paddingInline-spacious, 16px);
|
80
80
|
overflow: auto;
|
81
81
|
color: var(--color-fg-on-emphasis);
|
82
82
|
background: var(--color-accent-emphasis);
|
83
|
-
border-radius: var(--
|
83
|
+
border-radius: var(--borderRadius-full, 100vh);
|
84
84
|
align-items: center;
|
85
85
|
|
86
86
|
@media (pointer: coarse) {
|
87
87
|
&::after {
|
88
|
-
@include minTouchTarget(var(--
|
88
|
+
@include minTouchTarget(var(--control-minTarget-coarse, 44px));
|
89
89
|
}
|
90
90
|
}
|
91
91
|
|
@@ -25,7 +25,7 @@
|
|
25
25
|
// │ ├─ &.Stack-item--expand-[ whenNarrow | whenRegular | whenWide ]
|
26
26
|
// │ ├─ &.Stack-item--keepSize-[ whenNarrow | whenRegular | whenWide ]
|
27
27
|
|
28
|
-
$Stack-gap-default: var(--
|
28
|
+
$Stack-gap-default: var(--stack-gap-normal, 16px);
|
29
29
|
|
30
30
|
--Stack-gap-whenRegular: #{$Stack-gap-default};
|
31
31
|
--Stack-gap-whenNarrow: #{$Stack-gap-default};
|
@@ -65,18 +65,18 @@
|
|
65
65
|
}
|
66
66
|
|
67
67
|
.Stack--gap-condensed#{$viewportRange} {
|
68
|
-
--Stack-gap#{$viewportRange}: var(--
|
68
|
+
--Stack-gap#{$viewportRange}: var(--stack-gap-condensed, 8px);
|
69
69
|
}
|
70
70
|
|
71
71
|
.Stack--gap-normal#{$viewportRange} {
|
72
|
-
--Stack-gap#{$viewportRange}: var(--
|
72
|
+
--Stack-gap#{$viewportRange}: var(--stack-gap-normal, 16px);
|
73
73
|
}
|
74
74
|
|
75
75
|
// There's no .Stack--gap-spacious-whenNarrow
|
76
76
|
// Narrow viewports render `spacious` gap as `normal`
|
77
77
|
@if $viewportRange != '-whenNarrow' {
|
78
78
|
.Stack--gap-spacious#{$viewportRange} {
|
79
|
-
--Stack-gap#{$viewportRange}: var(--
|
79
|
+
--Stack-gap#{$viewportRange}: var(--stack-gap-spacious, 24px);
|
80
80
|
}
|
81
81
|
}
|
82
82
|
|
@@ -161,14 +161,14 @@
|
|
161
161
|
|
162
162
|
:not(.Stack--dir-inline#{$viewportRange}) > .Stack-divider,
|
163
163
|
:not(.Stack--dir-inline#{$viewportRange}) > .Stack-item > .Stack-divider {
|
164
|
-
border-block-end: var(--
|
164
|
+
border-block-end: var(--borderWidth-thin, 1px) solid var(--Stack-divider-color);
|
165
165
|
inline-size: auto;
|
166
166
|
block-size: 0;
|
167
167
|
}
|
168
168
|
|
169
169
|
.Stack--dir-inline#{$viewportRange} > .Stack-divider,
|
170
170
|
.Stack--dir-inline#{$viewportRange} > .Stack-item > .Stack-divider {
|
171
|
-
border-inline-end: var(--
|
171
|
+
border-inline-end: var(--borderWidth-thin, 1px) solid var(--Stack-divider-color);
|
172
172
|
inline-size: 0;
|
173
173
|
block-size: auto;
|
174
174
|
}
|
@@ -14,19 +14,19 @@
|
|
14
14
|
}
|
15
15
|
}
|
16
16
|
|
17
|
-
ol[type='a'] {
|
17
|
+
ol[type='a s'] {
|
18
18
|
list-style-type: lower-alpha;
|
19
19
|
}
|
20
20
|
|
21
|
-
ol[type='A'] {
|
21
|
+
ol[type='A s'] {
|
22
22
|
list-style-type: upper-alpha;
|
23
23
|
}
|
24
24
|
|
25
|
-
ol[type='i'] {
|
25
|
+
ol[type='i s'] {
|
26
26
|
list-style-type: lower-roman;
|
27
27
|
}
|
28
28
|
|
29
|
-
ol[type='I'] {
|
29
|
+
ol[type='I s'] {
|
30
30
|
list-style-type: upper-roman;
|
31
31
|
}
|
32
32
|
|
@@ -1,10 +1,10 @@
|
|
1
|
-
@import '@primer/primitives/tokens-
|
2
|
-
@import '@primer/primitives/tokens-
|
3
|
-
@import '@primer/primitives/tokens-
|
4
|
-
@import '@primer/primitives/tokens-
|
5
|
-
@import '@primer/primitives/tokens-
|
6
|
-
@import '@primer/primitives/tokens-
|
7
|
-
@import '@primer/primitives/tokens-
|
8
|
-
@import '@primer/primitives/tokens-
|
9
|
-
@import '@primer/primitives/tokens-
|
1
|
+
@import '@primer/primitives/tokens-next-private/css/base/size/size';
|
2
|
+
@import '@primer/primitives/tokens-next-private/css/base/typography/typography';
|
3
|
+
@import '@primer/primitives/tokens-next-private/css/functional/size/border';
|
4
|
+
@import '@primer/primitives/tokens-next-private/css/functional/size/breakpoints';
|
5
|
+
@import '@primer/primitives/tokens-next-private/css/functional/size/size-coarse';
|
6
|
+
@import '@primer/primitives/tokens-next-private/css/functional/size/size-fine';
|
7
|
+
@import '@primer/primitives/tokens-next-private/css/functional/size/size';
|
8
|
+
@import '@primer/primitives/tokens-next-private/css/functional/size/viewport';
|
9
|
+
@import '@primer/primitives/tokens-next-private/css/functional/typography/typography';
|
10
10
|
@import './temp-typography-tokens.scss';
|
@@ -4,7 +4,7 @@
|
|
4
4
|
$border-width: 1px !default;
|
5
5
|
$border-style: solid !default;
|
6
6
|
$border: $border-width $border-style var(--color-border-default) !default;
|
7
|
-
$border-rem: var(--
|
7
|
+
$border-rem: var(--borderWidth-thin, 1px) solid var(--color-border-default) !default;
|
8
8
|
|
9
9
|
// Border Radius
|
10
10
|
$border-radius-1: 4px !default;
|
@@ -31,11 +31,11 @@
|
|
31
31
|
.border#{$variant}-left-0 { border-left: 0 !important; }
|
32
32
|
|
33
33
|
// Rounded corners
|
34
|
-
.rounded#{$variant} { border-radius: var(--
|
34
|
+
.rounded#{$variant} { border-radius: var(--borderRadius-medium, $border-radius-2) !important; }
|
35
35
|
.rounded#{$variant}-0 { border-radius: 0 !important; }
|
36
|
-
.rounded#{$variant}-1 { border-radius: var(--
|
37
|
-
.rounded#{$variant}-2 { border-radius: var(--
|
38
|
-
.rounded#{$variant}-3 { border-radius: var(--
|
36
|
+
.rounded#{$variant}-1 { border-radius: var(--borderRadius-small, $border-radius-1) !important; }
|
37
|
+
.rounded#{$variant}-2 { border-radius: var(--borderRadius-medium, $border-radius-2) !important; }
|
38
|
+
.rounded#{$variant}-3 { border-radius: var(--borderRadius-large, $border-radius-3) !important; }
|
39
39
|
|
40
40
|
@each $edge, $corners in $edges {
|
41
41
|
.rounded#{$variant}-#{$edge}-0 {
|
@@ -46,19 +46,19 @@
|
|
46
46
|
|
47
47
|
.rounded#{$variant}-#{$edge}-1 {
|
48
48
|
@each $corner in $corners {
|
49
|
-
border-#{$corner}-radius: var(--
|
49
|
+
border-#{$corner}-radius: var(--borderRadius-small, $border-radius-1) !important;
|
50
50
|
}
|
51
51
|
}
|
52
52
|
|
53
53
|
.rounded#{$variant}-#{$edge}-2 {
|
54
54
|
@each $corner in $corners {
|
55
|
-
border-#{$corner}-radius: var(--
|
55
|
+
border-#{$corner}-radius: var(--borderRadius-medium, $border-radius-2) !important;
|
56
56
|
}
|
57
57
|
}
|
58
58
|
|
59
59
|
.rounded#{$variant}-#{$edge}-3 {
|
60
60
|
@each $corner in $corners {
|
61
|
-
border-#{$corner}-radius: var(--
|
61
|
+
border-#{$corner}-radius: var(--borderRadius-medium, $border-radius-3) !important;
|
62
62
|
}
|
63
63
|
}
|
64
64
|
}
|
@@ -66,7 +66,7 @@
|
|
66
66
|
}
|
67
67
|
|
68
68
|
/* Add a 50% border-radius to make something into a circle */
|
69
|
-
.circle { border-radius: var(--
|
69
|
+
.circle { border-radius: var(--borderRadius-full, 50%) !important; }
|
70
70
|
|
71
71
|
/* Change the border style to dashed, in conjunction with another utility */
|
72
72
|
.border-dashed {
|
@@ -107,17 +107,18 @@
|
|
107
107
|
|
108
108
|
// Only display content on focus
|
109
109
|
.show-on-focus {
|
110
|
-
position: absolute;
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
110
|
+
position: absolute !important;
|
111
|
+
|
112
|
+
&:not(:focus) {
|
113
|
+
width: 1px !important;
|
114
|
+
height: 1px !important;
|
115
|
+
padding: 0 !important;
|
116
|
+
overflow: hidden !important;
|
117
|
+
clip: rect(1px, 1px, 1px, 1px) !important;
|
118
|
+
border: 0 !important;
|
119
|
+
}
|
116
120
|
|
117
121
|
&:focus {
|
118
122
|
z-index: 999;
|
119
|
-
width: auto;
|
120
|
-
height: auto;
|
121
|
-
clip: auto;
|
122
123
|
}
|
123
124
|
}
|