You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the cog menu is broken and the filter UI is unstyled. To get these working correctly I would need to copy over a whole lot of Datasette's default CSS - and that means that when Datasette changes in the future those pages could break in subtle ways.
The text was updated successfully, but these errors were encountered:
I think what I want is for it to be easy to reuse portions of Datasette's CSS - the bit that styles the cog menu for example - without pulling in the whole thing.
I tried linking in the <link rel="stylesheet" href="/-/static/app.css"> stylesheet and the page broke, wildly:
That's because Datasette's built-in CSS applies styles directly to a whole bunch of different tags - body, header, footer etc - which means that if you import that stylesheet it can play havoc with the site you have already built.
So, an idea: what if Datasette's default CSS applied only to elements with classes - or maybe to childen of a body class="datasette" element? In such a way that you could write your own custom HTML that reused elements of Datasette's CSS - the cog menu styling for example - but only on an opt-in basis?
I want to theme https://datasette.io/ so that when you visit https://datasette.io/content (the Datasette UI part of it) the navigation from the parent site is used.
I tried dropping in a
base.html
template like this:But this resulted in pages looking like this:
Note that the cog menu is broken and the filter UI is unstyled. To get these working correctly I would need to copy over a whole lot of Datasette's default CSS - and that means that when Datasette changes in the future those pages could break in subtle ways.
The text was updated successfully, but these errors were encountered: