Skip to content

Commit 714cf48

Browse files
committed
Removed horizontal scrollbar for Classroom Monitor views on screens less than 1360px. #2835
1 parent c4b3011 commit 714cf48

10 files changed

Lines changed: 109 additions & 110 deletions

File tree

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,25 @@
11
<div class="view-content--with-sidemenu" ng-if="$ctrl.isGroupNode($ctrl.nodeId)">
2-
<div class="l-constrained l-constrained-md md-padding nav">
3-
<div class="flex md-subhead" layout="row" layout-align="start center" layout-wrap layout-margin>
4-
<span flex></span>
5-
<md-button ng-if="$ctrl.showRubricButton"
6-
ng-click="$ctrl.showRubric($event)"
7-
class="info md-raised">
8-
<md-icon class="info"> info_outline </md-icon>
9-
{{ ::'projectInfo' | translate }}
10-
</md-button>
11-
</div>
2+
<div class="l-constrained l-constrained-md nav">
3+
<div class="flex md-subhead" layout="row" layout-align="start center" layout-wrap layout-margin>
4+
<span flex></span>
5+
<md-button ng-if="$ctrl.showRubricButton" ng-click="$ctrl.showRubric($event)"
6+
class="info md-raised">
7+
<md-icon class="info"> info_outline </md-icon>
8+
{{ ::'projectInfo' | translate }}
9+
</md-button>
10+
</div>
1211

13-
<div class="nav-contents nav-contents--root">
14-
<div layout="row" layout-wrap layout-align="center start">
15-
<nav-item ng-repeat="id in $ctrl.rootNode.ids"
16-
class="nav-item nav-item--root"
17-
ng-class="{'expanded': itemExpanded}"
18-
node-id="::id"
19-
show-position="true"
20-
type="'card'"
21-
flex="100" flex-sm="50" flex-gt-sm="50"></nav-item>
22-
</div>
23-
</div>
12+
<div class="nav-contents nav-contents--root">
13+
<div layout="row" layout-wrap layout-align="center start">
14+
<nav-item ng-repeat="id in $ctrl.rootNode.ids" class="nav-item nav-item--root"
15+
ng-class="{'expanded': itemExpanded}" node-id="::id" show-position="true"
16+
type="'card'" flex="100" flex-sm="50" flex-gt-sm="50"></nav-item>
17+
</div>
2418
</div>
19+
</div>
2520
</div>
2621

2722
<div class="view-content--with-sidemenu" ng-if="$ctrl.isApplicationNode($ctrl.nodeId)">
28-
<node-grading-view node-id="$ctrl.nodeId"></node-grading-view>
29-
<!-- <div class="md-padding" ng-cloak ui-view="nodeView"></div> -->
23+
<node-grading-view node-id="$ctrl.nodeId"></node-grading-view>
24+
<!-- <div class="md-padding" ng-cloak ui-view="nodeView"></div> -->
3025
</div>

src/main/webapp/wise5/themes/default/style/author.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/webapp/wise5/themes/default/style/author.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/webapp/wise5/themes/default/style/layouts/_l-default.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
position: relative;
99

1010
@media (min-width: $layout-breakpoint-xs) {
11-
width: 100%;
12-
max-width: $layout-breakpoint-md;
11+
width: $layout-breakpoint-md;
1312
}
1413
}
1514

1615
.l-constrained-md {
17-
max-width: $layout-breakpoint-sm;
16+
width: $layout-breakpoint-sm;
17+
max-width: 100%;
1818
}

src/main/webapp/wise5/themes/default/style/layouts/_l-main.scss

Lines changed: 76 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -2,99 +2,109 @@
22

33
// 2. Base
44
.l-main {
5-
background-color: color('body-bg');
5+
background-color: color('body-bg');
66
}
77

88
.l-main--with-toolbar {
9-
margin-top: $wise-toolbar-height;
9+
margin-top: $wise-toolbar-height;
1010
}
1111

1212
#content {
13-
transition: margin-top .5s;
13+
transition: margin-top 0.5s;
1414
}
1515

1616
.view-content {
17-
margin: 0 auto;
18-
padding: 8px;
19-
position: absolute;
20-
left: 0;
21-
right: 0;
22-
transition: opacity 500ms;
23-
24-
@media only screen and (min-width: $layout-breakpoint-sm) {
25-
padding: 16px;
26-
}
27-
28-
&.ng-enter {
29-
opacity: 0;
30-
}
31-
32-
.ng-enter-active {
33-
opacity: 1;
34-
transition-delay: 250ms;
35-
}
36-
37-
&.ng-leave-active, &.ng-hide {
38-
opacity: 0;
39-
}
40-
41-
&.ng-hide-add, &.ng-hide-add-active,
42-
&.ng-hide-remove, &.ng-hide-remove-active {
43-
opacity: 0;
44-
}
17+
margin: 0 auto;
18+
padding: 8px;
19+
position: absolute;
20+
left: 0;
21+
right: 0;
22+
transition: opacity 500ms;
23+
24+
@media only screen and (min-width: $layout-breakpoint-sm) {
25+
padding: 16px;
26+
}
27+
28+
&.ng-enter {
29+
opacity: 0;
30+
}
31+
32+
.ng-enter-active {
33+
opacity: 1;
34+
transition-delay: 250ms;
35+
}
36+
37+
&.ng-leave-active,
38+
&.ng-hide {
39+
opacity: 0;
40+
}
41+
42+
&.ng-hide-add,
43+
&.ng-hide-add-active,
44+
&.ng-hide-remove,
45+
&.ng-hide-remove-active {
46+
opacity: 0;
47+
}
4548
}
4649

4750
.view-content--with-sidemenu {
48-
@media only screen and (min-width: $layout-breakpoint-xs) {
49-
margin-left: 54px;
50-
}
51+
padding: 8px;
52+
53+
@media only screen and (min-width: $layout-breakpoint-xs) {
54+
margin-left: 54px;
55+
padding: 16px;
56+
}
5157
}
52-
[dir=rtl] .view-content--with-sidemenu {
53-
@media only screen and (min-width: $layout-breakpoint-xs) {
54-
margin-left: auto;
55-
margin-right: 54px;
56-
}
58+
[dir='rtl'] .view-content--with-sidemenu {
59+
@media only screen and (min-width: $layout-breakpoint-xs) {
60+
margin-left: auto;
61+
margin-right: 54px;
62+
}
5763
}
5864

5965
.content-head {
60-
margin: 8px 0;
61-
62-
h1, h2, h3 {
63-
font-weight: 300;
64-
margin-top: 0;
65-
margin-bottom: 0;
66-
font-size: rem(3.6);
67-
68-
@media only screen and (max-width: $layout-breakpoint-sm - 1) {
69-
font-size: rem(3.2);
70-
text-align: center;
71-
}
66+
margin: 8px 0;
67+
68+
h1,
69+
h2,
70+
h3 {
71+
font-weight: 300;
72+
margin-top: 0;
73+
margin-bottom: 0;
74+
font-size: rem(3.6);
75+
76+
@media only screen and (max-width: $layout-breakpoint-sm - 1) {
77+
font-size: rem(3.2);
78+
text-align: center;
7279
}
80+
}
7381
}
7482

7583
.content-head__more {
76-
@media only screen and (max-width: $layout-breakpoint-sm - 1) {
77-
margin-top: 8px;
78-
}
84+
@media only screen and (max-width: $layout-breakpoint-sm - 1) {
85+
margin-top: 8px;
86+
}
7987
}
8088

81-
.content-head__item, h2.content-head__item {
82-
margin: 0 8px;
89+
.content-head__item,
90+
h2.content-head__item {
91+
margin: 0 8px;
8392

84-
.md-subhead {
85-
padding-left: 4px;
93+
.md-subhead {
94+
padding-left: 4px;
8695

87-
@media only screen and (max-width: $layout-breakpoint-sm - 1) {
88-
display: block;
89-
padding-left: 0;
90-
}
96+
@media only screen and (max-width: $layout-breakpoint-sm - 1) {
97+
display: block;
98+
padding-left: 0;
9199
}
100+
}
92101

93-
md-icon {
94-
vertical-align: text-bottom;
95-
}
102+
md-icon {
103+
vertical-align: text-bottom;
104+
}
96105
}
97106

98-
.stepSelectMenuContainer md-select-menu, .stepSelectMenuContainer md-select-menu md-content {
107+
.stepSelectMenuContainer md-select-menu,
108+
.stepSelectMenuContainer md-select-menu md-content {
99109
max-height: 500px;
100110
}
Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
.grading {
2-
padding-left: 8px;
3-
padding-right: 8px;
4-
5-
@media (min-width: $layout-breakpoint-xs) {
6-
padding: 8px 16px;
7-
}
82
}
93

104
.grading__item-container {
11-
margin: 0 0 16px;
12-
padding: 0 !important;
5+
margin: 0 0 16px;
6+
padding: 0 !important;
137
}
148

159
.grading__item {
16-
background-color: #ffffff;
10+
background-color: #ffffff;
1711

18-
.component {
19-
padding: 0;
20-
}
12+
.component {
13+
padding: 0;
14+
}
2115
}

src/main/webapp/wise5/themes/default/style/monitor.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/webapp/wise5/themes/default/style/monitor.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/webapp/wise5/themes/default/style/vle.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/webapp/wise5/themes/default/style/vle.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)