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
310073dd
Commit
310073dd
authored
Feb 26, 2013
by
Brian Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use same images for prev/next as used in image-based textbooks
parent
19567cc3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
21 deletions
+9
-21
common/static/css/pdfviewer.css
+4
-1
lms/static/sass/course/_textbook.scss
+1
-0
lms/templates/static_pdfbook.html
+4
-20
No files found.
common/static/css/pdfviewer.css
View file @
310073dd
...
...
@@ -85,13 +85,16 @@ select {
}
#viewerContainer
{
overflow
:
auto
;
/* overflow: auto; */
box-shadow
:
inset
1px
0
0
hsla
(
0
,
0%
,
100%
,
.05
);
/* position: absolute;
top: 32px;
right: 0;
bottom: 0;
left: 0; */
/* switch to using these instead: */
position
:
relative
;
overflow
:
hidden
;
}
.toolbar
{
...
...
lms/static/sass/course/_textbook.scss
View file @
310073dd
...
...
@@ -102,6 +102,7 @@ div.book-wrapper {
position
:
absolute
;
height
:
100%
;
width
:
flex-grid
(
2
,
8
);
z-index
:
1
;
a
{
background-color
:
rgba
(
#000
,
.7
);
...
...
lms/templates/static_pdfbook.html
View file @
310073dd
...
...
@@ -41,11 +41,8 @@
</script>
</
%
block>
<
%
use_nav_images =
False
%
>
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='pdftextbook/{0}'.format(book_index)"
/>
<div
id=
"outerContainer"
>
<div
id=
"mainContainer"
class=
"book-wrapper"
>
...
...
@@ -53,17 +50,6 @@
<div
id=
"toolbarContainer"
>
<div
id=
"toolbarViewer"
>
<div
id=
"toolbarViewerLeft"
>
<div
class=
"splitToolbarButton"
>
%if use_nav_images != True:
<button
class=
"toolbarButton pageUp"
title=
"Previous Page"
id=
"previous"
tabindex=
"5"
>
<span>
Previous
</span>
</button>
<div
class=
"splitToolbarButtonSeparator"
></div>
<button
class=
"toolbarButton pageDown"
title=
"Next Page"
id=
"next"
tabindex=
"6"
>
<span>
Next
</span>
</button>
%endif
</div>
<label
id=
"pageNumberLabel"
class=
"toolbarLabel"
for=
"pageNumber"
>
Page:
</label>
<input
type=
"number"
id=
"pageNumber"
class=
"toolbarField pageNumber"
value=
"1"
size=
"4"
min=
"1"
tabindex=
"7"
>
</input>
...
...
@@ -116,17 +102,15 @@
</li>
</
%
def>
<
%
index =
0
%
>
% for entry in textbook['chapters']:
<
%
index
+=
1
%
>
${print_entry(entry, index)}
% for (index, entry) in enumerate(textbook['chapters']):
${print_entry(entry, index+1)}
% endfor
</ul>
</section>
%endif
<section
id=
"viewerContainer"
class=
"book"
>
%if use_nav_images:
<!-- use same page-turning as used in image-based textbooks -->
<nav>
<ul>
<li
class=
"last"
>
...
...
@@ -137,7 +121,7 @@
</li>
</ul>
</nav>
%endif
<div
id=
"viewer"
contextmenu=
"viewerContextMenu"
></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