Move board title rice to custom CSS. #393
This commit is contained in:
parent
7ad4645b81
commit
3a11bae514
@ -728,7 +728,7 @@ Config =
|
||||
FappeT:
|
||||
werk: false
|
||||
|
||||
'Custom CSS': false
|
||||
'Custom CSS': true
|
||||
|
||||
Index:
|
||||
'Index Mode': 'paged'
|
||||
@ -787,7 +787,7 @@ Config =
|
||||
|
||||
favicon: 'ferongr'
|
||||
|
||||
usercss: ''
|
||||
usercss: `<%= importCSS('custom') %>`
|
||||
|
||||
hotkeys:
|
||||
# QR & Options
|
||||
|
||||
@ -289,6 +289,10 @@ Settings =
|
||||
for boardID, record of changes['selectedArchives']
|
||||
for type, name of record when name of uids
|
||||
record[type] = uids[name]
|
||||
if compareString < '00001.00011.00016.00000'
|
||||
if (rice = Config['usercss'].match(/\/\* Board title rice \*\/(?:\n.+)*/)[0])
|
||||
if data['usercss']? and data['usercss'].indexOf(rice) < 0
|
||||
changes['usercss'] = rice + '\n\n' + data['usercss']
|
||||
changes
|
||||
|
||||
loadSettings: (data, cb) ->
|
||||
|
||||
20
src/General/css/custom.css
Normal file
20
src/General/css/custom.css
Normal file
@ -0,0 +1,20 @@
|
||||
/* Board title rice */
|
||||
div.boardTitle {
|
||||
font-weight: 400 !important;
|
||||
}
|
||||
:root.yotsuba div.boardTitle {
|
||||
font-family: sans-serif !important;
|
||||
text-shadow: 1px 1px 1px rgba(100,0,0,0.6);
|
||||
}
|
||||
:root.yotsuba-b div.boardTitle {
|
||||
font-family: sans-serif !important;
|
||||
text-shadow: 1px 1px 1px rgba(105,10,15,0.6);
|
||||
}
|
||||
:root.photon div.boardTitle {
|
||||
font-family: sans-serif !important;
|
||||
text-shadow: 1px 1px 1px rgba(0,74,153,0.6);
|
||||
}
|
||||
:root.tomorrow div.boardTitle {
|
||||
font-family: sans-serif !important;
|
||||
text-shadow: 1px 1px 1px rgba(167,170,168,0.6);
|
||||
}
|
||||
@ -84,9 +84,3 @@
|
||||
{
|
||||
background-image: url("data:image/svg+xml,<svg viewBox='0 0 26 26' preserveAspectRatio='true' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(51,51,51)' d='M24.132,7.971c-2.203-2.205-5.916-2.098-8.25,0.235L15.5,8.588l-0.382-0.382c-2.334-2.333-6.047-2.44-8.25-0.235c-2.204,2.203-2.098,5.916,0.235,8.249l8.396,8.396l8.396-8.396C26.229,13.887,26.336,10.174,24.132,7.971z'/></svg>");
|
||||
}
|
||||
|
||||
/* Board Title */
|
||||
:root.photon div.boardTitle {
|
||||
font-family: sans-serif !important;
|
||||
text-shadow: 1px 1px 1px rgba(0,74,153,0.6);
|
||||
}
|
||||
|
||||
@ -1746,9 +1746,6 @@ a:only-of-type > .remove {
|
||||
.boardSubtitle[contenteditable="true"] {
|
||||
cursor: text !important;
|
||||
}
|
||||
div.boardTitle {
|
||||
font-weight: 400 !important;
|
||||
}
|
||||
/* Link Title Favicons */
|
||||
<%=
|
||||
grunt.file.expand('src/General/img/links/*.png').map(function(file) {
|
||||
|
||||
@ -149,9 +149,3 @@
|
||||
{
|
||||
background-image: url("data:image/svg+xml,<svg viewBox='0 0 26 26' preserveAspectRatio='true' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(197,200,198)' d='M24.132,7.971c-2.203-2.205-5.916-2.098-8.25,0.235L15.5,8.588l-0.382-0.382c-2.334-2.333-6.047-2.44-8.25-0.235c-2.204,2.203-2.098,5.916,0.235,8.249l8.396,8.396l8.396-8.396C26.229,13.887,26.336,10.174,24.132,7.971z'/></svg>");
|
||||
}
|
||||
|
||||
/* Board Title */
|
||||
:root.tomorrow div.boardTitle {
|
||||
font-family: sans-serif !important;
|
||||
text-shadow: 1px 1px 1px rgba(167,170,168,0.6);
|
||||
}
|
||||
|
||||
@ -77,9 +77,3 @@
|
||||
{
|
||||
background-image: url("data:image/svg+xml,<svg viewBox='0 0 26 26' preserveAspectRatio='true' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(0,0,0)' d='M24.132,7.971c-2.203-2.205-5.916-2.098-8.25,0.235L15.5,8.588l-0.382-0.382c-2.334-2.333-6.047-2.44-8.25-0.235c-2.204,2.203-2.098,5.916,0.235,8.249l8.396,8.396l8.396-8.396C26.229,13.887,26.336,10.174,24.132,7.971z'/></svg>");
|
||||
}
|
||||
|
||||
/* Board Title */
|
||||
:root.yotsuba-b div.boardTitle {
|
||||
font-family: sans-serif !important;
|
||||
text-shadow: 1px 1px 1px rgba(105,10,15,0.6);
|
||||
}
|
||||
|
||||
@ -76,9 +76,3 @@
|
||||
{
|
||||
background-image: url("data:image/svg+xml,<svg viewBox='0 0 26 26' preserveAspectRatio='true' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(128,0,0)' d='M24.132,7.971c-2.203-2.205-5.916-2.098-8.25,0.235L15.5,8.588l-0.382-0.382c-2.334-2.333-6.047-2.44-8.25-0.235c-2.204,2.203-2.098,5.916,0.235,8.249l8.396,8.396l8.396-8.396C26.229,13.887,26.336,10.174,24.132,7.971z'/></svg>");
|
||||
}
|
||||
|
||||
/* Board Title */
|
||||
:root.yotsuba div.boardTitle {
|
||||
font-family: sans-serif !important;
|
||||
text-shadow: 1px 1px 1px rgba(100,0,0,0.6);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user