mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-09 14:56:32 +02:00
Update styles.
This commit is contained in:
@@ -275,15 +275,11 @@ class Context {
|
|||||||
$html = '<style class="x-head">';
|
$html = '<style class="x-head">';
|
||||||
|
|
||||||
if (sizeof($fonts) > 0) {
|
if (sizeof($fonts) > 0) {
|
||||||
$html .= '#root, #root input, #root select {font-family: "';
|
$html .= '#root,input,select{font-family:"' . implode('","', $fonts) . '"!important}';
|
||||||
$html .= implode('","', $fonts);
|
|
||||||
$html .= '" !important}';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sizeof($fonts_mono) > 0) {
|
if (sizeof($fonts_mono) > 0) {
|
||||||
$html .= '#root pre, #root code {font-family: "';
|
$html .= 'pre,code{font-family:"' . implode('","', $fonts_mono) . '"!important}';
|
||||||
$html .= implode('","', $fonts_mono);
|
|
||||||
$html .= '" !important}';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$html .= '</style>';
|
$html .= '</style>';
|
||||||
|
@@ -29,7 +29,7 @@ Options
|
|||||||
"resources": {
|
"resources": {
|
||||||
"scripts": [],
|
"scripts": [],
|
||||||
"styles": [
|
"styles": [
|
||||||
"//fonts.googleapis.com/css?family=Roboto:300,400,700"
|
"//fonts.googleapis.com/css?family=Ubuntu:300,400,700|Ubuntu+Mono:400,700"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@@ -6,15 +6,10 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
font-family: @font-family;
|
|
||||||
font-size: @font-size;
|
|
||||||
font-weight: @font-weight;
|
|
||||||
color: @col-text;
|
|
||||||
background: @col-back;
|
background: @col-back;
|
||||||
}
|
}
|
||||||
|
|
||||||
input, select {
|
#root, input, select {
|
||||||
font-family: @font-family;
|
font-family: @font-family;
|
||||||
font-size: @font-size;
|
font-size: @font-size;
|
||||||
font-weight: @font-weight;
|
font-weight: @font-weight;
|
||||||
|
Reference in New Issue
Block a user