Skip to content

Commit d3dc11b

Browse files
pkp/pkp-lib#9499 Bring some default styling back for legacy layouts
1 parent 87c915c commit d3dc11b

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

src/styles/_global.less

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,59 @@
2525
}
2626
}
2727

28+
/* To compensate for tailwindcss default, which breaks legacy unstyled html */
29+
.legacyDefaults {
30+
/* Default browser styles for common HTML elements */
31+
32+
/* Heading 2 */
33+
h2 {
34+
font-size: 1.5em; /* 24px */
35+
font-weight: bold;
36+
margin: 0.83em 0; /* Approx. 26.56px top/bottom */
37+
}
38+
39+
/* Heading 3 */
40+
h3 {
41+
font-size: 1.17em; /* Approx. 18.72px */
42+
font-weight: bold;
43+
margin: 1em 0; /* Approx. 32px top/bottom */
44+
}
45+
46+
/* Heading 4 */
47+
h4 {
48+
display: block;
49+
font-size: 1em; /* 16px */
50+
font-weight: bold;
51+
margin: 1.33em 0; /* Approx. 42.56px top/bottom */
52+
}
53+
54+
/* Unordered List */
55+
ul {
56+
display: block;
57+
list-style-type: disc;
58+
margin-block-start: 1em;
59+
margin-block-end: 1em;
60+
padding-inline-start: 40px;
61+
}
62+
63+
/* List Item */
64+
li {
65+
display: list-item;
66+
text-align: -webkit-match-parent;
67+
unicode-bidi: isolate;
68+
}
69+
70+
/* Paragraph */
71+
p {
72+
display: block;
73+
display: block;
74+
margin-block-start: 1em;
75+
margin-block-end: 1em;
76+
margin-inline-start: 0px;
77+
margin-inline-end: 0px;
78+
}
79+
}
80+
2881
@tailwind components;
2982
@tailwind utilities;
3083

0 commit comments

Comments
 (0)