Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
ee01dc23
Unverified
Commit
ee01dc23
authored
5 years ago
by
XhmikosR
Committed by
GitHub
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
theming.md: automate _root.scss. (#29326)
parent
84cba072
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scss/_root.scss
+0
-1
scss/_root.scss
site/content/docs/4.3/getting-started/theming.md
+7
-25
site/content/docs/4.3/getting-started/theming.md
with
7 additions
and
26 deletions
+7
-26
scss/_root.scss
+
0
-
1
View file @
ee01dc23
// Do not forget to update getting-started/theming.md!
:root
{
:root
{
// Custom variable values only support SassScript inside `#{}`.
// Custom variable values only support SassScript inside `#{}`.
@each
$color
,
$value
in
$colors
{
@each
$color
,
$value
in
$colors
{
...
...
This diff is collapsed.
Click to expand it.
site/content/docs/4.3/getting-started/theming.md
+
7
-
25
View file @
ee01dc23
...
@@ -369,31 +369,13 @@ Bootstrap 4 includes around two dozen [CSS custom properties (variables)](https:
...
@@ -369,31 +369,13 @@ Bootstrap 4 includes around two dozen [CSS custom properties (variables)](https:
Here are the variables we include (note that the
`:root`
is required). They're located in our
`_root.scss`
file.
Here are the variables we include (note that the
`:root`
is required). They're located in our
`_root.scss`
file.
{{
<
highlight
css
>
}}
{{
<
highlight
css
>
}}
:root {
{{
<
root.inline
>
}}
--blue: #007bff;
{{- $css := readFile "dist/css/bootstrap.css" -}}
--indigo: #6610f2;
{{- $match := findRE ":root {([^}]
*
)}" $css 1 -}}
--purple: #6f42c1;
--pink: #e83e8c;
{{- index $match 0 -}}
--red: #dc3545;
--orange: #fd7e14;
{{
<
/
root.inline
>
}}
--yellow: #ffc107;
--green: #28a745;
--teal: #20c997;
--cyan: #17a2b8;
--white: #fff;
--gray: #6c757d;
--gray-dark: #343a40;
--primary: #007bff;
--secondary: #6c757d;
--success: #28a745;
--info: #17a2b8;
--warning: #ffc107;
--danger: #dc3545;
--light: #f8f9fa;
--dark: #343a40;
--font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
{{
<
/
highlight
>
}}
{{
<
/
highlight
>
}}
### Examples
### Examples
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment