Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !29326

theming.md: automate _root.scss.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged XhmikosR requested to merge master-xmr-automate-root-scss into master 5 years ago
  • Overview 0
  • Commits 3
  • Pipelines 0
  • Changes 2

TODO: fix font variables.

Any ideas welcome.

Fixes #29324 (closed)

Preview: https://deploy-preview-29326--twbs-bootstrap.netlify.com/docs/4.3/getting-started/theming/#available-variables

Compare
  • master (base)

and
  • latest version
    50b2c099
    3 commits, 2 years ago

2 files
+ 7
- 26

    Preferences

    File browser
    Compare changes
sc‎ss‎
_root‎.scss‎ +0 -1
site/content/docs/‎4.3/getting-started‎
themi‎ng.md‎ +7 -25
scss/_root.scss
+ 0
- 1
  • View file @ 50b2c099

  • Edit in single-file editor

  • Open in Web IDE


// Do not forget to update getting-started/theming.md!
:root {
// Custom variable values only support SassScript inside `#{}`.
@each $color, $value in $colors {
site/content/docs/4.3/getting-started/theming.md
+ 7
- 25
  • View file @ 50b2c099

  • Edit in single-file editor

  • Open in Web IDE


@@ -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.
{{< highlight css >}}
:root {
--blue: #007bff;
--indigo: #6610f2;
--purple: #6f42c1;
--pink: #e83e8c;
--red: #dc3545;
--orange: #fd7e14;
--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;
}
{{< root.inline >}}
{{- $css := readFile "dist/css/bootstrap.css" -}}
{{- $match := findRE ":root {([^}]*)}" $css 1 -}}
{{- index $match 0 -}}
{{< /root.inline >}}
{{< /highlight >}}
### Examples
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
3
docs no-backport-to-v4 v5
3
docs no-backport-to-v4 v5
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
2
2 participants
XhmikosR
Ghost User
Reference: twbs/bootstrap!29326
Source branch: master-xmr-automate-root-scss

Menu

Explore Projects Groups Snippets