custom styles possible

This commit is contained in:
Tristan Schneider 2020-12-17 19:45:06 +01:00
parent 15ac431324
commit ea1f5e26fd
2 changed files with 9 additions and 1 deletions

View File

@ -48,7 +48,7 @@ $config_data = json_decode($raw_json_config, false);
<html> <html>
<head> <head>
<title><?php print($config_data->title ?? "One Word Each"); ?></title> <title><?php print($config_data->title ?? "One Word Each"); ?></title>
<link rel="stylesheet" href="style.css?newinputarea"> <link rel="stylesheet" href="style.css?buttonstransparent">
<?php <?php
if (!isset($config_data->send_logo)) { if (!isset($config_data->send_logo)) {
print("<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css' integrity='sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA==' crossorigin='anonymous' />"); print("<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css' integrity='sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA==' crossorigin='anonymous' />");
@ -57,6 +57,13 @@ $config_data = json_decode($raw_json_config, false);
<link rel="icon" href="<?php print($config_data->logo->icon_path ?? "favicon.ico"); ?>" type="image/x-icon"> <link rel="icon" href="<?php print($config_data->logo->icon_path ?? "favicon.ico"); ?>" type="image/x-icon">
</head> </head>
<body> <body>
<?php
if (isset($config_data->style)) {
print("<style>\n");
print($config_data->style);
print("\n</style>");
}
?>
<table> <table>
<tr> <tr>
<td width="50%"><img src="<?php print($config_data->logo->image_path ?? "OWE_Logo.png"); ?>" width="90%"></td> <td width="50%"><img src="<?php print($config_data->logo->image_path ?? "OWE_Logo.png"); ?>" width="90%"></td>

View File

@ -9,6 +9,7 @@ body, input, button {
input, button { input, button {
border: 2px solid white; border: 2px solid white;
padding: 0px 5px 0px; padding: 0px 5px 0px;
background: transparent;
} }
a { a {