Remove mixins for clarfix and overlay, make them only components. Add a new wrap component.
This commit is contained in:
parent
c939c7f95a
commit
50928f1056
6 changed files with 21 additions and 25 deletions
|
|
@ -11,7 +11,5 @@
|
||||||
|
|
||||||
// Mixins and functions.
|
// Mixins and functions.
|
||||||
@import 'mixins/breakpoint/respond-to';
|
@import 'mixins/breakpoint/respond-to';
|
||||||
@import 'mixins/clearfix/clearfix';
|
|
||||||
@import 'mixins/flex-calc/flex-calc';
|
@import 'mixins/flex-calc/flex-calc';
|
||||||
@import 'mixins/overlay/overlay';
|
|
||||||
@import 'mixins/spacing/spacing';
|
@import 'mixins/spacing/spacing';
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,15 @@
|
||||||
// Allows the bottom of an element to extend to the bottom of all floated child
|
// Allows the bottom of an element to extend to the bottom of all floated child
|
||||||
// elements. See http://nicolasgallagher.com/micro-clearfix-hack/
|
// elements. See http://nicolasgallagher.com/micro-clearfix-hack/
|
||||||
|
|
||||||
.clearfix,
|
.clearfix {
|
||||||
%clearfix {
|
&::before {
|
||||||
@include clearfix();
|
content: '';
|
||||||
|
display: table;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
content: '';
|
||||||
|
display: table;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
5
assets/sass/components/overlay/_overlay.scss
Normal file
5
assets/sass/components/overlay/_overlay.scss
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
.overlay {
|
||||||
|
--color-overlay: var(--color-black-20);
|
||||||
|
--color-overlay2: var(--color-black-10);
|
||||||
|
border-image: linear-gradient(var(--color-overlay), var(--color-overlay2)) fill 1;
|
||||||
|
}
|
||||||
7
assets/sass/components/wrap/_wrap.scss
Normal file
7
assets/sass/components/wrap/_wrap.scss
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
.wrap-any {
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrap-word {
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
// clearfix()
|
|
||||||
//
|
|
||||||
// Allows the bottom of an element to extend to the bottom of all floated
|
|
||||||
// children elements. @see http://nicolasgallagher.com/micro-clearfix-hack/
|
|
||||||
//
|
|
||||||
// We use the micro-clearfix, optimized for use in `@extend` where fewer `&` is
|
|
||||||
// better.
|
|
||||||
@mixin clearfix() {
|
|
||||||
&::before {
|
|
||||||
content: '';
|
|
||||||
display: table;
|
|
||||||
}
|
|
||||||
|
|
||||||
&::after {
|
|
||||||
content: '';
|
|
||||||
display: table;
|
|
||||||
clear: both;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -50,12 +50,14 @@
|
||||||
@import 'components/list-straight-left/list-straight-left';
|
@import 'components/list-straight-left/list-straight-left';
|
||||||
@import 'components/messages/messages';
|
@import 'components/messages/messages';
|
||||||
@import 'components/meta/meta';
|
@import 'components/meta/meta';
|
||||||
|
@import 'components/overlay/overlay';
|
||||||
@import 'components/pager/pager';
|
@import 'components/pager/pager';
|
||||||
@import 'components/responsive-video/responsive-video';
|
@import 'components/responsive-video/responsive-video';
|
||||||
@import 'components/spacing/spacing';
|
@import 'components/spacing/spacing';
|
||||||
@import 'components/tables/tables';
|
@import 'components/tables/tables';
|
||||||
@import 'components/tags/tags';
|
@import 'components/tags/tags';
|
||||||
@import 'components/visually-hidden/visually-hidden';
|
@import 'components/visually-hidden/visually-hidden';
|
||||||
|
@import 'components/wrap/wrap';
|
||||||
|
|
||||||
// Zen styles
|
// Zen styles
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue