Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-platform
Commits
34ca65ea
Commit
34ca65ea
authored
Nov 12, 2017
by
Marco Morales
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
responsive styling updates for instructor dash, learner profile, notes, and program dashboard
parent
bed0ddcf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
36 deletions
+69
-36
lms/static/sass/base/_base.scss
+1
-1
lms/static/sass/course/_student-notes.scss
+43
-15
lms/static/sass/course/layout/_courseware_header.scss
+1
-1
lms/templates/edxnotes/note-item.underscore
+24
-19
No files found.
lms/static/sass/base/_base.scss
View file @
34ca65ea
...
...
@@ -150,7 +150,7 @@ a:visited:not(.btn) {
@include
media-breakpoint-up
(
md
)
{
margin
:
0
auto
;
padding
:
(
$baseline
*
2
)
0
;
max-width
:
grid-width
(
12
)
;
max-width
:
1920px
;
min-width
:
760px
;
width
:
flex-grid
(
12
);
}
...
...
lms/static/sass/course/_student-notes.scss
View file @
34ca65ea
...
...
@@ -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
@include
media-breakpoint-down
(
md
)
{
padding
:
(
$baseline
/
2
);
}
width
:
100%
;
}
}
...
...
@@ -62,7 +66,12 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
.wrapper-title
{
@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
{
@extend
%t-title4
;
...
...
@@ -76,7 +85,7 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
display
:
block
;
margin-top
:
(
$baseline
/
4
);
color
:
$lightest-base-font-color
;
color
:
theme-color
(
"gray-dark"
)
;
letter-spacing
:
0
;
}
}
...
...
@@ -85,7 +94,11 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
.wrapper-notes-search
{
@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
);
}
...
...
@@ -162,6 +175,10 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
border
:
1px
solid
$gray-l5
;
border-radius
:
(
$baseline
/
10
);
@include
media-breakpoint-down
(
md
)
{
width
:
flex-grid
(
12
,
12
);
}
// note - highlighted content
.note-excerpt
{
@include
transition
(
background-color
$tmg-avg
ease-in-out
0
);
...
...
@@ -212,7 +229,7 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
letter-spacing
:
(
$baseline
/
20
);
margin
:
0
0
(
$baseline
/
4
)
0
;
color
:
$gray-l2
;
color
:
theme-color
(
"gray-dark"
)
;
}
.note-comment-p
,
...
...
@@ -252,9 +269,27 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
width
:
flex-grid
(
3
,
12
);
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
{
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
{
@extend
%t-title8
;
...
...
@@ -310,10 +345,6 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
border-color
:
$gray-l4
;
}
.note-excerpt
{
background
:
$student-notes-highlight-color-focus
;
}
.note-comment
{
color
:
$gray-d2
;
...
...
@@ -356,7 +387,7 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
@include
clearfix
();
position
:
relative
;
top
:
(
$baseline
/
5
)
;
top
:
6px
;
.tabs-label
,
.tabs
{
...
...
@@ -372,8 +403,7 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
@include
padding-right
(
$baseline
);
color
:
$lightest-base-font-color
;
font-weight
:
$font-semibold
!
important
;
// needed for poor base LMS styling scope
color
:
theme-color
(
"gray-dark"
);
}
.tabs
{
...
...
@@ -382,7 +412,6 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
@extend
%ui-no-list
;
position
:
relative
;
bottom
:
-
(
$baseline
/
4
);
}
.tab
{
...
...
@@ -447,8 +476,7 @@ $divider-visual-tertiary: ($baseline/20) solid $gray-l4;
// +case - no notes made
// --------------------
.placeholder
{
background
:
$gray-l5
;
border-top
:
(
$baseline
/
4
)
solid
$active-color
;
border-top
:
1px
solid
theme-color
(
"gray-dark"
);
padding
:
(
$baseline
*
1
.5
);
a
{
...
...
lms/static/sass/course/layout/_courseware_header.scss
View file @
34ca65ea
...
...
@@ -23,7 +23,7 @@
@include
border-top-radius
(
4px
);
@include
clearfix
();
padding
:
(
$baseline
*
0
.75
)
0
(
$baseline
*
0
.75
)
0
;
padding
:
0
;
.tab
{
display
:
inline-block
;
...
...
lms/templates/edxnotes/note-item.underscore
View file @
34ca65ea
...
...
@@ -30,26 +30,31 @@
<footer class="reference">
<div class="wrapper-reference-content">
<p class="reference-title"><%- gettext("Noted in:") %></p>
<% if (unit.url) { %>
<a class="reference-meta reference-unit-link" href="<%= unit.url %>#<%= id %>"><%- unit.display_name %></a>
<% } 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 class="wrapper-reference-item">
<p class="reference-title"><%- gettext("Noted in:") %></p>
<% if (unit.url) { %>
<a class="reference-meta reference-unit-link" href="<%= unit.url %>#<%= id %>"><%- unit.display_name %></a>
<% } else { %>
<span class="reference-meta"><%- unit.display_name %></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>
</footer>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment