Theme: Settings to control Domain Selector title colors.

This commit is contained in:
Nate 2020-06-02 09:17:23 -06:00
parent 87a7073889
commit 9178fd63a7
3 changed files with 33 additions and 5 deletions

View File

@ -367,6 +367,22 @@
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Set whether to cache the theme in the session.";
$y++;
$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "a3fcfa28-ca09-4c7a-849c-afdfd9fedc44";
$apps[$x]['default_settings'][$y]['default_setting_category'] = "theme";
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "domain_selector_title_color";
$apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
$apps[$x]['default_settings'][$y]['default_setting_value'] = "#000";
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the text color of the domain selector title.";
$y++;
$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "95e581f2-3f4e-4e4b-91e6-879d2beb329e";
$apps[$x]['default_settings'][$y]['default_setting_category'] = "theme";
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "domain_selector_title_color_hover";
$apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
$apps[$x]['default_settings'][$y]['default_setting_value'] = "#5082ca";
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the text hover color of the domain selector title.";
$y++;
$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "4e0309da-4adb-4a05-a321-d0ec6546dceb";
$apps[$x]['default_settings'][$y]['default_setting_category'] = "theme";
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "domain_selector_background_color";

View File

@ -1080,6 +1080,18 @@ header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
text-align: left;
}
#domains_header > a#domains_title {
font-weight: 600;
font-size: <?php echo ($_SESSION['theme']['heading_text_size']['text'] != '') ? $_SESSION['theme']['heading_text_size']['text'] : '15px'; ?>;
font-family: <?php echo ($_SESSION['theme']['heading_text_font']['text'] != '') ? $_SESSION['theme']['heading_text_font']['text'] : 'arial'; ?>;
color: <?php echo ($_SESSION['theme']['domain_selector_title_color']['text'] != '') ? $_SESSION['theme']['domain_selector_title_color']['text'] : '#000'; ?>;
}
#domains_header > a#domains_title:hover {
text-decoration: none;
color: <?php echo ($_SESSION['theme']['domain_selector_title_color_hover']['text'] != '') ? $_SESSION['theme']['domain_selector_title_color_hover']['text'] : '#5082ca'; ?>;
}
#domains_list {
position: relative;
overflow: auto;

View File

@ -302,7 +302,7 @@
$(document).scrollTop(0);
$('#domains_container').show();
$('#domains_block').animate({marginRight: '+=300'}, 400, function() {
$('#domain_filter').trigger('focus');
$('#domains_filter').trigger('focus');
});
}
@ -310,8 +310,8 @@
$('#domains_visible').val(0);
$(document).ready(function() {
$('#domains_block').animate({marginRight: '-=300'}, 400, function() {
$('#domain_filter').val('');
domain_search($('#domain_filter').val());
$('#domains_filter').val('');
domain_search($('#domains_filter').val());
$('.navbar').css('margin-right','0'); //restore navbar margin
$('#domains_container').css('right','0'); //domain container right position
$('#domains_container').hide();
@ -972,9 +972,9 @@
<div id='domains_block'>
<div id='domains_header'>
<input id='domains_hide' type='button' class='btn' style='float: right' value="{$text.theme_button_close}">
<a href='{$domains_app_path}'><b style='color: #000;'>{$text.theme_title_domains}</b></a> ({$domain_count})
<a id='domains_title' href='{$domains_app_path}'>{$text.theme_title_domains} <span style='font-size: 80%;'>({$domain_count})</span></a>
<br><br>
<input type='text' id='domain_filter' class='formfld' style='margin-left: 0; min-width: 100%; width: 100%;' placeholder="{$text.theme_label_search}" onkeyup='domain_search(this.value)'>
<input type='text' id='domains_filter' class='formfld' style='margin-left: 0; min-width: 100%; width: 100%;' placeholder="{$text.theme_label_search}" onkeyup='domain_search(this.value)'>
</div>
<div id='domains_list'>
{foreach $domains as $row}