Skip to content
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

Responsive #31

Open
Borisboky opened this issue Sep 26, 2016 · 2 comments
Open

Responsive #31

Borisboky opened this issue Sep 26, 2016 · 2 comments

Comments

@Borisboky
Copy link

Is there any way to make it responsive? I want for example that the width on large screens is 40% and on xs screens 100%.

Thanks.

@michelsch
Copy link

It worked for me by setting the className to a css class of your choosing, and setting the width as !important for all your desired breakpoints

@josuemontano
Copy link

Adding to @michelsch92 answer, I borrowed Semantic UI's modal rules and applied them to boron modal's:

@media only screen and (max-width: 767px) {
  .large.boron-modal,
  .medium.boron-modal,
  .small.boron-modal {
    width: 95% !important;
  }
}

@media only screen and (min-width: 768px) {
  .large.boron-modal,
  .medium.boron-modal {
    width: 88% !important;
  }

  .small.boron-modal {
    width: 70.4% !important;
  }
}

@media only screen and (min-width: 992px) {
  .large.boron-modal {
    width: 1020px !important;
  }

  .medium.boron-modal {
    width: 850px !important;
  }

  .small.boron-modal {
    width: 680px !important;
  }
}

@media only screen and (min-width: 1200px) {
  .large.boron-modal {
    width: 1080px !important;
  }

  .medium.boron-modal {
    width: 900px !important;
  }

  .small.boron-modal {
    width: 720px !important;
  }
}

@media only screen and (min-width: 1920px) {
  .large.boron-modal {
    width: 1140px !important;
  }

  .medium.boron-modal {
    width: 950px !important;
  }

  .small.boron-modal {
    width: 760px !important;
  }
}

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

3 participants