@primer/css 0.0.0-20220120020705 → 0.0.0-2022020193741
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/CHANGELOG.md +6 -53
- package/actionlist/action-list-item.scss +54 -120
- package/actionlist/index.scss +0 -1
- package/autocomplete/autocomplete.scss +1 -1
- package/avatars/avatar-stack.scss +0 -1
- package/base/base.scss +0 -1
- package/base/index.scss +1 -0
- package/blankslate/index.scss +1 -0
- package/breadcrumb/breadcrumb.scss +1 -1
- package/buttons/button-group.scss +2 -3
- package/buttons/button.scss +35 -0
- package/buttons/misc.scss +7 -6
- package/color-modes/native.scss +0 -12
- package/color-modes/themes/dark.scss +1 -0
- package/color-modes/themes/dark_colorblind.scss +1 -0
- package/color-modes/themes/dark_dimmed.scss +1 -0
- package/color-modes/themes/dark_high_contrast.scss +1 -0
- package/color-modes/themes/light.scss +1 -0
- package/color-modes/themes/light_colorblind.scss +1 -0
- package/color-modes/themes/light_high_contrast.scss +1 -0
- package/dist/actionlist.css +1 -1
- package/dist/actionlist.css.map +1 -1
- package/dist/alerts.css.map +1 -1
- package/dist/autocomplete.css.map +1 -1
- package/dist/avatars.css +1 -1
- package/dist/avatars.css.map +1 -1
- package/dist/base.css.map +1 -1
- package/dist/blankslate.css.map +1 -1
- package/dist/box.css.map +1 -1
- package/dist/branch-name.css.map +1 -1
- package/dist/breadcrumb.css.map +1 -1
- package/dist/buttons.css +1 -1
- package/dist/buttons.css.map +1 -1
- package/dist/color-modes.css +1 -1
- package/dist/color-modes.css.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.css.map +1 -1
- package/dist/dropdown.css.map +1 -1
- package/dist/forms.css.map +1 -1
- package/dist/header.css.map +1 -1
- package/dist/labels.css +1 -1
- package/dist/labels.css.map +1 -1
- package/dist/layout.css +1 -1
- package/dist/layout.css.map +1 -1
- package/dist/links.css.map +1 -1
- package/dist/loaders.css.map +1 -1
- package/dist/markdown.css.map +1 -1
- package/dist/marketing-buttons.css +1 -1
- package/dist/marketing-buttons.css.map +1 -1
- package/dist/marketing-type.css.map +1 -1
- package/dist/marketing-utilities.css +1 -1
- package/dist/marketing-utilities.css.map +1 -1
- package/dist/marketing.css +1 -1
- package/dist/marketing.css.map +1 -1
- package/dist/meta.json +84 -95
- package/dist/navigation.css.map +1 -1
- package/dist/pagination.css +1 -1
- package/dist/pagination.css.map +1 -1
- package/dist/popover.css +1 -1
- package/dist/popover.css.map +1 -1
- package/dist/primer.css +4 -4
- package/dist/primer.css.map +1 -1
- package/dist/product.css +1 -1
- package/dist/product.css.map +1 -1
- package/dist/progress.css.map +1 -1
- package/dist/select-menu.css.map +1 -1
- package/dist/stats/actionlist.json +1 -1
- package/dist/stats/avatars.json +1 -1
- package/dist/stats/buttons.json +1 -1
- package/dist/stats/color-modes.json +1 -1
- package/dist/stats/core.json +1 -1
- package/dist/stats/labels.json +1 -1
- package/dist/stats/layout.json +1 -1
- package/dist/stats/marketing-buttons.json +1 -1
- package/dist/stats/marketing-utilities.json +1 -1
- package/dist/stats/marketing.json +1 -1
- package/dist/stats/pagination.json +1 -1
- package/dist/stats/popover.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/dist/stats/product.json +1 -1
- package/dist/stats/utilities.json +1 -1
- package/dist/subhead.css.map +1 -1
- package/dist/timeline.css.map +1 -1
- package/dist/toasts.css.map +1 -1
- package/dist/tooltips.css.map +1 -1
- package/dist/truncate.css.map +1 -1
- package/dist/utilities.css +1 -1
- package/dist/utilities.css.map +1 -1
- package/forms/form-control.scss +0 -2
- package/labels/counters.scss +1 -1
- package/labels/index.scss +1 -0
- package/labels/labels.scss +0 -1
- package/layout/index.scss +1 -1
- package/layout/layout.scss +11 -8
- package/layout/mixins.scss +4 -30
- package/markdown/images.scss +2 -2
- package/marketing/buttons/button.scss +0 -8
- package/marketing/index.scss +0 -1
- package/marketing/type/typography.scss +0 -3
- package/marketing/utilities/animations.scss +0 -42
- package/navigation/filter-list.scss +2 -2
- package/navigation/menu.scss +2 -2
- package/navigation/sidenav.scss +2 -2
- package/navigation/subnav.scss +2 -2
- package/navigation/tabnav.scss +2 -2
- package/navigation/underline-nav.scss +2 -2
- package/package.json +13 -14
- package/pagination/pagination.scss +4 -41
- package/popover/popover.scss +1 -1
- package/select-menu/select-menu.scss +2 -2
- package/stylelint.config.cjs +11 -2
- package/support/mixins/color-modes.scss +0 -3
- package/support/mixins/misc.scss +16 -0
- package/support/mixins/typography.scss +2 -3
- package/support/variables/layout.scss +2 -1
- package/utilities/visibility-display.scss +3 -3
- package/actionlist/action-list-tree.scss +0 -92
- package/dist/marketing-links.css +0 -2
- package/dist/marketing-links.css.map +0 -1
- package/dist/marketing-links.js +0 -1
- package/dist/stats/marketing-links.json +0 -1
- package/layout/page-layout.scss +0 -380
- package/marketing/links/index.scss +0 -3
- package/marketing/links/link.scss +0 -50
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
// tree-view variant
|
|
2
|
-
// renders ActionList with default styling for tree-view
|
|
3
|
-
// collapse/expand icons presents as leadingActions, rotate 90deg
|
|
4
|
-
// connecting vertical lines between collapse groups
|
|
5
|
-
// consistent font-size between nested groups
|
|
6
|
-
|
|
7
|
-
@mixin treeConnectingLine($left) {
|
|
8
|
-
position: absolute;
|
|
9
|
-
left: $left;
|
|
10
|
-
width: 1px;
|
|
11
|
-
height: 100%;
|
|
12
|
-
content: '';
|
|
13
|
-
background: var(--color-action-list-item-inline-divider);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.ActionList--tree {
|
|
17
|
-
--ActionList-tree-depth: 1;
|
|
18
|
-
// TODO: remove with PVC implementation
|
|
19
|
-
.ActionList-item--subItem > .ActionList-content {
|
|
20
|
-
font-size: $body-font-size;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.ActionList-item {
|
|
24
|
-
// nesting (infinate levels)
|
|
25
|
-
// target items inside expanded subgroup
|
|
26
|
-
&[aria-expanded] {
|
|
27
|
-
.ActionList--subGroup {
|
|
28
|
-
position: relative;
|
|
29
|
-
|
|
30
|
-
// --ActionList-tree-depth is defined as an inline style referencing the aria-level of each item ie: aria-level="2"
|
|
31
|
-
// stylelint-disable-next-line selector-max-specificity, max-nesting-depth, selector-max-compound-selectors
|
|
32
|
-
.ActionList-content {
|
|
33
|
-
// stylelint-disable-next-line primer/spacing
|
|
34
|
-
padding-left: calc(#{$spacer-2} * var(--ActionList-tree-depth));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// tree-view specific collapse icon positioning/animation
|
|
40
|
-
&[aria-expanded='true'] {
|
|
41
|
-
.ActionList-item-collapseIcon {
|
|
42
|
-
transition: transform 120ms linear;
|
|
43
|
-
transform: rotate(0deg);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&[aria-expanded='false'] {
|
|
48
|
-
.ActionList-item-collapseIcon {
|
|
49
|
-
transition: transform 120ms linear;
|
|
50
|
-
transform: rotate(-90deg);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// expand/collapse group
|
|
56
|
-
.ActionList-item--hasSubItem {
|
|
57
|
-
.ActionList-item--subItem:not(.ActionList-item--hasSubItem) {
|
|
58
|
-
// stylelint-disable-next-line selector-max-specificity, selector-max-compound-selectors
|
|
59
|
-
.ActionList-content {
|
|
60
|
-
// increase child padding by targeting content first child span (add to ActionList-content padding, not replace)
|
|
61
|
-
// creates a slight indent of child items
|
|
62
|
-
// stylelint-disable-next-line selector-max-specificity, selector-max-type, max-nesting-depth, selector-max-compound-selectors
|
|
63
|
-
> span:first-child {
|
|
64
|
-
padding-left: $spacer-4;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// first subitem
|
|
71
|
-
> [aria-level='1'].ActionList-item--hasSubItem {
|
|
72
|
-
> .ActionList--subGroup {
|
|
73
|
-
// stylelint-disable-next-line selector-max-specificity
|
|
74
|
-
&::before {
|
|
75
|
-
@include treeConnectingLine($left: $spacer-3);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// all other subitems
|
|
81
|
-
// center connecting line with parent (line is 1px (8px - 1px)
|
|
82
|
-
.ActionList-item--hasSubItem:not([aria-level='1']) {
|
|
83
|
-
> .ActionList--subGroup {
|
|
84
|
-
// stylelint-disable-next-line selector-max-specificity
|
|
85
|
-
&::before {
|
|
86
|
-
@include treeConnectingLine(
|
|
87
|
-
$left: calc(#{$spacer-2} * (var(--ActionList-tree-depth)) + #{$spacer-2 - $border-width})
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
package/dist/marketing-links.css
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
.link-mktg{position:relative;display:inline-block}.link-mktg:hover{text-decoration:none}.link-mktg:active{outline:none}.link-mktg::after,.link-mktg.link-emphasis-mktg::before{position:absolute;bottom:-0.15em;left:0;width:calc(100% - 1em);height:2px;pointer-events:none;content:"";background-color:currentColor;transform:scaleX(0);transform-origin:0 0}@media screen and (prefers-reduced-motion: no-preference){.link-mktg::after,.link-mktg.link-emphasis-mktg::before{transition:transform .3s ease}}.link-mktg.link-emphasis-mktg::before{opacity:.2;transform:scaleX(1)}.link-mktg:hover::after,.link-mktg:focus::after,.link-mktg:active::after{transform:scaleX(1)}.link-mktg.arrow-target-mktg .arrow-symbol-mktg{margin-left:-0.25em}
|
|
2
|
-
/*# sourceMappingURL=marketing-links.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["file:///home/runner/work/css/css/src/marketing/links/index.scss%23sass"],"names":[],"mappings":"AAonBA,WAAA,iBACE,CAAA,oBAAA,CAAA,iBAAA,oBAAA,CAAA,kBAAA,YAAA,CAAA,wDAAA,iBAAA,CAAA,cAAA,CAAA,MAAA,CAAA,sBAAA,CAAA,UAAA,CAAA,mBAAA,CAAA,UAAA,CAAA,6BAAA,CAAA,mBAAA,CAAA,oBAAA,CAAA,0DAAA,wDAAA,6BAAA,CAAA,CAAA,sCAAA,UAAA,CAAA,mBAAA,CAAA,yEAAA,mBAAA,CAAA,gDAAA,mBAAA","file":"marketing-links.css"}
|
package/dist/marketing-links.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {cssstats: require('./stats/marketing-links.json')}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"size":726,"gzipSize":358,"humanizedSize":"726B","humanizedGzipSize":"358B","rules":{"total":8,"size":{"graph":[2,1,1,10,1,2,1,1],"max":10,"average":2.375},"selectorByRuleSizes":[{"selector":".link-mktg::after,.link-mktg.link-emphasis-mktg::before","declarations":10},{"selector":".link-mktg.link-emphasis-mktg::before","declarations":2},{"selector":".link-mktg","declarations":2},{"selector":".link-mktg.arrow-target-mktg .arrow-symbol-mktg","declarations":1},{"selector":".link-mktg:hover::after,.link-mktg:focus::after,.link-mktg:active::after","declarations":1},{"selector":".link-mktg::after,.link-mktg.link-emphasis-mktg::before","declarations":1},{"selector":".link-mktg:active","declarations":1},{"selector":".link-mktg:hover","declarations":1}]},"selectors":{"total":12,"type":0,"class":12,"id":0,"pseudoClass":5,"pseudoElement":8,"values":[".link-mktg",".link-mktg:hover",".link-mktg:active",".link-mktg::after",".link-mktg.link-emphasis-mktg::before",".link-mktg::after",".link-mktg.link-emphasis-mktg::before",".link-mktg.link-emphasis-mktg::before",".link-mktg:hover::after",".link-mktg:focus::after",".link-mktg:active::after",".link-mktg.arrow-target-mktg .arrow-symbol-mktg"],"specificity":{"max":30,"average":19}},"declarations":{"total":19,"unique":18,"uniqueToTotalRatio":0.9473684210526315,"properties":{"position":["relative","absolute"],"display":["inline-block"],"text-decoration":["none"],"outline":["none"],"bottom":["-0.15em"],"left":["0"],"width":["calc(100% - 1em)"],"height":["2px"],"pointer-events":["none"],"content":["\"\""],"background-color":["currentColor"],"transform":["scaleX(0)","scaleX(1)","scaleX(1)"],"transform-origin":["0 0"],"transition":["transform .3s ease"],"opacity":[".2"],"margin-left":["-0.25em"]}},"mediaQueries":{"total":1,"unique":1,"values":["screen and (prefers-reduced-motion: no-preference)"],"contents":[{"value":"screen and (prefers-reduced-motion: no-preference)","rules":{"total":1,"size":{"graph":[1],"max":1,"average":1},"selectorByRuleSizes":[{"selector":".link-mktg::after,.link-mktg.link-emphasis-mktg::before","declarations":1}]},"selectors":{"total":2,"type":0,"class":2,"id":0,"pseudoClass":0,"pseudoElement":2,"values":[".link-mktg::after",".link-mktg.link-emphasis-mktg::before"],"specificity":{"max":21,"average":16}},"declarations":{"total":1,"unique":1,"uniqueToTotalRatio":1,"properties":{"transition":["transform .3s ease"]}}}]}}
|
package/layout/page-layout.scss
DELETED
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
// stylelint-disable max-nesting-depth
|
|
2
|
-
// stylelint-disable selector-max-specificity
|
|
3
|
-
// stylelint-disable no-duplicate-selectors
|
|
4
|
-
|
|
5
|
-
$Layout-divider-color: var(--color-border-default) !default;
|
|
6
|
-
$Layout-responsive-variant-max-breakpoint: 'md' !default;
|
|
7
|
-
|
|
8
|
-
:root {
|
|
9
|
-
--Layout-pane-width: #{map-get($sidebar-width, 'sm')};
|
|
10
|
-
--Layout-content-width: 100%;
|
|
11
|
-
--Layout-template-columns: 1fr var(--Layout-pane-width);
|
|
12
|
-
--Layout-template-areas: 'content pane';
|
|
13
|
-
--Layout-column-gap: #{$spacer-3};
|
|
14
|
-
--Layout-row-gap: #{$spacer-3};
|
|
15
|
-
|
|
16
|
-
// the `px` unit is mandatory for `calc()` execution. See https://stackoverflow.com/a/32518348
|
|
17
|
-
// stylelint-disable length-zero-no-unit
|
|
18
|
-
--Layout-outer-spacing-x: 0px; // wrapper margin x
|
|
19
|
-
--Layout-outer-spacing-y: 0px; // wrapper margin y
|
|
20
|
-
--Layout-inner-spacing-min: 0px; // default region padding
|
|
21
|
-
--Layout-inner-spacing-max: 0px; // relaxed content horizontal padding
|
|
22
|
-
// stylelint-enable length-zero-no-unit
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.PageLayout {
|
|
26
|
-
// stylelint-disable-next-line primer/spacing
|
|
27
|
-
margin: var(--Layout-outer-spacing-y) var(--Layout-outer-spacing-x);
|
|
28
|
-
|
|
29
|
-
// multi-column desktop-friendly layout
|
|
30
|
-
|
|
31
|
-
@include breakpoint($Layout-responsive-variant-max-breakpoint) {
|
|
32
|
-
|
|
33
|
-
// Set a `content` region width, to work with loading states when
|
|
34
|
-
// `pane` is not yet loaded. See https://github.com/primer/css/pull/1818
|
|
35
|
-
$Layout-content-full-width: minmax(0, calc(100% - var(--Layout-pane-width) - var(--Layout-column-gap)));
|
|
36
|
-
|
|
37
|
-
&.PageLayout--panePos-start {
|
|
38
|
-
--Layout-template-columns: var(--Layout-pane-width) #{$Layout-content-full-width};
|
|
39
|
-
--Layout-template-areas: 'pane content';
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&.PageLayout--panePos-end {
|
|
43
|
-
--Layout-template-columns: #{$Layout-content-full-width} var(--Layout-pane-width);
|
|
44
|
-
--Layout-template-areas: 'content pane';
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// header divider
|
|
48
|
-
|
|
49
|
-
.PageLayout-header--hasDivider {
|
|
50
|
-
// stylelint-disable-next-line primer/spacing
|
|
51
|
-
padding-bottom: max(var(--Layout-row-gap), var(--Layout-inner-spacing-min));
|
|
52
|
-
// stylelint-disable-next-line primer/borders
|
|
53
|
-
border-bottom: $border-width solid $Layout-divider-color;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// footer divider
|
|
57
|
-
|
|
58
|
-
.PageLayout-footer--hasDivider {
|
|
59
|
-
// stylelint-disable-next-line primer/spacing
|
|
60
|
-
padding-top: max(var(--Layout-row-gap), var(--Layout-inner-spacing-min));
|
|
61
|
-
// stylelint-disable-next-line primer/borders
|
|
62
|
-
border-top: $border-width solid $Layout-divider-color;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// pane divider
|
|
66
|
-
|
|
67
|
-
&.PageLayout--hasPaneDivider {
|
|
68
|
-
&.PageLayout--panePos-start {
|
|
69
|
-
.PageLayout-pane {
|
|
70
|
-
// stylelint-disable-next-line primer/borders
|
|
71
|
-
border-right: $border-width solid $Layout-divider-color;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&:not(.PageLayout--columnGap-none) {
|
|
75
|
-
.PageLayout-pane {
|
|
76
|
-
// stylelint-disable-next-line primer/spacing
|
|
77
|
-
padding-right: calc(var(--Layout-column-gap) - #{$border-width});
|
|
78
|
-
// stylelint-disable-next-line primer/spacing
|
|
79
|
-
margin-right: calc(var(--Layout-column-gap) * -1);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.PageLayout-content {
|
|
83
|
-
// stylelint-disable-next-line primer/spacing
|
|
84
|
-
margin-left: var(--Layout-column-gap);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&.PageLayout--panePos-end {
|
|
90
|
-
.PageLayout-pane {
|
|
91
|
-
// stylelint-disable-next-line primer/borders
|
|
92
|
-
border-left: $border-width solid $Layout-divider-color;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&:not(.PageLayout--columnGap-none) {
|
|
96
|
-
.PageLayout-pane {
|
|
97
|
-
// stylelint-disable-next-line primer/spacing
|
|
98
|
-
padding-left: calc(var(--Layout-column-gap) - #{$border-width});
|
|
99
|
-
// stylelint-disable-next-line primer/spacing
|
|
100
|
-
margin-left: calc(var(--Layout-column-gap) * -1);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.PageLayout-content {
|
|
104
|
-
// stylelint-disable-next-line primer/spacing
|
|
105
|
-
margin-right: var(--Layout-column-gap);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// sticky pane
|
|
112
|
-
|
|
113
|
-
&.PageLayout--isPaneSticky {
|
|
114
|
-
.PageLayout-pane {
|
|
115
|
-
position: sticky;
|
|
116
|
-
top: 0;
|
|
117
|
-
max-height: 100vh;
|
|
118
|
-
overflow: auto;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// content width
|
|
123
|
-
|
|
124
|
-
[class^='PageLayout-content-centered-'] {
|
|
125
|
-
max-width: calc(var(--Layout-content-width) + var(--Layout-pane-width) + var(--Layout-column-gap));
|
|
126
|
-
margin-right: auto;
|
|
127
|
-
margin-left: auto;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
&.PageLayout--hasPaneDivider {
|
|
131
|
-
[class^='PageLayout-content-centered-'] {
|
|
132
|
-
max-width: calc(var(--Layout-content-width) + var(--Layout-pane-width) + (var(--Layout-column-gap) * 2));
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
&.PageLayout--panePos-start {
|
|
137
|
-
[class^='PageLayout-content-centered-'] > [class^='container-'] {
|
|
138
|
-
margin-left: 0;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&.PageLayout--panePos-end {
|
|
143
|
-
[class^='PageLayout-content-centered-'] > [class^='container-'] {
|
|
144
|
-
margin-right: 0;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
@each $breakpoint in map-keys($breakpoints) {
|
|
149
|
-
.PageLayout-content-centered-#{$breakpoint} {
|
|
150
|
-
--Layout-content-width: #{map-get($breakpoints, $breakpoint)};
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
// pane width
|
|
155
|
-
|
|
156
|
-
@each $breakpoint in map-keys($sidebar-width) {
|
|
157
|
-
@include breakpoint($breakpoint) {
|
|
158
|
-
--Layout-pane-width: #{map-get($sidebar-width, $breakpoint)};
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
&.PageLayout--paneWidth-narrow {
|
|
163
|
-
@each $breakpoint in map-keys($sidebar-narrow-width) {
|
|
164
|
-
@include breakpoint($breakpoint) {
|
|
165
|
-
--Layout-pane-width: #{map-get($sidebar-narrow-width, $breakpoint)};
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
&.PageLayout--paneWidth-wide {
|
|
171
|
-
@each $breakpoint in map-keys($sidebar-wide-width) {
|
|
172
|
-
@include breakpoint($breakpoint) {
|
|
173
|
-
--Layout-pane-width: #{map-get($sidebar-wide-width, $breakpoint)};
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// responsive behaviors on narrow viewports
|
|
180
|
-
|
|
181
|
-
@media (max-width: #{map-get($breakpoints, $Layout-responsive-variant-max-breakpoint) - 0.02px}) {
|
|
182
|
-
|
|
183
|
-
// variant: stackRegions
|
|
184
|
-
|
|
185
|
-
&.PageLayout--responsive-stackRegions {
|
|
186
|
-
--Layout-template-columns: 1fr;
|
|
187
|
-
|
|
188
|
-
// responsive-panePos: end (default)
|
|
189
|
-
--Layout-template-areas: 'content' 'pane';
|
|
190
|
-
|
|
191
|
-
// responsive-panePos: start
|
|
192
|
-
&.PageLayout--responsive-panePos-start {
|
|
193
|
-
--Layout-template-areas: 'pane' 'content';
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
// variant: separateRegions
|
|
198
|
-
|
|
199
|
-
&.PageLayout--responsive-separateRegions {
|
|
200
|
-
--Layout-template-columns: 1fr;
|
|
201
|
-
--Layout-template-areas: 'content';
|
|
202
|
-
|
|
203
|
-
&.PageLayout--responsive-primary-content {
|
|
204
|
-
--Layout-template-areas: 'content';
|
|
205
|
-
|
|
206
|
-
.PageLayout-pane {
|
|
207
|
-
display: none;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
&.PageLayout--responsive-primary-pane {
|
|
212
|
-
--Layout-template-areas: 'pane';
|
|
213
|
-
|
|
214
|
-
.PageLayout-content {
|
|
215
|
-
display: none;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
// region dividers on narrow viewports
|
|
221
|
-
|
|
222
|
-
.PageLayout-region--dividerNarrow-line-before {
|
|
223
|
-
position: relative;
|
|
224
|
-
// stylelint-disable-next-line primer/spacing
|
|
225
|
-
margin-top: var(--Layout-row-gap);
|
|
226
|
-
|
|
227
|
-
&::before {
|
|
228
|
-
@include Layout-line-divider;
|
|
229
|
-
|
|
230
|
-
top: calc(#{$border-width * -1} - var(--Layout-row-gap));
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.PageLayout-region--dividerNarrow-line-after {
|
|
235
|
-
position: relative;
|
|
236
|
-
// stylelint-disable-next-line primer/spacing
|
|
237
|
-
margin-bottom: var(--Layout-row-gap);
|
|
238
|
-
|
|
239
|
-
&::after {
|
|
240
|
-
@include Layout-line-divider;
|
|
241
|
-
|
|
242
|
-
bottom: calc(#{$border-width * -1} - var(--Layout-row-gap));
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.PageLayout-region--dividerNarrow-filled-before {
|
|
247
|
-
position: relative;
|
|
248
|
-
// stylelint-disable-next-line primer/spacing
|
|
249
|
-
margin-top: calc(#{$spacer-2} + var(--Layout-row-gap));
|
|
250
|
-
|
|
251
|
-
&::after {
|
|
252
|
-
@include Layout-filled-divider;
|
|
253
|
-
|
|
254
|
-
top: calc(#{$spacer-2 * -1} - var(--Layout-row-gap));
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.PageLayout-region--dividerNarrow-filled-after {
|
|
259
|
-
position: relative;
|
|
260
|
-
// stylelint-disable-next-line primer/spacing
|
|
261
|
-
margin-bottom: calc(#{$spacer-2} + var(--Layout-row-gap));
|
|
262
|
-
|
|
263
|
-
&::before {
|
|
264
|
-
@include Layout-filled-divider;
|
|
265
|
-
|
|
266
|
-
bottom: calc(#{$spacer-2 * -1} - var(--Layout-row-gap));
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.PageLayout-wrapper {
|
|
273
|
-
display: grid;
|
|
274
|
-
grid: auto-flow / 1fr;
|
|
275
|
-
row-gap: var(--Layout-row-gap);
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.PageLayout-columns {
|
|
279
|
-
display: grid;
|
|
280
|
-
column-gap: var(--Layout-column-gap);
|
|
281
|
-
row-gap: var(--Layout-row-gap);
|
|
282
|
-
grid-template-columns: var(--Layout-template-columns);
|
|
283
|
-
grid-template-rows: 1fr;
|
|
284
|
-
grid-template-areas: var(--Layout-template-areas);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
// outer spacing
|
|
288
|
-
|
|
289
|
-
.PageLayout--outerSpacing-normal {
|
|
290
|
-
--Layout-outer-spacing-x: #{$spacer-3};
|
|
291
|
-
--Layout-outer-spacing-y: #{$spacer-3};
|
|
292
|
-
|
|
293
|
-
@include breakpoint(lg) {
|
|
294
|
-
--Layout-outer-spacing-x: #{$spacer-4};
|
|
295
|
-
--Layout-outer-spacing-y: #{$spacer-4};
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.PageLayout--outerSpacing-condensed {
|
|
300
|
-
--Layout-outer-spacing-x: #{$spacer-3};
|
|
301
|
-
--Layout-outer-spacing-y: #{$spacer-3};
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
// inner spacing
|
|
305
|
-
|
|
306
|
-
.PageLayout--innerSpacing-normal {
|
|
307
|
-
--Layout-inner-spacing-min: #{$spacer-3};
|
|
308
|
-
--Layout-inner-spacing-max: #{$spacer-3};
|
|
309
|
-
|
|
310
|
-
@include breakpoint(lg) {
|
|
311
|
-
--Layout-inner-spacing-max: #{$spacer-4};
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
.PageLayout--innerSpacing-condensed {
|
|
316
|
-
--Layout-inner-spacing-min: #{$spacer-3};
|
|
317
|
-
--Layout-inner-spacing-max: #{$spacer-3};
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
// column gap
|
|
321
|
-
|
|
322
|
-
.PageLayout--columnGap-normal {
|
|
323
|
-
--Layout-column-gap: #{$spacer-3};
|
|
324
|
-
|
|
325
|
-
@include breakpoint(lg) {
|
|
326
|
-
--Layout-column-gap: #{$spacer-4};
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
.PageLayout--columnGap-condensed {
|
|
331
|
-
--Layout-column-gap: #{$spacer-3};
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
.PageLayout--columnGap-none {
|
|
335
|
-
// the `px` unit is mandatory for `calc()` execution. See https://stackoverflow.com/a/32518348
|
|
336
|
-
// stylelint-disable-next-line length-zero-no-unit
|
|
337
|
-
--Layout-column-gap: 0px;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
// row gap
|
|
341
|
-
|
|
342
|
-
.PageLayout--rowGap-normal {
|
|
343
|
-
--Layout-row-gap: #{$spacer-3};
|
|
344
|
-
|
|
345
|
-
@include breakpoint(lg) {
|
|
346
|
-
--Layout-row-gap: #{$spacer-4};
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
.PageLayout--rowGap-none {
|
|
351
|
-
// the `px` unit is mandatory for `calc()` execution. See https://stackoverflow.com/a/32518348
|
|
352
|
-
// stylelint-disable length-zero-no-unit
|
|
353
|
-
--Layout-row-gap: 0px;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.PageLayout--rowGap-condensed {
|
|
357
|
-
--Layout-row-gap: #{$spacer-3};
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
// regions
|
|
361
|
-
|
|
362
|
-
.PageLayout-header,
|
|
363
|
-
.PageLayout-content,
|
|
364
|
-
.PageLayout-pane,
|
|
365
|
-
.PageLayout-footer {
|
|
366
|
-
// stylelint-disable-next-line primer/spacing
|
|
367
|
-
padding: var(--Layout-inner-spacing-min);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.PageLayout-content {
|
|
371
|
-
// stylelint-disable primer/spacing
|
|
372
|
-
padding-right: var(--Layout-inner-spacing-max);
|
|
373
|
-
padding-left: var(--Layout-inner-spacing-max);
|
|
374
|
-
// stylelint-enable primer/spacing
|
|
375
|
-
grid-area: content;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.PageLayout-pane {
|
|
379
|
-
grid-area: pane;
|
|
380
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
.link-mktg {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: inline-block;
|
|
4
|
-
|
|
5
|
-
&:hover {
|
|
6
|
-
text-decoration: none;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
&:active {
|
|
10
|
-
outline: none;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&::after,
|
|
14
|
-
&.link-emphasis-mktg::before {
|
|
15
|
-
position: absolute;
|
|
16
|
-
bottom: -0.15em;
|
|
17
|
-
left: 0;
|
|
18
|
-
width: calc(100% - 1em);
|
|
19
|
-
height: 2px;
|
|
20
|
-
pointer-events: none;
|
|
21
|
-
content: '';
|
|
22
|
-
// stylelint-disable-next-line primer/colors
|
|
23
|
-
background-color: currentColor;
|
|
24
|
-
transform: scaleX(0);
|
|
25
|
-
transform-origin: 0 0;
|
|
26
|
-
|
|
27
|
-
@media screen and (prefers-reduced-motion: no-preference) {
|
|
28
|
-
transition: transform 0.3s ease;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&.link-emphasis-mktg::before {
|
|
33
|
-
opacity: 0.2;
|
|
34
|
-
transform: scaleX(1);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&:hover,
|
|
38
|
-
&:focus,
|
|
39
|
-
&:active {
|
|
40
|
-
&::after {
|
|
41
|
-
transform: scaleX(1);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&.arrow-target-mktg {
|
|
46
|
-
.arrow-symbol-mktg {
|
|
47
|
-
margin-left: -$em-spacer-3;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|