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
e40c6b38
Commit
e40c6b38
authored
Aug 06, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reset some styles for the textbook
parent
29b85773
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
35 deletions
+33
-35
lms/static/sass/course/_info.scss
+3
-4
lms/static/sass/course/_textbook.scss
+30
-19
lms/static/sass/course/base/_extends.scss
+0
-1
lms/templates/staticbook.html
+0
-11
No files found.
lms/static/sass/course/_info.scss
View file @
e40c6b38
...
@@ -20,7 +20,7 @@ div.info-wrapper {
...
@@ -20,7 +20,7 @@ div.info-wrapper {
>
li
{
>
li
{
@extend
.clearfix
;
@extend
.clearfix
;
border-bottom
:
1px
solid
#e3e3e3
;
border-bottom
:
1px
solid
lighten
(
$border-color
,
10%
)
;
margin-bottom
:
lh
();
margin-bottom
:
lh
();
padding-bottom
:
lh
(
.5
);
padding-bottom
:
lh
(
.5
);
list-style-type
:
disk
;
list-style-type
:
disk
;
...
@@ -101,8 +101,7 @@ div.info-wrapper {
...
@@ -101,8 +101,7 @@ div.info-wrapper {
li
{
li
{
@extend
.clearfix
;
@extend
.clearfix
;
background
:
none
;
background
:
none
;
border-bottom
:
1px
solid
#d3d3d3
;
border-bottom
:
1px
solid
$border-color
;
@include
box-shadow
(
0
1px
0
#eee
);
@include
box-sizing
(
border-box
);
@include
box-sizing
(
border-box
);
padding
:
em
(
7
)
lh
(
.75
);
padding
:
em
(
7
)
lh
(
.75
);
position
:
relative
;
position
:
relative
;
...
@@ -123,7 +122,7 @@ div.info-wrapper {
...
@@ -123,7 +122,7 @@ div.info-wrapper {
li
{
li
{
border-bottom
:
0
;
border-bottom
:
0
;
border-top
:
1px
solid
#d3d3d3
;
border-top
:
1px
solid
$border-color
;
@include
box-shadow
(
inset
0
1px
0
#eee
);
@include
box-shadow
(
inset
0
1px
0
#eee
);
padding-left
:
lh
(
1
.5
);
padding-left
:
lh
(
1
.5
);
font-size
:
1em
;
font-size
:
1em
;
...
...
lms/static/sass/course/_textbook.scss
View file @
e40c6b38
...
@@ -7,7 +7,7 @@ div.book-wrapper {
...
@@ -7,7 +7,7 @@ div.book-wrapper {
@include
box-sizing
(
border-box
);
@include
box-sizing
(
border-box
);
ul
#booknav
{
ul
#booknav
{
font-size
:
12px
;
font-size
:
$body-font-size
;
a
{
a
{
color
:
#000
;
color
:
#000
;
...
@@ -39,8 +39,7 @@ div.book-wrapper {
...
@@ -39,8 +39,7 @@ div.book-wrapper {
}
}
>
li
{
>
li
{
border-bottom
:
1px
solid
#d3d3d3
;
border-bottom
:
1px
solid
$border-color
;
@include
box-shadow
(
0
1px
0
#eee
);
padding
:
7px
7px
7px
30px
;
padding
:
7px
7px
7px
30px
;
}
}
}
}
...
@@ -48,9 +47,11 @@ div.book-wrapper {
...
@@ -48,9 +47,11 @@ div.book-wrapper {
section
.book
{
section
.book
{
@extend
.content
;
@extend
.content
;
padding-right
:
0
;
padding-bottom
:
0
;
padding-top
:
0
;
nav
{
nav
{
@extend
.topbar
;
@extend
.clearfix
;
@extend
.clearfix
;
a
{
a
{
...
@@ -62,32 +63,41 @@ div.book-wrapper {
...
@@ -62,32 +63,41 @@ div.book-wrapper {
@extend
.clearfix
;
@extend
.clearfix
;
li
{
li
{
position
:
absolute
;
height
:
100%
;
width
:
flex-grid
(
2
,
8
);
a
{
display
:
table
;
@include
box-sizing
(
border-box
);
height
:
100%
;
width
:
100%
;
padding-top
:
200%
;
vertical-align
:
middle
;
@include
transition
;
background
:
rgba
(
#000
,
.7
);
opacity
:
0
;
filter
:
alpha
(
opacity
=
0
);
&
:hover
{
opacity
:
1
;
filter
:
alpha
(
opacity
=
100
);
}
}
&
.last
{
&
.last
{
display
:
block
;
left
:
0
;
float
:
left
;
a
{
border-left
:
0
;
border-right
:
1px
solid
darken
(
#f6efd4
,
20%
);
@include
box-shadow
(
inset
-1px
0
0
lighten
(
#f6efd4
,
5%
));
}
}
}
&
.next
{
&
.next
{
display
:
block
;
right
:
0
;
float
:
right
;
}
}
&
:hover
{
background
:
none
;
}
}
}
}
}
&
.bottom-nav
{
&
.bottom-nav
{
border-bottom
:
0
;
border-bottom
:
0
;
border-top
:
1px
solid
#EDDFAA
;
margin-bottom
:
-
(
lh
());
margin-bottom
:
-
(
lh
());
margin-top
:
lh
();
margin-top
:
lh
();
}
}
...
@@ -95,9 +105,10 @@ div.book-wrapper {
...
@@ -95,9 +105,10 @@ div.book-wrapper {
section
.page
{
section
.page
{
text-align
:
center
;
text-align
:
center
;
position
:
relative
;
border
:
1px
solid
$border-color
;
img
{
img
{
border
:
1px
solid
$border-color
;
max-width
:
100%
;
max-width
:
100%
;
}
}
}
}
...
...
lms/static/sass/course/base/_extends.scss
View file @
e40c6b38
...
@@ -51,7 +51,6 @@ h1.top-header {
...
@@ -51,7 +51,6 @@ h1.top-header {
.sidebar
{
.sidebar
{
border-right
:
1px
solid
#C8C8C8
;
border-right
:
1px
solid
#C8C8C8
;
@include
box-shadow
(
inset
-1px
0
0
#e6e6e6
);
@include
box-sizing
(
border-box
);
@include
box-sizing
(
border-box
);
display
:
table-cell
;
display
:
table-cell
;
font-family
:
$sans-serif
;
font-family
:
$sans-serif
;
...
...
lms/templates/staticbook.html
View file @
e40c6b38
...
@@ -89,17 +89,6 @@ $("#open_close_accordion a").click(function(){
...
@@ -89,17 +89,6 @@ $("#open_close_accordion a").click(function(){
</nav>
</nav>
<img
id=
"bookpage"
src=
"${ settings.BOOK_URL }p${ "
%
03i
"%(
page
)
}.
png
"
>
<img
id=
"bookpage"
src=
"${ settings.BOOK_URL }p${ "
%
03i
"%(
page
)
}.
png
"
>
<nav
class=
"bottom-nav"
>
<ul>
<li
class=
"last"
>
<a
href=
"javascript:prev_page()"
>
Previous page
</a>
</li>
<li
class=
"next"
>
<a
href=
"javascript:next_page()"
>
Next page
</a>
</li>
</ul>
</nav>
</section>
</section>
</section>
</section>
</div>
</div>
...
...
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