mirror of
https://github.com/Chalarangelo/mini.css.git
synced 2025-08-11 08:23:58 +02:00
Generic box-shadow mixin
This commit is contained in:
3
dist/mini-default.css
vendored
3
dist/mini-default.css
vendored
@@ -1246,6 +1246,9 @@ progress.nano {
|
|||||||
.circular {
|
.circular {
|
||||||
border-radius: 50% !important; }
|
border-radius: 50% !important; }
|
||||||
|
|
||||||
|
.no-shadow {
|
||||||
|
box-shadow: none !important; }
|
||||||
|
|
||||||
.float-left {
|
.float-left {
|
||||||
float: left !important; }
|
float: left !important; }
|
||||||
|
|
||||||
|
2
dist/mini-default.min.css
vendored
2
dist/mini-default.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -414,3 +414,4 @@
|
|||||||
- Rebuilt `breadcrumbs` from scratch. Uses flexbox.
|
- Rebuilt `breadcrumbs` from scratch. Uses flexbox.
|
||||||
- Changed `clearfix`, `center-block`, `hidden` and `visually-hidden` from mixins to normal components.
|
- Changed `clearfix`, `center-block`, `hidden` and `visually-hidden` from mixins to normal components.
|
||||||
- Changed the appearance of `button-group`, it will now use `border` and `border-radius` more creatively to get rid of unnecessary and excessive styling.
|
- Changed the appearance of `button-group`, it will now use `border` and `border-radius` more creatively to get rid of unnecessary and excessive styling.
|
||||||
|
- Added mixin `make-box-shadow-generic` in `utility`, used it to create a class for `box-shadow:none;` just in case.
|
@@ -409,13 +409,14 @@ $breadcrumbs-separator-width: 2px; // Width of the breadcrumbs' separa
|
|||||||
$breadcrumbs-border-style: 0; // Border style for breadcrumbs
|
$breadcrumbs-border-style: 0; // Border style for breadcrumbs
|
||||||
$breadcrumbs-border-radius: 4px; // Border radius for breadcrumbs
|
$breadcrumbs-border-radius: 4px; // Border radius for breadcrumbs
|
||||||
$breadcrumbs-box-shadow: // Box shadow for breadcrumbs
|
$breadcrumbs-box-shadow: // Box shadow for breadcrumbs
|
||||||
0 1px 3px rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.15);
|
0 1px 3px rgba(0,0,0,0.1),0 1px 2px rgba(0,0,0,0.15);
|
||||||
$border-generic-name: 'bordered'; // Class name for generic border style
|
$border-generic-name: 'bordered'; // Class name for generic border style
|
||||||
$border-radial-style1-name: 'rounded'; // Class name for radial border style 1
|
$border-radial-style1-name: 'rounded'; // Class name for radial border style 1
|
||||||
$border-radial-style1-radius: 2px; // Border radius for radial border style 1
|
$border-radial-style1-radius: 2px; // Border radius for radial border style 1
|
||||||
$border-radial-style2-name: 'circular'; // Class name for radial border style 2
|
$border-radial-style2-name: 'circular'; // Class name for radial border style 2
|
||||||
$border-radial-style2-radius: 50%; // Border radius for radial border style 2
|
$border-radial-style2-radius: 50%; // Border radius for radial border style 2
|
||||||
|
$box-shadow-none-name: 'no-shadow'; // Class name for generic no-box-shadow
|
||||||
|
$box-shadow-none-value: none; // Box shadow value for generic no-box-shadow
|
||||||
$float-prefix: 'float'; // Prefix for float classes
|
$float-prefix: 'float'; // Prefix for float classes
|
||||||
$clearfix-name: 'clearfix'; // Class name for clearfix
|
$clearfix-name: 'clearfix'; // Class name for clearfix
|
||||||
$center-block-name: 'center-block'; // Class name for center block
|
$center-block-name: 'center-block'; // Class name for center block
|
||||||
@@ -471,4 +472,5 @@ $center-block-name: 'center-block'; // Class name for center block
|
|||||||
@include make-border-generic ($border-generic-name);
|
@include make-border-generic ($border-generic-name);
|
||||||
@include make-border-radial-style ($border-radial-style1-name, $border-radial-style1-radius);
|
@include make-border-radial-style ($border-radial-style1-name, $border-radial-style1-radius);
|
||||||
@include make-border-radial-style ($border-radial-style2-name, $border-radial-style2-radius);
|
@include make-border-radial-style ($border-radial-style2-name, $border-radial-style2-radius);
|
||||||
|
@include make-box-shadow-generic ($box-shadow-none-name, $box-shadow-none-value);
|
||||||
@include make-floats ($float-prefix);
|
@include make-floats ($float-prefix);
|
@@ -110,6 +110,15 @@ ul.#{$breadcrumbs-name} {
|
|||||||
border-radius: $border-radial-radius !important;
|
border-radius: $border-radial-radius !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Generic box shadow mixin. ATTENTION: Uses !important.
|
||||||
|
// Variables:
|
||||||
|
// - $box-shadow-name : The name of the class used for the generic box shadow.
|
||||||
|
// - $box-shadow-value : The box shadow value of the generic box shadow.
|
||||||
|
@mixin make-box-shadow-generic ($box-shadow-name, $box-shadow-value) {
|
||||||
|
.#{$box-shadow-name} {
|
||||||
|
box-shadow: $box-shadow-value !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
// Floats mixin. ATTENTION: Uses !important.
|
// Floats mixin. ATTENTION: Uses !important.
|
||||||
// NOTE: This mixin might be obsolete and not play well with others.
|
// NOTE: This mixin might be obsolete and not play well with others.
|
||||||
// Variables:
|
// Variables:
|
||||||
|
Reference in New Issue
Block a user