Skip to content

Commit

Permalink
Fluent: change popup's content vertical paddings (#25865)
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeniyKiyashko authored Oct 24, 2023
1 parent e34d290 commit 64ed08d
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ $fluent-grid-base-group-panel-message-line-height: $fluent-button-text-line-heig
}

.dx-#{$widget-name}-edit-popup-form {
padding: $fluent-popup-content-padding;
padding: $fluent-popup-content-vertical-padding $fluent-popup-content-padding;
}

.dx-#{$widget-name}-headers,
Expand Down
4 changes: 2 additions & 2 deletions packages/devextreme/scss/widgets/fluent/popup/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ $fluent-popup-toolbar-label-font-size: $fluent-m-font-size;
}

.dx-popup-content {
padding: $fluent-popup-content-padding;
padding: $fluent-popup-content-vertical-padding $fluent-popup-content-padding;

& > .dx-button {
margin: $fluent-popup-button-margin;
Expand All @@ -76,7 +76,7 @@ $fluent-popup-toolbar-label-font-size: $fluent-m-font-size;

.dx-popup-content.dx-dialog-content {
min-width: 220px - 2 * $fluent-popup-content-padding;
padding: $fluent-popup-content-padding;
padding: $fluent-popup-content-vertical-padding $fluent-popup-content-padding;
}

.dx-dialog-message {
Expand Down
3 changes: 3 additions & 0 deletions packages/devextreme/scss/widgets/fluent/popup/_sizes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// adduse

$fluent-popup-content-padding: null !default;
$fluent-popup-content-vertical-padding: null !default;
$fluent-popup-content-withtitle-top-padding: null !default;
$fluent-popup-content-withtitle-bottom-padding: null !default;
$fluent-popup-toolbar-horizontal-padding: null !default;
Expand All @@ -18,6 +19,7 @@ $fluent-popup-focused-content-shadow: null !default;

@if $size == "default" {
$fluent-popup-content-padding: 24px !default;
$fluent-popup-content-vertical-padding: 16px !default;
$fluent-popup-content-withtitle-top-padding: 24px !default;
$fluent-popup-content-withtitle-bottom-padding: 16px !default;

Expand All @@ -31,6 +33,7 @@ $fluent-popup-focused-content-shadow: null !default;

@else if $size == "compact" {
$fluent-popup-content-padding: 16px !default;
$fluent-popup-content-vertical-padding: 12px !default;
$fluent-popup-content-withtitle-top-padding: 16px !default;
$fluent-popup-content-withtitle-bottom-padding: 12px !default;

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 64ed08d

Please sign in to comment.