mkhairi / materialize-sass

Materializecss rubygem for Rails Asset Pipeline / Sprockets
http://materialize.labs.my/
MIT License
805 stars 243 forks source link

Bootstrap tooltip with rest of materialize #87

Closed richardwu closed 8 years ago

richardwu commented 8 years ago

I would like to use bootstrap tooltips with the materialize package. I tried importing only the necessary components in my application.scss file:

@import "materialize/components/prefixer";
@import "materialize/components/mixins";
@import "materialize/components/color";
$secondary-color: $TUTR-PURPLE !default;
$success-color: $TUTR-PURPLE !default;
@import "materialize/components/variables";

@import "materialize/components/normalize";

@import "materialize/components/global";
/*@import "materialize/components/icons-material-design";*/
@import "materialize/components/grid";
/*@import "materialize/components/navbar";*/
/*@import "materialize/components/roboto";*/
@import "materialize/components/typography";
/*@import "materialize/components/cards";*/
/*@import "materialize/components/toast";*/
/*@import "materialize/components/tabs";*/
/*@import "materialize/components/tooltip";*/
/*@import "materialize/components/buttons";*/
@import "materialize/components/dropdown";
/*@import "materialize/components/waves";*/
/*@import "materialize/components/modal";*/
/*@import "materialize/components/collapsible";*/
/*@import "materialize/components/chips";
@import "materialize/components/materialbox";*/
@import "materialize/components/form";
/*@import "materialize/components/table_of_contents";
@import "materialize/components/sideNav";
@import "materialize/components/preloader";
@import "materialize/components/slider";
@import "materialize/components/carousel";
@import "materialize/components/date_picker/default.scss";
@import "materialize/components/date_picker/default.date.scss";
@import "materialize/components/date_picker/default.time.scss";*/

Note /*@import "materialize/components/tooltip";*/ is commented out. For some reason, the Bootstrap tooltips are still not rendering. I was wondering if anyone has monkey patched Bootstrap's tooltips to work with Materialize.

I understand that it's bad practice to use multiple CSS frameworks that accomplish similar things, but it would be too much of a pain for me to remove Bootstrap from my project at this point.

mkhairi commented 8 years ago

hi @rwu1997, i guess you should also unload/commented out tooltip.js.