Skip to content

Commit

Permalink
Fixes for stretched mobile & large screens
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Jan 7, 2022
1 parent e3a834e commit 2133e36
Showing 1 changed file with 59 additions and 6 deletions.
65 changes: 59 additions & 6 deletions src/Widgets/range.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ body:not(.view-viewview):not(.has-sidebar-collapsed):not(.has-toolbar-collapsed)
legend {
left: 19em !important;
}

/* detect if both sidebars closed */
body:not(.view-viewview):not(.has-sidebar):not(.has-toolbar) .stretch {
padding: 0 3.2rem;
Expand Down Expand Up @@ -97,7 +98,49 @@ body:not(.view-viewview):not(.has-sidebar-collapsed):not(.has-toolbar)
body:not(.is-anonymous):not(.has-toolbar) .stretch {
padding: 0 2.6rem;
}
@media (min-width: 1700px) {

body:not(.is-authenticated).stretch {
padding: 0 !important;
}
/* fix for section border to come around the stretched zone */

@media screen and (max-width: 767px) {
body:not(.is-authenticated) .stretch {
padding: 0 !important;
}
}

@media screen and (min-width: 768px) and (max-width: 787px) {
body:not(.is-authenticated) .stretch {
padding: 2rem !important;
}
}

@media screen and (min-width: 767px) and (max-width: 847px) {
body:not(.view-editview):not(.is-anonymous):not(.has-toolbar-collapsed)
.stretch {
padding: 0 2.5rem !important;
}
}

@media screen and (max-width: 847px) {
body:not(.view-editview):not(.is-anonymous):not(.has-toolbar-collapsed)
.stretch {
padding: 0 2.5rem;
}
body:not(.view-editview):not(.is-anonymous):not(.has-toolbar) .stretch {
padding: 0;
}
}

@media screen and (min-width: 1654px) {
body:not(.view-viewview):not(.has-sidebar-collapsed):not(.has-toolbar-collapsed)
.stretched-group {
margin: 0 -50px;
}
}

@media screen and (min-width: 1700px) {
.stretch {
margin-right: 0 !important;
margin-left: 0 !important;
Expand All @@ -108,10 +151,17 @@ body:not(.is-anonymous):not(.has-toolbar) .stretch {
width: auto !important;
max-width: 1790px !important;
padding: 0 !important;
margin-right: -7.2rem !important;
margin-right: -1.2rem !important;

transform: translate(-50%, 0%);
}

/* detect if left sidebar closed right sidebar open */
body:not(.view-viewview):not(.has-sidebar-collapsed):not(.has-toolbar)
.stretch {
margin-right: -3.2rem !important;
}

body:not(.is-anonymous):not(.has-toolbar) .stretch {
max-width: 1720px;
}
Expand All @@ -123,10 +173,13 @@ body:not(.is-anonymous):not(.has-toolbar) .stretch {
body:not(.is-authenticated) .stretch {
max-width: 1700px;
}
}

@media (max-width: 786px) {
.stretch {
padding: 0 !important;
/* media queries in edit both sidebars open */

body:not(.view-viewview):not(.has-sidebar-collapsed):not(.has-toolbar-collapsed)
.stretch
> fieldset
legend {
left: 5em !important;
}
}

0 comments on commit 2133e36

Please sign in to comment.