Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Bootswatch override global css #194

Open
soaresdude opened this issue Mar 26, 2019 · 6 comments
Open

Bootswatch override global css #194

soaresdude opened this issue Mar 26, 2019 · 6 comments

Comments

@soaresdude
Copy link

soaresdude commented Mar 26, 2019

I have the following style tag:

<style scoped>
  @import '../../assets/bootstrap.min.css';
  @import '~fullcalendar/dist/fullcalendar.min.css';

 ...
</style>

Where the first import is including the Cosmo Bootswatch theme for the fullcalendar. My problem is that this CSS file is overriding my Bulma class, even though is inside style scoped.
Anyone knows how to restrict Bootswatch CSS scope to only the calendar?

PS.: Bootswatch is overriding a component that's outside the component I'm working on.

@BrockReece
Copy link
Collaborator

Does the following work?

<style scoped src="../../assets/bootstrap.min.css"></style>
<style scoped src="~fullcalendar/dist/fullcalendar.min.css"></style>

@soaresdude
Copy link
Author

@BrockReece Just tried and it didn't worked :(

@BrockReece
Copy link
Collaborator

Sorry, didn't work in what way?

@soaresdude
Copy link
Author

@BrockReece No, neither of them worked the way you wrote here.

@BrockReece
Copy link
Collaborator

I was trying to get a better idea of what didn't work with my suggestion so I can better help you.
Were the style sheets not included at all?
Were they included but still not scoped properly?

@soaresdude
Copy link
Author

@BrockReece I didn't mean to be rude, sorry.
Yeah, they weren't included using the src property.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants