mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 03:17:38 -02:30
Creating .less files for Tower branding and AWX branding
This separates the classes used for the Tower logos and the AWX logos, into two separate files which I placed in /assets.
This commit is contained in:
19
awx/ui/client/assets/awx_branding.block.less
Normal file
19
awx/ui/client/assets/awx_branding.block.less
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
// Styling for login modal logo
|
||||||
|
.LoginModal-logoImage, .LoginModal-logoImage--notCustom {
|
||||||
|
width: 200px;
|
||||||
|
margin: -30px 20px 10px -30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Styling for home button on left-hand side of the nav bar
|
||||||
|
.MainMenu-logoImage {
|
||||||
|
width: 100px;
|
||||||
|
margin: 20px;
|
||||||
|
padding-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Styling for the about modal
|
||||||
|
.About-brandImg {
|
||||||
|
float: left;
|
||||||
|
width: 200px;
|
||||||
|
padding-top: 13px;
|
||||||
|
}
|
||||||
21
awx/ui/client/assets/tower_branding.block.less
Normal file
21
awx/ui/client/assets/tower_branding.block.less
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
// Styling for login modal logo
|
||||||
|
.LoginModal-logoImage, .LoginModal-logoImage--notCustom {
|
||||||
|
max-width: 112px;
|
||||||
|
margin: 20px 20px 10px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Styling for home button on left-hand side of the nav bar
|
||||||
|
.MainMenu-logoImage {
|
||||||
|
max-width: 147px;
|
||||||
|
max-height: 50px;
|
||||||
|
height: 30px;
|
||||||
|
width: 93px;
|
||||||
|
margin: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Styling for the about modal
|
||||||
|
.About-brandImg {
|
||||||
|
float: left;
|
||||||
|
width: 112px;
|
||||||
|
padding-top: 13px;
|
||||||
|
}
|
||||||
@@ -43,6 +43,8 @@
|
|||||||
@import "text-label.less";
|
@import "text-label.less";
|
||||||
@import "./bootstrap-datepicker.less";
|
@import "./bootstrap-datepicker.less";
|
||||||
@import "./client/src/shared/branding/colors.default.less";
|
@import "./client/src/shared/branding/colors.default.less";
|
||||||
|
// @import "./client/assets/tower_branding.block.less";
|
||||||
|
@import "./client/assets/awx_branding.block.less";
|
||||||
// Bootstrap default overrides
|
// Bootstrap default overrides
|
||||||
@import "./client/src/shared/bootstrap-settings.less";
|
@import "./client/src/shared/bootstrap-settings.less";
|
||||||
/* Bootstrap fix that's causing a right margin to appear
|
/* Bootstrap fix that's causing a right margin to appear
|
||||||
|
|||||||
@@ -30,11 +30,6 @@
|
|||||||
padding-top: 0px;
|
padding-top: 0px;
|
||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
}
|
}
|
||||||
.About-brandImg {
|
|
||||||
float: left;
|
|
||||||
width: 112px;
|
|
||||||
padding-top: 13px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.About-close {
|
.About-close {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="About-modalFooter">
|
<div class="About-modalFooter">
|
||||||
<img class="About-brandImg img-responsive" src="/static/assets/tower-logo-login.svg" />
|
<img class="About-brandImg img-responsive" src="/static/assets/awx-logo-small.png" />
|
||||||
|
<!-- <img class="About-brandImg img-responsive" src="/static/assets/tower-logo-login.svg" /> -->
|
||||||
<p class="About-footerText">
|
<p class="About-footerText">
|
||||||
<span class="About-ansibleVersion">
|
<span class="About-ansibleVersion">
|
||||||
Ansible {{ ansible_version }}
|
Ansible {{ ansible_version }}
|
||||||
|
|||||||
@@ -56,10 +56,6 @@
|
|||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.LoginModal-logoImage, .LoginModal-logoImage--notCustom {
|
|
||||||
max-width: 112px;
|
|
||||||
margin: 20px 20px 10px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.LoginModal-alert {
|
.LoginModal-alert {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
|||||||
@@ -27,14 +27,6 @@
|
|||||||
background-color: @menu-link-bg;
|
background-color: @menu-link-bg;
|
||||||
}
|
}
|
||||||
|
|
||||||
.MainMenu-logoImage {
|
|
||||||
max-width: 147px;
|
|
||||||
max-height: 50px;
|
|
||||||
height: 30px;
|
|
||||||
width: 93px;
|
|
||||||
margin: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.MainMenu-logoImage--licenseMissing:hover{
|
.MainMenu-logoImage--licenseMissing:hover{
|
||||||
cursor:default;
|
cursor:default;
|
||||||
background-color: @default-bg!important;
|
background-color: @default-bg!important;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
ng-class="{'MainMenu-logoImage--licenseMissing': licenseMissing}"
|
ng-class="{'MainMenu-logoImage--licenseMissing': licenseMissing}"
|
||||||
ng-src="/static/assets/awx-logo-small.png">
|
ng-src="/static/assets/awx-logo-small.png">
|
||||||
<!-- ng-src="/static/assets/tower-logo-header.svg"> -->
|
<!-- ng-src="/static/assets/tower-logo-header.svg"> -->
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- Mobile menu items -->
|
<!-- Mobile menu items -->
|
||||||
|
|||||||
Reference in New Issue
Block a user