Skip to content

Commit 41916d5

Browse files
committed
docs: add scss-docs
1 parent 1d51a4b commit 41916d5

File tree

7 files changed

+16
-3
lines changed

7 files changed

+16
-3
lines changed

scss/_alert.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@
5151

5252

5353
// Alternate styles
54-
//
54+
// scss-docs-start alert-modifiers
5555
// Generate contextual modifier classes for colorizing the alert.
5656

5757
@include theme-variant() {
5858
.alert-#{$color} {
5959
@include alert-variant( theme-color-level($value, $alert-bg-level), theme-color-level($value, $alert-border-level), theme-color-level($value, $alert-color-level));
6060
}
6161
}
62+
// scss-docs-end alert-modifiers

scss/_dropdown.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
margin: $dropdown-spacer 0 0; // override default ul
4646
}
4747

48+
// scss-docs-start responsive-breakpoints
4849
@each $breakpoint in map-keys($grid-breakpoints) {
4950
@include media-breakpoint-up($breakpoint) {
5051
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
@@ -76,6 +77,7 @@
7677
}
7778
}
7879
}
80+
// scss-docs-end responsive-breakpoints
7981

8082
// Allow for dropdowns to go bottom up (aka, dropup-menu)
8183
// Just add .dropup after the standard .dropdown class and you"re set.

scss/_functions.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,14 @@
103103
// @return mix($color-base, $color, $level * $theme-color-interval);
104104
// }
105105

106+
// scss-docs-start color-level
106107
@function theme-color-level($color, $level: 0) {
107108
$color-base: if($level > 0, $black, $white);
108109
$level: abs($level);
109110

110111
@return mix($color-base, $color, $level * $theme-color-interval);
111112
}
113+
// scss-docs-end color-level
112114

113115
// Return valid calc
114116
@function add($value1, $value2, $return-calc: true) {

scss/_list-group.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,14 @@
163163

164164

165165
// Contextual variants
166-
//
166+
// scss-docs-start list-group-modifiers
167167
// Add modifier classes to change text and background color on individual items.
168168
// Organizationally, this must come after the `:hover` states.
169169

170170
@include theme-variant() {
171171
@include list-group-item-variant($color, theme-color-level($value, -9), theme-color-level($value, 6));
172172
}
173-
173+
// scss-docs-end list-group-modifiers
174174
// List items with accent
175175
//
176176
// Remove top, bottome and right borders and border-radius.

scss/variables/_colors.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ $dark: $gray-800 !default;
9393

9494
$pink: #e83e8c !default;
9595

96+
// scss-docs-start theme-colors-map
9697
$theme-colors: () !default;
9798
// stylelint-disable-next-line scss/dollar-variable-default
9899
$theme-colors: map-merge(
@@ -108,6 +109,7 @@ $theme-colors: map-merge(
108109
),
109110
$theme-colors
110111
);
112+
// scss-docs-end theme-colors-map
111113

112114
// Set a specific jump point for requesting color jumps
113115
$theme-color-interval: 8% !default;

scss/variables/_grid.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// Define the minimum dimensions at which your layout will change,
66
// adapting to different screen sizes, for use in media queries.
77

8+
// scss-docs-start grid-breakpoints
89
$grid-breakpoints: (
910
xs: 0,
1011
sm: 576px,
@@ -13,6 +14,7 @@ $grid-breakpoints: (
1314
xl: 1200px,
1415
xxl: 1400px
1516
) !default;
17+
// scss-docs-end grid-breakpoints
1618

1719
@include _assert-ascending($grid-breakpoints, "$grid-breakpoints");
1820
@include _assert-starts-at-zero($grid-breakpoints, "$grid-breakpoints");
@@ -22,13 +24,15 @@ $grid-breakpoints: (
2224
//
2325
// Define the maximum width of `.container` for different screen sizes.
2426

27+
// scss-docs-start container-max-widths
2528
$container-max-widths: (
2629
sm: 540px,
2730
md: 720px,
2831
lg: 960px,
2932
xl: 1140px,
3033
xxl: 1320px
3134
) !default;
35+
// scss-docs-end container-max-widths
3236

3337
@include _assert-ascending($container-max-widths, "$container-max-widths");
3438

scss/variables/_z-index.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// Warning: Avoid customizing these values. They're used for a bird's eye view
44
// of components dependent on the z-axis and are designed to all work together.
55

6+
// scss-docs-start zindex-stack
67
$zindex-dropdown: 1000 !default;
78
$zindex-sticky: 1020 !default;
89
$zindex-fixed: 1030 !default;
@@ -11,3 +12,4 @@ $zindex-modal: 1050 !default;
1112
$zindex-popover: 1060 !default;
1213
$zindex-tooltip: 1070 !default;
1314
$zindex-toaster: 1080 !default;
15+
// scss-docs-end zindex-stack

0 commit comments

Comments
 (0)