lokka 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +48 -0
- data/LICENSE +20 -0
- data/README.ja.rdoc +46 -0
- data/README.rdoc +46 -0
- data/Rakefile +116 -0
- data/VERSION +1 -0
- data/bin/autotest +16 -0
- data/bin/bluefeather +16 -0
- data/bin/convert_to_should_syntax +16 -0
- data/bin/css2sass +16 -0
- data/bin/edit_json.rb +16 -0
- data/bin/erubis +16 -0
- data/bin/exceptional +16 -0
- data/bin/haml +16 -0
- data/bin/html2haml +16 -0
- data/bin/jeweler +16 -0
- data/bin/lokka +4 -0
- data/bin/prettify_json.rb +16 -0
- data/bin/rackup +16 -0
- data/bin/rake +16 -0
- data/bin/rcov +16 -0
- data/bin/sass +16 -0
- data/bin/sass-convert +16 -0
- data/bin/tilt +16 -0
- data/bin/unit_diff +16 -0
- data/config.ru +3 -0
- data/config.yml +4 -0
- data/i18n/en.yml +149 -0
- data/i18n/ja.yml +149 -0
- data/init.rb +7 -0
- data/install.rb +16 -0
- data/lib/lokka.rb +138 -0
- data/lib/lokka/app.rb +562 -0
- data/lib/lokka/before.rb +29 -0
- data/lib/lokka/bread_crumb.rb +34 -0
- data/lib/lokka/category.rb +33 -0
- data/lib/lokka/comment.rb +26 -0
- data/lib/lokka/entry.rb +70 -0
- data/lib/lokka/helpers.rb +214 -0
- data/lib/lokka/option.rb +23 -0
- data/lib/lokka/site.rb +19 -0
- data/lib/lokka/tag.rb +5 -0
- data/lib/lokka/theme.rb +17 -0
- data/lib/lokka/user.rb +77 -0
- data/lib/sqlite3.dll +0 -0
- data/lokka.exe +0 -0
- data/lokka.exy +15 -0
- data/lokka.gemspec +373 -0
- data/lokka.ico +0 -0
- data/lokka.rb +11 -0
- data/public/admin/categories/edit.haml +6 -0
- data/public/admin/categories/form.haml +18 -0
- data/public/admin/categories/index.haml +15 -0
- data/public/admin/categories/new.haml +5 -0
- data/public/admin/comments/edit.haml +6 -0
- data/public/admin/comments/form.haml +29 -0
- data/public/admin/comments/index.haml +22 -0
- data/public/admin/comments/new.haml +5 -0
- data/public/admin/css/editor.css +10 -0
- data/public/admin/css/jquery.cleditor.css +24 -0
- data/public/admin/css/style.css +710 -0
- data/public/admin/edit.haml +42 -0
- data/public/admin/favicon.ico +0 -0
- data/public/admin/images/add.png +0 -0
- data/public/admin/images/aside_arrow.png +0 -0
- data/public/admin/images/buttons.gif +0 -0
- data/public/admin/images/category.png +0 -0
- data/public/admin/images/comment.png +0 -0
- data/public/admin/images/dashboard.png +0 -0
- data/public/admin/images/file.png +0 -0
- data/public/admin/images/files.png +0 -0
- data/public/admin/images/mail-attachment.png +0 -0
- data/public/admin/images/plugin.png +0 -0
- data/public/admin/images/post.png +0 -0
- data/public/admin/images/setting.png +0 -0
- data/public/admin/images/tag.png +0 -0
- data/public/admin/images/theme.png +0 -0
- data/public/admin/images/toolbar.gif +0 -0
- data/public/admin/images/user.png +0 -0
- data/public/admin/index.haml +1 -0
- data/public/admin/js/editor.js +7 -0
- data/public/admin/js/jquery.cleditor.js +1132 -0
- data/public/admin/js/jquery.cleditor.min.js +31 -0
- data/public/admin/layout.haml +91 -0
- data/public/admin/pages/edit.haml +6 -0
- data/public/admin/pages/form.haml +33 -0
- data/public/admin/pages/index.haml +23 -0
- data/public/admin/pages/new.haml +5 -0
- data/public/admin/plugins/index.haml +4 -0
- data/public/admin/posts/edit.haml +6 -0
- data/public/admin/posts/form.haml +33 -0
- data/public/admin/posts/index.haml +23 -0
- data/public/admin/posts/new.haml +5 -0
- data/public/admin/show.haml +7 -0
- data/public/admin/signup.haml +17 -0
- data/public/admin/site/edit.haml +13 -0
- data/public/admin/tags/edit.haml +6 -0
- data/public/admin/tags/form.haml +10 -0
- data/public/admin/tags/index.haml +19 -0
- data/public/admin/themes/index.haml +13 -0
- data/public/admin/users/edit.haml +6 -0
- data/public/admin/users/form.haml +22 -0
- data/public/admin/users/index.haml +24 -0
- data/public/admin/users/new.haml +5 -0
- data/public/plugin/lokka-google_analytics/lib/lokka/google_analytics.rb +29 -0
- data/public/plugin/lokka-google_analytics/views/index.haml +15 -0
- data/public/plugin/lokka-hello/lib/lokka/hello.rb +15 -0
- data/public/plugin/lokka-markdown/lib/lokka/markdown.rb +12 -0
- data/public/plugin/lokka-rbconfig/lib/lokka/rbconfig.rb +11 -0
- data/public/plugin/lokka-rbconfig/views/index.haml +7 -0
- data/public/plugin/lokka-rbconfig/views/style.css +12 -0
- data/public/system/404.haml +20 -0
- data/public/system/500.haml +19 -0
- data/public/system/comments/form.haml +22 -0
- data/public/system/favicon.ico +0 -0
- data/public/system/index.builder +25 -0
- data/public/system/style.css +8 -0
- data/public/theme/default/entries.erb +40 -0
- data/public/theme/default/entry.erb +23 -0
- data/public/theme/default/layout.erb +74 -0
- data/public/theme/default/quote.gif +0 -0
- data/public/theme/default/screenshot.png +0 -0
- data/public/theme/default/style.css +1147 -0
- data/public/theme/jarvi/entries.erb +26 -0
- data/public/theme/jarvi/entry.erb +14 -0
- data/public/theme/jarvi/favicon.ico +0 -0
- data/public/theme/jarvi/images/aside_dt.gif +0 -0
- data/public/theme/jarvi/images/aside_dt.png +0 -0
- data/public/theme/jarvi/images/footer.gif +0 -0
- data/public/theme/jarvi/images/footer.psd +0 -0
- data/public/theme/jarvi/images/header_deascription_ul.gif +0 -0
- data/public/theme/jarvi/images/header_language.gif +0 -0
- data/public/theme/jarvi/images/header_nav.gif +0 -0
- data/public/theme/jarvi/images/html.gif +0 -0
- data/public/theme/jarvi/images/index_content.gif +0 -0
- data/public/theme/jarvi/images/index_content_footer.gif +0 -0
- data/public/theme/jarvi/images/index_content_header.gif +0 -0
- data/public/theme/jarvi/images/index_header_nav.gif +0 -0
- data/public/theme/jarvi/images/section_header_title.gif +0 -0
- data/public/theme/jarvi/images/wide_content.gif +0 -0
- data/public/theme/jarvi/images/wide_content_body.gif +0 -0
- data/public/theme/jarvi/images/wide_content_h3.gif +0 -0
- data/public/theme/jarvi/layout.erb +55 -0
- data/public/theme/jarvi/screenshot.png +0 -0
- data/public/theme/jarvi/style.css +618 -0
- data/public/theme/lokka-org/article.haml +9 -0
- data/public/theme/lokka-org/entries.haml +9 -0
- data/public/theme/lokka-org/entry.haml +1 -0
- data/public/theme/lokka-org/favicon.ico +0 -0
- data/public/theme/lokka-org/images/aside_dt.gif +0 -0
- data/public/theme/lokka-org/images/aside_dt.png +0 -0
- data/public/theme/lokka-org/images/download_button.jpg +0 -0
- data/public/theme/lokka-org/images/footer.gif +0 -0
- data/public/theme/lokka-org/images/footer.psd +0 -0
- data/public/theme/lokka-org/images/header_capture.gif +0 -0
- data/public/theme/lokka-org/images/header_capture.jpg +0 -0
- data/public/theme/lokka-org/images/header_capture_a.gif +0 -0
- data/public/theme/lokka-org/images/header_deascription_ul.gif +0 -0
- data/public/theme/lokka-org/images/header_h1_a.gif +0 -0
- data/public/theme/lokka-org/images/header_language.gif +0 -0
- data/public/theme/lokka-org/images/header_nav.gif +0 -0
- data/public/theme/lokka-org/images/heder_nav_home.gif +0 -0
- data/public/theme/lokka-org/images/heder_nav_home.jpg +0 -0
- data/public/theme/lokka-org/images/html.gif +0 -0
- data/public/theme/lokka-org/images/index_content.gif +0 -0
- data/public/theme/lokka-org/images/index_content_footer.gif +0 -0
- data/public/theme/lokka-org/images/index_content_header.gif +0 -0
- data/public/theme/lokka-org/images/index_header_h1.gif +0 -0
- data/public/theme/lokka-org/images/index_header_nav.gif +0 -0
- data/public/theme/lokka-org/images/language_a.png +0 -0
- data/public/theme/lokka-org/images/section_header_title.gif +0 -0
- data/public/theme/lokka-org/images/wide_content.gif +0 -0
- data/public/theme/lokka-org/images/wide_content_body.gif +0 -0
- data/public/theme/lokka-org/images/wide_content_h3.gif +0 -0
- data/public/theme/lokka-org/index.haml +5 -0
- data/public/theme/lokka-org/layout.haml +72 -0
- data/public/theme/lokka-org/quote.gif +0 -0
- data/public/theme/lokka-org/screenshot.png +0 -0
- data/public/theme/lokka-org/style.css +806 -0
- data/public/theme/p0t/article.haml +10 -0
- data/public/theme/p0t/entries.haml +9 -0
- data/public/theme/p0t/entry.haml +7 -0
- data/public/theme/p0t/favicon.ico +0 -0
- data/public/theme/p0t/images/quote.gif +0 -0
- data/public/theme/p0t/layout.haml +68 -0
- data/public/theme/p0t/screenshot.png +0 -0
- data/public/theme/p0t/style.css +359 -0
- data/public/theme/vicuna-mono/entries.erb +40 -0
- data/public/theme/vicuna-mono/entry.erb +23 -0
- data/public/theme/vicuna-mono/layout.erb +76 -0
- data/public/theme/vicuna-mono/quote.gif +0 -0
- data/public/theme/vicuna-mono/screenshot.png +0 -0
- data/public/theme/vicuna-mono/style.css +1156 -0
- data/test/helper.rb +23 -0
- data/test/lokka/app_test.rb +15 -0
- data/test/lokka/post_test.rb +17 -0
- metadata +965 -0
data/lokka.ico
ADDED
Binary file
|
data/lokka.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
- unless @category.errors.empty?
|
2
|
+
#error
|
3
|
+
.title= t.error
|
4
|
+
%ul
|
5
|
+
- @category.errors.each do |error|
|
6
|
+
%li= error
|
7
|
+
.field
|
8
|
+
%label{:for => 'category_title'}= t.category.title
|
9
|
+
%br
|
10
|
+
%input{:type => 'text', :id => 'category_title', :name => 'category[title]', :value => @category.title}
|
11
|
+
.field
|
12
|
+
%label{:for => 'category_description'}= t.category.description
|
13
|
+
%br
|
14
|
+
%textarea{:id => 'category_description', :class => 'editor', :name => 'category[description]'}= h @category.description
|
15
|
+
.field
|
16
|
+
%label{:for => 'category_slug'}= t.category.slug
|
17
|
+
%br
|
18
|
+
%input{:type => 'text', :id => 'category_slug', :name => 'category[slug]', :value => @category.slug}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
%h2= t.listing_categories
|
2
|
+
%table
|
3
|
+
%tr
|
4
|
+
%th= t.category.title
|
5
|
+
%th= t.category.created_at
|
6
|
+
%th{:colspan => 2}
|
7
|
+
- @categories.each do |category|
|
8
|
+
%tr
|
9
|
+
%td
|
10
|
+
%a{:href => "/admin/categories/#{category.id}/edit"}= category.title
|
11
|
+
%td= l category.created_at.to_time
|
12
|
+
%td
|
13
|
+
%a.button{:href => "/admin/categories/#{category.id}/edit"}= t.edit
|
14
|
+
%td
|
15
|
+
= link_to t.delete, "/admin/categories/#{category.id}", :class => 'button', :confirm => t.are_you_sure, :method => :delete
|
@@ -0,0 +1,29 @@
|
|
1
|
+
- unless @comment.errors.empty?
|
2
|
+
#error
|
3
|
+
.title= t.error
|
4
|
+
%ul
|
5
|
+
- @comment.errors.each do |error|
|
6
|
+
%li= error
|
7
|
+
.field
|
8
|
+
%label{:for => 'comment_entry'}= t.comment.entry
|
9
|
+
%br
|
10
|
+
- if @entries.size > 1
|
11
|
+
= select_field @comment, :entry_id, @entries, :id => 'comment_entry'
|
12
|
+
- else
|
13
|
+
= t.no_entry
|
14
|
+
.field
|
15
|
+
%label{:for => 'comment_name'}= t.comment.name
|
16
|
+
%br
|
17
|
+
%input{:type => 'text', :id => 'comment_name', :name => 'comment[name]', :value => @comment.name}
|
18
|
+
.field
|
19
|
+
%label{:for => 'comment_body'}= t.comment.body
|
20
|
+
%br
|
21
|
+
%textarea{:id => 'comment_body', :name => 'comment[body]', :rows => 10, :cols => 50}= h @comment.body
|
22
|
+
.field
|
23
|
+
%label{:for => 'comment_homepage'}= t.comment.homepage
|
24
|
+
%br
|
25
|
+
%input{:type => 'text', :id => 'comment_homepage', :name => 'comment[homepage]', :value => @comment.homepage}
|
26
|
+
.field
|
27
|
+
%label{:for => 'comment_created_at'}= t.comment.created_at
|
28
|
+
%br
|
29
|
+
%input{:type => 'text', :id => 'comment_created_at', :name => 'comment[created_at]', :value => @comment.created_at}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
%h2= t.listing_comments
|
2
|
+
%table.comments
|
3
|
+
%tr
|
4
|
+
%th= t.comment.body
|
5
|
+
%th= t.comment.name
|
6
|
+
%th= t.comment.created_at
|
7
|
+
%th{:colspan => 2}
|
8
|
+
- @comments.each_with_index do |comment, i|
|
9
|
+
%tr{:class => (i+1).odd? ? 'odd' : 'even'}
|
10
|
+
%td.body= truncate(strip_tags(comment.body))
|
11
|
+
%td= comment.name
|
12
|
+
%td= l comment.created_at.to_time
|
13
|
+
%td
|
14
|
+
%a.button{:href => "/admin/comments/#{comment.id}/edit"}= t.edit
|
15
|
+
%td
|
16
|
+
= link_to t.delete, "/admin/comments/#{comment.id}", :class => 'button', :confirm => t.are_you_sure, :method => :delete
|
17
|
+
.pager
|
18
|
+
%ul
|
19
|
+
- if @comments.pager.previous_page
|
20
|
+
%li.previous= link_to t.previous, "?page=#{@comments.pager.previous_page}"
|
21
|
+
- if @comments.pager.next_page
|
22
|
+
%li.next= link_to t.next, "?page=#{@comments.pager.next_page}"
|
@@ -0,0 +1,24 @@
|
|
1
|
+
.cleditorMain {border:1px solid #999; padding:0 1px 1px; background-color:white}
|
2
|
+
.cleditorMain iframe {border:none; margin:0; padding:0}
|
3
|
+
.cleditorMain textarea {border:none; margin:0; padding:0; overflow-y:scroll; font:10pt Arial,Verdana; resize:none; outline:none /* webkit grip focus */}
|
4
|
+
.cleditorToolbar {background: url('../images/toolbar.gif') repeat}
|
5
|
+
.cleditorGroup {float:left; height:26px}
|
6
|
+
.cleditorButton {float:left; width:24px; height:24px; margin:1px 0 1px 0; background: url('../images/buttons.gif')}
|
7
|
+
.cleditorDisabled {opacity:0.3; filter:alpha(opacity=30)}
|
8
|
+
.cleditorDivider {float:left; width:1px; height:23px; margin:1px 0 1px 0; background:#CCC}
|
9
|
+
.cleditorPopup {border:solid 1px #999; background-color:white; position:absolute; font:10pt Arial,Verdana; cursor:default; z-index:10000}
|
10
|
+
.cleditorList div {padding:2px 4px 2px 4px}
|
11
|
+
.cleditorList p,
|
12
|
+
.cleditorList h1,
|
13
|
+
.cleditorList h2,
|
14
|
+
.cleditorList h3,
|
15
|
+
.cleditorList h4,
|
16
|
+
.cleditorList h5,
|
17
|
+
.cleditorList h6,
|
18
|
+
.cleditorList font {padding:0; margin:0; background-color:Transparent}
|
19
|
+
.cleditorColor {width:150px; padding:1px 0 0 1px}
|
20
|
+
.cleditorColor div {float:left; width:14px; height:14px; margin:0 1px 1px 0}
|
21
|
+
.cleditorPrompt {background-color:#F6F7F9; padding:4px; font-size:8.5pt}
|
22
|
+
.cleditorPrompt input,
|
23
|
+
.cleditorPrompt textarea {font:8.5pt Arial,Verdana;}
|
24
|
+
.cleditorMsg {background-color:#FDFCEE; width:150px; padding:4px; font-size:8.5pt}
|
@@ -0,0 +1,710 @@
|
|
1
|
+
/* clearfix */
|
2
|
+
.clearfix:after {
|
3
|
+
visibility: hidden;
|
4
|
+
display: block;
|
5
|
+
font-size: 0;
|
6
|
+
content: " ";
|
7
|
+
clear: both;
|
8
|
+
height: 0;
|
9
|
+
}
|
10
|
+
* html .clearfix { zoom: 1; } /* IE6 */
|
11
|
+
*:first-child+html .clearfix { zoom: 1; } /* IE7 */
|
12
|
+
|
13
|
+
|
14
|
+
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
|
15
|
+
background:none repeat scroll 0 0;
|
16
|
+
border:0 none;
|
17
|
+
margin:0;
|
18
|
+
outline:0 none;
|
19
|
+
padding:0;
|
20
|
+
}
|
21
|
+
|
22
|
+
input, textarea, select {
|
23
|
+
-webkit-border-radius:6px;
|
24
|
+
-moz-border-radius:6px;
|
25
|
+
border-radius:6px;
|
26
|
+
background:none repeat scroll 0 0 #eee;
|
27
|
+
border-color:#999 #ccc #ccc #999;
|
28
|
+
border-style:solid;
|
29
|
+
border-width:1px;
|
30
|
+
padding:3px 2px;
|
31
|
+
}
|
32
|
+
input:focus, textarea:focus, select:focus {
|
33
|
+
background:none repeat scroll 0 0 #fafafa;
|
34
|
+
}
|
35
|
+
|
36
|
+
select, input, button, textarea, button, .button {
|
37
|
+
font:99% arial,helvetica,clean,sans-serif;
|
38
|
+
}
|
39
|
+
|
40
|
+
input, button, textarea, select, optgroup, option, .button {
|
41
|
+
font-family:inherit;
|
42
|
+
font-size:inherit;
|
43
|
+
font-style:inherit;
|
44
|
+
font-weight:inherit;
|
45
|
+
}
|
46
|
+
|
47
|
+
input[type="submit"],
|
48
|
+
.button {
|
49
|
+
cursor:pointer;
|
50
|
+
border-color:#ccc #999 #999 #ccc;
|
51
|
+
border-style:solid;
|
52
|
+
border-width:1px;
|
53
|
+
margin-bottom:40px;
|
54
|
+
padding:5px 15px;
|
55
|
+
-webkit-border-radius:6px;
|
56
|
+
-moz-border-radius:6px;
|
57
|
+
border-radius:6px;
|
58
|
+
background:none repeat scroll 0 0 #ccc;
|
59
|
+
background:-moz-linear-gradient(#ccc, #bbb) repeat scroll 0 0 transparent;
|
60
|
+
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#ccc), to(#bbb));
|
61
|
+
background: linear-gradient(#ccc, #bbb);
|
62
|
+
-webkit-box-shadow:1px 1px 2px #bbb;
|
63
|
+
-moz-box-shadow:1px 1px 2px #bbb;
|
64
|
+
box-shadow:1px 1px 2px #bbb;
|
65
|
+
}
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
.button:link, .button:visited {
|
70
|
+
color:#444;
|
71
|
+
white-space: nowrap;
|
72
|
+
}
|
73
|
+
.button:hover, .button:active ,input[type="submit"]:focus {
|
74
|
+
background:-moz-linear-gradient(#e8e8e8, #eee) repeat scroll 0 0 transparent;
|
75
|
+
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#e8e8e8), to(#eee));
|
76
|
+
background: linear-gradient(#e8e8e8, #eee);
|
77
|
+
color:#000;
|
78
|
+
text-shadow:1px 1px 0 #FFFFFF;
|
79
|
+
-webkit-box-shadow:none;
|
80
|
+
-moz-box-shadow:none;
|
81
|
+
box-shadow:none;
|
82
|
+
}
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
form p {
|
88
|
+
display:block;
|
89
|
+
margin-bottom:15px;
|
90
|
+
}
|
91
|
+
|
92
|
+
form .field {
|
93
|
+
margin-bottom:15px;
|
94
|
+
}
|
95
|
+
|
96
|
+
form div.textarea {
|
97
|
+
-webkit-border-radius: 6px;
|
98
|
+
-moz-border-radius: 6px;
|
99
|
+
border-radius: 6px;
|
100
|
+
background: none repeat scroll 0 0 #eee;
|
101
|
+
border-color: #999 #ccc #ccc #999;
|
102
|
+
border-style: solid;
|
103
|
+
border-width: 1px;
|
104
|
+
clear: both;
|
105
|
+
padding-top: 3px;
|
106
|
+
padding-right: 2px;
|
107
|
+
padding-bottom: 3px;
|
108
|
+
padding-left: 2px;
|
109
|
+
}
|
110
|
+
|
111
|
+
|
112
|
+
input[type="text"],
|
113
|
+
input[type="password"] {
|
114
|
+
display:block;
|
115
|
+
width:550px;
|
116
|
+
}
|
117
|
+
|
118
|
+
textarea {
|
119
|
+
display:block;
|
120
|
+
width:550px;
|
121
|
+
height:450px;
|
122
|
+
}
|
123
|
+
textarea#site_description {
|
124
|
+
height:50px;
|
125
|
+
}
|
126
|
+
|
127
|
+
html,body {
|
128
|
+
margin: 0;
|
129
|
+
padding: 0;
|
130
|
+
height: 100%;
|
131
|
+
font-size: 12px;
|
132
|
+
background-color: #41527e;
|
133
|
+
}
|
134
|
+
|
135
|
+
.clear {
|
136
|
+
display: inline-block;
|
137
|
+
}
|
138
|
+
|
139
|
+
.clear:after {
|
140
|
+
content: "";
|
141
|
+
display: block;
|
142
|
+
clear: both;
|
143
|
+
}
|
144
|
+
|
145
|
+
html, body {
|
146
|
+
height: 100%;
|
147
|
+
margin: 0;
|
148
|
+
padding: 0;
|
149
|
+
font-family: "Lucida Sans Unicode","Lucida Grande",Arial,Helvetica,"ヒラギノ角ゴ Pro W3",HiraKakuPro-W3,Osaka,sans-serif;
|
150
|
+
}
|
151
|
+
|
152
|
+
h1 {
|
153
|
+
margin: 0;
|
154
|
+
padding: 0;
|
155
|
+
font-size: 12px;
|
156
|
+
}
|
157
|
+
|
158
|
+
h2 {
|
159
|
+
font-size: 16px;
|
160
|
+
display: block;
|
161
|
+
background-color: #666;
|
162
|
+
margin-top: -10px;
|
163
|
+
margin-right: -20px;
|
164
|
+
margin-bottom: 15px;
|
165
|
+
margin-left: -20px;
|
166
|
+
padding-top: 8px;
|
167
|
+
padding-right: 20px;
|
168
|
+
padding-bottom: 8px;
|
169
|
+
padding-left: 20px;
|
170
|
+
-webkit-border-radius:7px 7px 0px 0px;
|
171
|
+
-moz-border-radius:7px 7px 0px 0px;
|
172
|
+
border-radius:7px 7px 0px 0px;
|
173
|
+
border-bottom-width: 1px;
|
174
|
+
border-bottom-style: solid;
|
175
|
+
border-bottom-color: #aaa;
|
176
|
+
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#aaa), to(#ccc));
|
177
|
+
background: -moz-linear-gradient(#aaa, #ccc);
|
178
|
+
background: linear-gradient(#aaa, #ccc);
|
179
|
+
text-shadow:#eee 1px 1px 0px;
|
180
|
+
}
|
181
|
+
|
182
|
+
#notice {
|
183
|
+
display: block;
|
184
|
+
position: absolute;
|
185
|
+
left: 360px;
|
186
|
+
z-index: 1000;
|
187
|
+
text-align: center;
|
188
|
+
margin: 0px;
|
189
|
+
top: 69px;
|
190
|
+
line-height: 26px;
|
191
|
+
}
|
192
|
+
#notice p {
|
193
|
+
display: block;
|
194
|
+
background-color: #C47240;
|
195
|
+
margin: 0px;
|
196
|
+
-webkit-border-radius: 4px;
|
197
|
+
-moz-border-radius: 4px;
|
198
|
+
border-radius: 4px;
|
199
|
+
color: #FFF;
|
200
|
+
font-size: 12px;
|
201
|
+
padding-right: 1em;
|
202
|
+
padding-left: 1em;
|
203
|
+
}
|
204
|
+
|
205
|
+
a {
|
206
|
+
color: #000;
|
207
|
+
text-decoration: none;
|
208
|
+
}
|
209
|
+
|
210
|
+
label {
|
211
|
+
font-weight: bold;
|
212
|
+
}
|
213
|
+
|
214
|
+
#header {
|
215
|
+
border-bottom: 1px solid #182b5a;
|
216
|
+
background: #41527E;
|
217
|
+
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#41527E), to(#212F54));
|
218
|
+
background: -moz-linear-gradient(#41527E, #212F54);
|
219
|
+
background: linear-gradient(#41527E, #212F54);
|
220
|
+
height: 22px;
|
221
|
+
padding: 15px;
|
222
|
+
margin-top: 0;
|
223
|
+
margin-right: 0;
|
224
|
+
margin-bottom: 10px;
|
225
|
+
margin-left: 0;
|
226
|
+
}
|
227
|
+
|
228
|
+
#header a {
|
229
|
+
color: #fff;
|
230
|
+
line-height: 22px;
|
231
|
+
text-shadow:#222 1px 1px 0px;
|
232
|
+
}
|
233
|
+
#header h1 {
|
234
|
+
font-size:22px;
|
235
|
+
float: left;
|
236
|
+
}
|
237
|
+
|
238
|
+
#nav {
|
239
|
+
float: right;
|
240
|
+
font-size: 11px;
|
241
|
+
line-height: 12px;
|
242
|
+
}
|
243
|
+
|
244
|
+
#nav a {
|
245
|
+
color: #fff;
|
246
|
+
border: 1px solid #14203F;
|
247
|
+
text-align: center;
|
248
|
+
-webkit-border-radius: 8px;
|
249
|
+
-moz-border-radius: 8px;
|
250
|
+
border-radius: 8px;
|
251
|
+
display: block;
|
252
|
+
float: right;
|
253
|
+
margin-left: 8px;
|
254
|
+
padding-right: 12px;
|
255
|
+
padding-left: 12px;
|
256
|
+
}
|
257
|
+
#nav a:link,
|
258
|
+
#nav a:visited {
|
259
|
+
background: #23325b;
|
260
|
+
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#6B799E), to(#374772));
|
261
|
+
background: -moz-linear-gradient(#20325f, #0c1a3f);
|
262
|
+
background: linear-gradient(#6B799E, #374772);
|
263
|
+
}
|
264
|
+
#nav a:hover,
|
265
|
+
#nav a:active {
|
266
|
+
background: #0B183B;
|
267
|
+
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#0c1a3f), to(#040c23));
|
268
|
+
background: -moz-linear-gradient(#0c1a3f, #040c23);
|
269
|
+
background: linear-gradient(#0c1a3f, #040c23);
|
270
|
+
}
|
271
|
+
|
272
|
+
#nav ul {
|
273
|
+
margin: 0;
|
274
|
+
padding: 0;
|
275
|
+
list-style: none;
|
276
|
+
}
|
277
|
+
|
278
|
+
#nav ul li {
|
279
|
+
margin: 0 6px;
|
280
|
+
display: inline;
|
281
|
+
}
|
282
|
+
|
283
|
+
#content {
|
284
|
+
overflow: hidden !important;
|
285
|
+
overflow: visible;
|
286
|
+
min-height: 100%;
|
287
|
+
height: auto !important;
|
288
|
+
height: 100%;
|
289
|
+
clear: both;
|
290
|
+
padding-left: 10px;
|
291
|
+
padding-right: 10px;
|
292
|
+
padding-bottom: 25px;
|
293
|
+
}
|
294
|
+
|
295
|
+
#aside {
|
296
|
+
float: left;
|
297
|
+
width: 160px;
|
298
|
+
overflow: hidden;
|
299
|
+
padding-right: 0;
|
300
|
+
padding-bottom: 8px;
|
301
|
+
padding-left: 0;
|
302
|
+
clear: left;
|
303
|
+
position: relative;
|
304
|
+
}
|
305
|
+
|
306
|
+
#main {
|
307
|
+
padding-bottom: 32767px !important;
|
308
|
+
margin-bottom: -32767px !important;
|
309
|
+
height: 100%;
|
310
|
+
padding-top: 10px;
|
311
|
+
padding-right: 20px;
|
312
|
+
padding-bottom: 10px;
|
313
|
+
padding-left: 20px;
|
314
|
+
background-color: #FFF;
|
315
|
+
margin-left: 170px;
|
316
|
+
border: 1px solid #182b5a;
|
317
|
+
-webkit-border-radius:8px;
|
318
|
+
-moz-border-radius:8px;
|
319
|
+
border-radius:8px;
|
320
|
+
}
|
321
|
+
|
322
|
+
#main h3 {
|
323
|
+
line-height: 1.3;
|
324
|
+
margin-bottom: 1.4em;
|
325
|
+
}
|
326
|
+
#main h4 {
|
327
|
+
line-height: 1.3;
|
328
|
+
margin-bottom: 1.4em;
|
329
|
+
}
|
330
|
+
#main p {
|
331
|
+
line-height: 1.5;
|
332
|
+
margin-bottom: 1.8em;
|
333
|
+
}
|
334
|
+
#main ul {
|
335
|
+
margin-bottom: 1.8em;
|
336
|
+
margin-left: 1.2em;
|
337
|
+
list-style-position: outside;
|
338
|
+
}
|
339
|
+
#main ol {
|
340
|
+
margin-bottom: 1.8em;
|
341
|
+
margin-left: 1.2em;
|
342
|
+
list-style-position: outside;
|
343
|
+
}
|
344
|
+
#main li {
|
345
|
+
margin-bottom: 0.8em;
|
346
|
+
line-height: 1.4;
|
347
|
+
}
|
348
|
+
#main table {
|
349
|
+
border-collapse: collapse;
|
350
|
+
border-spacing: 0;
|
351
|
+
min-width:700px;
|
352
|
+
width: auto !important;
|
353
|
+
width: 700px;
|
354
|
+
}
|
355
|
+
#main table tr {
|
356
|
+
border-bottom-width: 1px;
|
357
|
+
border-bottom-style: dotted;
|
358
|
+
border-bottom-color: #aaa;
|
359
|
+
}
|
360
|
+
#main table a {
|
361
|
+
border-collapse: collapse;
|
362
|
+
border-spacing: 0;
|
363
|
+
min-width:600px;
|
364
|
+
width: auto !important;
|
365
|
+
width: 600px;
|
366
|
+
}
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
#main table tr.odd {
|
371
|
+
background-color: #f4f4f4;
|
372
|
+
}
|
373
|
+
|
374
|
+
#main table td {
|
375
|
+
padding: 10px 20px;
|
376
|
+
}
|
377
|
+
|
378
|
+
#main table td.title {
|
379
|
+
background: url(../images/file.png) no-repeat scroll 10px 50% transparent;
|
380
|
+
padding-left: 30px;
|
381
|
+
}
|
382
|
+
|
383
|
+
.admin_login #main {
|
384
|
+
margin: auto;
|
385
|
+
}
|
386
|
+
|
387
|
+
#aside h3 {
|
388
|
+
margin: 0;
|
389
|
+
padding: 0;
|
390
|
+
font-size: 11px;
|
391
|
+
}
|
392
|
+
|
393
|
+
#aside ul {
|
394
|
+
margin: 0;
|
395
|
+
padding: 0;
|
396
|
+
list-style: none;
|
397
|
+
}
|
398
|
+
|
399
|
+
#aside ul li.parent {
|
400
|
+
line-height: 22px;
|
401
|
+
font-weight: bold;
|
402
|
+
display: block;
|
403
|
+
margin-bottom: 10px;
|
404
|
+
}
|
405
|
+
#aside li.parent ul {
|
406
|
+
background-color: #eee;
|
407
|
+
-webkit-border-radius: 0px 0px 6px 6px;
|
408
|
+
-moz-border-radius: 0px 0px 6px 6px;
|
409
|
+
border-radius: 0px 0px 6px 6px;
|
410
|
+
border-right-width: 1px;
|
411
|
+
border-bottom-width: 1px;
|
412
|
+
border-left-width: 1px;
|
413
|
+
border-right-style: solid;
|
414
|
+
border-bottom-style: solid;
|
415
|
+
border-left-style: solid;
|
416
|
+
border-right-color: #333;
|
417
|
+
border-bottom-color: #333;
|
418
|
+
border-left-color: #333;
|
419
|
+
padding-left: 12px;
|
420
|
+
padding-bottom: 3px;
|
421
|
+
clear: both;
|
422
|
+
padding-top: 5px;
|
423
|
+
display: block;
|
424
|
+
padding-right: 12px;
|
425
|
+
}
|
426
|
+
#aside ul li ul li {
|
427
|
+
font-weight: normal;
|
428
|
+
}
|
429
|
+
#aside li.list {
|
430
|
+
/*
|
431
|
+
background: url(../images/files.png) no-repeat scroll 10px 50% transparent;
|
432
|
+
*/
|
433
|
+
}
|
434
|
+
#aside ul li ul li a {
|
435
|
+
padding-left: 23px;
|
436
|
+
display:block;
|
437
|
+
margin-bottom: 3px;
|
438
|
+
padding-right: 10px;
|
439
|
+
line-height: 22px;
|
440
|
+
height: 22px;
|
441
|
+
background-repeat: no-repeat;
|
442
|
+
}
|
443
|
+
#aside ul li ul li a:hover,
|
444
|
+
#aside ul li ul li a:active {
|
445
|
+
-webkit-border-radius:6px;
|
446
|
+
-moz-border-radius:6px;
|
447
|
+
border-radius:6px;
|
448
|
+
background-color:#ddd;
|
449
|
+
background-image: url(../images/aside_arrow.png);
|
450
|
+
background-position: 10px center;
|
451
|
+
}
|
452
|
+
|
453
|
+
#aside li.new {
|
454
|
+
/*
|
455
|
+
background: url(../images/add.png) no-repeat scroll 10px 50% transparent;
|
456
|
+
*/
|
457
|
+
}
|
458
|
+
#aside li.post h3 {
|
459
|
+
background: url(../images/post.png);
|
460
|
+
}
|
461
|
+
|
462
|
+
#aside li.page h3 {
|
463
|
+
background: url(../images/file.png);
|
464
|
+
}
|
465
|
+
|
466
|
+
#aside li.comment h3 {
|
467
|
+
background: url(../images/comment.png);
|
468
|
+
}
|
469
|
+
|
470
|
+
#aside li.category h3 {
|
471
|
+
background: url(../images/category.png);
|
472
|
+
}
|
473
|
+
|
474
|
+
#aside li.tag h3 {
|
475
|
+
background: url(../images/tag.png);
|
476
|
+
}
|
477
|
+
|
478
|
+
#aside li.user h3 {
|
479
|
+
background: url(../images/user.png);
|
480
|
+
}
|
481
|
+
|
482
|
+
#aside li.theme h3 a {
|
483
|
+
background: url(../images/theme.png);
|
484
|
+
}
|
485
|
+
|
486
|
+
#aside li.plugin h3 a {
|
487
|
+
background: url(../images/plugin.png);
|
488
|
+
}
|
489
|
+
|
490
|
+
#aside li.setting h3 a {
|
491
|
+
background: url(../images/setting.png);
|
492
|
+
}
|
493
|
+
|
494
|
+
#aside li.parent h3.title {
|
495
|
+
padding-left: 28px;
|
496
|
+
background-color: #444;
|
497
|
+
display: block;
|
498
|
+
background-repeat: no-repeat;
|
499
|
+
background-position: 8px 50%;
|
500
|
+
background-attachment: scroll;
|
501
|
+
padding-top: 4px;
|
502
|
+
padding-right: 8px;
|
503
|
+
padding-bottom: 4px;
|
504
|
+
color: #fff;
|
505
|
+
border: 1px solid #333;
|
506
|
+
-webkit-border-radius: 6px 6px 0px 0px ;
|
507
|
+
-moz-border-radius: 6px 6px 0px 0px ;
|
508
|
+
border-radius: 6px 6px 0px 0px ;
|
509
|
+
}
|
510
|
+
#aside li.parent h3 a {
|
511
|
+
color: #fff;
|
512
|
+
padding-left: 28px;
|
513
|
+
display: block;
|
514
|
+
background-repeat: no-repeat;
|
515
|
+
background-position: 8px 50%;
|
516
|
+
background-attachment: scroll;
|
517
|
+
padding-top: 4px;
|
518
|
+
padding-right: 8px;
|
519
|
+
padding-bottom: 4px;
|
520
|
+
color: #fff;
|
521
|
+
border: 1px solid #333;
|
522
|
+
-webkit-border-radius: 6px 6px 0px 0px ;
|
523
|
+
-moz-border-radius: 6px 6px 0px 0px ;
|
524
|
+
border-radius: 6px 6px 0px 0px ;
|
525
|
+
}
|
526
|
+
#aside li.parent h3 a:link,
|
527
|
+
#aside li.parent h3 a:visited {
|
528
|
+
background-color: #444;
|
529
|
+
}
|
530
|
+
#aside li.parent h3 a:hover,
|
531
|
+
#aside li.parent h3 a:active {
|
532
|
+
background-color: #595959;
|
533
|
+
text-shadow:#222 1px 1px 0px;
|
534
|
+
}
|
535
|
+
#footer {
|
536
|
+
clear: both;
|
537
|
+
border-top: 1px solid #333;
|
538
|
+
background: #343434;
|
539
|
+
text-align: center;
|
540
|
+
margin-top: 10px;
|
541
|
+
padding-top: 15px;
|
542
|
+
padding-right: 0px;
|
543
|
+
padding-bottom: 15px;
|
544
|
+
padding-left: 0px;
|
545
|
+
}
|
546
|
+
#footer a {
|
547
|
+
color: #FFF;
|
548
|
+
}
|
549
|
+
|
550
|
+
ul.themes {
|
551
|
+
list-style: none;
|
552
|
+
display: block;
|
553
|
+
padding: 0px;
|
554
|
+
}
|
555
|
+
ul.themes div {
|
556
|
+
display:block;
|
557
|
+
float: none;
|
558
|
+
text-align: center;
|
559
|
+
}
|
560
|
+
ul.themes div.title a {
|
561
|
+
font-size: 13px;
|
562
|
+
font-weight: bold;
|
563
|
+
display:block;
|
564
|
+
padding-top: 4px;
|
565
|
+
padding-bottom: 4px;
|
566
|
+
-webkit-border-radius: 4px 4px 0px 0px ;
|
567
|
+
-moz-border-radius: 4px 4px 0px 0px ;
|
568
|
+
border-radius: 4px 4px 0px 0px ;
|
569
|
+
border: 1px solid #333;
|
570
|
+
}
|
571
|
+
ul.themes div.title a:link,
|
572
|
+
ul.themes div.title a:visited {
|
573
|
+
background-color: #444;
|
574
|
+
color: #FFF;
|
575
|
+
}
|
576
|
+
ul.themes div.title a:hover,
|
577
|
+
ul.themes div.title a:active {
|
578
|
+
background-color: #595959;
|
579
|
+
text-shadow:#222 1px 1px 0px;
|
580
|
+
}
|
581
|
+
ul.themes div.screenshot {
|
582
|
+
display:block;
|
583
|
+
height:170px;
|
584
|
+
float: none;
|
585
|
+
text-align: center;
|
586
|
+
padding-top: 15px;
|
587
|
+
padding-bottom: 15px;
|
588
|
+
-webkit-border-radius: 0px 0px 4px 4px;
|
589
|
+
-moz-border-radius: 0px 0px 4px 4px;
|
590
|
+
border-radius: 0px 0px 4px 4px;
|
591
|
+
border-right-width: 1px;
|
592
|
+
border-bottom-width: 1px;
|
593
|
+
border-left-width: 1px;
|
594
|
+
border-right-style: solid;
|
595
|
+
border-bottom-style: solid;
|
596
|
+
border-left-style: solid;
|
597
|
+
border-right-color: #999;
|
598
|
+
border-bottom-color: #999;
|
599
|
+
border-left-color: #999;
|
600
|
+
}
|
601
|
+
ul.themes div.screenshot img {
|
602
|
+
-webkit-box-shadow: #666 0px 2px 3px;
|
603
|
+
-moz-box-shadow: #666 0px 2px 3px;
|
604
|
+
box-shadow: #666 0px 2px 3px;
|
605
|
+
width: 240px;
|
606
|
+
height: 170px;
|
607
|
+
max-width: 240px;
|
608
|
+
max-height: 170px;
|
609
|
+
width:auto !important;
|
610
|
+
height:auto !important;
|
611
|
+
}
|
612
|
+
ul.themes div.screenshot span {
|
613
|
+
line-height: 150px;
|
614
|
+
}
|
615
|
+
|
616
|
+
ul.plugins {
|
617
|
+
margin: 1.6em 1em;
|
618
|
+
list-style-type: square;
|
619
|
+
}
|
620
|
+
|
621
|
+
ul.plugins li {
|
622
|
+
margin: 0.6em 0em;
|
623
|
+
font-size: 14px;
|
624
|
+
}
|
625
|
+
|
626
|
+
ul.plugins li a {
|
627
|
+
text-decoration: underline;
|
628
|
+
}
|
629
|
+
|
630
|
+
#main li.theme {
|
631
|
+
float: left;
|
632
|
+
padding: 0;
|
633
|
+
margin: 10px;
|
634
|
+
background-color: #EDEDED;
|
635
|
+
width: 280px;
|
636
|
+
display: block;
|
637
|
+
}
|
638
|
+
|
639
|
+
#error {
|
640
|
+
width:510px;
|
641
|
+
background-color: #e8c5c5;
|
642
|
+
margin-bottom: 25px;
|
643
|
+
padding-top: 10px;
|
644
|
+
padding-right: 20px;
|
645
|
+
padding-bottom: 10px;
|
646
|
+
padding-left: 20px;
|
647
|
+
-webkit-border-radius: 4px;
|
648
|
+
-moz-border-radius: 4px;
|
649
|
+
border-radius: 4px;
|
650
|
+
}
|
651
|
+
|
652
|
+
#error ul {
|
653
|
+
padding-left: 25px;
|
654
|
+
list-style-position: outside;
|
655
|
+
}
|
656
|
+
#error .title {
|
657
|
+
list-style-position: outside;
|
658
|
+
font-weight: bold;
|
659
|
+
display: block;
|
660
|
+
margin-bottom: 2px;
|
661
|
+
}
|
662
|
+
|
663
|
+
#error li {
|
664
|
+
margin-bottom: 3px;
|
665
|
+
}
|
666
|
+
|
667
|
+
textarea.editor {
|
668
|
+
clear: both;
|
669
|
+
}
|
670
|
+
textarea#post_body,
|
671
|
+
textarea#page_body {
|
672
|
+
clear: none;
|
673
|
+
}
|
674
|
+
|
675
|
+
.pager {
|
676
|
+
clear: both;
|
677
|
+
width: 700px;
|
678
|
+
padding-top: 1em;
|
679
|
+
}
|
680
|
+
.pager li {
|
681
|
+
list-style-type: none;
|
682
|
+
}
|
683
|
+
.pager li a {
|
684
|
+
list-style-type: none;
|
685
|
+
display: block;
|
686
|
+
}
|
687
|
+
.pager li a:link,
|
688
|
+
.pager li a:visited {
|
689
|
+
text-decoration: none;
|
690
|
+
color: #1B346F;
|
691
|
+
}
|
692
|
+
.pager li a:hover,
|
693
|
+
.pager li a:active {
|
694
|
+
text-decoration: underline;
|
695
|
+
color: #AF2B3D;
|
696
|
+
}
|
697
|
+
.pager li.previous a {
|
698
|
+
float: left;
|
699
|
+
}
|
700
|
+
.pager li.next a {
|
701
|
+
float: right;
|
702
|
+
}
|
703
|
+
.pager li.previous a:before {
|
704
|
+
content:"\00ab";
|
705
|
+
margin-right: 0.3em;
|
706
|
+
}
|
707
|
+
.pager li.next a:after {
|
708
|
+
content:"\00bb";
|
709
|
+
margin-left: 0.3em;
|
710
|
+
}
|