media_query: Use 767px instead of 775px as md breakpoint.

We use 767px for hiding left column.

The components changed here were tested to be working fine.

This change is not likely to introduce any regression as the
calculations in the components here were not dependent upon the
breakpoint being at 775px.
This commit is contained in:
Aman Agrawal
2020-10-31 15:05:21 +05:30
committed by Tim Abbott
parent 5a8150e34b
commit e941ee4a15
5 changed files with 7 additions and 5 deletions

View File

@@ -63,7 +63,9 @@ exports.initialize = function () {
") { .compose-content, .header-main .column-middle { margin-right: " + ") { .compose-content, .header-main .column-middle { margin-right: " +
(7 + sbWidth) + (7 + sbWidth) +
"px !important; } } " + "px !important; } } " +
"@media (max-width: 775px) { .fixed-app .column-middle { margin-left: " + "@media (max-width: " +
media_breakpoints["xl-max"] +
") { .fixed-app .column-middle { margin-left: " +
(7 + sbWidth) + (7 + sbWidth) +
"px !important; } } " + "px !important; } } " +
"</style>", "</style>",

View File

@@ -503,7 +503,7 @@ a#undo_markdown_preview {
} }
} }
@media (max-width: 775px) { @media (max-width: $md-max) {
.compose-content { .compose-content {
margin-right: 7px; margin-right: 7px;
margin-left: 7px; margin-left: 7px;

View File

@@ -210,7 +210,7 @@
} }
} }
@media (max-width: 775px) { @media (max-width: $md-max) {
#user_search_section .user-list-filter { #user_search_section .user-list-filter {
/* input should be 100% - 6px padding x2 - 1px border x2. */ /* input should be 100% - 6px padding x2 - 1px border x2. */
width: calc(100% - 12px - 2px); width: calc(100% - 12px - 2px);

View File

@@ -17,7 +17,7 @@
} }
} }
@media (max-width: 775px) { @media (max-width: $md-max) {
#typing_notifications { #typing_notifications {
margin-right: 7px; margin-right: 7px;
margin-left: 7px; margin-left: 7px;

View File

@@ -2680,7 +2680,7 @@ select.inline_select_topic_edit {
} }
} }
@media (max-width: 775px) { @media (max-width: $md-max) {
body { body {
padding: 0; padding: 0;
} }