-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from WoodWing/feature/CSH-9935-tables
Feature/csh 9935 tables
- Loading branch information
Showing
8 changed files
with
206 additions
and
8 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
12 changes: 12 additions & 0 deletions
12
component-sets/default-components/icons/components/chart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,114 @@ | ||
.chart { | ||
margin: 12px auto; | ||
position: relative; | ||
clear: both; | ||
|
||
> div { | ||
position: relative; | ||
padding-bottom: 56%; | ||
height: 100%; | ||
overflow: hidden; | ||
} | ||
|
||
iframe { | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
border: 0; | ||
} | ||
|
||
&._option1 div { | ||
padding: 10px; | ||
} | ||
|
||
figcaption { | ||
color: #000000; | ||
margin-top: 4px; | ||
margin-bottom: 2px; | ||
} | ||
|
||
// TODO - CSH-9935: Copied directly from the image component. Could/should be moved to a common place to reduce duplication? | ||
%caption-shared { | ||
position: absolute; | ||
padding: 8px 12px; | ||
background-color: rgba(255, 255, 255, 0.8); | ||
font-weight: 400; | ||
color: #3f3e3e; | ||
margin: 0; | ||
|
||
/* before represents the placeholder text*/ | ||
&::before { | ||
color: #3f3e3e; | ||
} | ||
} | ||
|
||
/* class styles for the captions properties of the chart component */ | ||
&._caption-inside figcaption { | ||
@extend %caption-shared; | ||
right: 0; | ||
bottom: 0; | ||
left: 0; | ||
} | ||
|
||
&._caption-none figcaption { | ||
display: none; | ||
} | ||
|
||
&._caption-top figcaption { | ||
@extend %caption-shared; | ||
right: 0; | ||
top: 0; | ||
left: 0; | ||
} | ||
|
||
&._caption-top-left figcaption { | ||
@extend %caption-shared; | ||
right: 0; | ||
top: 0; | ||
left: 0; | ||
width: 30%; | ||
} | ||
|
||
&._caption-top-right figcaption { | ||
@extend %caption-shared; | ||
right: 0; | ||
top: 0; | ||
width: 30%; | ||
} | ||
|
||
&._caption-bottom-left figcaption { | ||
@extend %caption-shared; | ||
right: 0; | ||
bottom: 0; | ||
left: 0; | ||
width: 30%; | ||
} | ||
|
||
&._caption-bottom-right figcaption { | ||
@extend %caption-shared; | ||
right: 0; | ||
bottom: 0; | ||
width: 30%; | ||
} | ||
|
||
@media only screen and (min-width: $phone-max-width) { | ||
/* class styles for the position properties of the image component */ | ||
&._left { | ||
float: left; | ||
clear: left; | ||
width: calc(50% - 15px); | ||
margin-right: 15px; | ||
z-index: 1; | ||
} | ||
|
||
&._right { | ||
float: right; | ||
clear: right; | ||
width: 50%; | ||
z-index: 1; | ||
} | ||
} | ||
} |
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,6 @@ | ||
<figure class="chart"> | ||
<div doc-chart="chart"></div> | ||
<figcaption doc-editable="caption"> | ||
Chart caption, sem vel consectetur dignissim, quam felis molestie lorem, eget posuere felis turpis vitae odio. | ||
</figcaption> | ||
</figure> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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