forked from Botanical/BotanJS
Chinese font fix
This commit is contained in:
parent
0f7896a925
commit
ac7889e754
@ -51,9 +51,11 @@
|
|||||||
|
|
||||||
var deleteFlag = function (e)
|
var deleteFlag = function (e)
|
||||||
{
|
{
|
||||||
var p = { flag: this.nodeValue, sflage: this.parentNode };
|
|
||||||
postData( flagConf.URICount, p, confirmDelete.bind( p ), serverFailed );
|
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
var p = { stage: this.parentNode };
|
||||||
|
p[ id ] = this.nodeValue;
|
||||||
|
p[ "id" ] = id;
|
||||||
|
postData( flagConf.URICount, p, confirmDelete.bind( p ), serverFailed );
|
||||||
};
|
};
|
||||||
|
|
||||||
var confirmDelete = function (obj)
|
var confirmDelete = function (obj)
|
||||||
@ -64,7 +66,7 @@
|
|||||||
Dand.wrapc("ae_blockswitch",
|
Dand.wrapc("ae_blockswitch",
|
||||||
[
|
[
|
||||||
Dand.textNode( "Are you sure you want to delete " )
|
Dand.textNode( "Are you sure you want to delete " )
|
||||||
, Dand.wrap( "span", null, "flag_active", Dand.textNode( this.flag ) )
|
, Dand.wrap( "span", null, "flag_active", Dand.textNode( this[ id ] ) )
|
||||||
, Dand.textNode( " ?." )
|
, Dand.textNode( " ?." )
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
@ -79,7 +81,7 @@
|
|||||||
: null
|
: null
|
||||||
]
|
]
|
||||||
, "Delete", "No"
|
, "Delete", "No"
|
||||||
, doDelete.bind(this)
|
, doDelete.bind( this )
|
||||||
).show();
|
).show();
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -87,9 +89,10 @@
|
|||||||
{
|
{
|
||||||
if ( confirmed )
|
if ( confirmed )
|
||||||
{
|
{
|
||||||
|
this[ "del" ] = 1;
|
||||||
postData(
|
postData(
|
||||||
flagConf.URISet
|
flagConf.URISet
|
||||||
, { flag: this.flag, del: 1 }
|
, this
|
||||||
, deleteSuccess.bind( this )
|
, deleteSuccess.bind( this )
|
||||||
, serverFailed
|
, serverFailed
|
||||||
);
|
);
|
||||||
@ -99,9 +102,9 @@
|
|||||||
var deleteSuccess = function(obj)
|
var deleteSuccess = function(obj)
|
||||||
{
|
{
|
||||||
// Remove element
|
// Remove element
|
||||||
this.sflage.parentNode.removeChild(this.sflage);
|
this.stage.parentNode.removeChild( this.stage );
|
||||||
// Delete reference
|
// Delete reference
|
||||||
delete flags[this.flag];
|
delete flags[ this[ id ] ];
|
||||||
};
|
};
|
||||||
|
|
||||||
var parseFlags = function ()
|
var parseFlags = function ()
|
||||||
|
@ -36,12 +36,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.b_bodyWrapper {
|
.b_bodyWrapper {
|
||||||
font-family: custom-sans;
|
|
||||||
color: #555;
|
color: #555;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
min-height: 155px;
|
min-height: 155px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.b_bodyWrapper a { color: #f15a24; }
|
||||||
|
|
||||||
.b_notify { background-color: slategrey; }
|
.b_notify { background-color: slategrey; }
|
||||||
.b_notify:before { content: 'Follow'; }
|
.b_notify:before { content: 'Follow'; }
|
||||||
.b_notify:after { content: 'Unfollow'; }
|
.b_notify:after { content: 'Unfollow'; }
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
.section-buttons > a {
|
.section-buttons > a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: white;
|
color: white;
|
||||||
|
margin: 0.5em 0.2em;
|
||||||
background-color: darkslategray;
|
background-color: darkslategray;
|
||||||
padding: 0.75em 0;
|
padding: 0.75em 0;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
.site_file {
|
.site_file {
|
||||||
margin: 0.5em 0;
|
margin: 0.5em 0;
|
||||||
}
|
}
|
||||||
|
.sf_regular sup { vertical-align: baseline; }
|
||||||
|
|
||||||
.sf_regular {
|
.sf_regular {
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
|
@ -4,7 +4,7 @@ html { background-color: #222; }
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: #F0F0F0;
|
background-color: #F0F0F0;
|
||||||
font-family: custom-sans;
|
font-family: custom-sans,Helvetica,Arial,STHeiti,"Microsoft JhengHei","微軟正黑體";
|
||||||
}
|
}
|
||||||
|
|
||||||
pre { font-family: monospace; }
|
pre { font-family: monospace; }
|
||||||
|
@ -5,9 +5,6 @@
|
|||||||
|
|
||||||
color: #C2C5C9;
|
color: #C2C5C9;
|
||||||
background-color: #0C121B;
|
background-color: #0C121B;
|
||||||
|
|
||||||
word-wrap: break-word;
|
|
||||||
white-space: pre-wrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -64,6 +61,17 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.section > div {
|
||||||
|
margin-bottom: -100px;
|
||||||
|
overflow-y: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section > div > p {
|
||||||
|
padding-bottom: 100px;
|
||||||
|
overflow-x: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.section:hover:before {
|
.section:hover:before {
|
||||||
color: #909396;
|
color: #909396;
|
||||||
}
|
}
|
||||||
|
@ -44,8 +44,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
buildMessage.innerHTML = message
|
buildMessage.innerHTML = message
|
||||||
.replace( sRegEx, "<pre class=\"section\" data-name=\"$1\">" )
|
.replace( sRegEx, "<pre class=\"section\" data-name=\"$1\"><div><p>" )
|
||||||
.replace( eRegEx, "</pre>" )
|
.replace( eRegEx, "</p></div></pre>" )
|
||||||
.replace( /: (failed|ok)\n/g, ": <span class=\"status $1\">$1</span>\n" )
|
.replace( /: (failed|ok)\n/g, ": <span class=\"status $1\">$1</span>\n" )
|
||||||
;
|
;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user