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
b9ed7582
Commit
b9ed7582
authored
May 20, 2015
by
Marco Morales
Committed by
Davorin Sego
Jul 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial syles cleanup and changes for course discovery on openedx
parent
36e31e10
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
239 additions
and
180 deletions
+239
-180
cms/envs/common.py
+1
-1
common/djangoapps/student/views.py
+1
-1
lms/djangoapps/courseware/features/homepage.feature
+2
-2
lms/envs/common.py
+3
-3
lms/static/sass/_build-lms.scss
+1
-1
lms/static/sass/multicourse/_courses.scss
+206
-137
lms/static/sass/multicourse/_home.scss
+7
-11
lms/static/sass/search/_search.scss
+0
-1
lms/static/sass/shared/_course_object.scss
+1
-1
lms/static/sass/shared/_header.scss
+1
-1
lms/static/sass/views/_homepage.scss
+3
-2
lms/templates/courseware/courses.html
+3
-15
lms/templates/discovery/search_facets_list.underscore
+1
-1
lms/templates/discovery/search_facets_section.underscore
+1
-1
lms/templates/navigation.html
+8
-2
No files found.
cms/envs/common.py
View file @
b9ed7582
...
@@ -150,7 +150,7 @@ FEATURES = {
...
@@ -150,7 +150,7 @@ FEATURES = {
'LICENSING'
:
False
,
'LICENSING'
:
False
,
# Enable the courseware search functionality
# Enable the courseware search functionality
'ENABLE_COURSEWARE_INDEX'
:
Fals
e
,
'ENABLE_COURSEWARE_INDEX'
:
Tru
e
,
# Enable content libraries search functionality
# Enable content libraries search functionality
'ENABLE_LIBRARY_INDEX'
:
False
,
'ENABLE_LIBRARY_INDEX'
:
False
,
...
...
common/djangoapps/student/views.py
View file @
b9ed7582
...
@@ -972,7 +972,7 @@ def login_user(request, error=""): # pylint: disable-msg=too-many-statements,un
...
@@ -972,7 +972,7 @@ def login_user(request, error=""): # pylint: disable-msg=too-many-statements,un
platform_name
=
settings
.
PLATFORM_NAME
,
provider_name
=
requested_provider
.
name
platform_name
=
settings
.
PLATFORM_NAME
,
provider_name
=
requested_provider
.
name
)
)
+
"<br/><br/>"
+
+
"<br/><br/>"
+
_
(
"If you don't have an {platform_name} account yet, click <strong>Register
Now
</strong> at the top of the page."
)
.
format
(
_
(
"If you don't have an {platform_name} account yet, click <strong>Register</strong> at the top of the page."
)
.
format
(
platform_name
=
settings
.
PLATFORM_NAME
platform_name
=
settings
.
PLATFORM_NAME
),
),
content_type
=
"text/plain"
,
content_type
=
"text/plain"
,
...
...
lms/djangoapps/courseware/features/homepage.feature
View file @
b9ed7582
...
@@ -8,9 +8,9 @@ Feature: LMS.Homepage for web users
...
@@ -8,9 +8,9 @@ Feature: LMS.Homepage for web users
Given
I visit the homepage
Given
I visit the homepage
Then
I should see a link called
"Sign in"
Then
I should see a link called
"Sign in"
Scenario
:
User can see the "Register
Now
" button
Scenario
:
User can see the "Register" button
Given
I visit the homepage
Given
I visit the homepage
Then
I should see a link called
"Register
Now
"
Then
I should see a link called
"Register"
Scenario Outline
:
User can see main parts of the page
Scenario Outline
:
User can see main parts of the page
Given
I visit the homepage
Given
I visit the homepage
...
...
lms/envs/common.py
View file @
b9ed7582
...
@@ -359,10 +359,10 @@ FEATURES = {
...
@@ -359,10 +359,10 @@ FEATURES = {
'MODE_CREATION_FOR_TESTING'
:
False
,
'MODE_CREATION_FOR_TESTING'
:
False
,
# Courseware search feature
# Courseware search feature
'ENABLE_COURSEWARE_SEARCH'
:
Fals
e
,
'ENABLE_COURSEWARE_SEARCH'
:
Tru
e
,
# Dashboard search feature
# Dashboard search feature
'ENABLE_DASHBOARD_SEARCH'
:
Fals
e
,
'ENABLE_DASHBOARD_SEARCH'
:
Tru
e
,
# log all information from cybersource callbacks
# log all information from cybersource callbacks
'LOG_POSTPAY_CALLBACKS'
:
True
,
'LOG_POSTPAY_CALLBACKS'
:
True
,
...
@@ -389,7 +389,7 @@ FEATURES = {
...
@@ -389,7 +389,7 @@ FEATURES = {
},
},
# Course discovery feature
# Course discovery feature
'ENABLE_COURSE_DISCOVERY'
:
Fals
e
,
'ENABLE_COURSE_DISCOVERY'
:
Tru
e
,
# Software secure fake page feature flag
# Software secure fake page feature flag
'ENABLE_SOFTWARE_SECURE_FAKE'
:
False
,
'ENABLE_SOFTWARE_SECURE_FAKE'
:
False
,
...
...
lms/static/sass/_build-lms.scss
View file @
b9ed7582
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
@import
'discussion/utilities/shame'
;
@import
'discussion/utilities/shame'
;
// search
// search
@import
'search/
_
search'
;
@import
'search/search'
;
// news
// news
@import
'news'
;
@import
'news'
;
...
...
lms/static/sass/multicourse/_courses.scss
View file @
b9ed7582
// lms - views - course discovery
// ====================
// Table of Contents
// * +Imports - Search
// * +Variables - Search
// * +Layout - Courses Container
// * +Header - Course Search
// * +Search Input
// * +Filters - Search
// * +Facets - Sidebar - Search
// * +All Other Styles
// +Imports - Search
// ====================
@import
'../base/grid-settings'
;
@import
'../base/grid-settings'
;
@import
'neat/neat'
;
// lib - Neat
@import
'neat/neat'
;
// lib - Neat
// +Variables - Search
// ====================
$facet-text-color
:
#3d3e3f
;
$facet-text-color
:
#3d3e3f
;
$facet-background-color
:
#007db8
;
$facet-background-color
:
#007db8
;
// +Layout - Courses Container
// ====================
.find-courses
,
.university-profile
{
.find-courses
,
.university-profile
{
background
:
$course-profile-bg
;
padding-bottom
:
(
$baseline
*
3
);
.discovery-button
:not
(
:disabled
)
{
.discovery-button
:not
(
:disabled
)
{
@extend
%t-action2
;
@extend
%t-action2
;
...
@@ -27,17 +45,7 @@ $facet-background-color: #007db8;
...
@@ -27,17 +45,7 @@ $facet-background-color: #007db8;
}
}
.courses-container
{
.courses-container
{
padding
:
(
$baseline
*
3
)
(
$baseline
/
2
)
0
(
$baseline
/
2
);
#discovery-form
{
*
{
display
:inline
;
}
#discovery-message
,
#loading-indicator
{
@include
line-height
(
37
.84
);
}
}
.courses
{
.courses
{
@include
rtl
()
{
$layout-direction
:
"RTL"
;
}
@include
rtl
()
{
$layout-direction
:
"RTL"
;
}
...
@@ -117,6 +125,11 @@ $facet-background-color: #007db8;
...
@@ -117,6 +125,11 @@ $facet-background-color: #007db8;
}
}
}
}
}
}
}
// +Hero - Home Header
// ====================
.find-courses
,
.university-profile
{
header
.search
{
header
.search
{
background
:
$course-profile-bg
;
background
:
$course-profile-bg
;
...
@@ -197,18 +210,34 @@ $facet-background-color: #007db8;
...
@@ -197,18 +210,34 @@ $facet-background-color: #007db8;
}
}
}
}
}
}
}
section
.message
{
// +Search Input
border-top
:
1px
solid
$border-color-2
;
// ====================
.find-courses
{
.wrapper-search-context
{
@include
clearfix
();
@include
clearfix
();
margin-top
:
$baseline
;
padding-top
:
(
$baseline
*
3
);
@include
columns
(
2
20px
);
}
.search-status-label
{
@extend
%t-title4
;
@include
line-height
(
50
);
display
:
inline-block
;
width
:
flex-grid
(
9
);
}
.wrapper-search-input
{
display
:
inline-block
;
width
:
flex-grid
(
3
);
vertical-align
:
top
;
margin-left
:
24px
;
}
}
.discovery-input
{
.discovery-input
{
@extend
%ui-depth1
;
@extend
%ui-depth1
;
@extend
%t-
icon4
;
@extend
%t-
copy-sub1
;
@extend
%t-demi-strong
;
@extend
%t-demi-strong
;
@include
border-radius
(
0
);
@include
border-radius
(
0
);
@include
border-top-left-radius
(
3px
);
@include
border-top-left-radius
(
3px
);
...
@@ -246,12 +275,17 @@ $facet-background-color: #007db8;
...
@@ -246,12 +275,17 @@ $facet-background-color: #007db8;
background
:
$m-blue-l1
;
background
:
$m-blue-l1
;
}
}
}
}
}
// +Filters - Search
// ====================
.find-courses
{
.filters
{
.filters
{
@include
clearfix
();
@include
clearfix
();
margin-top
:
(
$baseline
/
2
);
margin-top
:
(
$baseline
/
2
);
border-top
:
1
px
solid
$courseware-button-border-color
;
border-top
:
2
px
solid
$courseware-button-border-color
;
border-bottom
:
1
px
solid
$courseware-button-border-color
;
border-bottom
:
2
px
solid
$courseware-button-border-color
;
width
:
100%
;
width
:
100%
;
height
:
auto
;
height
:
auto
;
max-height
:
(
$baseline
*
10
);
max-height
:
(
$baseline
*
10
);
...
@@ -285,7 +319,7 @@ $facet-background-color: #007db8;
...
@@ -285,7 +319,7 @@ $facet-background-color: #007db8;
@include
line-height
(
29
.73
);
@include
line-height
(
29
.73
);
@extend
%t-icon5
;
@extend
%t-icon5
;
@extend
%t-strong
;
@extend
%t-strong
;
margin
:
(
$baseline
/
2
)
0
;
margin
:
(
$baseline
/
2
);
width
:
auto
;
width
:
auto
;
text-align
:
center
;
text-align
:
center
;
color
:
$m-blue-d1
;
color
:
$m-blue-d1
;
...
@@ -296,139 +330,156 @@ $facet-background-color: #007db8;
...
@@ -296,139 +330,156 @@ $facet-background-color: #007db8;
}
}
}
}
}
// +Facets - Sidebar - Search
// ====================
.find-courses
.search-facets
{
@include
fill-parent
();
@include
omega
();
@include
box-sizing
(
border-box
);
@extend
%ui-depth1
;
position
:
relative
;
margin
:
(
$baseline
*
2
)
0
(
$baseline
*
3
.5
)
0
;
box-shadow
:
1px
2px
5px
$black-t0
;
border-top
:
1px
solid
$black
;
border-bottom
:
2px
solid
$black
;
background-color
:
$white
;
max-height
:
(
$baseline
*
100
);
@include
media
(
$bp-tiny
)
{
@include
span-columns
(
4
);
}
.search-facets
{
@include
media
(
$bp-small
)
{
@include
fill-parent
();
@include
span-columns
(
3
);
@include
omega
();
}
@include
box-sizing
(
border-box
);
@extend
%ui-depth1
;
position
:
relative
;
margin
:
(
$baseline
*
2
)
0
(
$baseline
*
3
.5
)
0
;
box-shadow
:
1px
2px
5px
$black-t0
;
border-top
:
1px
solid
$black
;
border-bottom
:
2px
solid
$black
;
background-color
:
$white
;
max-height
:
(
$baseline
*
100
);
@include
media
(
$bp-tiny
)
{
@include
media
(
$bp-medium
)
{
@include
span-columns
(
4
);
@include
span-columns
(
4
);
}
}
@include
media
(
$bp-small
)
{
@include
media
(
$bp-large
)
{
@include
span-columns
(
3
);
@include
span-columns
(
4
);
}
}
@include
media
(
$bp-medium
)
{
@include
media
(
$bp-huge
)
{
@include
span-columns
(
4
);
@include
span-columns
(
3
);
}
}
@include
media
(
$bp-large
)
{
&
.phone-menu
{
@include
span-columns
(
4
);
border
:
medium
none
;
}
padding
:
0
;
overflow
:
visible
;
}
@include
media
(
$bp-huge
)
{
&
:before
{
@include
span-columns
(
3
);
@include
right
(
0
);
}
position
:
absolute
;
top
:
(
-
$baseline
*
0
.15
);
opacity
:
0
;
background-color
:
$white
;
padding
:
(
$baseline
*
2
)
(
$baseline
*
0
.75
)
0
(
$baseline
*
0
.75
);
width
:
(
$baseline
*
2
.5
);
height
:
(
$baseline
/
4
);
content
:
""
;
}
&
.phone-menu
{
.header-search-facets
,
section
{
border
:
medium
none
;
padding
:
(
$baseline
/
2
);
padding
:
0
;
margin
:
0
;
overflow
:
visible
;
color
:
$facet-text-color
;
}
text-transform
:
none
;
}
.header-search-facets
{
@extend
%t-title6
;
}
&
:before
{
section
{
@include
right
(
0
);
@extend
%t-title6
;
position
:
absolute
;
margin
:
0
(
$baseline
/
2
);
top
:
(
-
$baseline
*
0
.15
);
}
opacity
:
0
;
background-color
:
$white
;
padding
:
(
$baseline
*
2
)
(
$baseline
*
0
.75
)
0
(
$baseline
*
0
.75
);
width
:
(
$baseline
*
2
.5
);
height
:
(
$baseline
/
4
);
content
:
""
;
}
h2
,
.header-facet
{
section
{
@extend
%t-title6
;
@extend
%t-icon5
;
margin
:
0
(
$baseline
/
2
)
(
$baseline
/
2
)
(
$baseline
/
2
);
@extend
%t-strong
;
color
:
$facet-text-color
;
margin
:
0
(
$baseline
/
2
);
font-family
:
$sans-serif
;
border
:
medium
none
;
}
padding
:
(
$baseline
/
2
);
color
:
$facet-text-color
;
font-family
:
$sans-serif
;
text-transform
:
none
;
}
h3
{
section
{
@extend
%t-icon6
;
margin
:
0
;
@extend
%t-strong
;
padding
:
(
$baseline
/
2
)
0
;
margin
:
0
(
$baseline
/
2
)
(
$baseline
/
2
)
(
$baseline
/
2
);
}
color
:
$facet-text-color
;
font-family
:
$sans-serif
;
}
section
{
a
{
margin
:
0
;
@include
float
(
left
);
padding
:
(
$baseline
/
2
)
0
;
@include
box-sizing
(
border-box
);
}
@include
line-height
(
18
.92
);
@include
transition
(
all
$tmg-f2
ease-out
0s
);
opacity
:
1
;
padding
:
0
(
$baseline
*
0
.6
);
width
:
100%
;
overflow
:
hidden
;
text-decoration
:
none
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
color
:
$facet-text-color
;
.facet-option
{
//STATE: hover, visited
@include
float
(
left
);
&
:hover
,
@include
box-sizing
(
border-box
);
&
:visited
{
@include
line-height
(
18
.92
);
@include
transition
(
all
$tmg-f2
ease-out
0s
);
@extend
%t-action3
;
opacity
:
1
;
width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
color
:
$facet-text-color
;
color
:
$facet-text-color
;
text-decoration
:
none
;
}
}
//STATE: hover, visited
.facet-option
{
&
:hover
,
@include
float
(
left
);
&
:visited
{
@include
box-sizing
(
border-box
);
color
:
$facet-text-color
;
@include
line-height
(
18
.92
);
text-decoration
:
none
;
@include
transition
(
all
$tmg-f2
ease-out
0s
);
}
@extend
%t-action3
;
opacity
:
1
;
width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
color
:
$facet-text-color
;
&
.collapse
{
max-height
:
(
$baseline
*
14
);
}
}
ul
{
li
{
margin
:
0
;
@include
clearfix
();
@include
line-height
(
18
.92
);
@extend
%t-icon6
;
position
:
relative
;
clear
:
both
;
border-top
:
1px
solid
$white
;
padding
:
0
;
padding
:
0
;
height
:
(
$baseline
*
1
.5
);
overflow
:
hidden
;
overflow
:
hidden
;
list-style
:
outside
none
none
;
&
.collapse
{
.count
{
max-height
:
(
$baseline
*
14
);
@include
right
(
$baseline
*
0
.6
);
@include
box-sizing
(
border-box
);
@include
transition
(
all
0
.2s
ease-out
);
@include
line-height
(
18
.92
);
position
:
absolute
;
}
}
li
{
//STATE: hover
@include
clearfix
();
&
:hover
{
@include
line-height
(
18
.92
);
background
:
$facet-background-color
;
@extend
%t-icon6
;
color
:
$white
;
position
:
relative
;
text-decoration
:
none
;
clear
:
both
;
border-top
:
1px
solid
$white
;
padding
:
0
;
height
:
(
$baseline
*
1
.5
);
overflow
:
hidden
;
.count
{
@include
right
(
$baseline
*
0
.6
);
@include
box-sizing
(
border-box
);
@include
transition
(
all
0
.2s
ease-out
);
@include
line-height
(
18
.92
);
position
:
absolute
;
}
//STATE: hover
.count
,
&
:hover
{
a
{
background
:
$facet-background-color
;
color
:
$white
;
color
:
$white
;
text-decoration
:
none
;
.count
,
.count
,
.facet-option
{
.facet-option
{
...
@@ -437,13 +488,14 @@ $facet-background-color: #007db8;
...
@@ -437,13 +488,14 @@ $facet-background-color: #007db8;
}
}
}
}
}
}
}
.search-facets-lists
section
{
.search-facets-lists
section
{
border-top
:
1px
solid
$courseware-button-border-color
;
border-top
:
1px
solid
$courseware-button-border-color
;
}
}
.toggle
{
.toggle
{
@include
clearfix
();
@include
clearfix
();
button
{
button
{
@extend
%t-icon6
;
@extend
%t-icon6
;
...
@@ -453,3 +505,20 @@ $facet-background-color: #007db8;
...
@@ -453,3 +505,20 @@ $facet-background-color: #007db8;
}
}
}
}
}
}
// +All Other Styles
// ====================
.find-courses
,
.university-profile
{
background
:
$course-profile-bg
;
padding-bottom
:
(
$baseline
*
3
);
section
.message
{
@include
columns
(
2
20px
);
@include
clearfix
();
border-top
:
1px
solid
$border-color-2
;
margin-top
:
$baseline
;
padding-top
:
(
$baseline
*
3
);
}
}
lms/static/sass/multicourse/_home.scss
View file @
b9ed7582
@import
'../base/grid-settings'
;
@import
'../base/grid-settings'
;
@import
'neat/neat'
;
// lib - Neat
@import
'neat/neat'
;
// lib - Neat
$title-left-margin
:
grid-width
(
2
)
+
$gw-gutter
;
$title-left-margin
:
grid-width
(
3
)
;
$button-size
:
(
$baseline
*
2
.75
);
$button-size
:
(
$baseline
*
2
.75
);
$course-search-input-height
:
(
$button-size
);
$course-search-input-height
:
(
$button-size
);
...
@@ -15,12 +15,10 @@ $course-search-input-height: ($button-size);
...
@@ -15,12 +15,10 @@ $course-search-input-height: ($button-size);
>
header
{
>
header
{
@include
linear-gradient
(
$homepage__header--gradient__color--alpha
,
$homepage__header--gradient__color--bravo
);
@include
linear-gradient
(
$homepage__header--gradient__color--alpha
,
$homepage__header--gradient__color--bravo
);
@include
clearfix
();
background-size
:
cover
;
background-size
:
cover
;
background-image
:
$homepage-bg-image
;
background-image
:
$homepage-bg-image
;
border-bottom
:
1px
solid
$border-color-3
;
box-shadow
:
0
1px
0
0
$course-header-bg
,
inset
0
-1px
5px
0
$shadow-l1
;
box-shadow
:
0
1px
0
0
$course-header-bg
,
inset
0
-1px
5px
0
$shadow-l1
;
@include
clearfix
();
height
:
460px
;
overflow
:
hidden
;
overflow
:
hidden
;
margin-top
:
$header_image_margin
;
margin-top
:
$header_image_margin
;
padding
:
0
;
padding
:
0
;
...
@@ -30,8 +28,8 @@ $course-search-input-height: ($button-size);
...
@@ -30,8 +28,8 @@ $course-search-input-height: ($button-size);
@include
clearfix
();
@include
clearfix
();
@extend
.animation-home-header-pop-up
;
@extend
.animation-home-header-pop-up
;
position
:
relative
;
position
:
relative
;
margin
:
0
auto
(
$baseline
)
;
margin
:
0
auto
;
padding
:
(
$baseline
*
5
)
(
$baseline
/
2
);
padding
:
(
$baseline
*
3
);
max-width
:
(
$baseline
*
60
);
max-width
:
(
$baseline
*
60
);
}
}
...
@@ -41,8 +39,7 @@ $course-search-input-height: ($button-size);
...
@@ -41,8 +39,7 @@ $course-search-input-height: ($button-size);
@include
box-sizing
(
border-box
);
@include
box-sizing
(
border-box
);
@include
transition
(
all
0
.2s
linear
0s
);
@include
transition
(
all
0
.2s
linear
0s
);
position
:
relative
;
position
:
relative
;
border
:
1px
solid
$border-color-3
;
box-shadow
:
0
4px
5px
0
rgba
(
0
,
0
,
0
,
0
.5
);
box-shadow
:
0
4px
25px
0
rgba
(
0
,
0
,
0
,
0
.5
);
background
:
$white
;
background
:
$white
;
padding
:
(
$baseline
)
(
$baseline
*
1
.5
);
padding
:
(
$baseline
)
(
$baseline
*
1
.5
);
min-height
:
(
$baseline
*
6
);
min-height
:
(
$baseline
*
6
);
...
@@ -105,15 +102,14 @@ $course-search-input-height: ($button-size);
...
@@ -105,15 +102,14 @@ $course-search-input-height: ($button-size);
@include
padding-right
(
$button-size
);
@include
padding-right
(
$button-size
);
@include
padding-left
(
$baseline
*
0
.5
);
@include
padding-left
(
$baseline
*
0
.5
);
@extend
%ui-depth1
;
@extend
%ui-depth1
;
@extend
%t-icon4
;
@extend
%t-title5
;
@extend
%t-demi-strong
;
border
:
2px
solid
$gray-l3
;
border
:
2px
solid
$gray-l3
;
border-radius
:
3px
;
border-radius
:
3px
;
box-shadow
:
none
;
box-shadow
:
none
;
width
:
100%
;
width
:
100%
;
height
:
$course-search-input-height
;
height
:
$course-search-input-height
;
color
:
$black
;
color
:
$black
;
font-style
:
$sans-serif
;
font-style
:
normal
;
// STATE: focus
// STATE: focus
&
:focus
{
&
:focus
{
...
...
lms/static/sass/search/_search.scss
View file @
b9ed7582
...
@@ -123,7 +123,6 @@
...
@@ -123,7 +123,6 @@
}
}
.courseware-search-bar
{
.courseware-search-bar
{
box-shadow
:
0
1px
0
$white
inset
,
0
-1px
0
$shadow-l1
inset
;
box-shadow
:
0
1px
0
$white
inset
,
0
-1px
0
$shadow-l1
inset
;
}
}
...
...
lms/static/sass/shared/_course_object.scss
View file @
b9ed7582
...
@@ -226,7 +226,7 @@
...
@@ -226,7 +226,7 @@
&
:hover
,
&
:focus
{
&
:hover
,
&
:focus
{
background
:
$course-profile-bg
;
background
:
$course-profile-bg
;
border-color
:
$border-color-1
;
border-color
:
$border-color-1
;
box-shadow
:
0
1px
16
px
0
rgba
(
$shadow-color
,
0
.4
);
box-shadow
:
0
1px
4
px
0
rgba
(
$shadow-color
,
0
.4
);
.info
{
.info
{
top
:
-150px
;
top
:
-150px
;
...
...
lms/static/sass/shared/_header.scss
View file @
b9ed7582
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
header
.global
{
header
.global
{
@extend
%ui-depth1
;
@extend
%ui-depth1
;
border-bottom
:
1px
solid
$m-gray
;
border-bottom
:
4px
solid
$courseware-border-bottom-color
;
box-shadow
:
0
1px
5px
0
$shadow-l1
;
box-shadow
:
0
1px
5px
0
$shadow-l1
;
background
:
$header-bg
;
background
:
$header-bg
;
position
:
relative
;
position
:
relative
;
...
...
lms/static/sass/views/_homepage.scss
View file @
b9ed7582
// lms - views - homepage view
// lms - views - homepage view
// ====================
// ====================
// TO-DO: combine this with _home.scss as a cleanup story
$learn-more-horizontal-position
:
calc
(
50%
-
100px
);
// calculate the left position for "LEARN MORE" content
$learn-more-horizontal-position
:
calc
(
50%
-
100px
);
// calculate the left position for "LEARN MORE" content
.courses-container
{
.courses-container
{
@include
outer-container
;
@include
outer-container
;
padding
:
(
$baseline
*
0
.9
)
(
$baseline
/
2
)
0
(
$baseline
/
2
);
.courses
{
.courses
{
@include
row
();
@include
row
();
...
@@ -75,11 +75,12 @@ $learn-more-horizontal-position: calc(50% - 100px); // calculate the left positi
...
@@ -75,11 +75,12 @@ $learn-more-horizontal-position: calc(50% - 100px); // calculate the left positi
.course-organization
,
.course-code
,
.course-date
{
.course-organization
,
.course-code
,
.course-date
{
@extend
%t-icon6
;
@extend
%t-icon6
;
color
:
$
black
;
color
:
$
gray-d2
;
}
}
.course-organization
,
.course-code
,
.course-title
{
.course-organization
,
.course-code
,
.course-title
{
display
:
block
;
display
:
block
;
text-transform
:
none
;
}
}
.course-organization
{
.course-organization
{
...
...
lms/templates/courseware/courses.html
View file @
b9ed7582
...
@@ -56,29 +56,17 @@
...
@@ -56,29 +56,17 @@
%
>
%
>
<section
class=
"find-courses"
>
<section
class=
"find-courses"
>
<header
class=
"search"
>
<div
class=
"inner-wrapper main-search"
>
<hgroup>
<div
class=
"logo"
>
<img
src=
"${logo_file}"
alt=
"${logo_alt_text}"
/>
</div>
<h2>
${course_index_overlay_text}
</h2>
</hgroup>
</div>
</header>
<section
class=
"courses-container"
>
<section
class=
"courses-container"
>
% if course_discovery_enabled:
% if course_discovery_enabled:
<div
id=
"discovery-form"
role=
"search"
aria-label=
"course"
>
<div
id=
"discovery-form"
role=
"search"
aria-label=
"course"
class=
"wrapper-search-context"
>
<form>
<form
class=
"wrapper-search-input"
>
<input
class=
"discovery-input"
placeholder=
"${_('Search for a course')}"
type=
"text"
/>
<!-- removes spacing
<input
class=
"discovery-input"
placeholder=
"${_('Search for a course')}"
type=
"text"
/>
<!-- removes spacing
-->
<button
type=
"submit"
class=
"button postfix discovery-submit"
aria-label=
"${_('Search')}"
>
-->
<button
type=
"submit"
class=
"button postfix discovery-submit"
aria-label=
"${_('Search')}"
>
<i
class=
"icon fa fa-search"
aria-hidden=
"true"
></i>
<i
class=
"icon fa fa-search"
aria-hidden=
"true"
></i>
</button>
</button>
</form>
</form>
<div
id=
"discovery-message"
></div>
<div
id=
"discovery-message"
class=
"search-status-label"
></div>
<div
aria-live=
"polite"
aria-relevant=
"all"
>
<div
aria-live=
"polite"
aria-relevant=
"all"
>
<div
id=
"loading-indicator"
class=
"hidden"
>
<div
id=
"loading-indicator"
class=
"hidden"
>
<i
class=
"icon fa fa-spinner fa-spin"
></i>
${_('Loading')}
<i
class=
"icon fa fa-spinner fa-spin"
></i>
${_('Loading')}
...
...
lms/templates/discovery/search_facets_list.underscore
View file @
b9ed7582
<h2>
<h2
class="header-search-facets"
>
<%= gettext('Refine your search') %>
<%= gettext('Refine your search') %>
</h2>
</h2>
<section class="search-facets-lists">
<section class="search-facets-lists">
...
...
lms/templates/discovery/search_facets_section.underscore
View file @
b9ed7582
<h3>
<h3
class="header-facet"
>
<%= displayName %>
<%= displayName %>
</h3>
</h3>
<ul data-facet="<%= name %>" class="facet-list collapse">
<ul data-facet="<%= name %>" class="facet-list collapse">
...
...
lms/templates/navigation.html
View file @
b9ed7582
...
@@ -124,15 +124,21 @@ site_status_msg = get_site_status_msg(course_id)
...
@@ -124,15 +124,21 @@ site_status_msg = get_site_status_msg(course_id)
% endif
% endif
</
%
block>
</
%
block>
% if not settings.FEATURES['DISABLE_LOGIN_BUTTON']:
% if not settings.FEATURES['DISABLE_LOGIN_BUTTON']:
% if settings.FEATURES.get('ENABLE_COURSE_DISCOVERY'):
<li
class=
"nav-global-05"
>
<a
class=
"cta cta-discovery"
href=
"/courses"
>
${_("Find Courses")}
</a>
</li>
%endif
% if course and settings.FEATURES.get('RESTRICT_ENROLL_BY_REG_METHOD') and course.enrollment_domain:
% if course and settings.FEATURES.get('RESTRICT_ENROLL_BY_REG_METHOD') and course.enrollment_domain:
<li
class=
"nav-global-04"
>
<li
class=
"nav-global-04"
>
<a
class=
"cta cta-register"
href=
"${reverse('course-specific-register', args=[course.id.to_deprecated_string()])}"
>
${_("Register
Now
")}
</a>
<a
class=
"cta cta-register"
href=
"${reverse('course-specific-register', args=[course.id.to_deprecated_string()])}"
>
${_("Register")}
</a>
</li>
</li>
% else:
% else:
<li
class=
"nav-global-04"
>
<li
class=
"nav-global-04"
>
<a
class=
"cta cta-register"
href=
"/register${login_query()}"
>
${_("Register
Now
")}
</a>
<a
class=
"cta cta-register"
href=
"/register${login_query()}"
>
${_("Register")}
</a>
</li>
</li>
% endif
% endif
% endif
% endif
</ol>
</ol>
...
...
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