Skip to content

Commit

Permalink
Updates from suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan committed Jun 3, 2024
1 parent 1d3e580 commit 2aa8243
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 40 deletions.
4 changes: 2 additions & 2 deletions src/layout/page-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ $Layout-responsive-variant-max-breakpoint: 'md' !default;
@include Layout-filled-divider;

// stylelint-disable-next-line primer/spacing
top: calc(var(--base-size-8) * -1 - var(--Layout-row-gap));
top: calc(calc(var(--base-size-8) * -1) - var(--Layout-row-gap));
}
}

Expand All @@ -297,7 +297,7 @@ $Layout-responsive-variant-max-breakpoint: 'md' !default;
@include Layout-filled-divider;

// stylelint-disable-next-line primer/spacing
bottom: calc(var(--base-size-8) * -1 - var(--Layout-row-gap));
bottom: calc(calc(var(--base-size-8) * -1) - var(--Layout-row-gap));
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/primitives/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
@import '@primer/primitives/dist/css/base/typography/typography';
@import '@primer/primitives/dist/css/functional/size/border';
@import '@primer/primitives/dist/css/functional/size/breakpoints';
// These are empty in primitives source?
// @import '@primer/primitives/dist/css/functional/size/size-coarse';
// @import '@primer/primitives/dist/css/functional/size/size-fine';
@import '@primer/primitives/dist/css/functional/size/size';
@import '@primer/primitives/dist/css/functional/size/viewport';
@import '@primer/primitives/dist/css/functional/typography/typography';
Expand Down
70 changes: 35 additions & 35 deletions src/support/variables/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,25 @@ $spacer-6: $spacer * 5 !default; // 40px

// The list of spacer values
$spacers: (
0,
var(--base-size-4),
var(--base-size-8),
var(--base-size-16),
var(--base-size-24),
var(--base-size-32),
var(--base-size-40),
$spacer-0,
$spacer-1,
$spacer-2,
$spacer-3,
$spacer-4,
$spacer-5,
$spacer-6,
) !default;

// And the map of spacers, for easier looping:
// @each $scale, $length in $spacer-map { ... }
$spacer-map: (
0: 0,
1: var(--base-size-4),
2: var(--base-size-8),
3: var(--base-size-16),
4: var(--base-size-24),
5: var(--base-size-32),
6: var(--base-size-40),
0: $spacer-0,
1: $spacer-1,
2: $spacer-2,
3: $spacer-3,
4: $spacer-4,
5: $spacer-5,
6: $spacer-6,
) !default;

// Increases the core spacing scale first by 8px for $spacer-7, then by 16px
Expand All @@ -72,22 +72,22 @@ $spacer-11: $spacer * 14 !default; // 112px
$spacer-12: $spacer * 16 !default; // 128px

$spacers-large: (
7: var(--base-size-48),
8: var(--base-size-64),
9: var(--base-size-80),
10: var(--base-size-96),
11: var(--base-size-112),
12: var(--base-size-128),
7: $spacer-7,
8: $spacer-8,
9: $spacer-9,
10: $spacer-10,
11: $spacer-11,
12: $spacer-12,
) !default;

$spacer-map-extended: map-merge(
(0: 0,
1: var(--base-size-4),
2: var(--base-size-8),
3: var(--base-size-16),
4: var(--base-size-24),
5: var(--base-size-32),
6: var(--base-size-40),
1: $spacer-1,
2: $spacer-2,
3: $spacer-3,
4: $spacer-4,
5: $spacer-5,
6: $spacer-6,
),
$spacers-large,
) !default;
Expand Down Expand Up @@ -182,19 +182,19 @@ $sidebar-wide-width: (
xl: 336px) !default;

$gutter: (
md: var(--base-size-16),
lg: var(--base-size-24),
xl: var(--base-size-32)) !default;
md: $spacer-3,
lg: $spacer-4,
xl: $spacer-5) !default;

$gutter-condensed: (
md: var(--base-size-16),
lg: var(--base-size-16),
xl: var(--base-size-24)) !default;
md: $spacer-3,
lg: $spacer-3,
xl: $spacer-4) !default;

$gutter-spacious: (
md: var(--base-size-24),
lg: var(--base-size-32),
xl: var(--base-size-40)) !default;
md: $spacer-4,
lg: $spacer-5,
xl: $spacer-6) !default;

// rem unit support

Expand Down

0 comments on commit 2aa8243

Please # to comment.