Skip to content

Commit

Permalink
Figure: generate size CSS styles for material provider (#5018)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmys20 authored Sep 24, 2023
1 parent 7e23f56 commit c8ee9a9
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Source/Blazorise.Material/Styles/_figure.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.figure {
@each $dimension in $figure-dimensions {
&.figure-is-#{$dimension}x#{$dimension} {
height: $dimension * 1px;
width: $dimension * 1px;
}
}
}
2 changes: 2 additions & 0 deletions Source/Blazorise.Material/Styles/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ $yiq-text-dark: $text-dark !default;
// The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
$yiq-contrasted-threshold: 150 !default;

$figure-dimensions: 16 24 32 48 64 96 128 256 512 !default;

$primary: #9c27b0 !default;
$secondary: #ff4081 !default;
$success: #4caf50 !default;
Expand Down
1 change: 1 addition & 0 deletions Source/Blazorise.Material/Styles/blazorise.material.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ $enable-ripple: true !default; // Enable ripple effect on components (Buttons, m
@import "card";
@import "dropdown";
@import "extensions";
@import "figure";
@import "form";
@import "grid";
@import "jumbotron";
Expand Down
37 changes: 37 additions & 0 deletions Source/Blazorise.Material/wwwroot/blazorise.material.css
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,43 @@
z-index: 1060 !important;
}

.figure.figure-is-16x16 {
height: 16px;
width: 16px;
}
.figure.figure-is-24x24 {
height: 24px;
width: 24px;
}
.figure.figure-is-32x32 {
height: 32px;
width: 32px;
}
.figure.figure-is-48x48 {
height: 48px;
width: 48px;
}
.figure.figure-is-64x64 {
height: 64px;
width: 64px;
}
.figure.figure-is-96x96 {
height: 96px;
width: 96px;
}
.figure.figure-is-128x128 {
height: 128px;
width: 128px;
}
.figure.figure-is-256x256 {
height: 256px;
width: 256px;
}
.figure.figure-is-512x512 {
height: 512px;
width: 512px;
}

.form-check > .form-check-input.form-check-input-pointer,
.form-check > .form-check-label.form-check-label-pointer,
.custom-checkbox > .custom-control-input.custom-control-input-pointer,
Expand Down

Large diffs are not rendered by default.

0 comments on commit c8ee9a9

Please sign in to comment.