简体   繁体   中英

Meteor Bootstrap node modules overwrite my own css

Im using Meteor why node modules are load at last, and overwrite my own css files in imports/ directories? Im using bootstrap , but there are class es that I don't like as background-color body . Here happens this: in my directories:

import/ui/socially/socially.less  
body{ backgrond-color: #000000;}

but don't work, when the firefox or chrome refresh the same default bootstrap color always appear.

I read the documentation Order Loads but this no solution my issue. I don't wanna overwrite original files of the bootstrap, or delete, or edit because is not good idea when I will use .git Any ideas? Thanks for all. Please I have many days in this issue jajaja

  • Check your css syntax

body{ background-color: #000000 }

  • Make sure you load your external CSS file after the bootstrap css file else your rules will get overwritten
  • If it still doesn't work. Try this :

body{ background-color: #000000 !important }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM