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
0ff70472
Commit
0ff70472
authored
Aug 30, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added styles for dashboard to have link around whole class
parent
05da125a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
30 deletions
+44
-30
lms/static/sass/multicourse/_dashboard.scss
+19
-9
lms/templates/dashboard.html
+25
-21
No files found.
lms/static/sass/multicourse/_dashboard.scss
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
;
}
}
}
}
lms/templates/dashboard.html
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=
"completeness"
>
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>
...
...
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