/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:
evazion
2017-05-19 13:40:24 -05:00
parent a4220854a3
commit d46aa89159
6 changed files with 43 additions and 39 deletions

View 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;
}
}
}

View File

@@ -1,40 +1,19 @@
div#c-wiki-pages, div#excerpt {
span.version {
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 {
div#c-wiki-pages {
form span.hint {
display: block;
}
.other-name {
background-color: #EEE;
padding: 3px;
border-radius: 3px;
#a-new {
div.notice {
font-size: 0.8em;
padding: 1em;
margin: 1em 0;
}
}
}
.wiki-other-name {
background-color: #EEE;
padding: 3px;
border-radius: 3px;
}

View File

@@ -18,7 +18,7 @@ module WikiPagesHelper
end
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
end
end

View File

@@ -1,4 +1,4 @@
<div id="c-wiki-pages">
<div id="c-wiki-page-versions">
<div id="a-diff">
<h1>Wiki Page: <%= @thispage.title %></h1>

View File

@@ -1,4 +1,4 @@
<div id="c-wiki-pages">
<div id="c-wiki-page-versions">
<div id="a-index">
<%= render "wiki_pages/sidebar" %>

View File

@@ -1,4 +1,4 @@
<div id="c-wiki-pages">
<div id="c-wiki-page-versions">
<div id="a-show">
<%= render "wiki_pages/sidebar" %>