Skip to content

Commit

Permalink
combine text styling related files in one text-styling file
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfahan committed Jul 3, 2021
1 parent 5ed32b2 commit 29de085
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 72 deletions.
4 changes: 1 addition & 3 deletions src/fluid-utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,11 @@
@import "./utilities/typography/line-height";
@import "./utilities/typography/text-transform";
@import "./utilities/typography/text-align";
@import "./utilities/typography/text-shadow";
@import "./utilities/typography/text-wrap";
@import "./utilities/typography/text-decoration";
@import "./utilities/typography/text-styling";
@import "./utilities/typography/font-weight";
@import "./utilities/typography/font-family";
@import "./utilities/typography/font-sizing";
@import "./utilities/typography/misc";

// cursor
@import "./utilities/cursor";
Expand Down
4 changes: 1 addition & 3 deletions src/fluid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,11 @@
@import "./utilities/typography/line-height";
@import "./utilities/typography/text-transform";
@import "./utilities/typography/text-align";
@import "./utilities/typography/text-shadow";
@import "./utilities/typography/text-wrap";
@import "./utilities/typography/text-decoration";
@import "./utilities/typography/text-styling";
@import "./utilities/typography/font-weight";
@import "./utilities/typography/font-family";
@import "./utilities/typography/font-sizing";
@import "./utilities/typography/misc";

// cursor
@import "./utilities/cursor";
Expand Down
25 changes: 0 additions & 25 deletions src/utilities/typography/_misc.scss

This file was deleted.

11 changes: 8 additions & 3 deletions src/utilities/typography/_text-align.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@
responsive: true,
properties: text-align,
selector: "txt",
values: left right center justify,
enable-important-values: true
values: (
start: left,
end: right,
center: center,
justify: justify,
),
enable-important-values: true,
);

@include generate-style($config);
Expand All @@ -17,7 +22,7 @@
properties: vertical-align,
selector: "txt",
values: baseline top middle bottom sub super,
enable-important-values: true
enable-important-values: true,
);

@include generate-style($config);
Expand Down
17 changes: 0 additions & 17 deletions src/utilities/typography/_text-decoration.scss

This file was deleted.

20 changes: 0 additions & 20 deletions src/utilities/typography/_text-shadow.scss

This file was deleted.

50 changes: 50 additions & 0 deletions src/utilities/typography/_text-styling.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
//
// Text Decoration
//

@if $generate-utility-classes {
//
// Underline
//
$config: (
properties: text-decoration,
selector: "txt",
values: (
"decor-none": none,
"underline": underline,
),
enable-important-values: true,
);

@include generate-style($config);

//
// Italic
//
$config: (
properties: font-style,
selector: "txt",
values: italic,
enable-important-values: true,
);

@include generate-style($config);

//
// Shadow
//
$config: (
properties: text-shadow,
selector: "txt-shadow",
values: (
sm: 1.5px 1.75px 1px rgba($black, .075),
null: 2px 2.25px 1.5px rgba($black, .15),
lg: 4px 4.25px 3px rgba($black, .175),
round: 0 0 3px rgba($black, .15),
none: none,
),
enable-important-values: true,
);

@include generate-style($config);
}
13 changes: 12 additions & 1 deletion src/utilities/typography/_text-transform.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,18 @@
upper: uppercase,
cap: capitalize,
),
enable-important-values: true
enable-important-values: true,
);

@include generate-style($config);

$config: (
properties: writing-mode,
selector: "txt",
values: (
vertical: vertical-lr,
),
enable-important-values: true,
);

@include generate-style($config);
Expand Down

0 comments on commit 29de085

Please sign in to comment.