Skip to content

Commit

Permalink
Add CSS layer histoire
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoattal committed Jul 28, 2024
1 parent 3814da9 commit ea79ca2
Show file tree
Hide file tree
Showing 3 changed files with 8,437 additions and 6,318 deletions.
8 changes: 4 additions & 4 deletions packages/histoire-app/src/app/style/main.pcss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Display&display=swap');
@import 'floating-vue/dist/style.css';
@import '@histoire/controls/dist/style.css';
@import 'floating-vue/dist/style.css' layer(histoire);
@import '@histoire/controls/dist/style.css' layer(histoire);

@import 'floating.pcss';
@import 'transitions.pcss';
@import 'floating.pcss' layer(histoire);
@import 'transitions.pcss' layer(histoire);

*,
::before,
Expand Down
38 changes: 20 additions & 18 deletions packages/histoire-app/src/app/style/sandbox.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
@import '@histoire/controls/dist/style.css';
@import '@histoire/controls/dist/style.css' layer(histoire);

html,
body {
background: transparent !important;
}
@layer histoire {
html,
body {
background: transparent !important;
}

body {
margin: 0;
}
body {
margin: 0;
}

html {
font-size: 1rem;
font-family: 'Noto Sans Display', system-ui, sans-serif;
}
html {
font-size: 1rem;
font-family: 'Noto Sans Display', system-ui, sans-serif;
}

.htw-sandbox-hidden {
display: none;
}
.htw-sandbox-hidden {
display: none;
}

.__histoire-render-story:not(.__histoire-render-custom-controls) {
overflow: auto;
min-height: 100%;
.__histoire-render-story:not(.__histoire-render-custom-controls) {
overflow: auto;
min-height: 100%;
}
}
Loading

0 comments on commit ea79ca2

Please sign in to comment.