Skip to content

Commit 7386ac8

Browse files
committed
optimized file structure
1 parent 676bbde commit 7386ac8

File tree

21 files changed

+171
-141
lines changed

21 files changed

+171
-141
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@webpixels/css",
33
"description": "Utility and component-centric design system based on Bootstrap for fast, responsive UI development.",
4-
"version": "1.2.13",
4+
"version": "1.2.2",
55
"version_short": "1.2",
66
"license": "MIT",
77
"style": "dist/index.css",

scss/base/_reboot.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ svg {
4141
a {
4242
outline: none;
4343
}
44+
45+
h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
46+
color: var(--#{$prefix}headings-color);
47+
}

scss/base/_root.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
@each $color, $value in $theme-colors {
1313
--#{$prefix}#{$color}: #{$value};
14-
--#{$prefix}shade-#{$color}: #{shade-color($value, 10%)};
15-
--#{$prefix}tint-#{$color}: #{tint-color($value, 10%)};
1614
}
1715

1816
@each $color, $value in $surface-colors {
@@ -85,8 +83,9 @@
8583
--#{$prefix}link-color: #{$link-color};
8684
--#{$prefix}link-hover-color: #{$link-hover-color};
8785

88-
--#{$prefix}code-color: #{$code-color};
86+
--#{$prefix}headings-color: #{$gray-900};
8987

88+
--#{$prefix}code-color: #{$code-color};
9089
--#{$prefix}highlight-bg: #{$mark-bg};
9190

9291
}

scss/base/_type.scss

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,42 @@
11
//
22
// Type
33
// Typography styles
4-
//
4+
//
55

66
@import "bootstrap/scss/type";
77

88
// Surtitle
9-
109
.surtitle {
11-
color: $surtitle-color;
12-
font-size: $surtitle-font-size;
13-
font-weight: $surtitle-font-weight;
14-
text-transform: $surtitle-text-transform;
10+
color: $surtitle-color;
11+
font-size: $surtitle-font-size;
12+
font-weight: $surtitle-font-weight;
13+
text-transform: $surtitle-text-transform;
1514
}
1615

1716
// Text highlight
18-
1917
@each $color, $value in $theme-colors {
20-
.text-highlight-#{$color} {
21-
background-image: linear-gradient(transparent 66%, rgba($value, .15) 34%);
22-
background-repeat: repeat-x;
23-
}
18+
.text-highlight-#{$color} {
19+
background-image: linear-gradient(transparent 66%, rgba($value, .15) 34%);
20+
background-repeat: repeat-x;
21+
}
2422
}
2523

2624

2725
// Dropcaps (add a dropcase on the first letter of the first paragraph)
28-
2926
.dropcaps {
30-
> p {
31-
margin-top: 1.25rem;
32-
margin-bottom: 1.25rem;
33-
34-
&:first-child {
35-
&:first-letter {
36-
font-size: 3.5em;
37-
font-weight: 700;
38-
float: left;
39-
line-height: 1;
40-
margin-top: .05em;
41-
margin-right: .15em
42-
}
43-
}
27+
> p {
28+
margin-top: 1.25rem;
29+
margin-bottom: 1.25rem;
30+
31+
&:first-child {
32+
&:first-letter {
33+
font-size: 3.5em;
34+
font-weight: 700;
35+
float: left;
36+
line-height: 1;
37+
margin-top: .05em;
38+
margin-right: .15em
39+
}
4440
}
41+
}
4542
}

scss/core/_index.scss

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
1-
// Webpixels CSS functions
21
@import "functions";
3-
4-
// Webpixels CSS overrides
52
@import "variables";
63
@import "maps";
7-
8-
// Bootstrap functions, bariables, and mixins
9-
@import "bootstrap/scss/maps";
10-
@import "bootstrap/scss/variables";
11-
@import "bootstrap/scss/mixins";
12-
13-
// Webpixels CSS mixins
14-
@import "mixins/forms";
15-
@import "mixins/link";
16-
@import "mixins/modals";
17-
@import "mixins/popover";
4+
@import "mixins"
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// overrides or extension after the Bootstrap's defaults
44
//
55

6-
// Bootstrap functions
7-
@import 'bootstrap/scss/functions';
8-
96
@function map-collect($maps...) {
107
$collection: ();
118

scss/core/functions/_index.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Bootstrap functions
2+
@import 'bootstrap/scss/functions';
3+
@import './functions';

scss/core/maps/_index.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import "./maps";
2+
@import "bootstrap/scss/maps";

scss/core/mixins/_index.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Bootstrap functions, bariables, and mixins
2+
@import "bootstrap/scss/mixins";
3+
4+
// Webpixels CSS mixins
5+
@import "./forms";
6+
@import "./link";
7+
@import "./modals";
8+
@import "./popover";

0 commit comments

Comments
 (0)