forked from shopbuilder-app/shopbuilder-app.github.io
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
InspireUI
committed
Jul 30, 2024
1 parent
73766fe
commit 3ae2000
Showing
4 changed files
with
100 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.gif_player { | ||
display: inline-block; | ||
position: relative; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
-webkit-touch-callout: none; | ||
-webkit-tap-highlight-color: transparent; } | ||
.gif_player .play_button { | ||
background-color: rgba(0, 0, 0, 0.5); | ||
border: 2px dashed #fff; | ||
border-radius: 50%; | ||
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5); | ||
color: #fff; | ||
cursor: pointer; | ||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
font-size: 24px; | ||
left: 50%; | ||
opacity: 1; | ||
padding: 14px 10px; | ||
position: absolute; | ||
top: 50%; | ||
transform: translate(-50%, -50%) scale(1) rotate(0deg); | ||
transition: transform 0.4s, opacity 0.4s; } | ||
.gif_player .play_button:hover { | ||
background-color: rgba(0, 0, 0, 0.7); | ||
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.7); } | ||
.gif_player .play_button::after { | ||
content: "GIF"; } | ||
.gif_player.playing .play_button { | ||
transform: translate(-50%, -50%) scale(0) rotate(180deg); | ||
opacity: 0.5; } | ||
.gif_player img { | ||
max-width: 100%; } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters