Skip to content

Commit 5e9e210

Browse files
committed
Adjust HTML styling for improved layout and readability by modifying padding and max-width values; update base font size for better accessibility.
1 parent 854db26 commit 5e9e210

2 files changed

Lines changed: 10 additions & 13 deletions

File tree

exporters/html/html_export.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ def get_common_styles() -> str:
595595
596596
body {{
597597
font-family: var(--font-primary);
598-
max-width: 1100px;
598+
max-width: 1000px;
599599
margin: 0 auto;
600600
padding: 20px;
601601
line-height: 1.6;
@@ -629,41 +629,38 @@ def get_common_styles() -> str:
629629
630630
h1 {{
631631
color: var(--selex-dark-blue);
632-
padding: 20px 0 10px 0;
632+
padding: 15px 0 8px 0;
633633
}}
634634
635635
h2 {{
636636
color: var(--selex-dark-blue);
637637
border-bottom: 1px solid var(--selex-dark-grey);
638-
padding: 15px 0 5px 0;
638+
padding: 12px 0 4px 0;
639639
}}
640640
641641
h3 {{
642642
color: var(--selex-dark-blue);
643-
padding: 12px 0 8px 0;
643+
padding: 10px 0 6px 0;
644644
}}
645645
646646
h4 {{
647-
color: var(--selex-dark-blue);
648-
padding: 10px 0 6px 0;
647+
color: #333;
648+
padding: 8px 0 4px 0;
649649
}}
650650
651651
/* Selex section styling */
652652
article {{
653653
margin: 20px 0;
654+
padding-bottom: 60px;
654655
}}
655656
656-
section {{
657-
margin: 15px 0;
658-
}}
659-
660657
section.kapitel {{
661-
margin: 25px 0;
658+
margin: 20px 0;
662659
padding: 10px 0;
663660
}}
664661
665662
section.paragraf {{
666-
margin: 15px 0;
663+
margin: 0;
667664
}}
668665
669666
section[status="upphavd"] {{

exporters/html/styling_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def get_css_variables():
142142

143143
# Add other utility variables
144144
css_vars.append("\n /* Utility variables */")
145-
css_vars.append(" --base-font-size: 14px;")
145+
css_vars.append(" --base-font-size: 16px;")
146146
css_vars.append(f" --font-primary: {FONT_FAMILIES['primary']};")
147147
css_vars.append(f" --font-system: {FONT_FAMILIES['system']};")
148148
css_vars.append(f" --font-modern: {FONT_FAMILIES['modern']};")

0 commit comments

Comments
 (0)