Skip to content

Commit 50f48ae

Browse files
Merge pull request #8985 from jeffibm/fix-responsive-styles-1
Fix for responsive styles for layout and summary
2 parents 434809c + bc9e6a4 commit 50f48ae

File tree

5 files changed

+57
-7
lines changed

5 files changed

+57
-7
lines changed

app/stylesheet/application-webpack.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
@import './quadicon.scss';
2424
@import './search-bar.scss';
2525
@import './settings.scss';
26+
@import './responsive_layout.scss';
2627
@import './tree.scss';
2728
@import './toolbar.scss';
2829
@import './widget.scss';
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
@media (max-width: 65.98rem) {
2+
.bx--side-nav__overlay-active {
3+
visibility: hidden;
4+
}
5+
}
6+
7+
@media only screen
8+
and (min-width : 768px)
9+
and (max-width : 990px) {
10+
11+
.bx--side-nav__overlay-active {
12+
visibility: hidden;
13+
}
14+
15+
.responsive-layout-main {
16+
.sidebar-pf.sidebar-pf-left {
17+
left: 0;
18+
}
19+
20+
.full-content {
21+
left: 0;
22+
}
23+
}
24+
25+
}
26+
27+
@media only screen
28+
and (max-width : 990px) {
29+
.miq-structured-list-accordion {
30+
overflow: hidden;
31+
32+
.miq-structured-list {
33+
overflow: hidden;
34+
35+
.bx--structured-list-row {
36+
display: flex;
37+
flex-direction: column;
38+
39+
.label_header {
40+
padding-left: 5px !important;
41+
}
42+
43+
.content_value {
44+
padding-left: 5px;
45+
}
46+
}
47+
}
48+
}
49+
}

app/views/layouts/_center_div_no_listnav.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
%header
33
#breadcrumbs
44
= render :partial => "layouts/breadcrumbs"
5-
%main.row.max-height
6-
.col-md-12.max-height
5+
%main.row.max-height.responsive-layout-main
6+
.col-md-12.max-height.full-content
77
- if !@in_a_form && taskbar_in_header?
88
.row.toolbar-pf#toolbar
99
.col-sm-12

app/views/layouts/_center_div_with_listnav.html.haml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
- if @layout == "dashboard"
1010
= render :partial => "/layouts/tabs"
1111
= miq_toolbar toolbar_from_hash
12-
%main.div{:class => "row max-height content-focus-order #{left_div_classname}"}
12+
%main.div{:class => "responsive-layout-main row max-height content-focus-order #{left_div_classname}"}
1313
- if !controller.respond_to?(:display_tree)
14-
.col-sm-12.col-md-12.col-sm-push-12.col-md-push-3.max-height
14+
.col-sm-12.col-md-12.col-sm-push-12.col-md-push-3.max-height.full-content
1515
#main-content.row.miq-layout-center_div_with_listnav
1616
.col-md-12
1717
.row
@@ -31,7 +31,7 @@
3131
.col-md-12
3232
= yield
3333
- else
34-
.col-sm-4.col-md-3.col-sm-pull-8.col-md-pull-9.sidebar-pf.sidebar-pf-left.max-height
34+
.col-sm-4.col-md-3.col-sm-pull-8.col-md-pull-9.sidebar-pf.sidebar-pf-left.max-height.left-sidebar
3535
-# listnav_div
3636
= render :partial => "layouts/listnav"
3737
.col-sm-8.col-md-9.col-sm-push-4.col-md-push-3.max-height

app/views/layouts/_content.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
.row.toolbar-pf#toolbar.miq-toolbar-menu
1111
.col-sm-12
1212
= miq_toolbar toolbar_from_hash
13-
%main.row.max-height.content-focus-order
13+
%main.row.max-height.content-focus-order.responsive-layout-main
1414
- if simulate?
1515
#left_div.sidebar-pf.sidebar-pf-left.scrollable.max-height.col-sm-5.col-md-4.col-sm-pull-7.col-md-pull-8
1616
#default_left_cell
@@ -22,7 +22,7 @@
2222
= render :partial => "layouts/listnav"
2323
= yield :left
2424
#custom_left_cell
25-
.max-height{:class => simulate? ? 'col-sm-7 col-md-8 col-sm-push-5 col-md-push-4' : 'col-sm-8 col-md-9 col-sm-push-4 col-md-push-3'}
25+
.full-content.max-height{:class => simulate? ? 'col-sm-7 col-md-8 col-sm-push-5 col-md-push-4' : 'col-sm-8 col-md-9 col-sm-push-4 col-md-push-3'}
2626
#main-content.row.miq-layout-center_div_with_listnav
2727
.col-md-12
2828
.row

0 commit comments

Comments
 (0)