Skip to content

Commit 9ed34eb

Browse files
authored
fix(gnoweb): css safelist to add missing css rules (gnolang#4838)
1 parent 02b1a2a commit 9ed34eb

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

examples/gno.land/r/docs/markdown/markdown.gno

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ Blockquotes are created using the > character:
103103
±±±markdown
104104
> This is a blockquote
105105
>
106-
> It can span multiple lines
106+
>> It can span multiple lines
107107
±±±
108108

109109
> This is a blockquote
110110
>
111-
> It can span multiple lines
111+
>> It can span multiple lines
112112

113113
### Code
114114

gno.land/pkg/gnoweb/frontend/css/06-blocks.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1854,7 +1854,6 @@ pre.chroma-chroma {
18541854
}
18551855
.link-tx {
18561856
font-size: 0.75em;
1857-
vertical-align: top;
18581857
}
18591858
.link-user {
18601859
font-size: 0.75em;

gno.land/pkg/gnoweb/frontend/postcss.config.cjs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,18 @@ module.exports = (ctx) => {
3434
here("../**/*.go"),
3535
here("./js/**/*.ts"),
3636
],
37-
safelist: [/^is-/, /^has-/, /-active$/, /-open$/, "hidden", "dev-mode"],
37+
safelist: {
38+
standard: [
39+
/^is-/,
40+
/^has-/,
41+
/-active$/,
42+
/-open$/,
43+
"u-hidden",
44+
"dev-mode",
45+
"u-sr-only",
46+
],
47+
deep: [/c-realm-view\b/, /c-readme-view\b/],
48+
},
3849
variables: true,
3950
defaultExtractor: (content) => content.match(/[\w-:/%.]+(?<!:)/g) || [],
4051
}),

gno.land/pkg/gnoweb/public/main.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)