Commit 34ca65ea by Marco Morales

responsive styling updates for instructor dash, learner profile, notes, and program dashboard

parent bed0ddcf
...@@ -150,7 +150,7 @@ a:visited:not(.btn) { ...@@ -150,7 +150,7 @@ a:visited:not(.btn) {
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
margin: 0 auto; margin: 0 auto;
padding: ($baseline*2) 0; padding: ($baseline*2) 0;
max-width: grid-width(12); max-width: 1920px;
min-width: 760px; min-width: 760px;
width: flex-grid(12); width: flex-grid(12);
} }
......
...@@ -48,6 +48,10 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4; ...@@ -48,6 +48,10 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
@extend .content; // needed extend carried over from course handouts UI, but should be cleaned up @extend .content; // needed extend carried over from course handouts UI, but should be cleaned up
@include media-breakpoint-down(md) {
padding: ($baseline/2);
}
width: 100%; width: 100%;
} }
} }
...@@ -62,7 +66,12 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4; ...@@ -62,7 +66,12 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
.wrapper-title { .wrapper-title {
@include float(left); @include float(left);
width: flex-grid(7, 12); width: flex-grid(12, 12);
@include media-breakpoint-up(md) {
width: flex-grid(7, 12);
padding-bottom: $baseline;
}
.page-title { .page-title {
@extend %t-title4; @extend %t-title4;
...@@ -76,7 +85,7 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4; ...@@ -76,7 +85,7 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
display: block; display: block;
margin-top: ($baseline/4); margin-top: ($baseline/4);
color: $lightest-base-font-color; color: theme-color("gray-dark");
letter-spacing: 0; letter-spacing: 0;
} }
} }
...@@ -85,7 +94,11 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4; ...@@ -85,7 +94,11 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
.wrapper-notes-search { .wrapper-notes-search {
@include float(right); @include float(right);
width: flex-grid(5, 12); width: flex-grid(12, 12);
@include media-breakpoint-up(sm) {
width: flex-grid(5, 12);
}
@include text-align(right); @include text-align(right);
} }
...@@ -162,6 +175,10 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4; ...@@ -162,6 +175,10 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
border: 1px solid $gray-l5; border: 1px solid $gray-l5;
border-radius: ($baseline/10); border-radius: ($baseline/10);
@include media-breakpoint-down(md) {
width: flex-grid(12, 12);
}
// note - highlighted content // note - highlighted content
.note-excerpt { .note-excerpt {
@include transition(background-color $tmg-avg ease-in-out 0); @include transition(background-color $tmg-avg ease-in-out 0);
...@@ -212,7 +229,7 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4; ...@@ -212,7 +229,7 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
letter-spacing: ($baseline/20); letter-spacing: ($baseline/20);
margin: 0 0 ($baseline/4) 0; margin: 0 0 ($baseline/4) 0;
color: $gray-l2; color: theme-color("gray-dark");
} }
.note-comment-p, .note-comment-p,
...@@ -252,9 +269,27 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4; ...@@ -252,9 +269,27 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
width: flex-grid(3, 12); width: flex-grid(3, 12);
vertical-align: top; vertical-align: top;
@include media-breakpoint-down(md) {
width: flex-grid(12, 12);
padding: $baseline 0;
border-bottom: 3px solid theme-color("gray-dark");
}
.wrapper-reference-content { .wrapper-reference-content {
padding: 0 $baseline; padding: 0 $baseline;
color: $gray-l2; color: theme-color("gray-dark");
.wrapper-reference-item {
display: inline-block;
@include media-breakpoint-down(md) {
width: flex-grid(4, 12);
}
@include media-breakpoint-down(sm) {
width: flex-grid(12, 12);
}
}
.reference-title { .reference-title {
@extend %t-title8; @extend %t-title8;
...@@ -310,10 +345,6 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4; ...@@ -310,10 +345,6 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
border-color: $gray-l4; border-color: $gray-l4;
} }
.note-excerpt {
background: $student-notes-highlight-color-focus;
}
.note-comment { .note-comment {
color: $gray-d2; color: $gray-d2;
...@@ -356,7 +387,7 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4; ...@@ -356,7 +387,7 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
@include clearfix(); @include clearfix();
position: relative; position: relative;
top: ($baseline/5); top: 6px;
.tabs-label, .tabs-label,
.tabs { .tabs {
...@@ -372,8 +403,7 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4; ...@@ -372,8 +403,7 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
@include padding-right($baseline); @include padding-right($baseline);
color: $lightest-base-font-color; color: theme-color("gray-dark");
font-weight: $font-semibold !important; // needed for poor base LMS styling scope
} }
.tabs { .tabs {
...@@ -382,7 +412,6 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4; ...@@ -382,7 +412,6 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
@extend %ui-no-list; @extend %ui-no-list;
position: relative; position: relative;
bottom: -($baseline/4);
} }
.tab { .tab {
...@@ -447,8 +476,7 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4; ...@@ -447,8 +476,7 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
// +case - no notes made // +case - no notes made
// -------------------- // --------------------
.placeholder { .placeholder {
background: $gray-l5; border-top: 1px solid theme-color("gray-dark");
border-top: ($baseline/4) solid $active-color;
padding: ($baseline*1.5); padding: ($baseline*1.5);
a { a {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
@include border-top-radius(4px); @include border-top-radius(4px);
@include clearfix(); @include clearfix();
padding: ($baseline*0.75) 0 ($baseline*0.75) 0; padding: 0;
.tab { .tab {
display: inline-block; display: inline-block;
......
...@@ -30,26 +30,31 @@ ...@@ -30,26 +30,31 @@
<footer class="reference"> <footer class="reference">
<div class="wrapper-reference-content"> <div class="wrapper-reference-content">
<p class="reference-title"><%- gettext("Noted in:") %></p> <span class="wrapper-reference-item">
<% if (unit.url) { %> <p class="reference-title"><%- gettext("Noted in:") %></p>
<a class="reference-meta reference-unit-link" href="<%= unit.url %>#<%= id %>"><%- unit.display_name %></a> <% if (unit.url) { %>
<% } else { %> <a class="reference-meta reference-unit-link" href="<%= unit.url %>#<%= id %>"><%- unit.display_name %></a>
<span class="reference-meta"><%- unit.display_name %></span> <% } else { %>
<% } %> <span class="reference-meta"><%- unit.display_name %></span>
<p class="reference-title"><%- gettext("Last Edited:") %></p>
<span class="reference-meta reference-updated-date"><%- updated %></span>
<% if (tags.length > 0) { %>
<p class="reference-title"><%- gettext("Tags:") %></p>
<% for (var i = 0; i < tags.length; i++) { %>
<span class="reference-meta reference-tags">
<%= interpolate_text(_.escape(tags[i]), {
elasticsearch_highlight_start: '<span class="note-highlight">',
elasticsearch_highlight_end: '</span>'
})%>
</span>
<% } %> <% } %>
</span>
<span class="wrapper-reference-item">
<p class="reference-title"><%- gettext("Last Edited:") %></p>
<span class="reference-meta reference-updated-date"><%- updated %></span>
</span>
<% if (tags.length > 0) { %>
<span class="wrapper-reference-item">
<p class="reference-title"><%- gettext("Tags:") %></p>
<% for (var i = 0; i < tags.length; i++) { %>
<span class="reference-meta reference-tags">
<%= interpolate_text(_.escape(tags[i]), {
elasticsearch_highlight_start: '<span class="note-highlight">',
elasticsearch_highlight_end: '</span>'
})%>
</span>
<% } %>
</span>
<% } %> <% } %>
</div> </div>
</footer> </footer>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment