Skip to content

Commit

Permalink
Check in docu-notion-styles.css so we can publish without pulling
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-polk committed May 22, 2024
1 parent e5b152d commit 0bd8e53
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ static/downloads/docs-bloomlibrary-english-a4.pdf

*.orig

css/docu-notion-styles.css

*.bak
60 changes: 60 additions & 0 deletions css/docu-notion-styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/* This should be added to the docusaurus.config.js in order to show some notion things correctly.
See the option: --css-output-directory
See the docusaurus docs: https://docusaurus.io/docs/styling-layout
See the use in the docu-notion-sample-site: https://github.com/sillsdev/docu-notion-sample-site/blob/main/docusaurus.config.js
*/

/* Copied from
https://github1s.com/NotionX/react-notion-x/blob/master/packages/react-notion-x/src/styles.css#L934
and
https://github1s.com/NotionX/react-notion-x/blob/master/packages/react-notion-x/src/styles.css#L1063
*/
.notion-column {
display: flex;
flex-direction: column;
padding-top: 12px;
padding-bottom: 12px;
}

.notion-column > *:first-child {
margin-top: 0;
margin-left: 0;
margin-right: 0;
}

.notion-column > *:last-child {
margin-left: 0;
margin-right: 0;
margin-bottom: 0;
}

.notion-row {
display: flex;
overflow: hidden;
width: 100%;
max-width: 100%;
}

@media (max-width: 640px) {
.notion-row {
flex-direction: column;
}

.notion-row .notion-column {
width: 100% !important;
}

.notion-row .notion-spacer {
display: none;
}
}

.notion-spacer {
/* This matches the value in ColumnTransformer.ts */
width: calc(min(32px, 4vw));
}

.notion-spacer:last-child {
display: none;
}
/* End copied from NotionX */

0 comments on commit 0bd8e53

Please sign in to comment.