Use Font Awesome to replace "QR" end "EAI".
Hopefully this'll make more sense for some users.
This commit is contained in:
parent
2b08eafb39
commit
030b1278bc
3
LICENSE
3
LICENSE
@ -31,5 +31,8 @@ audio/beep.wav from http://freesound.org/people/pierrecartoons1979/sounds/90112/
|
|||||||
4chan/4chan-JS (https://github.com/4chan/4chan-JS)
|
4chan/4chan-JS (https://github.com/4chan/4chan-JS)
|
||||||
license: https://github.com/4chan/4chan-JS/blob/master/LICENSE
|
license: https://github.com/4chan/4chan-JS/blob/master/LICENSE
|
||||||
|
|
||||||
|
Font Awesome by Dave Gandy (http://fontawesome.io)
|
||||||
|
license: http://fontawesome.io/license/
|
||||||
|
|
||||||
seaweedchan/4chan-x (https://github.com/seaweedchan/4chan-x)
|
seaweedchan/4chan-x (https://github.com/seaweedchan/4chan-x)
|
||||||
license: https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
license: https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
|
|||||||
@ -200,9 +200,6 @@ a[href="javascript:;"] {
|
|||||||
.brackets-wrap::after {
|
.brackets-wrap::after {
|
||||||
content: "]\\00a0";
|
content: "]\\00a0";
|
||||||
}
|
}
|
||||||
.expand-all-shortcut {
|
|
||||||
opacity: .35;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Notifications */
|
/* Notifications */
|
||||||
#notifications {
|
#notifications {
|
||||||
|
|||||||
@ -16,6 +16,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"font-awesome": "git://github.com/tagliala/Font-Awesome.git#1f882574ab9067c69789e4be39bf8d86eee53815",
|
||||||
"grunt": "~0.4.1",
|
"grunt": "~0.4.1",
|
||||||
"grunt-bump": "~0.0.11",
|
"grunt-bump": "~0.0.11",
|
||||||
"grunt-concurrent": "~0.3.0",
|
"grunt-concurrent": "~0.3.0",
|
||||||
|
|||||||
@ -318,6 +318,13 @@ Main =
|
|||||||
Main.thisPageIsLegit
|
Main.thisPageIsLegit
|
||||||
|
|
||||||
css: """
|
css: """
|
||||||
|
@font-face {
|
||||||
|
font-family: 'FontAwesome';
|
||||||
|
src: url('data:application/font-woff;base64,<%= grunt.file.read('node_modules/font-awesome/font/fontawesome-webfont.woff', {encoding: 'base64'}) %>') format('woff');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
<%= grunt.file.read('node_modules/font-awesome/css/font-awesome.min.css').replace(/@font-face\{[^}]+\}/, '').replace(/\\/g, '\\\\') %>
|
||||||
<%= grunt.file.read('css/style.css') %>
|
<%= grunt.file.read('css/style.css') %>
|
||||||
<%= grunt.file.read('css/yotsuba.css') %>
|
<%= grunt.file.read('css/yotsuba.css') %>
|
||||||
<%= grunt.file.read('css/yotsuba-b.css') %>
|
<%= grunt.file.read('css/yotsuba-b.css') %>
|
||||||
|
|||||||
@ -3,8 +3,7 @@ ImageExpand =
|
|||||||
return if g.VIEW is 'catalog' or !Conf['Image Expansion']
|
return if g.VIEW is 'catalog' or !Conf['Image Expansion']
|
||||||
|
|
||||||
@EAI = $.el 'a',
|
@EAI = $.el 'a',
|
||||||
className: 'expand-all-shortcut'
|
className: 'expand-all-shortcut icon-resize-full'
|
||||||
textContent: 'EAI'
|
|
||||||
title: 'Expand All Images'
|
title: 'Expand All Images'
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
$.on @EAI, 'click', ImageExpand.cb.toggleAll
|
$.on @EAI, 'click', ImageExpand.cb.toggleAll
|
||||||
@ -33,11 +32,11 @@ ImageExpand =
|
|||||||
toggleAll: ->
|
toggleAll: ->
|
||||||
$.event 'CloseMenu'
|
$.event 'CloseMenu'
|
||||||
if ImageExpand.on = $.hasClass ImageExpand.EAI, 'expand-all-shortcut'
|
if ImageExpand.on = $.hasClass ImageExpand.EAI, 'expand-all-shortcut'
|
||||||
ImageExpand.EAI.className = 'contract-all-shortcut'
|
ImageExpand.EAI.className = 'contract-all-shortcut icon-resize-small'
|
||||||
ImageExpand.EAI.title = 'Contract All Images'
|
ImageExpand.EAI.title = 'Contract All Images'
|
||||||
func = ImageExpand.expand
|
func = ImageExpand.expand
|
||||||
else
|
else
|
||||||
ImageExpand.EAI.className = 'expand-all-shortcut'
|
ImageExpand.EAI.className = 'expand-all-shortcut icon-resize-full'
|
||||||
ImageExpand.EAI.title = 'Expand All Images'
|
ImageExpand.EAI.title = 'Expand All Images'
|
||||||
func = ImageExpand.contract
|
func = ImageExpand.contract
|
||||||
for ID, post of g.posts
|
for ID, post of g.posts
|
||||||
|
|||||||
@ -19,8 +19,7 @@ QR =
|
|||||||
return unless QR.postingIsEnabled
|
return unless QR.postingIsEnabled
|
||||||
|
|
||||||
sc = $.el 'a',
|
sc = $.el 'a',
|
||||||
className: 'qr-shortcut'
|
className: 'qr-shortcut icon-comment-alt'
|
||||||
textContent: 'QR'
|
|
||||||
title: 'Quick Reply'
|
title: 'Quick Reply'
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
$.on sc, 'click', ->
|
$.on sc, 'click', ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user