/wiki_page_versions: change page wrapper id to #c-wiki-page-versions.
Changes the wrapper id to #c-wiki-page-versions and moves the corresponding css from wiki_pages.scss to wiki_page_versions.scss.
This commit is contained in:
25
app/assets/stylesheets/specific/wiki_page_versions.scss
Normal file
25
app/assets/stylesheets/specific/wiki_page_versions.scss
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
div#c-wiki-page-versions {
|
||||||
|
#a-diff {
|
||||||
|
del {
|
||||||
|
background: #FCC;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
ins {
|
||||||
|
background: #CFC;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#a-index {
|
||||||
|
table {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#a-show {
|
||||||
|
span.version {
|
||||||
|
color: #AAA;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,40 +1,19 @@
|
|||||||
div#c-wiki-pages, div#excerpt {
|
div#c-wiki-pages {
|
||||||
span.version {
|
form span.hint {
|
||||||
color: #AAA;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.notice {
|
|
||||||
font-size: 0.8em;
|
|
||||||
padding: 1em;
|
|
||||||
margin: 1em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
del {
|
|
||||||
background: #FCC;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
ins {
|
|
||||||
background: #CFC;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
|
||||||
margin-bottom: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#content {
|
|
||||||
margin-left: 15em;
|
|
||||||
padding-left: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hint {
|
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.other-name {
|
#a-new {
|
||||||
background-color: #EEE;
|
div.notice {
|
||||||
padding: 3px;
|
font-size: 0.8em;
|
||||||
border-radius: 3px;
|
padding: 1em;
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wiki-other-name {
|
||||||
|
background-color: #EEE;
|
||||||
|
padding: 3px;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ module WikiPagesHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def wiki_page_other_names_list(wiki_page)
|
def wiki_page_other_names_list(wiki_page)
|
||||||
names_html = wiki_page.other_names_array.map{|name| link_to(name, "http://www.pixiv.net/search.php?s_mode=s_tag_full&word=#{u(name)}", :class => "other-name")}
|
names_html = wiki_page.other_names_array.map{|name| link_to(name, "http://www.pixiv.net/search.php?s_mode=s_tag_full&word=#{u(name)}", :class => "wiki-other-name")}
|
||||||
names_html.join(" ").html_safe
|
names_html.join(" ").html_safe
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div id="c-wiki-pages">
|
<div id="c-wiki-page-versions">
|
||||||
<div id="a-diff">
|
<div id="a-diff">
|
||||||
<h1>Wiki Page: <%= @thispage.title %></h1>
|
<h1>Wiki Page: <%= @thispage.title %></h1>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div id="c-wiki-pages">
|
<div id="c-wiki-page-versions">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<%= render "wiki_pages/sidebar" %>
|
<%= render "wiki_pages/sidebar" %>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div id="c-wiki-pages">
|
<div id="c-wiki-page-versions">
|
||||||
<div id="a-show">
|
<div id="a-show">
|
||||||
<%= render "wiki_pages/sidebar" %>
|
<%= render "wiki_pages/sidebar" %>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user