-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🪟 🧹 Cleanup documentation panel components (#15455)
* Add docs/ to frontend workspace * Migrate Markdown components to scss and cleanup when not found is rendered * Add white-space: break-spaces rule to markdown code blocks
- Loading branch information
Showing
6 changed files
with
115 additions
and
115 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 |
---|---|---|
|
@@ -5,6 +5,9 @@ | |
}, | ||
{ | ||
"path": "../airbyte-webapp-e2e-tests" | ||
}, | ||
{ | ||
"path": "../docs" | ||
} | ||
], | ||
"extensions": { | ||
|
11 changes: 11 additions & 0 deletions
11
airbyte-webapp/src/components/DocumentationPanel/DocumentationPanel.module.scss
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,11 @@ | ||
@use "../../scss/colors"; | ||
|
||
.container { | ||
padding: 0px 0px 20px; | ||
background-color: colors.$white; | ||
min-height: 100vh; | ||
} | ||
|
||
.content { | ||
padding: 0px 35px 20px; | ||
} |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
export { default as Markdown } from "./Markdown"; | ||
export { Markdown } from "./Markdown"; |
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,82 @@ | ||
@use "../../scss/colors"; | ||
|
||
.airbyte-markdown { | ||
* { | ||
color: colors.$dark-blue; | ||
line-height: 24px; | ||
font-size: 16px; | ||
font-weight: 400; | ||
} | ||
|
||
h1 { | ||
font-size: 48px; | ||
line-height: 56px; | ||
font-weight: bold; | ||
} | ||
|
||
h2 { | ||
font-size: 24px; | ||
line-height: 36px; | ||
font-weight: bold; | ||
} | ||
|
||
h3 { | ||
font-size: 18px; | ||
font-weight: bold; | ||
} | ||
|
||
h4 { | ||
font-weight: bold; | ||
} | ||
|
||
a { | ||
color: colors.$blue; | ||
text-decoration: none; | ||
line-height: 24px; | ||
|
||
&:hover { | ||
text-decoration: underline; | ||
} | ||
} | ||
|
||
table { | ||
border-collapse: collapse; | ||
} | ||
|
||
th, | ||
td { | ||
border: 1px solid colors.$grey-100; | ||
margin: 0; | ||
padding: 8px 16px; | ||
} | ||
|
||
th { | ||
background: colors.$grey-50; | ||
} | ||
|
||
blockquote { | ||
border-left: 4px solid colors.$grey-100; | ||
padding-left: 16px; | ||
margin-left: 25px; | ||
} | ||
|
||
strong { | ||
font-weight: bold; | ||
} | ||
|
||
code { | ||
white-space: break-spaces; | ||
background: colors.$grey-50; | ||
|
||
&.language-sql, | ||
&.language-text { | ||
display: block; | ||
padding: 15px; | ||
overflow: auto; | ||
} | ||
} | ||
|
||
img { | ||
max-width: 100%; | ||
} | ||
} |