Fill horizontal space on medium-sized viewports
This removes the horrible side margins on portrait tablets
This commit is contained in:
parent
f94519ccfc
commit
be1afe01e9
|
@ -1,4 +1,8 @@
|
|||
.container--main {
|
||||
padding-top: 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))');
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
- provide(:title, generate_title('Edit announcement'))
|
||||
.container.container--main
|
||||
.container-lg.container--main
|
||||
.card
|
||||
.card-body
|
||||
= bootstrap_form_for(@announcement, url: { action: 'update' }, method: 'PATCH') do |f|
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- provide(:title, generate_title('Announcements'))
|
||||
.container.container--main
|
||||
.container-lg.container--main
|
||||
- @announcements.each do |announcement|
|
||||
.card
|
||||
.card-body
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- provide(:title, generate_title('Add new announcement'))
|
||||
.container.container--main
|
||||
.container-lg.container--main
|
||||
.card
|
||||
.card-body
|
||||
= bootstrap_form_for(@announcement, url: { action: 'create' }) do |f|
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
- provide(:title, answer_title(@answer))
|
||||
- provide(:og, answer_opengraph(@answer))
|
||||
.container.container--main
|
||||
.container-lg.container--main
|
||||
= render 'answerbox', a: @answer, display_all: @display_all
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.container.container--main
|
||||
.container-lg.container--main
|
||||
.row
|
||||
.col-md-3.col-sm-4.d-none.d-sm-block
|
||||
= render 'shared/sidebar'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.container.container--main
|
||||
.container-lg.container--main
|
||||
.row
|
||||
.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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
= render 'navigation/moderation'
|
||||
.container.container--main
|
||||
.container-lg.container--main
|
||||
.row
|
||||
.col-md-3.col-sm-4.col-xs-12
|
||||
= render 'tabs/moderation'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
= render 'navigation/notification'
|
||||
.container.container--main
|
||||
.container-lg.container--main
|
||||
.row
|
||||
.col-md-3.col-xs-12.col-sm-4
|
||||
= render 'tabs/notifications'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.container.container--main
|
||||
.container-lg.container--main
|
||||
.row
|
||||
.col-md-3.col-xs-12.col-sm-4
|
||||
= render 'tabs/settings'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.container.container--main
|
||||
.container-lg.container--main
|
||||
.row.justify-content-center
|
||||
.col-md-5.totp-setup__recovery-container
|
||||
.card
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- provide(:title, generate_title('Privacy Policy'))
|
||||
.container.container--main
|
||||
.container-lg.container--main
|
||||
.card
|
||||
.card-body
|
||||
= raw_markdown_io 'service-docs/en/policy/privacy.md'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- provide(:title, generate_title('Terms of Service'))
|
||||
.container.container--main
|
||||
.container-lg.container--main
|
||||
.card
|
||||
.card-body
|
||||
= raw_markdown_io 'service-docs/en/policy/terms.md'
|
||||
|
|
Loading…
Reference in New Issue