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
edx
edx-platform
Commits
d2a2aaa7
Commit
d2a2aaa7
authored
Nov 23, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LMS: adds in collapse/expand UI for dashboard view upsell
parent
c023797b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
lms/static/sass/multicourse/_dashboard.scss
+21
-3
lms/templates/dashboard/_dashboard_course_listing.html
+4
-1
No files found.
lms/static/sass/multicourse/_dashboard.scss
View file @
d2a2aaa7
...
...
@@ -523,7 +523,7 @@
.message-copy
,
.message-copy
.copy
{
@extend
%t-copy-sub1
;
margin
:
0
;
margin
:
2px
0
0
0
;
}
// CASE: expandable
...
...
@@ -532,15 +532,18 @@
.wrapper-tip
{
.message-title
,
.message-copy
{
@include
transition
(
color
0
.25s
ease-in-out
0
);
margin-bottom
:
0
;
}
.message-title
.value
,
.message-copy
{
@include
transition
(
color
0
.25s
ease-in-out
0s
);
}
// STATE: hover
&
:hover
{
cursor
:
pointer
;
.message-title
,
.message-copy
{
.message-title
.value
,
.message-copy
,
.ui-toggle-expansion
{
color
:
$link-color
;
}
}
...
...
@@ -555,6 +558,11 @@
// STATE: is expanded
&
.is-expanded
{
.ui-toggle-expansion
{
@include
transform
(
rotate
(
0
));
@include
transform-origin
(
50%
50%
);
}
.wrapper-extended
{
display
:
block
;
opacity
:
1
.0
;
...
...
@@ -573,6 +581,16 @@
float
:
left
;
}
.ui-toggle-expansion
{
@include
transition
(
all
0
.25s
ease-in-out
0s
);
@include
transform
(
rotate
(
-90deg
));
@include
transform-origin
(
50%
50%
);
@include
font-size
(
21
);
display
:
inline-block
;
vertical-align
:
middle
;
margin-right
:
(
$baseline
/
4
);
}
.message-copy
{
float
:
right
;
}
...
...
lms/templates/dashboard/_dashboard_course_listing.html
View file @
d2a2aaa7
...
...
@@ -65,7 +65,10 @@
<div
class=
"message message-upsell has-actions is-expandable is-shown"
>
<div
class=
"wrapper-tip"
>
<h4
class=
"message-title"
>
${_("Challenge Yourself!")}
</h4>
<h4
class=
"message-title"
>
<i
class=
"icon-caret-down ui-toggle-expansion"
></i>
<span
class=
"value"
>
${_("Challenge Yourself!")}
</span>
</h4>
<p
class=
"message-copy"
>
${_("Take this course as an ID-verified student.")}
</p>
</div>
...
...
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