Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
d2a2aaa7
Commit
d2a2aaa7
authored
11 years ago
by
Brian Talbot
Browse files
Options
Downloads
Patches
Plain Diff
LMS: adds in collapse/expand UI for dashboard view upsell
parent
c023797b
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lms/static/sass/multicourse/_dashboard.scss
+21
-3
21 additions, 3 deletions
lms/static/sass/multicourse/_dashboard.scss
lms/templates/dashboard/_dashboard_course_listing.html
+4
-1
4 additions, 1 deletion
lms/templates/dashboard/_dashboard_course_listing.html
with
25 additions
and
4 deletions
lms/static/sass/multicourse/_dashboard.scss
+
21
−
3
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
;
}
...
...
This diff is collapsed.
Click to expand it.
lms/templates/dashboard/_dashboard_course_listing.html
+
4
−
1
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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment