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

Fix wazuh logo on low resolution #475

Merged
merged 1 commit into from
Jan 16, 2019
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
52 changes: 48 additions & 4 deletions SplunkAppForWazuh/appserver/static/css/styles/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -544,10 +544,54 @@ kbn-vis .vis-container {
height: auto;
}

/* Class for define Wazuh logo width */
.wz-logo-container {
width: 150px;
max-width: 150px;
@supports not (-moz-appearance:none) {
@media (min-width: 1060px) {
.wz-logo{
content: url("../images/wazuh/png/wazuh_white_full.png");
}
.wz-logo-container {
width: 150px;
max-width: 150px;
}
}
@media (max-width: 1059px) {
.wz-logo{
content: url("../images/wazuh/png/wazuh_white_iso.png");
max-height: 45px;
max-width: 28px;
}
.wz-logo-container {
min-width: 20px!important;
max-width: 30px!important;
margin-right: 5px!important;
}
}
}

@supports (-moz-appearance:none) {
@media (min-width: 1060px) {
.wz-logo::after{
content: url("../images/wazuh/png/wazuh_white_full.png");
display: flex;
}
.wz-logo-container {
width: 185px;
max-width: 185px;
}
}
@media (max-width: 1059px) {
.wz-logo::after{
content: url("../images/wazuh/png/wazuh_white_iso.png") ;
display: flex;
max-height: 45px;
max-width: 28px;
}
.wz-logo-container {
min-width: 20px;
max-width: 30px;
margin-right: 5px;
}
}
}

/* Unclassified but important Wazuh app component styles */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<!-- Wazuh app logo -->
<a class="cursor-pointer wz-logo-container wz-margin-right-15" ui-sref="overview">
<img class="wz-responsive-img" aria-hidden="true" src='{{logoUrl}}'>
<img class="wz-responsive-img wz-logo" aria-hidden="true">
</a>

<!-- Main Wazuh app navigation buttons -->
Expand Down