@primer/css 20.8.0-rc.633d9477 → 20.8.0-rc.6d7cf325

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.
@@ -1,105 +0,0 @@
1
- // Layout alpha mixins
2
-
3
- @mixin flow-as-row {
4
- grid-auto-flow: row;
5
- grid-template-columns: 1fr !important;
6
-
7
- .Layout-sidebar,
8
- .Layout-divider,
9
- .Layout-main {
10
- width: 100% !important;
11
- grid-column: 1 !important;
12
- }
13
-
14
- &.Layout--sidebarPosition-flowRow-start {
15
- .Layout-sidebar {
16
- grid-row: 1;
17
- }
18
-
19
- .Layout-main {
20
- grid-row: 2 / span 2;
21
- }
22
- }
23
-
24
- &.Layout--sidebarPosition-flowRow-end {
25
- .Layout-sidebar {
26
- grid-row: 2 / span 2;
27
- }
28
-
29
- .Layout-main {
30
- grid-row: 1;
31
- }
32
- }
33
-
34
- &.Layout--sidebarPosition-flowRow-none {
35
- .Layout-sidebar {
36
- display: none;
37
- }
38
- }
39
-
40
- &.Layout--divided {
41
- @include flow-as-row-divider;
42
-
43
- .Layout-main {
44
- grid-row: 3 / span 1;
45
- }
46
-
47
- &.Layout--sidebarPosition-flowRow-end {
48
- .Layout-sidebar {
49
- grid-row: 3 / span 1;
50
- }
51
-
52
- .Layout-main {
53
- grid-row: 1;
54
- }
55
- }
56
- }
57
- }
58
-
59
- @mixin flow-as-row-divider {
60
- --Layout-gutter: 0;
61
-
62
- .Layout-divider {
63
- height: 1px;
64
- grid-row: 2;
65
-
66
- &.Layout-divider--flowRow-hidden {
67
- display: none;
68
- }
69
-
70
- &.Layout-divider--flowRow-shallow {
71
- height: 8px;
72
- margin-right: 0;
73
- background: var(--color-canvas-inset);
74
- border-color: var(--color-border-default);
75
- border-style: solid;
76
- border-width: $border-width 0;
77
- }
78
- }
79
- }
80
-
81
- // Layout beta mixins
82
-
83
- // responsive region dividers
84
-
85
- @mixin Layout-line-divider {
86
- position: absolute;
87
- left: calc(var(--Layout-outer-spacing-x) * -1);
88
- display: block;
89
- width: calc(100% + (var(--Layout-outer-spacing-x) * 2));
90
- height: 1px;
91
- content: '';
92
- background-color: $Layout-divider-color;
93
- }
94
-
95
- @mixin Layout-filled-divider {
96
- position: absolute;
97
- bottom: calc(#{$spacer-2} * -1); // -8px
98
- left: calc(var(--Layout-outer-spacing-x) * -1);
99
- display: block;
100
- width: calc(100% + (var(--Layout-outer-spacing-x) * 2));
101
- height: #{$spacer-2}; // 8px
102
- content: '';
103
- background-color: var(--color-canvas-inset);
104
- box-shadow: inset 0 1px $Layout-divider-color, inset 0 -1px $Layout-divider-color;
105
- }