Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI fixes in help and system info tab #2705

Merged
merged 3 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions css/qsm-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ span.qsm-quiz-name {
/******************** About/Credits Page *********************/
div.qsm_icon_wrap {
position: absolute;
top: -35px;
top: -24px;
left: -30px;
color: #111827;
background-position: center 24px;
Expand All @@ -622,9 +622,13 @@ div.qsm_icon_wrap {
display: inline-block;
width: 150px;
}
.about-wrap img{
.qsm-about-heading img{
width: 100px;
margin-left: -5px;
margin-top: 13px;
}
.qsm-system-info-page{
margin-right: 0;
}
.qsm-tab-content .feature {
margin-bottom: 20px;
Expand Down Expand Up @@ -3658,15 +3662,19 @@ button.button.qsm-slashcommand-variables-button .qsm-slash-inside {
box-shadow: none;
color: inherit;
}
.about-wrap{
margin: 10px 0 0;
}
.about-wrap .wp-person .gravatar{
border-radius: 30px;
}
.about-wrap h1{
.qsm-about-heading h1{
font-size: 18px;
display: inline-block;
position: relative;
position: absolute;
font-weight: 400;
line-height: 28px;
top: 37px;
}
.about-wrap h2{
font-size: 18px;
Expand All @@ -3688,13 +3696,14 @@ button.button.qsm-slashcommand-variables-button .qsm-slash-inside {
flex-wrap: wrap;
}
.help-slide div{
width: 330px;
height: 260px;
width: 400px;
height: 250px;
border: 1px solid #E6E6E6;
margin: 20px;
flex-direction: column;
display: flex;
padding: 20px;
justify-content: center;
}

.help-slide div img{
Expand All @@ -3717,11 +3726,11 @@ button.button.qsm-slashcommand-variables-button .qsm-slash-inside {
display: none;
}
.result-page-wrapper .tablenav-pages .pagination-links .disable{
background-color: #e6e6e6e3;
background-color: #f0f0f1;
}
.result-page-wrapper .pagination-links .prev-page.disable:hover,
.result-page-wrapper .pagination-links .next-page.disable:hover{
background-color: #e6e6e6e3;
background-color: #f0f0f1;
}
#theme-color-settings-content select,
#theme-color-settings-content input {
Expand Down
15 changes: 8 additions & 7 deletions php/admin/about-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,19 @@ function qsm_generate_about_page() {
add_meta_box( 'wpss_mrts', __( 'Need Help?', 'quiz-master-next' ), 'qsm_documentation_meta_box_content', 'meta_box_help' );
add_meta_box( 'wpss_mrts', __( 'System Info', 'quiz-master-next' ), 'qsm_system_meta_box_content', 'meta_box_sys_info' );
?>
<div class="qsm-about-heading">
<img src="<?php echo esc_url(plugins_url('../../assets/icon-128x128.png', __FILE__)); ?>" alt="">
<h1><?php esc_html_e('Quiz And Survey Master', 'quiz-master-next'); ?></h1>
<div class="qsm_icon_wrap"><?php echo esc_html($version); ?></div>
</div>

<?php if ( 'help' === $active_tab ) {?>
<div class="wrap qsm-help-page">
<h2><?php esc_html_e( 'Help Page', 'quiz-master-next' ); ?></h2>
<?php } elseif ( 'about' === $active_tab ) {?>
<div class="wrap about-wrap">
<img src="<?php echo esc_url( plugins_url( '../../assets/icon-128x128.png', __FILE__ ) )?> " alt="">
<h1><?php esc_html_e( 'Quiz And Survey Master', 'quiz-master-next' ); ?>
</h1>
<div class="qsm_icon_wrap"><?php echo esc_html( $version ); ?></div>
<?php } ?>

<?php } elseif ( 'system_info' === $active_tab ) {?>
<div class="wrap system-info-wrap">
<?php }?>
<h2 class="nav-tab-wrapper">
<?php
foreach ( $tab_array as $tab ) {
Expand Down