Skip to content

Commit

Permalink
Merge branch 'ouds/main' into ouds/main-jd-chore-merge-from-0ae070a
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond authored Sep 18, 2024
2 parents 29bac20 + 05c34d7 commit d79d761
Show file tree
Hide file tree
Showing 14 changed files with 2,045 additions and 159 deletions.
4 changes: 2 additions & 2 deletions .bundlewatch.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"files": [
{
"path": "./dist/css/ouds-web-bootstrap.css",
"maxSize": "44.75 kB"
"maxSize": "45.0 kB"
},
{
"path": "./dist/css/ouds-web-bootstrap.min.css",
"maxSize": "41.5 kB"
"maxSize": "41.75 kB"
},
{
"path": "./dist/css/ouds-web-grid.css",
Expand Down
36 changes: 36 additions & 0 deletions scss/_maps.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
// OUDS mod
// scss-docs-start ouds-maps-borders
$ouds-border-radiuses: (
null: $ouds-border-radius-default,
"none": $ouds-border-radius-none,
"short": $ouds-border-radius-short,
"medium": $ouds-border-radius-medium,
"tall": $ouds-border-radius-tall,
"pill": $ouds-border-radius-pill,
"circle": 50%
) !default;

$ouds-border-styles: (
"drag": $ouds-border-style-drag
) !default;

$ouds-border-widths: (
"thin": $ouds-border-width-thin,
"thick": $ouds-border-width-thick,
"thicker": $ouds-border-width-thicker,
"thickest": $ouds-border-width-thickest,
) !default;
// scss-docs-end ouds-maps-borders

// scss-docs-start ouds-maps-opacities
$ouds-opacities: (
"transparent": $ouds-opacity-transparent,
"weaker": $ouds-opacity-weaker,
"weak": $ouds-opacity-weak,
"medium": $ouds-opacity-medium,
"strong": $ouds-opacity-strong,
"opaque": $ouds-opacity-opaque
) !default;
// scss-docs-end ouds-maps-opacities
// End mod

// Re-assigned maps
//
// Placed here so that others can override the default Sass maps and see automatic updates to utilities and more.
Expand Down
20 changes: 12 additions & 8 deletions scss/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,24 @@
--#{$prefix}disabled-color: #{$disabled-color}; // OUDS mod
--#{$prefix}tertiary-active-bg: #{$tertiary-active-bg}; // OUDS mod

// scss-docs-start root-border-var
// scss-docs-start root-border-var-ouds
--#{$prefix}border-width: #{$border-width};
--#{$prefix}border-style: #{$border-style};
--#{$prefix}border-color: #{$border-color};
--#{$prefix}border-color-subtle: #{$border-color-subtle}; // OUDS mod
--#{$prefix}border-color-translucent: #{$border-color-translucent};
// scss-docs-end root-border-var-ouds

--#{$prefix}border-radius: #{$border-radius};
--#{$prefix}border-radius-sm: #{$border-radius-sm};
--#{$prefix}border-radius-lg: #{$border-radius-lg};
--#{$prefix}border-radius-xl: #{$border-radius-xl};
--#{$prefix}border-radius-xxl: #{$border-radius-xxl};
--#{$prefix}border-radius-2xl: var(--#{$prefix}border-radius-xxl); // Deprecated in Bootstrap v5.3.0 for consistency
--#{$prefix}border-radius-pill: #{$border-radius-pill};
// scss-docs-start root-border-var
@if $enable-bootstrap-compatibility {
--#{$prefix}border-radius: #{$border-radius};
--#{$prefix}border-radius-sm: #{$border-radius-sm};
--#{$prefix}border-radius-lg: #{$border-radius-lg};
--#{$prefix}border-radius-xl: #{$border-radius-xl};
--#{$prefix}border-radius-xxl: #{$border-radius-xxl};
--#{$prefix}border-radius-2xl: var(--#{$prefix}border-radius-xxl); // Deprecated in Bootstrap v5.3.0 for consistency
--#{$prefix}border-radius-pill: #{$border-radius-pill};
}
// scss-docs-end root-border-var

--#{$prefix}box-shadow: #{$box-shadow};
Expand Down
190 changes: 138 additions & 52 deletions scss/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -132,43 +132,59 @@ $utilities: map-merge(
)
),
// scss-docs-end utils-position
// OUDS mod
// scss-docs-start utils-border-ouds
"border-ouds": (
property: border,
values: (
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
"none": $ouds-border-width-none,
),
),
// scss-docs-end utils-border-ouds
// End mod
// scss-docs-start utils-borders
"border": (
property: border,
values: (
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
// OUDS mod: null value moved to border-ouds
0: 0,
)
),
bootstrap-compatibility: true
),
"border-top": (
property: border-top,
values: (
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
// OUDS mod: null value moved to border-top-ouds
0: 0,
)
),
bootstrap-compatibility: true
),
"border-end": (
property: border-right,
class: border-end,
values: (
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
// OUDS mod: null value moved to border-end-ouds
0: 0,
)
),
bootstrap-compatibility: true
),
"border-bottom": (
property: border-bottom,
values: (
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
// OUDS mod: null value moved to border-bottom-ouds
0: 0,
)
),
bootstrap-compatibility: true
),
"border-start": (
property: border-left,
class: border-start,
values: (
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
// OUDS mod: null value moved to border-start-ouds
0: 0,
)
),
bootstrap-compatibility: true
),
"border-color": (
property: border-color,
Expand All @@ -186,7 +202,8 @@ $utilities: map-merge(
"border-width": (
property: border-width,
class: border,
values: $border-widths
values: $border-widths,
bootstrap-compatibility: true
),
"border-opacity": (
css-var: true,
Expand All @@ -197,9 +214,54 @@ $utilities: map-merge(
50: .5,
75: .75,
100: 1
)
),
bootstrap-compatibility: true
),
// scss-docs-end utils-borders
// OUDS mod
// scss-docs-start utils-borders-ouds
"border-top-ouds": (
property: border-top,
values: (
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
"none": $ouds-border-width-none,
),
),
"border-end-ouds": (
property: border-right,
class: border-end,
values: (
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
"none": $ouds-border-width-none,
),
),
"border-bottom-ouds": (
property: border-bottom,
values: (
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
"none": $ouds-border-width-none,
),
),
"border-start-ouds": (
property: border-left,
class: border-start,
values: (
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
"none": $ouds-border-width-none,
),
),
"border-width-ouds": (
property: border-width,
class: border,
values: $ouds-border-widths
),
"border-style-ouds": (
property: border-style,
class: border,
values: $ouds-border-styles
),
// scss-docs-end utils-borders-ouds
// End mod
// Sizing utilities
// scss-docs-start utils-sizing
"width": (
Expand Down Expand Up @@ -729,78 +791,102 @@ $utilities: map-merge(
property: border-radius,
class: rounded,
values: (
null: var(--#{$prefix}border-radius),
// OUDS mod: null value moved to rounded-ouds
0: 0,
1: var(--#{$prefix}border-radius-sm),
2: var(--#{$prefix}border-radius),
3: var(--#{$prefix}border-radius-lg),
4: var(--#{$prefix}border-radius-xl),
5: var(--#{$prefix}border-radius-xxl),
circle: 50%,
pill: var(--#{$prefix}border-radius-pill)
)
2: var(--#{$prefix}border-radius-lg), // OUDS mod: instead of `var(--#{$prefix}border-radius)`
3: var(--#{$prefix}border-radius-xl), // OUDS mod: instead of `var(--#{$prefix}border-radius-lg)`
4: var(--#{$prefix}border-radius-xxl), // OUDS mod: instead of `var(--#{$prefix}border-radius-xl)`
5: $border-radius-xxl * 1.5, // OUDS mod: instead of `var(--#{$prefix}border-radius-xxl)`
),
bootstrap-compatibility: true
),
"rounded-top": (
property: border-top-left-radius border-top-right-radius,
class: rounded-top,
values: (
null: var(--#{$prefix}border-radius),
// OUDS mod: null value moved to rounded-top-ouds
0: 0,
1: var(--#{$prefix}border-radius-sm),
2: var(--#{$prefix}border-radius),
3: var(--#{$prefix}border-radius-lg),
4: var(--#{$prefix}border-radius-xl),
5: var(--#{$prefix}border-radius-xxl),
circle: 50%,
pill: var(--#{$prefix}border-radius-pill)
)
2: var(--#{$prefix}border-radius-lg), // OUDS mod: instead of `var(--#{$prefix}border-radius)`
3: var(--#{$prefix}border-radius-xl), // OUDS mod: instead of `var(--#{$prefix}border-radius-lg)`
4: var(--#{$prefix}border-radius-xxl), // OUDS mod: instead of `var(--#{$prefix}border-radius-xl)`
5: $border-radius-xxl * 1.5, // OUDS mod: instead of `var(--#{$prefix}border-radius-xxl)`
),
bootstrap-compatibility: true
),
"rounded-end": (
property: border-top-right-radius border-bottom-right-radius,
class: rounded-end,
values: (
null: var(--#{$prefix}border-radius),
// OUDS mod: null value moved to rounded-end-ouds
0: 0,
1: var(--#{$prefix}border-radius-sm),
2: var(--#{$prefix}border-radius),
3: var(--#{$prefix}border-radius-lg),
4: var(--#{$prefix}border-radius-xl),
5: var(--#{$prefix}border-radius-xxl),
circle: 50%,
pill: var(--#{$prefix}border-radius-pill)
)
2: var(--#{$prefix}border-radius-lg), // OUDS mod: instead of `var(--#{$prefix}border-radius)`
3: var(--#{$prefix}border-radius-xl), // OUDS mod: instead of `var(--#{$prefix}border-radius-lg)`
4: var(--#{$prefix}border-radius-xxl), // OUDS mod: instead of `var(--#{$prefix}border-radius-xl)`
5: $border-radius-xxl * 1.5, // OUDS mod: instead of `var(--#{$prefix}border-radius-xxl)`
),
bootstrap-compatibility: true
),
"rounded-bottom": (
property: border-bottom-right-radius border-bottom-left-radius,
class: rounded-bottom,
values: (
null: var(--#{$prefix}border-radius),
// OUDS mod: null value moved to rounded-bottom-ouds
0: 0,
1: var(--#{$prefix}border-radius-sm),
2: var(--#{$prefix}border-radius),
3: var(--#{$prefix}border-radius-lg),
4: var(--#{$prefix}border-radius-xl),
5: var(--#{$prefix}border-radius-xxl),
circle: 50%,
pill: var(--#{$prefix}border-radius-pill)
)
2: var(--#{$prefix}border-radius-lg), // OUDS mod: instead of `var(--#{$prefix}border-radius)`
3: var(--#{$prefix}border-radius-xl), // OUDS mod: instead of `var(--#{$prefix}border-radius-lg)`
4: var(--#{$prefix}border-radius-xxl), // OUDS mod: instead of `var(--#{$prefix}border-radius-xl)`
5: $border-radius-xxl * 1.5, // OUDS mod: instead of `var(--#{$prefix}border-radius-xxl)`
),
bootstrap-compatibility: true
),
"rounded-start": (
property: border-bottom-left-radius border-top-left-radius,
class: rounded-start,
values: (
null: var(--#{$prefix}border-radius),
// OUDS mod: null value moved to rounded-start-ouds
0: 0,
1: var(--#{$prefix}border-radius-sm),
2: var(--#{$prefix}border-radius),
3: var(--#{$prefix}border-radius-lg),
4: var(--#{$prefix}border-radius-xl),
5: var(--#{$prefix}border-radius-xxl),
circle: 50%,
pill: var(--#{$prefix}border-radius-pill)
)
2: var(--#{$prefix}border-radius-lg), // OUDS mod: instead of `var(--#{$prefix}border-radius)`
3: var(--#{$prefix}border-radius-xl), // OUDS mod: instead of `var(--#{$prefix}border-radius-lg)`
4: var(--#{$prefix}border-radius-xxl), // OUDS mod: instead of `var(--#{$prefix}border-radius-xl)`
5: $border-radius-xxl * 1.5, // OUDS mod: instead of `var(--#{$prefix}border-radius-xxl)`
),
bootstrap-compatibility: true
),
// scss-docs-end utils-border-radius
// OUDS mod
// scss-docs-start utils-border-radius-ouds
"rounded-ouds": (
property: border-radius,
class: rounded,
values: $ouds-border-radiuses
),
"rounded-top-ouds": (
property: border-top-left-radius border-top-right-radius,
class: rounded-top,
values: $ouds-border-radiuses
),
"rounded-end-ouds": (
property: border-top-right-radius border-bottom-right-radius,
class: rounded-end,
values: $ouds-border-radiuses
),
"rounded-bottom-ouds": (
property: border-bottom-right-radius border-bottom-left-radius,
class: rounded-bottom,
values: $ouds-border-radiuses
),
"rounded-start-ouds": (
property: border-bottom-left-radius border-top-left-radius,
class: rounded-start,
values: $ouds-border-radiuses
),
// scss-docs-end utils-border-radius-ouds
// End mod
// scss-docs-start utils-visibility
"visibility": (
property: visibility,
Expand Down
Loading

0 comments on commit d79d761

Please sign in to comment.