Show background image in theme selector
This commit is contained in:
parent
23af9df3f2
commit
08b8e92b82
@ -117,6 +117,9 @@ if (!is_empty($VARS['id'])) {
|
||||
</style>
|
||||
<input type="radio" name="style" value="<?php echo $s; ?>" <?php echo $ss; ?> />
|
||||
<div class="card theme" id="theme_<?php echo $s; ?>">
|
||||
<?php if (file_exists($themedir . "$s/background.png")) { ?>
|
||||
<img src="./themes/<?php echo $s; ?>/background.png" alt="" class="theme_img" />
|
||||
<?php } ?>
|
||||
<div class="theme_colors" id="themecolors_<?php echo $s; ?>">
|
||||
</div>
|
||||
<div class="card-body m-0 p-1">
|
||||
|
@ -4,7 +4,7 @@ License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
.theme_bin {
|
||||
max-height: 100px;
|
||||
max-height: 300px;
|
||||
overflow-y: scroll;
|
||||
padding: 5px;
|
||||
}
|
||||
@ -16,7 +16,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
.theme_bin label input[type=radio] + .theme {
|
||||
cursor: pointer;
|
||||
border: 0px solid transparent;
|
||||
border: 3px solid white;
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
@ -28,4 +28,16 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
width: 100%;
|
||||
min-width: 5rem;
|
||||
height: 2rem;
|
||||
}
|
||||
|
||||
.theme_bin label .theme .theme_img {
|
||||
width: 2rem;
|
||||
margin-left: 1.5rem;
|
||||
margin-right: 1.5rem;
|
||||
margin-top: .05rem;
|
||||
margin-bottom: .05rem;
|
||||
max-height: 1.9rem;
|
||||
display: inline;
|
||||
position: absolute;
|
||||
padding: 0px;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user