Complete template system overhaul: CSS variables, theme management, and UI improvements #74
@@ -79,22 +79,22 @@ $darkKey = 'template.dark.' . $colorDarkKey;
|
|||||||
try {
|
try {
|
||||||
$wa->useStyle('template.light.colors_standard');
|
$wa->useStyle('template.light.colors_standard');
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$wa->registerAndUseStyle('template.light.colors_standard', $templatePath . '/css/global/light/colors_standard.css');
|
$wa->registerAndUseStyle('template.light.colors_standard', $templatePath . '/css/colors/light/colors_standard.css');
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$wa->useStyle('template.dark.colors_standard');
|
$wa->useStyle('template.dark.colors_standard');
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$wa->registerAndUseStyle('template.dark.colors_standard', $templatePath . '/css/global/dark/colors_standard.css');
|
$wa->registerAndUseStyle('template.dark.colors_standard', $templatePath . '/css/colors/dark/colors_standard.css');
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$wa->useStyle($lightKey);
|
$wa->useStyle($lightKey);
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$wa->registerAndUseStyle('template.light.dynamic', $templatePath . '/css/global/light/' . $colorLightKey . '.css');
|
$wa->registerAndUseStyle('template.light.dynamic', $templatePath . '/css/colors/light/' . $colorLightKey . '.css');
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$wa->useStyle($darkKey);
|
$wa->useStyle($darkKey);
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$wa->registerAndUseStyle('template.dark.dynamic', $templatePath . '/css/global/dark/' . $colorDarkKey . '.css');
|
$wa->registerAndUseStyle('template.dark.dynamic', $templatePath . '/css/colors/dark/' . $colorDarkKey . '.css');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scripts
|
// Scripts
|
||||||
|
|||||||
@@ -66,22 +66,22 @@ $darkKey = 'template.dark.' . $colorDarkKey;
|
|||||||
try {
|
try {
|
||||||
$wa->useStyle('template.light.colors_standard');
|
$wa->useStyle('template.light.colors_standard');
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$wa->registerAndUseStyle('template.light.colors_standard', $templatePath . '/css/global/light/colors_standard.css');
|
$wa->registerAndUseStyle('template.light.colors_standard', $templatePath . '/css/colors/light/colors_standard.css');
|
||||||
|
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$wa->useStyle('template.dark.colors_standard');
|
$wa->useStyle('template.dark.colors_standard');
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$wa->registerAndUseStyle('template.dark.colors_standard', $templatePath . '/css/global/dark/colors_standard.css');
|
$wa->registerAndUseStyle('template.dark.colors_standard', $templatePath . '/css/colors/dark/colors_standard.css');
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$wa->useStyle($lightKey);
|
$wa->useStyle($lightKey);
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$wa->registerAndUseStyle('template.light.dynamic', $templatePath . '/css/global/light/' . $colorLightKey . '.css');
|
$wa->registerAndUseStyle('template.light.dynamic', $templatePath . '/css/colors/light/' . $colorLightKey . '.css');
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$wa->useStyle($darkKey);
|
$wa->useStyle($darkKey);
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$wa->registerAndUseStyle('template.dark.dynamic', $templatePath . '/css/global/dark/' . $colorDarkKey . '.css');
|
$wa->registerAndUseStyle('template.dark.dynamic', $templatePath . '/css/colors/dark/' . $colorDarkKey . '.css');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scripts
|
// Scripts
|
||||||
|
|||||||
@@ -97,25 +97,25 @@ $darkKey = 'template.dark.' . $colorDarkKey;
|
|||||||
try {
|
try {
|
||||||
$wa->useStyle('template.light.colors_standard');
|
$wa->useStyle('template.light.colors_standard');
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$wa->registerAndUseStyle('template.light.colors_standard', $templatePath . '/css/global/light/colors_standard.css');
|
$wa->registerAndUseStyle('template.light.colors_standard', $templatePath . '/css/colors/light/colors_standard.css');
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$wa->useStyle('template.dark.colors_standard');
|
$wa->useStyle('template.dark.colors_standard');
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$wa->registerAndUseStyle('template.dark.colors_standard', $templatePath . '/css/global/dark/colors_standard.css');
|
$wa->registerAndUseStyle('template.dark.colors_standard', $templatePath . '/css/colors/dark/colors_standard.css');
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$wa->useStyle($lightKey);
|
$wa->useStyle($lightKey);
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$wa->registerAndUseStyle('template.light.dynamic', $templatePath . '/css/global/light/' . $colorLightKey . '.css');
|
$wa->registerAndUseStyle('template.light.dynamic', $templatePath . '/css/colors/light/' . $colorLightKey . '.css');
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$wa->useStyle($darkKey);
|
$wa->useStyle($darkKey);
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$wa->registerAndUseStyle('template.dark.dynamic', $templatePath . '/css/global/dark/' . $colorDarkKey . '.css');
|
$wa->registerAndUseStyle('template.dark.dynamic', $templatePath . '/css/colors/dark/' . $colorDarkKey . '.css');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scripts
|
// Scripts
|
||||||
|
|||||||
@@ -205,7 +205,7 @@
|
|||||||
<field name="useFontScheme" type="groupedlist" label="TPL_MOKOCASSIOPEIA_FONT_LABEL" default="0">
|
<field name="useFontScheme" type="groupedlist" label="TPL_MOKOCASSIOPEIA_FONT_LABEL" default="0">
|
||||||
<option value="0">JNONE</option>
|
<option value="0">JNONE</option>
|
||||||
<group label="TPL_MOKOCASSIOPEIA_FONT_GROUP_LOCAL">
|
<group label="TPL_MOKOCASSIOPEIA_FONT_GROUP_LOCAL">
|
||||||
<option value="media/templates/site/mokocassiopeia/css/global/fonts-local_roboto.css">Roboto (local)</option>
|
<option value="media/templates/site/mokocassiopeia/css/colors/fonts-local_roboto.css">Roboto (local)</option>
|
||||||
</group>
|
</group>
|
||||||
<group label="TPL_MOKOCASSIOPEIA_FONT_GROUP_WEB">
|
<group label="TPL_MOKOCASSIOPEIA_FONT_GROUP_WEB">
|
||||||
<option value="https://fonts.googleapis.com/css2?family=Fira+Sans:wght@100;300;400;700&display=swap">Fira Sans (web)</option>
|
<option value="https://fonts.googleapis.com/css2?family=Fira+Sans:wght@100;300;400;700&display=swap">Fira Sans (web)</option>
|
||||||
|
|||||||
Reference in New Issue
Block a user
$wrapperis computed fromfluidContainerbut never used anywhere in this file. Either apply it in the error page markup (as done in index.php) or remove it to avoid dead code.