Skip to content

Commit

Permalink
Fixes: liferay#1270 - (ClayCSS) Deprecated $clay-unset and don't us…
Browse files Browse the repository at this point in the history
…e variable resets because it isn't in the Sass spec

Fixes: liferay#1270 - (ClayCSS) Add missing semi colon in Sheet variable

Fixes: liferay#1270 - (ClayCSS) Mixin `clay-custom-grid-columns` base Sass map is being overwritten in RubySass
  • Loading branch information
pat270 committed Nov 19, 2018
1 parent 53c87a8 commit 4b9b348
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/clay-css/src/scss/atlas/variables/_alerts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $alert-link-decoration: underline !default;
$alert-link-hover-decoration: none !default;
$alert-link-font-weight: $font-weight-semi-bold !default;

$alert-indicator-font-size: !default;
$alert-indicator-font-size: inherit !default;

$alert-title: () !default;
$alert-title: map-merge((
Expand Down
6 changes: 5 additions & 1 deletion packages/clay-css/src/scss/atlas/variables/_globals.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
$clay-unset: !default;
// $clay-unset is deprecated as of v2.4.1 we will not support unsetting
// variables in version 2 because it violates the Sass spec. If you
// are using libsass you can still unset variables with the syntax
// `$my-var: !default;`.
$clay-unset: clay-unset !default;
$clay-unset-placeholder: clay-unset-placeholder !default;

$atlas-theme: true !default;
Expand Down
6 changes: 4 additions & 2 deletions packages/clay-css/src/scss/atlas/variables/_list-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $list-group-color: $secondary !default;
$list-group-hover-bg: lighten($component-active-bg, 44.90) !default;
$list-group-active-bg: $list-group-hover-bg !default;
$list-group-active-border-color: $list-group-border-color !default;
$list-group-active-color: !default;
$list-group-active-color: #272833 !default;

$list-group-font-size: 0.875rem !default; // 14px
$list-group-item-padding-x: 1rem !default; // 16px
Expand All @@ -25,7 +25,7 @@ $list-group-header-title: map-merge((

$list-group-title-link: () !default;
$list-group-title-link: map-merge((
hover-color: $clay-unset
hover-color: #272833
), $list-group-title-link);

$list-group-title: () !default;
Expand Down Expand Up @@ -66,6 +66,8 @@ $list-group-subtext: map-merge((
line-height: 1.45
), $list-group-subtext);

$list-group-subtext-active-color: $secondary !default;

// List Group Link

$list-group-link-color: $body-color !default;
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-css/src/scss/atlas/variables/_sheets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $sheet-title-margin-bottom-mobile: 1rem !default; // 16px

$sheet-subtitle-color: $body-color !default;
$sheet-subtitle-border-color: lighten(saturate(adjust-hue($secondary, -3), 5.39), 23.92) !default;
$sheet-subtitle-font-size: 0.875rem !default // 14px
$sheet-subtitle-font-size: 0.875rem !default; // 14px
$sheet-subtitle-padding-y: 0.5rem !default; // 8px
$sheet-subtitle-margin-bottom-mobile: 1rem !default; // 16px

Expand Down
6 changes: 1 addition & 5 deletions packages/clay-css/src/scss/atlas/variables/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,8 @@ $sidebar-light: map-merge((
),
dd: (
clay-link: (
color: $body-color,
hover-color: $clay-unset
color: $body-color
)
),
sidebar-list-group-title: (
font-size: $clay-unset
)
), $sidebar-light);

Expand Down
5 changes: 1 addition & 4 deletions packages/clay-css/src/scss/mixins/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@

@mixin clay-custom-grid-columns($map) {
$custom-grid-props: map-merge((
enabled: $enable-grid-classes,
base: (
breakpoint: 0
)
enabled: $enable-grid-classes
), $map);

$enabled: map-get($custom-grid-props, enabled);
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-css/src/scss/mixins/_loaders.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$animation: setter(map-get($map, animation), 1.2s ease-out infinite);
$animation-name: required(
map-get($map, animation-name),
'The property `animation-name` in `#{$mixin-name}` is required! #{$map}'
'The property `animation-name` in `#{$mixin-name}` is required!'
);

$ball-0-scale: setter(map-get($map, ball-0-scale), 0em);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $input-height: 2.375rem !default; // 38px
$input-height-lg: 3rem !default; // 48px
$input-height-sm: 1.9375rem !default; // 31px

$form-check-inline-input-margin-x: !default;
$form-check-inline-input-margin-x: auto !default;

$table-accent-bg: #F2F2F2 !default;
$table-hover-bg: #ECECEC !default;
Expand Down
1 change: 1 addition & 0 deletions packages/clay-css/src/scss/variables/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ $user-card: map-merge((
$card-page-item-asset: () !default;
$card-page-item-asset: map-merge((
base: (
breakpoint: 0,
min-width: 200px,
padding-left: $grid-gutter-width / 2,
padding-right: $grid-gutter-width / 2
Expand Down
6 changes: 5 additions & 1 deletion packages/clay-css/src/scss/variables/_globals.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
$clay-unset: !default;
// $clay-unset is deprecated as of v2.4.1 we will not support unsetting
// variables in version 2 because it violates the Sass spec. If you
// are using node-sass you can still unset variables with the syntax
// `$my-var: !default;`.
$clay-unset: clay-unset !default;
$clay-unset-placeholder: clay-unset-placeholder !default;

$enable-scaling-components: false !default;
Expand Down

0 comments on commit 4b9b348

Please sign in to comment.