discourse/app/assets/stylesheets/common/base/faqs.scss
Osama Sayegh c76ff5c994
FIX: Don't let static pages overflow on some devices (#28751)
Static pages such as /about, /faqs, /tos etc. currently overflow horizontally on some Android devices (reproducible on Samsung Galaxy A11). It seems like the `width: 100%` property on `.body-page` is what causing the problem, and removing it doesn't seem to break anything on the various devices that I've tested (desktop, iOS, Android).
2024-09-05 10:29:32 +03:00

39 lines
797 B
SCSS

.body-page {
/* covers /about, /faq, /guidelines, /tos, /privacy, and login-required */
max-width: 700px;
background: var(--d-content-background);
.about-page & {
max-width: unset;
section:not(.admins):not(.moderators):not(.category-moderators):not(
.about__admins
):not(.about__moderators):not(.about__header) {
max-width: 700px;
}
.about.category-moderators {
.badge-category__wrapper .badge-category {
color: var(--primary);
}
}
}
.mobile-view & {
font-size: var(--font-0);
}
li {
margin-bottom: 8px;
}
.nav-pills {
margin: 0 0 2em;
}
ul:not(.nav-pills),
ol:not(.nav-pills) {
margin-left: 40px;
}
}
.body-page-button-container {
display: flex;
button {
margin-right: 0.75em;
}
}