@papillonarts/css 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/build/primer/autocomplete/README.md +20 -0
- package/build/primer/autocomplete/index.scss +3 -0
- package/build/primer/autocomplete/suggester.scss +101 -0
- package/build/primer/avatars/README.md +20 -0
- package/build/primer/avatars/avatar-parent-child.scss +17 -0
- package/build/primer/avatars/circle-badge.scss +55 -0
- package/build/primer/avatars/index.scss +5 -0
- package/build/primer/base/README.md +20 -0
- package/build/primer/base/base.scss +9 -17
- package/build/primer/base/index.scss +1 -0
- package/build/primer/base/kbd.scss +8 -10
- package/build/primer/{color-modes/native.scss → base/native-colors.scss} +4 -2
- package/build/primer/base/normalize.scss +4 -3
- package/build/primer/base/typography-base.scss +4 -3
- package/build/primer/box/README.md +20 -0
- package/build/primer/box/box-overlay.scss +45 -0
- package/build/primer/box/index.scss +2 -0
- package/build/primer/branch-name/README.md +20 -0
- package/build/primer/branch-name/branch-name.scss +33 -0
- package/build/primer/branch-name/index.scss +3 -0
- package/build/primer/buttons/README.md +20 -0
- package/build/primer/buttons/button-group.scss +104 -0
- package/build/primer/buttons/button.scss +347 -0
- package/build/primer/buttons/index.scss +4 -0
- package/build/primer/buttons/misc.scss +244 -0
- package/build/primer/color-modes/index.scss +0 -1
- package/build/primer/color-modes/themes/dark.scss +1 -6
- package/build/primer/color-modes/themes/dark_colorblind.scss +1 -6
- package/build/primer/color-modes/themes/dark_dimmed.scss +1 -6
- package/build/primer/color-modes/themes/dark_high_contrast.scss +1 -6
- package/build/primer/color-modes/themes/dark_tritanopia.scss +1 -6
- package/build/primer/color-modes/themes/light.scss +1 -6
- package/build/primer/color-modes/themes/light_colorblind.scss +1 -6
- package/build/primer/color-modes/themes/light_high_contrast.scss +1 -6
- package/build/primer/color-modes/themes/light_tritanopia.scss +1 -6
- package/build/primer/core/README.md +20 -0
- package/build/primer/core/index.scss +18 -0
- package/build/primer/docs.scss +7 -0
- package/build/primer/forms/README.md +20 -0
- package/build/primer/forms/form-control.scss +286 -0
- package/build/primer/forms/form-group.scss +297 -0
- package/build/primer/forms/form-select.scss +47 -0
- package/build/primer/forms/index.scss +6 -0
- package/build/primer/forms/input-group.scss +81 -0
- package/build/primer/forms/radio-group.scss +68 -0
- package/build/primer/header/README.md +20 -0
- package/build/primer/header/header.scss +51 -0
- package/build/primer/header/index.scss +2 -0
- package/build/primer/index.scss +8 -3
- package/build/primer/labels/README.md +20 -0
- package/build/primer/labels/index.scss +3 -0
- package/build/primer/labels/issue-labels.scss +26 -0
- package/build/primer/labels/mixins.scss +44 -0
- package/build/primer/layout/README.md +20 -0
- package/build/primer/layout/app-frame.scss +156 -0
- package/build/primer/layout/container.scss +30 -0
- package/build/primer/layout/grid-offset.scss +19 -0
- package/build/primer/layout/grid.scss +77 -0
- package/build/primer/layout/index.scss +7 -0
- package/build/primer/layout/page-layout.scss +417 -0
- package/build/primer/layout/stack.scss +220 -0
- package/build/primer/loaders/README.md +20 -0
- package/build/primer/loaders/index.scss +2 -0
- package/build/primer/loaders/loaders.scss +19 -0
- package/build/primer/markdown/README.md +20 -0
- package/build/primer/markdown/blob-csv.scss +32 -0
- package/build/primer/markdown/code.scss +79 -0
- package/build/primer/markdown/footnotes.scss +59 -0
- package/build/primer/markdown/headings.scss +101 -0
- package/build/primer/markdown/images.scss +130 -0
- package/build/primer/markdown/index.scss +9 -0
- package/build/primer/markdown/lists.scss +101 -0
- package/build/primer/markdown/markdown-body.scss +101 -0
- package/build/primer/markdown/tables.scss +46 -0
- package/build/primer/marketing/README.md +20 -0
- package/build/primer/marketing/buttons/button.scss +171 -0
- package/build/primer/marketing/buttons/index.scss +3 -0
- package/build/primer/marketing/index.scss +8 -0
- package/build/primer/marketing/links/index.scss +3 -0
- package/build/primer/marketing/links/link.scss +51 -0
- package/build/primer/marketing/support/index.scss +2 -0
- package/build/primer/marketing/support/variables.scss +140 -0
- package/build/primer/marketing/type/index.scss +3 -0
- package/build/primer/marketing/type/typography.scss +140 -0
- package/build/primer/marketing/utilities/animations.scss +52 -0
- package/build/primer/marketing/utilities/borders.scss +4 -0
- package/build/primer/marketing/utilities/filters.scss +3 -0
- package/build/primer/marketing/utilities/index.scss +6 -0
- package/build/primer/marketing/utilities/layout.scss +58 -0
- package/build/primer/navigation/README.md +20 -0
- package/build/primer/navigation/filter-list.scss +86 -0
- package/build/primer/navigation/index.scss +5 -0
- package/build/primer/navigation/sidenav.scss +102 -0
- package/build/primer/navigation/subnav.scss +154 -0
- package/build/primer/pagination/README.md +20 -0
- package/build/primer/pagination/index.scss +3 -0
- package/build/primer/pagination/pagination.scss +157 -0
- package/build/primer/primitives/index.scss +10 -0
- package/build/primer/primitives/temp-typography-tokens.scss +22 -0
- package/build/primer/product/README.md +20 -0
- package/build/primer/product/index.scss +13 -0
- package/build/primer/select-menu/README.md +20 -0
- package/build/primer/select-menu/index.scss +3 -0
- package/build/primer/select-menu/select-menu.scss +486 -0
- package/build/primer/support/README.md +20 -0
- package/build/primer/support/mixins/color-modes.scss +89 -3
- package/build/primer/support/mixins/layout.scss +1 -2
- package/build/primer/support/mixins/misc.scss +15 -9
- package/build/primer/support/mixins/typography.scss +21 -2
- package/build/primer/support/variables/misc.scss +2 -2
- package/build/primer/support/variables/typography.scss +2 -2
- package/build/primer/table-object/index.scss +1 -0
- package/build/primer/table-object/table-object.scss +23 -0
- package/build/primer/toasts/README.md +20 -0
- package/build/primer/toasts/index.scss +2 -0
- package/build/primer/toasts/toasts.scss +129 -0
- package/build/primer/tooltips/README.md +20 -0
- package/build/primer/tooltips/index.scss +2 -0
- package/build/primer/tooltips/tooltips.scss +228 -0
- package/build/primer/truncate/truncate.scss +2 -66
- package/build/primer/utilities/README.md +20 -0
- package/build/primer/utilities/borders.scss +30 -21
- package/build/primer/utilities/box-shadow.scss +8 -6
- package/build/primer/utilities/colors.scss +59 -60
- package/build/primer/utilities/details.scss +2 -2
- package/build/primer/utilities/flexbox.scss +2 -2
- package/build/primer/utilities/layout.scss +8 -6
- package/build/primer/utilities/margin.scss +2 -5
- package/build/primer/utilities/padding.scss +8 -10
- package/build/primer/utilities/typography.scss +12 -11
- package/build/primer/utilities/visibility-display.scss +14 -12
- package/package.json +2 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
bundle: "layout"
|
|
3
|
+
generated: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Primer CSS: `layout` bundle
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
|
|
11
|
+
|
|
12
|
+
```scss
|
|
13
|
+
@import "@primer/css/layout/index.scss";
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Build
|
|
17
|
+
|
|
18
|
+
The `@primer/css` npm package includes a standalone CSS build of this module in `dist/layout.css`.
|
|
19
|
+
|
|
20
|
+
[scss]: https://sass-lang.com/documentation/syntax#scss
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
// stylelint-disable max-nesting-depth
|
|
2
|
+
// stylelint-disable primer/spacing
|
|
3
|
+
|
|
4
|
+
.AppFrame {
|
|
5
|
+
|
|
6
|
+
// AppFrame structure
|
|
7
|
+
// ===================
|
|
8
|
+
//
|
|
9
|
+
// .AppFrame
|
|
10
|
+
// ├─ .AppFrame-a11yNav
|
|
11
|
+
// │ ├─ .AppFrame-a11yLink
|
|
12
|
+
// │
|
|
13
|
+
// ├─ .AppFrame-main
|
|
14
|
+
// │ ├─ .AppFrame-header-wrapper
|
|
15
|
+
// │ │ ├─ .AppFrame-header
|
|
16
|
+
// │ │ ├─ .AppFrame-subheader
|
|
17
|
+
// │ │
|
|
18
|
+
// │ ├─ #start-of-content
|
|
19
|
+
// │ ├─ .AppFrame-body
|
|
20
|
+
// │
|
|
21
|
+
// │ .AppFrame-footer
|
|
22
|
+
|
|
23
|
+
// Accessibility navigation
|
|
24
|
+
|
|
25
|
+
.AppFrame-a11yNav {
|
|
26
|
+
position: absolute;
|
|
27
|
+
z-index: 1000;
|
|
28
|
+
display: flex;
|
|
29
|
+
width: 100%;
|
|
30
|
+
padding: var(--base-size-16, 16px);
|
|
31
|
+
background: var(--bgColor-inset, var(--color-canvas-inset));
|
|
32
|
+
padding-block-end: calc(var(--base-size-16, 16px) - var(--borderWidth-thin, 1px));
|
|
33
|
+
isolation: isolate;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: var(--base-size-8, 8px);
|
|
36
|
+
|
|
37
|
+
&:not(:focus-within) {
|
|
38
|
+
width: 1px;
|
|
39
|
+
height: 1px;
|
|
40
|
+
padding: 0;
|
|
41
|
+
margin: -1px;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
44
|
+
border: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:focus-within {
|
|
48
|
+
top: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
|
|
51
|
+
// Narrow viewport
|
|
52
|
+
@media (max-width: #{map-get($breakpoints, 'md') - 0.02px}) {
|
|
53
|
+
justify-content: center;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.AppFrame-a11yLink {
|
|
59
|
+
transition: none;
|
|
60
|
+
|
|
61
|
+
&:not(:focus) {
|
|
62
|
+
display: block;
|
|
63
|
+
width: var(--base-size-8, 8px);
|
|
64
|
+
height: var(--base-size-8, 8px);
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
text-indent: var(--base-size-128, 128px);
|
|
67
|
+
pointer-events: none;
|
|
68
|
+
// stylelint-disable-next-line primer/colors
|
|
69
|
+
background: var(--borderColor-default, var(--color-border-default));
|
|
70
|
+
border-radius: var(--borderRadius-full, 100vh);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:focus {
|
|
74
|
+
z-index: 20;
|
|
75
|
+
display: grid;
|
|
76
|
+
width: auto;
|
|
77
|
+
height: auto;
|
|
78
|
+
min-height: var(--control-medium-size, 32px);
|
|
79
|
+
padding: 0 var(--control-medium-paddingInline-spacious, 16px);
|
|
80
|
+
overflow: auto;
|
|
81
|
+
color: var(--fgColor-onEmphasis, var(--color-fg-on-emphasis));
|
|
82
|
+
background: var(--bgColor-accent-emphasis, var(--color-accent-emphasis));
|
|
83
|
+
border-radius: var(--borderRadius-full, 100vh);
|
|
84
|
+
align-items: center;
|
|
85
|
+
|
|
86
|
+
@media (pointer: coarse) {
|
|
87
|
+
&::after {
|
|
88
|
+
@include minTouchTarget(var(--control-minTarget-coarse, 44px));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
93
|
+
animation: AppFrame-a11yLink-focus 200ms ease-out;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@keyframes AppFrame-a11yLink-focus {
|
|
97
|
+
0% {
|
|
98
|
+
color: var(--fgColor-accent, var(--color-accent-emphasis));
|
|
99
|
+
transform: scale(0.3, 0.25);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
50% {
|
|
103
|
+
color: var(--fgColor-accent, var(--color-accent-emphasis));
|
|
104
|
+
transform: scale(1, 1);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
55% {
|
|
108
|
+
color: var(--fgColor-onEmphasis, var(--color-fg-on-emphasis));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
100% {
|
|
112
|
+
transform: scaleX(1);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.AppFrame-main {
|
|
119
|
+
display: flex;
|
|
120
|
+
min-height: 100vh;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
|
|
123
|
+
@supports (height: 100dvh) {
|
|
124
|
+
min-height: 100dvh;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.AppFrame-header-wrapper {
|
|
129
|
+
position: relative;
|
|
130
|
+
height: min-content;
|
|
131
|
+
overflow: visible;
|
|
132
|
+
|
|
133
|
+
.AppFrame-header {
|
|
134
|
+
position: sticky;
|
|
135
|
+
top: 0;
|
|
136
|
+
z-index: 1;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.AppFrame-header {
|
|
141
|
+
flex: 0 0 auto;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.AppFrame-subheader {
|
|
145
|
+
flex: 0 0 auto;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.AppFrame-body {
|
|
149
|
+
flex: 1 0;
|
|
150
|
+
height: 100%;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.AppFrame-footer {
|
|
154
|
+
flex: 0 0 auto;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Fixed-width, centered column for site content.
|
|
2
|
+
// Handy container styles that match our breakpoints
|
|
3
|
+
|
|
4
|
+
// 544px
|
|
5
|
+
.container-sm {
|
|
6
|
+
max-width: $width-sm;
|
|
7
|
+
margin-right: auto;
|
|
8
|
+
margin-left: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// 768px
|
|
12
|
+
.container-md {
|
|
13
|
+
max-width: $container-md;
|
|
14
|
+
margin-right: auto;
|
|
15
|
+
margin-left: auto;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// 1004px - this matches the current fixed width: 980px + padding: px-3
|
|
19
|
+
.container-lg {
|
|
20
|
+
max-width: $container-lg;
|
|
21
|
+
margin-right: auto;
|
|
22
|
+
margin-left: auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// 1280px
|
|
26
|
+
.container-xl {
|
|
27
|
+
max-width: $container-xl;
|
|
28
|
+
margin-right: auto;
|
|
29
|
+
margin-left: auto;
|
|
30
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Optional offset options to work with grid.scss
|
|
2
|
+
|
|
3
|
+
// Offset Columns
|
|
4
|
+
|
|
5
|
+
@each $breakpoint, $variant in $responsive-variants {
|
|
6
|
+
@include breakpoint($breakpoint) {
|
|
7
|
+
.offset#{$variant}-1 { margin-left: (1 * 0.0833333333 * 100%) !important; }
|
|
8
|
+
.offset#{$variant}-2 { margin-left: (2 * 0.0833333333 * 100%) !important; }
|
|
9
|
+
.offset#{$variant}-3 { margin-left: (3 * 0.0833333333 * 100%) !important; }
|
|
10
|
+
.offset#{$variant}-4 { margin-left: (4 * 0.0833333333 * 100%) !important; }
|
|
11
|
+
.offset#{$variant}-5 { margin-left: (5 * 0.0833333333 * 100%) !important; }
|
|
12
|
+
.offset#{$variant}-6 { margin-left: (6 * 0.0833333333 * 100%) !important; }
|
|
13
|
+
.offset#{$variant}-7 { margin-left: (7 * 0.0833333333 * 100%) !important; }
|
|
14
|
+
.offset#{$variant}-8 { margin-left: (8 * 0.0833333333 * 100%) !important; }
|
|
15
|
+
.offset#{$variant}-9 { margin-left: (9 * 0.0833333333 * 100%) !important; }
|
|
16
|
+
.offset#{$variant}-10 { margin-left: (10 * 0.0833333333 * 100%) !important; }
|
|
17
|
+
.offset#{$variant}-11 { margin-left: (11 * 0.0833333333 * 100%) !important; }
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// GRID
|
|
2
|
+
|
|
3
|
+
// Columns
|
|
4
|
+
|
|
5
|
+
// stylelint-disable-next-line declaration-property-value-no-unknown
|
|
6
|
+
.col-1 { width: (1 * 0.0833333333 * 100%); }
|
|
7
|
+
// stylelint-disable-next-line declaration-property-value-no-unknown
|
|
8
|
+
.col-2 { width: (2 * 0.0833333333 * 100%); }
|
|
9
|
+
// stylelint-disable-next-line declaration-property-value-no-unknown
|
|
10
|
+
.col-3 { width: (3 * 0.0833333333 * 100%); }
|
|
11
|
+
// stylelint-disable-next-line declaration-property-value-no-unknown
|
|
12
|
+
.col-4 { width: (4 * 0.0833333333 * 100%); }
|
|
13
|
+
// stylelint-disable-next-line declaration-property-value-no-unknown
|
|
14
|
+
.col-5 { width: (5 * 0.0833333333 * 100%); }
|
|
15
|
+
// stylelint-disable-next-line declaration-property-value-no-unknown
|
|
16
|
+
.col-6 { width: (6 * 0.0833333333 * 100%); }
|
|
17
|
+
// stylelint-disable-next-line declaration-property-value-no-unknown
|
|
18
|
+
.col-7 { width: (7 * 0.0833333333 * 100%); }
|
|
19
|
+
// stylelint-disable-next-line declaration-property-value-no-unknown
|
|
20
|
+
.col-8 { width: (8 * 0.0833333333 * 100%); }
|
|
21
|
+
// stylelint-disable-next-line declaration-property-value-no-unknown
|
|
22
|
+
.col-9 { width: (9 * 0.0833333333 * 100%); }
|
|
23
|
+
// stylelint-disable-next-line declaration-property-value-no-unknown
|
|
24
|
+
.col-10 { width: (10 * 0.0833333333 * 100%); }
|
|
25
|
+
// stylelint-disable-next-line declaration-property-value-no-unknown
|
|
26
|
+
.col-11 { width: (11 * 0.0833333333 * 100%); }
|
|
27
|
+
.col-12 { width: 100%; }
|
|
28
|
+
|
|
29
|
+
@each $breakpoint in map-keys($breakpoints) {
|
|
30
|
+
@include breakpoint($breakpoint) {
|
|
31
|
+
.col-#{$breakpoint}-1 { width: ( 1 * 0.0833333333 * 100%); }
|
|
32
|
+
.col-#{$breakpoint}-2 { width: ( 2 * 0.0833333333 * 100%); }
|
|
33
|
+
.col-#{$breakpoint}-3 { width: ( 3 * 0.0833333333 * 100%); }
|
|
34
|
+
.col-#{$breakpoint}-4 { width: ( 4 * 0.0833333333 * 100%); }
|
|
35
|
+
.col-#{$breakpoint}-5 { width: ( 5 * 0.0833333333 * 100%); }
|
|
36
|
+
.col-#{$breakpoint}-6 { width: ( 6 * 0.0833333333 * 100%); }
|
|
37
|
+
.col-#{$breakpoint}-7 { width: ( 7 * 0.0833333333 * 100%); }
|
|
38
|
+
.col-#{$breakpoint}-8 { width: ( 8 * 0.0833333333 * 100%); }
|
|
39
|
+
.col-#{$breakpoint}-9 { width: ( 9 * 0.0833333333 * 100%); }
|
|
40
|
+
.col-#{$breakpoint}-10 { width: ( 10 * 0.0833333333 * 100%); }
|
|
41
|
+
.col-#{$breakpoint}-11 { width: ( 11 * 0.0833333333 * 100%); }
|
|
42
|
+
.col-#{$breakpoint}-12 { width: 100%; }
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Gutters
|
|
47
|
+
// Apply padding and a negative margin to the outside of the container
|
|
48
|
+
// stylelint-disable primer/spacing
|
|
49
|
+
@mixin gutters ($gutter-width: var(--base-size-16)) {
|
|
50
|
+
margin-right: calc($gutter-width * -1);
|
|
51
|
+
margin-left: calc($gutter-width * -1);
|
|
52
|
+
|
|
53
|
+
> [class*='col-'] {
|
|
54
|
+
padding-right: $gutter-width !important;
|
|
55
|
+
padding-left: $gutter-width !important;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.gutter {
|
|
60
|
+
@include gutters(var(--base-size-16));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.gutter-condensed {
|
|
64
|
+
@include gutters(var(--base-size-8));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.gutter-spacious {
|
|
68
|
+
@include gutters(var(--base-size-24));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@each $breakpoint in map-keys($breakpoints) {
|
|
72
|
+
@include breakpoint($breakpoint) {
|
|
73
|
+
.gutter-#{$breakpoint} { @include gutters(var(--base-size-16)); }
|
|
74
|
+
.gutter-#{$breakpoint}-condensed { @include gutters(var(--base-size-8)); }
|
|
75
|
+
.gutter-#{$breakpoint}-spacious { @include gutters(var(--base-size-24)); }
|
|
76
|
+
}
|
|
77
|
+
}
|