Skip to content

Fit stepper header to parent div #289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
IrvingSG opened this issue Jul 13, 2021 · 1 comment
Open

Fit stepper header to parent div #289

IrvingSG opened this issue Jul 13, 2021 · 1 comment

Comments

@IrvingSG
Copy link

Hello, I use this stepper as the following example:
image

The problem is that it is not responsive or it does not work properly.
I've tried to set a width in the .row and in the same header (as the image shows). But it does not works.
width:350px
In develooper tools I found this atrbute added to the class .bs-stepper-header:
display:flex if I chage it by display:contents
It is shown in this way:
image
It is not exactly what I'm looking for, I would like to fit the stepper to the width, since it will be seen on different devices with different resolution.
Any idea or advice about how to get it? someone has done something similar?

@tienomeis
Copy link

You can adjust the layout by adding or overwriting appropriate css properties of the class the stepper is using internally. You just have to add these css definitions into your css and it will be applied to the stepper. Here are my customizations as an example:

.active .bs-stepper-circle {
  background-color: #aaa;
}

.bs-stepper-circle {
  width:3em;
  height: 0.8em;
  padding: 0;
  margin: 0;
  border-radius: 10px;
}

.bs-stepper-label {
  margin: 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants