Skip to content

Commit 3834e4b

Browse files
authored
style: increase line-height on announcements page for better readability (#1349)
* fix: increase line-height for announcements * style: fix mobile responsiveness and improve text readability * style: add word-break for mobile responsiveness * style: increased padding-top of top element for mobile screen * style: isolate announcements mobile responsiveness and improve readability * style: isolate announcements styling and fix linting newline
1 parent 070c09b commit 3834e4b

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

landing-pages/site/assets/scss/_base-layout.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@
145145

146146
@media (max-width: $mobile) {
147147
& > * {
148-
max-width: 306px;
148+
max-width: 100%;
149+
padding-left: 15px;
150+
padding-right: 15px;
149151
}
150152
}
151153
}

landing-pages/site/assets/scss/_home-page.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
padding-top: 110px; // TEMP - accommodate Airflow Summit banner (70 + 40)
2525

2626
@media (max-width: $mobile) {
27-
padding-top: 16px;
27+
padding-top: 80px;
2828
}
2929
}
3030
}

landing-pages/site/assets/scss/_typography.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,15 @@ $bodytext-styles: (
107107
.text-break-all {
108108
word-break: break-all
109109
}
110+
111+
/* Fix for Announcements Page line-height */
112+
body.td-section {
113+
.home-page-layout.base-layout {
114+
main.td-main.container {
115+
p {
116+
line-height: 1.7;
117+
overflow-wrap: anywhere;
118+
}
119+
}
120+
}
121+
}

0 commit comments

Comments
 (0)