Answers for "react bootstrap css module use media query mixin"

CSS
0

react bootstrap css module use media query mixin

/* when using webpack and bootstrap is installed via yarn/npm*/
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';

.someClass {
  @include media-breakpoint-up(md) {
  	/* your styles to be applied on medium screens and up */
  }
}
Posted by: Guest on November-21-2020

Browse Popular Code Answers by Language