Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mobile, update zh-CN locales #488

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ test/tmp
test/version_tmp
tmp
log
vendor

# YARD artifacts
.yardoc
@@ -23,3 +24,4 @@ bin/
db/*.sqlite
.DS_Store
.localeapp
.vscode
1 change: 1 addition & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
//= require jquery-visible-min.js
//= require underscore-min.js
//= require backbone-min.js
//= require turbolinks-min.js

_.templateSettings = {
interpolate: /\{\{\=(.+?)\}\}/g,
6 changes: 6 additions & 0 deletions app/assets/javascripts/turbolinks-min.js

Large diffs are not rendered by default.

39 changes: 37 additions & 2 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
@@ -51,6 +51,23 @@ code {
border-top: 7px solid #484948;
}

@media (max-width: 768px) {
#footer .row-fluid > * {
display: none;
}

#footer .row-fluid > .span6:first-child {
display: block;
width: 100%;
text-align: center;
}

#frame {
padding-top: 7px;
border-top: none;
}
}

.alert {
text-align: center;
-webkit-border-radius: 0px;
@@ -108,6 +125,13 @@ code {
margin-bottom: 14px;
}

@media (max-width: 768px) {
#action-bar {
margin-left: 8px;
margin-right: 8px;
}
}

ul#story-list, ul#feed-list {
list-style-type: none;
margin-left: 0px;
@@ -176,7 +200,7 @@ li.story.open .story-preview {
}

.story-lead {
color: #e5e5e5;
color: #c5c5c5;
}

.story-published {
@@ -251,7 +275,7 @@ li.story.open .story-body-container {
}

p.story-details {
margin-right: 5px;
margin-right: 14px;
overflow: hidden;
}

@@ -369,6 +393,17 @@ li.feed .feed-last-updated {
text-align: right;
}

@media (max-width: 768px) {
li.feed .feed-last-updated {
display: none;
}

li.feed .row-fluid .span2 {
float: right;
margin-right: 21px;
}
}

li.feed .last-updated {
font-size: 10px;
}
12 changes: 6 additions & 6 deletions config/locales/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -32,11 +32,11 @@ zh-CN:
title: 想要添加新内容?
edit:
fields:
feed_name:
feed_url:
submit:
feed_name: 供稿名称
feed_url: 供稿地址
submit: 保存
flash:
updated_successfully:
updated_successfully: 你的订阅已经更新完毕,稍等一段时间就可以阅读啦
index:
add: 添加
add_some_feeds: 你应该%{add}一些订阅哟~
@@ -97,7 +97,7 @@ zh-CN:
keys:
a: 添加新订阅
bv: 转到原网址
f:
f: 转到订阅列表
jk: 下一个/上一个故事
left: 上一页
m: 将一个条目标为已读/未读
@@ -113,7 +113,7 @@ zh-CN:
archive: 查看所有故事
go_make: 去做些其它事了
gtfo: 是时候停止阅读
rss_zero: 你已经达成了零RSS的任务™
rss_zero: RSS=零
sessions:
destroy:
flash: