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
17d07271
Commit
17d07271
authored
Aug 07, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the sidebar links more standard, and remove some of their styling
parent
6abc2d73
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
122 additions
and
100 deletions
+122
-100
lms/static/images/ui-icons_222222_256x240.png
+0
-0
lms/static/sass/course/_info.scss
+37
-23
lms/static/sass/course/_textbook.scss
+28
-26
lms/static/sass/course/base/_extends.scss
+30
-9
lms/static/sass/course/courseware/_sidebar.scss
+21
-13
lms/static/sass/course/wiki/_sidebar.scss
+6
-29
No files found.
lms/static/images/ui-icons_222222_256x240.png
0 → 100755
View file @
17d07271
4.27 KB
lms/static/sass/course/_info.scss
View file @
17d07271
...
...
@@ -80,38 +80,54 @@ div.info-wrapper {
}
ol
{
background
:
none
;
list-style
:
none
;
padding-left
:
0
;
margin
:
0
;
li
{
@extend
.clearfix
;
background
:
none
;
border-bottom
:
1px
solid
$border-color
;
@include
box-sizing
(
border-box
);
padding
:
em
(
7
)
lh
(
.75
);
position
:
relative
;
font-size
:
1em
;
a
{
display
:
block
;
padding-left
:
lh
(
.5
);
padding-right
:
0
;
}
&
.expandable
,
&
.collapsable
{
h4
{
font-weight
:
normal
;
font-size
:
1em
;
padding-left
:
18px
;
padding
:
lh
(
.25
)
0
lh
(
.25
)
lh
(
1
.5
);
}
}
&
.multiple
{
padding
:
lh
(
.5
)
0
lh
(
.5
)
lh
(
.5
);
a
{
@include
inline-block
;
padding
:
0
;
&
:hover
{
background
:
transparent
;
}
}
}
ul
{
background
:
none
;
margin
:
em
(
7
)
(
-
(
lh
(
.75
)))
0
;
margin
:
0
;
li
{
border-bottom
:
0
;
border-top
:
1px
solid
$border-color
;
@include
box-shadow
(
inset
0
1px
0
#eee
);
font-size
:
1em
;
padding
:
lh
(
.5
)
0
lh
(
.5
)
lh
(
.5
);
a
{
@include
inline-block
;
padding
:
0
;
&
:hover
{
background
:
transparent
;
}
}
}
}
...
...
@@ -119,23 +135,26 @@ div.info-wrapper {
background-image
:
url('../images/treeview-default.gif')
;
display
:
block
;
height
:
100%
;
left
:
lh
(
.75
);
margin-left
:
0
;
max-height
:
2
0px
;
max-height
:
3
0px
;
position
:
absolute
;
width
:
100%
;
&
:hover
{
opacity
:
0
.6
;
filter
:
alpha
(
opacity
=
60
);
+
h4
{
background-color
:
#e3e3e3
;
}
}
&
.expandable-hitarea
{
background-position
:
-
80px
1
px
;
background-position
:
-
72px
7
px
;
}
&
.collapsable-hitarea
{
background-position
:
-
64px
-21
px
;
background-position
:
-
55px
-15
px
;
}
}
...
...
@@ -170,11 +189,6 @@ div.info-wrapper {
}
}
}
a
{
@include
inline-block
();
line-height
:
lh
();
}
}
}
}
...
...
lms/static/sass/course/_textbook.scss
View file @
17d07271
...
...
@@ -7,19 +7,20 @@ div.book-wrapper {
@include
box-sizing
(
border-box
);
ul
#booknav
{
font-size
:
$body-font-size
;
a
{
color
:
#000
;
&
:hover
{
color
:
#666
;
}
}
font-size
:
em
(
14
);
li
{
background
:
none
;
padding-left
:
30px
;
border-bottom
:
0
;
padding-left
:
lh
();
a
{
padding
:
0
;
&
:hover
{
background-color
:
transparent
;
}
}
div
.hitarea
{
background-image
:
url('../images/treeview-default.gif')
;
...
...
@@ -35,6 +36,13 @@ div.book-wrapper {
ul
{
background
:
none
;
margin-top
:
lh
(
.25
);
border-top
:
1px
solid
$border-color
;
padding-top
:
lh
(
.25
);
li
{
padding-bottom
:
lh
(
.25
);
}
}
}
...
...
@@ -47,8 +55,8 @@ div.book-wrapper {
section
.book
{
@extend
.content
;
padding-right
:
0
;
padding-bottom
:
0
;
padding-right
:
0
;
padding-top
:
0
;
nav
{
...
...
@@ -68,28 +76,22 @@ div.book-wrapper {
width
:
flex-grid
(
2
,
8
);
a
{
display
:
table
;
@include
box-sizing
(
border-box
);
height
:
100%
;
width
:
100%
;
vertical-align
:
middle
;
@include
transition
;
background-color
:
rgba
(
#000
,
.7
);
background-repeat
:
no-repeat
;
background-position
:
center
;
background-repeat
:
no-repeat
;
@include
box-sizing
(
border-box
);
display
:
table
;
height
:
100%
;
opacity
:
0
;
filter
:
alpha
(
opacity
=
0
);
text-indent
:
-9999px
;
@include
transition
;
vertical-align
:
middle
;
width
:
100%
;
&
:hover
{
opacity
:
1
;
filter
:
alpha
(
opacity
=
100
);
&
.last
{
}
&
.next
{
}
}
}
...
...
@@ -120,9 +122,9 @@ div.book-wrapper {
}
section
.page
{
text-align
:
center
;
position
:
relative
;
border
:
1px
solid
$border-color
;
position
:
relative
;
text-align
:
center
;
img
{
max-width
:
100%
;
...
...
lms/static/sass/course/base/_extends.scss
View file @
17d07271
...
...
@@ -59,7 +59,7 @@ h1.top-header {
width
:
flex-grid
(
3
);
h1
,
h2
{
font-size
:
em
(
18
);
font-size
:
em
(
20
);
font-weight
:
100
;
letter-spacing
:
0
;
text-transform
:
none
;
...
...
@@ -88,22 +88,16 @@ h1.top-header {
font-weight
:
normal
;
margin
:
0
;
overflow
:
hidden
;
font-size
:
1em
;
a
{
color
:
lighten
(
$text-color
,
10%
);
display
:
block
;
font-size
:
$body-font-size
;
padding
:
7px
7px
7px
30px
;
text-decoration
:
none
;
@include
transition
();
}
// span.ui-icon {
// background-image: url(../images/ui-icons_454545_256x240.png);
// }
&
.active
{
border-bottom
:
1px
solid
#d3d3d3
;
@extend
.bottom-border
;
color
:
#000
;
font-weight
:
bold
;
...
...
@@ -113,6 +107,33 @@ h1.top-header {
}
}
ul
,
ol
{
list-style
:
none
;
margin
:
0
;
padding-left
:
0
;
li
{
@extend
.bottom-border
;
@extend
.clearfix
;
background
:
none
;
position
:
relative
;
padding
:
0
;
a
{
display
:
block
;
line-height
:
lh
();
font-size
:
1em
;
@include
box-sizing
(
border-box
);
padding
:
lh
(
.25
)
lh
(
.5
)
lh
(
.25
)
0
;
&
:hover
{
color
:
#666
;
background
:
#f6f6f6
;
}
}
}
}
header
#open_close_accordion
{
position
:
relative
;
...
...
lms/static/sass/course/courseware/_sidebar.scss
View file @
17d07271
...
...
@@ -11,10 +11,10 @@ section.course-index {
}
div
#accordion
{
h3
{
@include
border-radius
(
0
);
border-top
:
1px
solid
#e3e3e3
;
font-size
:
em
(
16
,
18
);
margin
:
0
;
overflow
:
hidden
;
...
...
@@ -23,8 +23,14 @@ section.course-index {
}
&
:hover
{
color
:
#666
;
background
:
#f6f6f6
;
text-decoration
:
none
;
}
&
.ui-state-hover
{
a
{
color
:
#666
;
}
}
&
.ui-accordion-header
{
...
...
@@ -33,8 +39,6 @@ section.course-index {
a
{
@include
border-radius
(
0
);
@include
box-shadow
(
none
);
color
:
lighten
(
$text-color
,
10%
);
font-size
:
$body-font-size
;
}
&
.ui-state-active
{
...
...
@@ -45,30 +49,35 @@ section.course-index {
background
:
none
;
}
}
span
.ui-icon
{
background-image
:
url("/static/images/ui-icons_222222_256x240.png")
;
opacity
:
.3
;
}
}
}
ul
.ui-accordion-content
{
@include
border-radius
(
0
);
background
:
transparent
;
border
:
none
;
font-size
:
12px
;
@include
border-radius
(
0
);
font-size
:
em
(
14
,
18
);
margin
:
0
;
padding
:
1em
1
.5em
;
li
{
border-bottom
:
0
;
@include
border-radius
(
0
);
margin-bottom
:
lh
(
.5
);
a
{
border
:
1px
solid
transparent
;
background
:
transparent
;
border
:
1px
solid
transparent
;
@include
border-radius
(
4px
);
position
:
relative
;
display
:
block
;
padding
:
5px
36px
5px
10px
;
position
:
relative
;
text-decoration
:
none
;
display
:
block
;
color
:
#666
;
p
{
font-weight
:
bold
;
...
...
@@ -84,16 +93,16 @@ section.course-index {
&
:after
{
background
:
transparent
;
border-top
:
1px
solid
rgb
(
180
,
180
,
180
);
border-right
:
1px
solid
rgb
(
180
,
180
,
180
);
border-top
:
1px
solid
rgb
(
180
,
180
,
180
);
content
:
""
;
display
:
block
;
height
:
12px
;
margin-top
:
-6px
;
opacity
:
0
;
position
:
absolute
;
top
:
50%
;
right
:
30px
;
top
:
50%
;
@include
transform
(
rotate
(
45deg
));
width
:
12px
;
}
...
...
@@ -142,7 +151,6 @@ section.course-index {
span
.subtitle
{
font-weight
:
normal
;
}
}
}
}
...
...
lms/static/sass/course/wiki/_sidebar.scss
View file @
17d07271
...
...
@@ -2,20 +2,8 @@ div#wiki_panel {
@extend
.sidebar
;
overflow
:
auto
;
h2
{
@extend
.bottom-border
;
margin
:
0
;
padding
:
lh
(
.5
)
lh
()
lh
(
.5
)
0
;
color
:
#000
;
}
ul
{
padding-left
:
0
;
margin
:
0
;
li
{
@extend
.bottom-border
;
&
.search
{
padding
:
10px
lh
()
10px
0
;
...
...
@@ -23,25 +11,14 @@ div#wiki_panel {
display
:
none
;
}
}
a
{
color
:
#666
;
font-size
:
14px
;
padding
:
7px
lh
()
7px
0
;
&
:hover
{
background
:
#efefef
;
}
}
}
}
form
{
input
[
type
=
"submit"
]
{
@extend
.light-button
;
text-transform
:
none
;
text-shadow
:
none
;
}
form
{
input
[
type
=
"submit"
]
{
@extend
.light-button
;
text-transform
:
none
;
text-shadow
:
none
;
}
}
...
...
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