Skip to content

Commit

Permalink
Adjust pageinfo bg to be compatible with dark-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Apr 6, 2024
1 parent 6018506 commit 0935477
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions assets/scss/_pageinfo.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
.pageinfo {
font-weight: $font-weight-medium;
background: $gray-100;
background: var(--bs-alert-bg);
color: inherit;
border-radius: 0;
margin: 2rem;
margin: 2rem auto;
padding: 1.5rem;
padding-bottom: 0.5rem;

@each $color, $value in $theme-colors {
&-#{$color} {
border-style: solid;
border-color: $value;
@extend .alert-#{$color};
border-width: 0;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions userguide/content/en/docs/adding-content/shortcodes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,14 @@ This is a warning.
The **pageinfo** shortcode creates a text box that you can use to add banner information for a page: for example, letting users know that the page contains placeholder content, that the content is deprecated, or that it documents a beta feature.

```go-html-template
{{%/* pageinfo color="primary" */%}}
{{%/* pageinfo color="info" */%}}
This is placeholder content.
{{%/* /pageinfo */%}}
```

Renders to:

{{% pageinfo color="primary" %}}
{{% pageinfo color="info" %}}
This is placeholder content
{{% /pageinfo %}}

Expand Down

0 comments on commit 0935477

Please sign in to comment.