-
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.
🪟 🔧 Convert Markdown.styles.scss to module (#15646)
* Convert Markdown.styles.scss to module * Split scss modules for better linting
- Loading branch information
Showing
4 changed files
with
57 additions
and
52 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
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
48 changes: 48 additions & 0 deletions
48
airbyte-webapp/src/components/Markdown/admonitions.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,48 @@ | ||
@use "../../scss/colors"; | ||
|
||
.admonition { | ||
border-radius: 8px; | ||
border-left: 8px solid colors.$grey-300; | ||
padding: 1px 16px 1px 48px; | ||
margin: -1px 0 15px; | ||
background-color: colors.$grey-50; | ||
position: relative; | ||
|
||
&::before { | ||
content: "ℹ️"; | ||
position: absolute; | ||
top: 16px; | ||
left: 16px; | ||
} | ||
|
||
&--caution, | ||
&--warning { | ||
background-color: colors.$yellow-50; | ||
border-left-color: colors.$yellow-300; | ||
&::before { | ||
content: "⚠️"; | ||
} | ||
} | ||
|
||
&--danger { | ||
background-color: colors.$red-50; | ||
border-left-color: colors.$red-300; | ||
&::before { | ||
content: "⚠️"; | ||
} | ||
} | ||
|
||
&--note::before { | ||
content: "📝"; | ||
} | ||
|
||
&--tip, | ||
&--info { | ||
background-color: colors.$blue-50; | ||
border-left-color: colors.$blue-300; | ||
} | ||
|
||
&--tip::before { | ||
content: "💡"; | ||
} | ||
} |
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