Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Commit

Permalink
Fixed Storybook issues with Clarity 5
Browse files Browse the repository at this point in the history
Signed-off-by: Milan Klanjsek <mklanjsek@pivotal.io>
  • Loading branch information
mklanjsek committed Mar 25, 2021
1 parent 20d2968 commit 44049e9
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 6 deletions.
39 changes: 39 additions & 0 deletions web/.storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,43 @@
.sbdocs .sbdocs-preview pre code .token.punctuation {
color: #000;
}

.sbdocs .sbdocs-h1 {
font-size: 32px;
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 900;
margin-bottom: 8px;
}

.sbdocs .sbdocs-h2 {
font-size: 24px;
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
margin-bottom: 8px;
}

.sbdocs .sbdocs-h3 {
font-size: 20px;
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
margin-bottom: 8px;
}

.sbdocs .sbdocs-h4 {
font-size: 16px;
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
margin-bottom: 8px;
}

.sbdocs .sbdocs-p {
margin: 16px 0px;
color: rgb(51, 51, 51);
}

.sbdocs .sbdocs-ol, .sbdocs .sbdocs-ul{
padding-left: 30px;
margin: 16px 0px;
}

.sbdocs .sbdocs-li {
list-style-position: outside;
}
</style>
2 changes: 1 addition & 1 deletion web/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
],
"styles": [
"node_modules/@clr/icons/clr-icons.min.css",
"node_modules/@clr/ui/clr-ui.min.css",
"node_modules/@clr/ui/clr-ui-dark.min.css",
"node_modules/@clr/ui/clr-ui.min.css",
"src/styles.scss"
],
"stylePreprocessorOptions": {
Expand Down
4 changes: 2 additions & 2 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
top: 0;
}

::ng-deep .label1 {
::ng-deep .label-header .label1 {
font-size: 22px;
color: var(--label1-color);
font-weight: normal;
Expand All @@ -25,7 +25,7 @@
cursor: default;
}

::ng-deep .label2 {
::ng-deep .label-header .label2 {
font-size: 16px;
color: var(--label2-color);
font-weight: normal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class CytoscapeComponent implements OnChanges, OnDestroy {
valignBox: 'bottom',
halignBox: 'right',
tpl: data =>
'<div><p class="label1">' +
'<div class="label-header"><p class="label1">' +
data.label1 +
'</p>' +
'<p class="label2">' +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
}

:host ::ng-deep .nav-group-content .nav-group-trigger-icon {
display: flex;
height: 1.5rem;
margin-left: 6px;
}
Expand Down

0 comments on commit 44049e9

Please sign in to comment.