Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
0ff70472
Commit
0ff70472
authored
12 years ago
by
Kyle Fiedler
Browse files
Options
Downloads
Patches
Plain Diff
Added styles for dashboard to have link around whole class
parent
05da125a
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
+19
-9
19 additions, 9 deletions
lms/static/sass/multicourse/_dashboard.scss
lms/templates/dashboard.html
+25
-21
25 additions, 21 deletions
lms/templates/dashboard.html
with
44 additions
and
30 deletions
lms/static/sass/multicourse/_dashboard.scss
+
19
−
9
View file @
0ff70472
...
...
@@ -261,7 +261,7 @@
padding
:
12px
0px
;
width
:
100%
;
a
.university
{
.university
{
background
:
rgba
(
255
,
255
,
255
,
1
);
border
:
1px
solid
rgb
(
180
,
180
,
180
);
@include
border-radius
(
3px
);
...
...
@@ -269,17 +269,14 @@
color
:
$lighter-base-font-color
;
display
:
block
;
font-style
:
italic
;
font-family
:
$sans-serif
;
font-size
:
16px
;
font-weight
:
800
;
@include
inline-block
;
margin-right
:
10px
;
margin-bottom
:
0
;
padding
:
5px
10px
;
float
:
left
;
&
:hover
{
color
:
$blue
;
text-decoration
:
none
;
}
}
h3
{
...
...
@@ -392,18 +389,30 @@
}
}
&
:hover
{
>
a
:hover
{
.cover
{
.shade
{
background
:
rgba
(
255
,
255
,
255
,
0
.1
);
@include
background-image
(
linear-gradient
(
-90deg
,
rgba
(
255
,
255
,
255
,
0
.3
)
0%
,
rgba
(
0
,
0
,
0
,
0
.3
)
100%
));
rgba
(
0
,
0
,
0
,
0
.3
)
100%
));
}
.arrow
{
opacity
:
1
;
}
}
.info
{
background
:
darken
(
rgb
(
250
,
250
,
250
)
,
5%
);
@include
background-image
(
linear-gradient
(
-90deg
,
darken
(
rgb
(
253
,
253
,
253
)
,
3%
)
,
darken
(
rgb
(
240
,
240
,
240
)
,
5%
)));
border-color
:
darken
(
rgb
(
190
,
190
,
190
)
,
10%
);
.course-status
{
background
:
darken
(
$yellow
,
3%
);
border-color
:
darken
(
rgb
(
200
,
200
,
200
)
,
3%
);
@include
box-shadow
(
0
1px
0
0
rgba
(
255
,
255
,
255
,
0
.6
));
}
}
}
}
...
...
@@ -420,5 +429,6 @@
color
:
#333
;
}
}
}
}
This diff is collapsed.
Click to expand it.
lms/templates/dashboard.html
+
25
−
21
View file @
0ff70472
...
...
@@ -72,30 +72,34 @@
else:
course_target =
reverse('about_course',
args=
[course.id])
%
>
<a
href=
"${course_target}"
class=
"cover"
style=
"background-image: url('${course_image_url(course)}')"
>
<div
class=
"shade"
></div>
<div
class=
"arrow"
>
❯
</div>
</a>
<section
class=
"info"
>
<hgroup>
<a
href=
"${reverse('university_profile', args=[course.org])}"
class=
"university"
>
${get_course_about_section(course, 'university')}
</a>
<h3><a
href=
"${course_target}"
>
${course.number} ${course.title}
</a></h3>
</hgroup>
<section
class=
"course-status"
>
<p>
Class Starts -
<span>
${course.start_date_text}
</span></div>
<a
href=
"${course_target}"
>
<section
class=
"cover"
style=
"background-image: url('${course_image_url(course)}')"
>
<div
class=
"shade"
></div>
<div
class=
"arrow"
>
❯
</div>
</section>
<section
class=
"meta"
>
<div
class=
"course-work-icon"
></div>
<div
class=
"progress"
>
<div
class=
"meter"
>
<div
class=
"meter-fill"
></div>
<section
class=
"info"
>
<hgroup>
<h2
class=
"university"
>
${get_course_about_section(course, 'university')}
</h2>
<h3>
${course.number} ${course.title}
</h3>
</hgroup>
<section
class=
"course-status"
>
<p>
Class Starts -
<span>
${course.start_date_text}
</span></div>
</section>
<section
class=
"meta"
>
<div
class=
"course-work-icon"
></div>
<div
class=
"progress"
>
<div
class=
"meter"
>
<div
class=
"meter-fill"
></div>
</div>
</div>
</div
>
<div
class=
"complete
"
>
##
<p><span
class=
"completeness"
>
60%
</span>
complete
</p
>
</
div
>
<div
class=
"complete"
>
##
<p><span
class=
"complete
ness"
>
60%
</span>
complete
</p
>
</div
>
</
section
>
</section>
</
section
>
</
a
>
</article>
<a
href=
"#unenroll-modal"
class=
"unenroll"
rel=
"leanModal"
data-course-id=
"${course.id}"
data-course-number=
"${course.number}"
>
Unregister
</a>
...
...
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