I am using the latest download for the project. I am confused about bootstraps bootstrap and less file structure
my file structurte
---css ---js ---less ---mixins -----.. -----... ----Custom_files ---------main.less --------- component1.less --------- component2.less
All of my custom files are smaller in the Custom Files folder. I am trying to create another stylesheet for custom css without touching bootstrap.min.css at all
In the main.less file, I imported all the files with fewer components (component1.less, components.less)
To achieve the first mobile match, in each component file I included mobile styles as the default style rules and desktop styles at the end of the file
/****Default Styles go here(mobile)***/ .... /**************************************/ @media(max-width:767px){} @media(min-width:768px){} @media(min-width:992px){ /***Desktop styles***/ } @media(min-width:1200px){}
My question is: When css is generated, it looks useless as a combination of css default queries and media queries instead of using css by default first and then media queries
/****Default Styles goes here(mobile)***/ .... /**************************************/ @media(max-width:767px){} @media(min-width:768px){} @media(min-width:992px){ /***Desktop styles***/ } @media(min-width:1200px){} /****Default Styles goes here(mobile)***/ .... /**************************************/ @media(max-width:767px){} @media(min-width:768px){} @media(min-width:992px){ /***Desktop styles***/ } @media(min-width:1200px){} /****Default Styles goes here(mobile)***/ .... /**************************************/ ......
This is normal? Or if this is wrong, which is the correct way to execute ths
source share