[develop | DONE | ADDED] add variable for xlarge border-radius and new blur options

This commit is contained in:
Alex Martzios 2024-03-19 12:53:35 +02:00
parent 37639eab68
commit 954a1fe8af
4 changed files with 12 additions and 14 deletions

View File

@ -1,12 +1,12 @@
.set-blur-background(@color: @base-body-background, @opacity: 80%) {
.set-blur-background(@color: @base-body-background, @opacity: 80%, @blur: saturate(180%) blur(20px)) {
&.uk-blur-background, .uk-blur-background {
background: fade(@color, 99%);
}
@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
&.uk-blur-background, .uk-blur-background {
-webkit-backdrop-filter: saturate(180%) blur(20px);
backdrop-filter: saturate(180%) blur(20px);
-webkit-backdrop-filter: @blur;
backdrop-filter: @blur;
background: fade(@color, @opacity) !important;
}
}

View File

@ -21,7 +21,7 @@
/* Pills alt*/
@subnav-pill-alt-item-padding-vertical: 10px;
@subnav-pill-alt-item-padding-horizontal: 20px;
@subnav-pill-alt-item-border-radius: 24px;
@subnav-pill-alt-item-border-radius: @global-xlarge-border-radius;
@subnav-pill-alt-item-color: @global-color;
@subnav-pill-alt-item-hover-color: @global-secondary-background;
@subnav-pill-alt-item-active-font-weight: 600;
@ -72,13 +72,4 @@
background-image: @subnav-pill-alt-item-active-background-gradient;
}
}
}
/* Inverse */
@inverse-subnav-pill-alt-box-shadow: @inverse-global-large-box-shadow;
.hook-inverse-misc() {
.uk-subnav.uk-subnav-pill-alt {
box-shadow: @inverse-subnav-pill-alt-box-shadow;
}
}
}

View File

@ -1,6 +1,8 @@
@dropcap-font-size: @global-line-height * 3;
@border-rounded-border-radius: @global-border-radius;
@border-rounded-small-border-radius: @global-small-border-radius;
@border-rounded-xlarge-border-radius: @global-xlarge-border-radius;
@border-width: @global-border-width;
@border-color: @global-border;
@ -49,6 +51,10 @@
.uk-border-rounded-small {
border-radius: @border-rounded-small-border-radius;
}
.uk-border-rounded-xlarge {
border-radius: @border-rounded-xlarge-border-radius;
}
}
/* Inverse */

View File

@ -36,6 +36,7 @@
@global-border: @muted-color;
@global-border-radius: 6px;
@global-small-border-radius: 4px;
@global-xlarge-border-radius: 4 * @global-border-radius;
/* Shadows*/
@global-default-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.1);