Skip to content
GitLab
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
  • !36637

Fix StackBlitz examples needing docs CSS

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Julien Déramond requested to merge main-jd-fix-stackblitz-examples-by-adding-docs-css into main Jun 27, 2022
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 1

Reference #36391

Originally I wanted to be able to load only _component-examples.scss and only when needed. The main issue is that it contains Sass variables defined in other Sass files; including files in the framework.

It will be less obvious for the users but the only other way I found so far is to load directly in the index.html our docs.css...

Any other ideas?

Fixed use cases

  • All examples in Layout > Grid (none of them displayed correctly the colored rectangles)
  • All examples in Layout > Columns (none of them displayed correctly the colored rectangles)
  • Layout > Gutters > No gutters
  • All examples in Layout > CSS Grid
  • All examples in Content > Images
  • All examples in Content > Figures
  • Some examples in Forms > Form control that uses .bd-example in order to add margin tops between form controls.
  • Components > Alerts > Icons
  • Components > Breadcrum > Dividers
  • All examples in Components > Card that hadn't centered text in images
  • All examples in Components > Carousel that hadn't centered text in images
  • Components > Popovers > Custom popovers
  • Components > Tooltips > Custom tooltips
  • All examples in Helpers > Ratio that display gray rectangles
  • Most of the examples in Utilities > Borders
  • All examples in Utilities > Flex
  • Examples in Utilities > Position with black squares
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: main-jd-fix-stackblitz-examples-by-adding-docs-css