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
2d297660
Commit
2d297660
authored
Aug 21, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed wiki styles
parent
e08ab139
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
48 deletions
+66
-48
lms/static/sass/course/base/_base.scss
+2
-2
lms/static/sass/course/wiki/_wiki.scss
+38
-21
lms/templates/wiki/article.html
+4
-3
lms/templates/wiki/base.html
+17
-17
lms/templates/wiki/includes/article_menu.html
+5
-5
No files found.
lms/static/sass/course/base/_base.scss
View file @
2d297660
...
@@ -25,11 +25,11 @@ a {
...
@@ -25,11 +25,11 @@ a {
}
}
.container
{
.container
{
padding
:
1
.4em
0
;
padding
:
1
.4em
0
0
0
;
>
div
{
>
div
{
width
:
100%
;
width
:
100%
;
box-sizing
:
border-box
;
@include
box-sizing
(
border-box
)
;
border-radius
:
3px
;
border-radius
:
3px
;
border
:
1px
solid
#ccc
;
border
:
1px
solid
#ccc
;
background
:
#fff
;
background
:
#fff
;
...
...
lms/static/sass/course/wiki/_wiki.scss
View file @
2d297660
section
.wiki
{
section
.wiki
{
padding-top
:
25px
;
padding-top
:
25px
;
>
header
{
height
:
33px
;
margin-bottom
:
36px
;
padding-bottom
:
26px
;
border-bottom
:
1px
solid
$light-gray
;
}
.pull-left
{
.pull-left
{
float
:
left
;
float
:
left
;
}
}
...
@@ -16,6 +9,18 @@ section.wiki {
...
@@ -16,6 +9,18 @@ section.wiki {
float
:
right
;
float
:
right
;
}
}
.wiki-wrapper
{
@include
clearfix
;
>
header
{
height
:
33px
;
padding
:
24px
0
26px
;
border-bottom
:
1px
solid
#ccc
;
border-radius
:
3px
3px
0
0
;
background-color
:
$sidebar-color
;
}
}
/*-----------------
/*-----------------
...
@@ -27,7 +32,7 @@ section.wiki {
...
@@ -27,7 +32,7 @@ section.wiki {
.breadcrumb
{
.breadcrumb
{
list-style
:
none
;
list-style
:
none
;
padding-left
:
0
;
padding-left
:
0
;
margin
:
0
0
0
flex-gutter
()
;
margin
:
0
0
0
40px
;
li
{
li
{
float
:
left
;
float
:
left
;
...
@@ -68,7 +73,7 @@ section.wiki {
...
@@ -68,7 +73,7 @@ section.wiki {
.global-functions
{
.global-functions
{
display
:
block
;
display
:
block
;
width
:
auto
;
width
:
auto
;
margin-right
:
flex-gutter
()
;
margin-right
:
20px
;
}
}
.add-article-btn
{
.add-article-btn
{
...
@@ -129,8 +134,9 @@ section.wiki {
...
@@ -129,8 +134,9 @@ section.wiki {
.main-article
{
.main-article
{
float
:
left
;
float
:
left
;
width
:
flex-grid
(
9
);
width
:
flex-grid
(
9
);
margin-left
:
flex-gutter
()
;
padding
:
40px
0
40px
40px
;
color
:
$base-font-color
;
color
:
$base-font-color
;
@include
box-sizing
(
border-box
);
}
}
&
.view
.main-article
{
&
.view
.main-article
{
...
@@ -206,13 +212,14 @@ section.wiki {
...
@@ -206,13 +212,14 @@ section.wiki {
.article-functions
{
.article-functions
{
float
:
left
;
float
:
left
;
width
:
flex-grid
(
2
)
+
flex-gutter
();
width
:
flex-grid
(
3
);
margin-left
:
flex-grid
(
1
);
padding
:
40px
40px
;
@include
box-sizing
(
border-box
);
.timestamp
{
.timestamp
{
margin
:
4px
0
15px
;
margin
-top
:
15px
;
padding
:
0
0
15px
5
px
;
padding
:
15px
0
0
10
px
;
border-
bottom
:
1px
solid
$light-gray
;
border-
top
:
1px
solid
$light-gray
;
.label
{
.label
{
font-size
:
0
.7em
;
font-size
:
0
.7em
;
...
@@ -236,7 +243,8 @@ section.wiki {
...
@@ -236,7 +243,8 @@ section.wiki {
a
{
a
{
color
:
$blue
;
color
:
$blue
;
.icon-view
{
.icon-view
,
.icon-home
{
background-position
:
-25px
0
;
background-position
:
-25px
0
;
}
}
...
@@ -244,11 +252,13 @@ section.wiki {
...
@@ -244,11 +252,13 @@ section.wiki {
background-position
:
-25px
-25px
;
background-position
:
-25px
-25px
;
}
}
.icon-changes
{
.icon-changes
,
.icon-time
{
background-position
:
-25px
-49px
;
background-position
:
-25px
-49px
;
}
}
.icon-attachments
{
.icon-attachments
,
.icon-file
{
background-position
:
-25px
-73px
;
background-position
:
-25px
-73px
;
}
}
...
@@ -280,7 +290,8 @@ section.wiki {
...
@@ -280,7 +290,8 @@ section.wiki {
background
:
url(../images/wiki-icons.png)
no-repeat
;
background
:
url(../images/wiki-icons.png)
no-repeat
;
}
}
.icon-view
{
.icon-view
,
.icon-home
{
background-position
:
0
0
;
background-position
:
0
0
;
}
}
...
@@ -288,11 +299,13 @@ section.wiki {
...
@@ -288,11 +299,13 @@ section.wiki {
background-position
:
0
-25px
;
background-position
:
0
-25px
;
}
}
.icon-changes
{
.icon-changes
,
.icon-time
{
background-position
:
0
-49px
;
background-position
:
0
-49px
;
}
}
.icon-attachments
{
.icon-attachments
,
.icon-file
{
background-position
:
0
-73px
;
background-position
:
0
-73px
;
}
}
...
@@ -706,6 +719,10 @@ section.wiki {
...
@@ -706,6 +719,10 @@ section.wiki {
font-size
:
0
.8em
;
font-size
:
0
.8em
;
}
}
.attachment-actions
{
width
:
175px
;
}
.attachment-actions
.btn
{
.attachment-actions
.btn
{
float
:
right
;
float
:
right
;
}
}
...
...
lms/templates/wiki/article.html
View file @
2d297660
...
@@ -23,13 +23,14 @@
...
@@ -23,13 +23,14 @@
</article>
</article>
<div
class=
"article-functions"
>
<div
class=
"article-functions"
>
<ul
class=
"nav nav-tabs"
>
{% include "wiki/includes/article_menu.html" %}
</ul>
<div
class=
"timestamp"
>
<div
class=
"timestamp"
>
<span
class=
"label"
>
{% trans "Last modified:" %}
</span><br
/>
<span
class=
"label"
>
{% trans "Last modified:" %}
</span><br
/>
<span
class=
"date"
>
{{ article.current_revision.modified }}
</span>
<span
class=
"date"
>
{{ article.current_revision.modified }}
</span>
</div>
</div>
<ul
class=
"nav nav-tabs"
>
{% include "wiki/includes/article_menu.html" %}
</ul>
</div>
</div>
</div>
</div>
...
...
lms/templates/wiki/base.html
View file @
2d297660
...
@@ -51,24 +51,24 @@
...
@@ -51,24 +51,24 @@
{% endif %}
{% endif %}
<section
class=
"container wiki {{ selected_tab }}"
>
<section
class=
"container wiki {{ selected_tab }}"
>
<div
class=
"wiki-wrapper"
>
{% block wiki_body %}
{% block wiki_breadcrumbs %}{% endblock %}
{% block wiki_body %}
{% if messages %}
{% for message in messages %}
{% block wiki_breadcrumbs %}{% endblock %}
<div
class=
"alert alert-{{ message.tags }}"
>
<a
class=
"close"
data-dismiss=
"alert"
href=
"#"
>
×
</a>
{% if messages %}
{{ message }}
{% for message in messages %}
</div>
<div
class=
"alert alert-{{ message.tags }}"
>
{% endfor %}
<a
class=
"close"
data-dismiss=
"alert"
href=
"#"
>
×
</a>
{% endif %}
{{ message }}
</div>
{% block wiki_contents %}{% endblock %}
{% endfor %}
{% endif %}
{% endblock %}
</div>
{% block wiki_contents %}{% endblock %}
{% endblock %}
</section>
</section>
{% endblock %}
{% endblock %}
lms/templates/wiki/includes/article_menu.html
View file @
2d297660
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<li
class=
"${"
active
"
if
selected_tab =
=
"
view
"
else
""}"
>
<li
class=
"${"
active
"
if
selected_tab =
=
"
view
"
else
""}"
>
<a
href=
"${reverse('wiki:get', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<a
href=
"${reverse('wiki:get', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<span
class=
"icon-home"
></span>
<span
class=
"icon-home
icon
"
></span>
View
View
</a>
</a>
</li>
</li>
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
%if article.can_write(user):
%if article.can_write(user):
<li
class=
"${"
active
"
if
selected_tab =
=
"
edit
"
else
""}"
>
<li
class=
"${"
active
"
if
selected_tab =
=
"
edit
"
else
""}"
>
<a
href=
"${reverse('wiki:edit', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<a
href=
"${reverse('wiki:edit', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<span
class=
"icon-edit"
></span>
<span
class=
"icon-edit
icon
"
></span>
Edit
Edit
</a>
</a>
</li>
</li>
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<li
class=
"${"
active
"
if
selected_tab =
=
"
history
"
else
""}"
>
<li
class=
"${"
active
"
if
selected_tab =
=
"
history
"
else
""}"
>
<a
href=
"${reverse('wiki:history', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<a
href=
"${reverse('wiki:history', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<span
class=
"icon-
time
"
></span>
<span
class=
"icon-
changes icon
"
></span>
Changes
Changes
</a>
</a>
</li>
</li>
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
%if hasattr(plugin, "article_tab"):
%if hasattr(plugin, "article_tab"):
<li
class=
"${"
active
"
if
selected_tab =
=
plugin
.
slug
else
""}"
>
<li
class=
"${"
active
"
if
selected_tab =
=
plugin
.
slug
else
""}"
>
<a
href=
"${reverse('wiki:plugin', kwargs={'slug' : plugin.slug, 'article_id' : article.id, 'path' : urlpath.path}) }"
>
<a
href=
"${reverse('wiki:plugin', kwargs={'slug' : plugin.slug, 'article_id' : article.id, 'path' : urlpath.path}) }"
>
<span
class=
"${plugin.article_tab[1]}"
></span>
<span
class=
"${plugin.article_tab[1]}
icon
"
></span>
${plugin.article_tab[0]}
${plugin.article_tab[0]}
</a>
</a>
</li>
</li>
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
%if not user.is_anonymous():
%if not user.is_anonymous():
<li
class=
"${"
active
"
if
selected_tab =
=
"
settings
"
else
""}"
>
<li
class=
"${"
active
"
if
selected_tab =
=
"
settings
"
else
""}"
>
<a
href=
"${reverse('wiki:settings', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<a
href=
"${reverse('wiki:settings', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<span
class=
"icon-
wrench
"
></span>
<span
class=
"icon-
settings icon
"
></span>
Settings
Settings
</a>
</a>
</li>
</li>
...
...
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