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
c25306f3
Commit
c25306f3
authored
Jul 18, 2012
by
Galen Frechette
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes header on course object to accept very long course titles
parent
48d39ee7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
10 deletions
+20
-10
lms/static/sass/shared/_course_object.scss
+18
-8
lms/templates/course.html
+2
-2
No files found.
lms/static/sass/shared/_course_object.scss
View file @
c25306f3
...
...
@@ -68,30 +68,39 @@
hgroup
{
left
:
0px
;
padding
:
5
px
10px
;
padding
:
0
px
10px
;
position
:
absolute
;
right
:
60px
;
top
:
0px
;
h2
{
color
:
$base-font-color
;
display
:
table-cell
;
font-family
:
$sans-serif
;
font-size
:
1
em
;
font-size
:
0
.8
em
;
font-weight
:
700
;
height
:
48px
;
letter-spacing
:
0px
;
margin-bottom
:
0px
;
overflow
:
hidden
;
padding-top
:
9px
;
padding-top
:
0px
;
text-shadow
:
0
1px
rgba
(
255
,
255
,
255
,
0
.6
);
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
text-transform
:
none
;
vertical-align
:
middle
;
.course-number
{
font-weight
:
700
;
text-transform
:
none
;
}
}
}
.info-link
{
border-left
:
1px
solid
rgba
(
150
,
150
,
150
,
0
.5
);
@include
box-sizing
(
border-box
);
color
:
$base-font-color
;
display
:
block
;
display
:
inline-
block
;
font
:
bold
1
.6em
/
1
.2em
$sans-serif
;
height
:
100%
;
opacity
:
0
.6
;
...
...
@@ -102,19 +111,20 @@
text-shadow
:
0
1px
rgba
(
255
,
255
,
255
,
0
.6
);
top
:
0px
;
width
:
60px
;
vertical-align
:
middle
;
}
&
:hover
{
@include
background-image
(
linear-gradient
(
-90deg
,
rgba
(
255
,
255
,
255
,
1
)
,
rgba
(
255
,
255
,
255
,
0
.8
)));
text-decoration
:
none
;
h2
,
.info-link
{
.info-link
{
color
:
$blue
;
opacity
:
1
;
}
h2
{
text-decoration
:
underlin
e
;
color
:
$blu
e
;
}
}
}
...
...
lms/templates/course.html
View file @
c25306f3
...
...
@@ -8,9 +8,9 @@
<article
id=
"${course.id}"
class=
"course"
>
<div
class=
"inner-wrapper"
>
<header
class=
"course-preview"
>
<a
href=
"${reverse('about_course', args=[course.id])}"
>
<a
href=
"${reverse('about_course', args=[course.id])}"
>
<hgroup>
<h2>
${course.number}
${get_course_about_section(course, 'title')}
</h2>
<h2>
<span
class=
"course-number"
>
${course.number}
</span>
${get_course_about_section(course, 'title')}
</h2>
</hgroup>
<div
class=
"info-link"
>
➔
</div>
</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