-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example styles for charts and alert (#1889)
* chore(styles): add alert example sass * fix(styles): adjust chart and alert example styles to add them back
- Loading branch information
Showing
19 changed files
with
203 additions
and
6 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
14 changes: 14 additions & 0 deletions
14
packages/patternfly-4/react-charts/src/components/ChartArea/examples/chart-area.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,14 @@ | ||
.ws-preview { | ||
& > * { | ||
.chart-overflow { | ||
& svg { | ||
overflow: visible; | ||
} | ||
} | ||
|
||
.chart-title { | ||
margin-bottom: 25px; | ||
margin-left: 10px; | ||
} | ||
} | ||
} |
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
24 changes: 24 additions & 0 deletions
24
packages/patternfly-4/react-charts/src/components/ChartBar/examples/chart-bar.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,24 @@ | ||
.ws-preview { | ||
& > * { | ||
.chart-container { | ||
height: 200px; | ||
width: 300px; | ||
} | ||
|
||
.chart-margin { | ||
margin-bottom: 30px; | ||
margin-left: 20px; | ||
} | ||
|
||
.chart-overflow { | ||
& svg { | ||
overflow: visible; | ||
} | ||
} | ||
|
||
.chart-title { | ||
margin-bottom: 25px; | ||
margin-left: 10px; | ||
} | ||
} | ||
} |
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
21 changes: 21 additions & 0 deletions
21
packages/patternfly-4/react-charts/src/components/ChartDonut/examples/chart-donut.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,21 @@ | ||
.ws-preview { | ||
& > * { | ||
.chart-container { | ||
height: 200px; | ||
width: 300px; | ||
} | ||
|
||
.chart-inline { | ||
display: inline-flex; | ||
} | ||
|
||
.chart-label { | ||
position: absolute; | ||
} | ||
|
||
.chart-title { | ||
margin-bottom: 25px; | ||
margin-left: 10px; | ||
} | ||
} | ||
} |
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
28 changes: 28 additions & 0 deletions
28
packages/patternfly-4/react-charts/src/components/ChartLine/examples/chart-line.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,28 @@ | ||
.ws-preview { | ||
& > * { | ||
.chart-container { | ||
height: 200px; | ||
width: 300px; | ||
} | ||
|
||
.chart-margin { | ||
margin-bottom: 30px; | ||
margin-left: 40px; | ||
} | ||
|
||
.chart-inline { | ||
display: inline-flex; | ||
} | ||
|
||
.chart-overflow { | ||
& svg { | ||
overflow: visible; | ||
} | ||
} | ||
|
||
.chart-title { | ||
margin-bottom: 25px; | ||
margin-left: 10px; | ||
} | ||
} | ||
} |
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
17 changes: 17 additions & 0 deletions
17
packages/patternfly-4/react-charts/src/components/ChartPie/examples/chart-pie.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,17 @@ | ||
.ws-preview { | ||
& > * { | ||
.chart-container { | ||
height: 200px; | ||
width: 300px; | ||
} | ||
|
||
.chart-inline { | ||
display: inline-flex; | ||
} | ||
|
||
.chart-title { | ||
margin-bottom: 25px; | ||
margin-left: 10px; | ||
} | ||
} | ||
} |
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
24 changes: 24 additions & 0 deletions
24
packages/patternfly-4/react-charts/src/components/ChartStack/examples/chart-stack.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,24 @@ | ||
.ws-preview { | ||
& > * { | ||
.chart-container { | ||
height: 200px; | ||
width: 300px; | ||
} | ||
|
||
.chart-margin { | ||
margin-bottom: 30px; | ||
margin-left: 40px; | ||
} | ||
|
||
.chart-overflow { | ||
& svg { | ||
overflow: visible; | ||
} | ||
} | ||
|
||
.chart-title { | ||
margin-bottom: 25px; | ||
margin-left: 10px; | ||
} | ||
} | ||
} |
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
5 changes: 5 additions & 0 deletions
5
packages/patternfly-4/react-core/src/components/Alert/examples/alert.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,5 @@ | ||
.ws-preview { | ||
& > .pf-c-alert { | ||
margin-bottom: 0.5rem; | ||
} | ||
} |
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
42 changes: 42 additions & 0 deletions
42
packages/patternfly-4/react-docs/src/components/componentDocs/live-edit.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,42 @@ | ||
.ws-preview { | ||
background-color: white; | ||
} | ||
|
||
.example { | ||
max-height: 37.5rem; | ||
overflow: auto; | ||
} | ||
|
||
.code { | ||
background-color: #000000; | ||
border-top: 1px solid #f8f8f8; | ||
border-right: none; | ||
border-bottom: none; | ||
border-left: none; | ||
} | ||
|
||
.toolbar { | ||
background-color: #fff; | ||
border-top: 1px solid #f8f8f8; | ||
border-right: none; | ||
border-bottom: none; | ||
border-left: none; | ||
} | ||
|
||
.message { | ||
transition: 500ms all ease; | ||
opacity: 0; | ||
height: 0; | ||
will-change: opacity; | ||
} | ||
|
||
.messageText { | ||
background-color: #fff; | ||
color: #486b00; | ||
padding: 16px; | ||
} | ||
|
||
.messageShow { | ||
opacity: 1; | ||
height: initial; | ||
} |
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 |
---|---|---|
|
@@ -9080,6 +9080,13 @@ gatsby-plugin-react-helmet@^3.0.11: | |
dependencies: | ||
"@babel/runtime" "^7.0.0" | ||
|
||
gatsby-plugin-sass@^2.0.11: | ||
version "2.0.11" | ||
resolved "https://registry.yarnpkg.com/gatsby-plugin-sass/-/gatsby-plugin-sass-2.0.11.tgz#25ef6a206107e24ac49d50866f0595c2aa489649" | ||
dependencies: | ||
"@babel/runtime" "^7.0.0" | ||
sass-loader "^7.0.1" | ||
|
||
gatsby-react-router-scroll@^2.0.7: | ||
version "2.0.7" | ||
resolved "https://registry.yarnpkg.com/gatsby-react-router-scroll/-/gatsby-react-router-scroll-2.0.7.tgz#b9425e366d4be546036080d85664d60ae76e6c29" | ||
|
@@ -17254,7 +17261,7 @@ sass-graph@^2.2.4: | |
scss-tokenizer "^0.2.3" | ||
yargs "^7.0.0" | ||
|
||
[email protected]: | ||
[email protected], sass-loader@^7.0.1: | ||
version "7.1.0" | ||
resolved "https://registry.yarnpkg.com/sass-loader/-/sass-loader-7.1.0.tgz#16fd5138cb8b424bf8a759528a1972d72aad069d" | ||
dependencies: | ||
|