Skip to content

Commit

Permalink
Merge pull request #2 from houkanshan/dev
Browse files Browse the repository at this point in the history
Adjust plus icon
  • Loading branch information
houkanshan committed Mar 22, 2014
2 parents c0c4602 + 4e638ee commit e3f4673
Show file tree
Hide file tree
Showing 10 changed files with 363 additions and 363 deletions.
25 changes: 14 additions & 11 deletions assets/stylus/fonticon.styl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@font-face
@font-face
font-family 'icomoon'
src url('/fonts/icomoon.eot?-s5hseh')
src url('/fonts/icomoon.eot?#iefix-s5hseh') format('embedded-opentype'),
Expand All @@ -9,7 +9,7 @@
font-style normal


[class^="icon-"], [class*=" icon-"]
[class^="icon-"], [class*=" icon-"]
font-family 'icomoon'
speak none
font-style normal
Expand All @@ -23,28 +23,28 @@
-moz-osx-font-smoothing grayscale


.icon-evernote:before
.icon-evernote:before
content "\e600"

.icon-lock:before
.icon-lock:before
content "\e602"

.icon-feather:before
.icon-feather:before
content "\e603"

.icon-leaf:before
.icon-leaf:before
content "\e605"

.icon-delete:before
.icon-delete:before
content "\e604"

.icon-pen:before
.icon-pen:before
content "\e606"

.icon-zoom-in:before
.icon-zoom-in:before
content "\e60b"

.icon-zoom-out:before
.icon-zoom-out:before
content "\e60c"

.icon-eye:before
Expand Down Expand Up @@ -102,4 +102,7 @@
content "\e607"

.icon-star-empty:before
content "\e61e"
content "\e61e"

.icon-plus:before
content "\e61f"
9 changes: 7 additions & 2 deletions assets/stylus/widgets/book.styl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ book_h = 160px
height 1.8em
font-size 1.5em
text-align center
line-height 1.6em
line-height 1.8em
border-radius 1em
position absolute
z-index 2
Expand All @@ -72,6 +72,11 @@ book_h = 160px
&:hover
background #fff
color #111
.icon-plus
font-size: 0.7em
line-height: 2.7em
display: block
margin-left: 0.07em
.notes-count
position absolute
z-index 2
Expand Down Expand Up @@ -108,4 +113,4 @@ book_h = 160px
&:hover
border-color #aaa
&:after
color #999
color #999
314 changes: 1 addition & 313 deletions public/css/style.css

Large diffs are not rendered by default.

Binary file modified public/fonts/icomoon.eot
Binary file not shown.
302 changes: 302 additions & 0 deletions public/fonts/icomoon.json

Large diffs are not rendered by default.

71 changes: 36 additions & 35 deletions public/fonts/icomoon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/fonts/icomoon.ttf
Binary file not shown.
Binary file modified public/fonts/icomoon.woff
Binary file not shown.
2 changes: 1 addition & 1 deletion public/partials/books.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<section id="all-books"><h1 ng-show="user.is_self">所有书</h1><h1 ng-show="!user.is_self">{{ user.name }}的书架</h1><ul class="books"><li ng-repeat="book in books" class="book"><div remote-image="book.images.large" class="cover"><a link="/{{ user.uid }}/book/{{ book.id }}" class="book-link"></a><span class="notes-count">{{ book.notes_count }}篇笔记</span><a ng-show="user.is_self" link="/{{ user.uid }}/book/{{ book.id }}/new" class="add-note">+</a></div><span class="title">{{ book.title }}</span><span class="author">{{ book.author[0] }}</span></li><li ng-show="user.is_self" ng-click="searchBook()" class="book empty"><div class="cover"></div></li></ul><p ng-show="tipVisible">还没有写过笔记</p></section><script type="text/ng-template" id="modalSearchBook.html"><div ng-controller="SearchBookCtrl" class="modal-search"><div class="modal-header"><h3>给一本书写笔记</h3></div><div class="modal-body"><input id="new-book-name" type="text" placeholder="输入书名,回车查找" input-enter="searchBook(query)" ng-model="query"/><input id="new-book-id" type="hidden" value="{{ selectedBook.id }}"/><ul class="search-results"><li ng-repeat="book in books" ng-click="selectBook($index, book)" ng-class="{'active': $index == selectedIndex}" class="result"><img remote-image="book.images.large"/><div class="result-info"><h4>{{ book.title }}</h4><p>{{ book.summary | characters: 120 }}</p></div></li></ul><div ng-show="has_searched" class="tip">搜索不到? 直接输入想读的书对应的豆瓣Subject ID (下例红色部分)</div><div ng-show="has_searched" class="tip"> http://book.douban.com/subject/<span>25746578</span>/</div></div><div class="modal-footer"><div class="selected-bookname">{{ selectedBook.title }}</div><div class="buttons-group"><button ng-click="ok(selectedBook.id)" class="button-primary">开始写</button><button ng-click="cancel()" class="button-default">取消</button></div></div></div></script>
<section id="all-books"><h1 ng-show="user.is_self">所有书</h1><h1 ng-show="!user.is_self">{{ user.name }}的书架</h1><ul class="books"><li ng-repeat="book in books" class="book"><div remote-image="book.images.large" class="cover"><a link="/{{ user.uid }}/book/{{ book.id }}" class="book-link"></a><span class="notes-count">{{ book.notes_count }}篇笔记</span><a ng-show="user.is_self" link="/{{ user.uid }}/book/{{ book.id }}/new" class="add-note"><i class="icon-plus"></i></a></div><span class="title">{{ book.title }}</span><span class="author">{{ book.author[0] }}</span></li><li ng-show="user.is_self" ng-click="searchBook()" class="book empty"><div class="cover"></div></li></ul><p ng-show="tipVisible">还没有写过笔记</p></section><script type="text/ng-template" id="modalSearchBook.html"><div ng-controller="SearchBookCtrl" class="modal-search"><div class="modal-header"><h3>给一本书写笔记</h3></div><div class="modal-body"><input id="new-book-name" type="text" placeholder="输入书名,回车查找" input-enter="searchBook(query)" ng-model="query"/><input id="new-book-id" type="hidden" value="{{ selectedBook.id }}"/><ul class="search-results"><li ng-repeat="book in books" ng-click="selectBook($index, book)" ng-class="{'active': $index == selectedIndex}" class="result"><img remote-image="book.images.large"/><div class="result-info"><h4>{{ book.title }}</h4><p>{{ book.summary | characters: 120 }}</p></div></li></ul><div ng-show="has_searched" class="tip">搜索不到? 直接输入想读的书对应的豆瓣Subject ID (下例红色部分)</div><div ng-show="has_searched" class="tip"> http://book.douban.com/subject/<span>25746578</span>/</div></div><div class="modal-footer"><div class="selected-bookname">{{ selectedBook.title }}</div><div class="buttons-group"><button ng-click="ok(selectedBook.id)" class="button-primary">开始写</button><button ng-click="cancel()" class="button-default">取消</button></div></div></div></script>
3 changes: 2 additions & 1 deletion views/partials/books.jade
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ section#all-books
div.cover(remote-image='book.images.large')
a.book-link(link="/{{ user.uid }}/book/{{ book.id }}")
span.notes-count {{ book.notes_count }}篇笔记
a.add-note(ng-show='user.is_self', link="/{{ user.uid }}/book/{{ book.id }}/new")= "+"
a.add-note(ng-show='user.is_self', link="/{{ user.uid }}/book/{{ book.id }}/new")
i.icon-plus
span.title {{ book.title }}
span.author {{ book.author[0] }}
li.book.empty(ng-show="user.is_self", ng-click="searchBook()")
Expand Down

0 comments on commit e3f4673

Please sign in to comment.