Fill horizontal space on medium-sized viewports

This removes the horrible side margins on portrait tablets
This commit is contained in:
Karina Kwiatek 2021-08-06 00:35:27 +02:00
parent f94519ccfc
commit be1afe01e9
13 changed files with 16 additions and 12 deletions

View File

@ -1,4 +1,8 @@
.container--main { .container--main {
padding-top: map-get($spacers, 3); padding-top: map-get($spacers, 3);
padding-bottom: map-get($spacers, 3); padding-bottom: map-get($spacers, 3);
// Sass doesn't know about the safe-area-inset-* env vars and throws a syntax error
// We can get around this by using unquote()
padding-left: unquote('max(15px, env(safe-area-inset-left))');
padding-right: unquote('max(15px, env(safe-area-inset-right))');
} }

View File

@ -1,5 +1,5 @@
- provide(:title, generate_title('Edit announcement')) - provide(:title, generate_title('Edit announcement'))
.container.container--main .container-lg.container--main
.card .card
.card-body .card-body
= bootstrap_form_for(@announcement, url: { action: 'update' }, method: 'PATCH') do |f| = bootstrap_form_for(@announcement, url: { action: 'update' }, method: 'PATCH') do |f|

View File

@ -1,5 +1,5 @@
- provide(:title, generate_title('Announcements')) - provide(:title, generate_title('Announcements'))
.container.container--main .container-lg.container--main
- @announcements.each do |announcement| - @announcements.each do |announcement|
.card .card
.card-body .card-body

View File

@ -1,5 +1,5 @@
- provide(:title, generate_title('Add new announcement')) - provide(:title, generate_title('Add new announcement'))
.container.container--main .container-lg.container--main
.card .card
.card-body .card-body
= bootstrap_form_for(@announcement, url: { action: 'create' }) do |f| = bootstrap_form_for(@announcement, url: { action: 'create' }) do |f|

View File

@ -1,4 +1,4 @@
- provide(:title, answer_title(@answer)) - provide(:title, answer_title(@answer))
- provide(:og, answer_opengraph(@answer)) - provide(:og, answer_opengraph(@answer))
.container.container--main .container-lg.container--main
= render 'answerbox', a: @answer, display_all: @display_all = render 'answerbox', a: @answer, display_all: @display_all

View File

@ -1,4 +1,4 @@
.container.container--main .container-lg.container--main
.row .row
.col-md-3.col-sm-4.d-none.d-sm-block .col-md-3.col-sm-4.d-none.d-sm-block
= render 'shared/sidebar' = render 'shared/sidebar'

View File

@ -1,4 +1,4 @@
.container.container--main .container-lg.container--main
.row .row
.col-md-3.col-xs-12.col-sm-4.order-2.order-sm-1 .col-md-3.col-xs-12.col-sm-4.order-2.order-sm-1
= render 'inbox/sidebar', delete_id: @delete_id, disabled: @disabled, inbox_count: @inbox_count = render 'inbox/sidebar', delete_id: @delete_id, disabled: @disabled, inbox_count: @inbox_count

View File

@ -1,5 +1,5 @@
= render 'navigation/moderation' = render 'navigation/moderation'
.container.container--main .container-lg.container--main
.row .row
.col-md-3.col-sm-4.col-xs-12 .col-md-3.col-sm-4.col-xs-12
= render 'tabs/moderation' = render 'tabs/moderation'

View File

@ -1,5 +1,5 @@
= render 'navigation/notification' = render 'navigation/notification'
.container.container--main .container-lg.container--main
.row .row
.col-md-3.col-xs-12.col-sm-4 .col-md-3.col-xs-12.col-sm-4
= render 'tabs/notifications' = render 'tabs/notifications'

View File

@ -1,4 +1,4 @@
.container.container--main .container-lg.container--main
.row .row
.col-md-3.col-xs-12.col-sm-4 .col-md-3.col-xs-12.col-sm-4
= render 'tabs/settings' = render 'tabs/settings'

View File

@ -1,4 +1,4 @@
.container.container--main .container-lg.container--main
.row.justify-content-center .row.justify-content-center
.col-md-5.totp-setup__recovery-container .col-md-5.totp-setup__recovery-container
.card .card

View File

@ -1,5 +1,5 @@
- provide(:title, generate_title('Privacy Policy')) - provide(:title, generate_title('Privacy Policy'))
.container.container--main .container-lg.container--main
.card .card
.card-body .card-body
= raw_markdown_io 'service-docs/en/policy/privacy.md' = raw_markdown_io 'service-docs/en/policy/privacy.md'

View File

@ -1,5 +1,5 @@
- provide(:title, generate_title('Terms of Service')) - provide(:title, generate_title('Terms of Service'))
.container.container--main .container-lg.container--main
.card .card
.card-body .card-body
= raw_markdown_io 'service-docs/en/policy/terms.md' = raw_markdown_io 'service-docs/en/policy/terms.md'