mirror of
https://github.com/ansible/awx.git
synced 2026-03-25 12:55:04 -02:30
using .less variables for replacing styles
and other feedback from PR
This commit is contained in:
@@ -1,19 +0,0 @@
|
|||||||
// 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;
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
// 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,8 +43,7 @@
|
|||||||
@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/variables.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
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** @define About */
|
/** @define About */
|
||||||
@import "./client/src/shared/branding/colors.default.less";
|
@import "./client/src/shared/branding/colors.default.less";
|
||||||
|
@import "./client/assets/variables.less";
|
||||||
|
|
||||||
.About-ansibleVersion,
|
.About-ansibleVersion,
|
||||||
.About-cowsayCode {
|
.About-cowsayCode {
|
||||||
@@ -31,11 +31,17 @@
|
|||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.About-brandImg {
|
||||||
|
float: @about-modal-float;
|
||||||
|
width: @about-modal-width;
|
||||||
|
padding-top: @about-modal-padding-top;
|
||||||
|
}
|
||||||
|
|
||||||
.About-close {
|
.About-close {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 15px;
|
top: 15px;
|
||||||
right: 15px;
|
right: 15px;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
.About-modalFooter {
|
.About-modalFooter {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="About-modalFooter">
|
<div class="About-modalFooter">
|
||||||
<img class="About-brandImg img-responsive" src="/static/assets/awx-logo-small.png" />
|
<img class="About-brandImg img-responsive" src="/static/assets/default-logo-large.png" />
|
||||||
<!-- <img class="About-brandImg img-responsive" src="/static/assets/tower-logo-login.svg" /> -->
|
<!-- <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">
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
@import "../../shared/branding/colors.default.less";
|
@import "../../shared/branding/colors.default.less";
|
||||||
|
@import "./client/assets/variables.less";
|
||||||
|
|
||||||
/** @define LoginModal */
|
/** @define LoginModal */
|
||||||
.LoginModal-backDrop {
|
.LoginModal-backDrop {
|
||||||
@@ -56,6 +57,15 @@
|
|||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.LoginModal-logoImage {
|
||||||
|
max-width: 112px;
|
||||||
|
margin: 20px 20px 10px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.LoginModal-logoImage--notCustom {
|
||||||
|
max-width: @login-max-width;
|
||||||
|
margin: @login-magin;
|
||||||
|
}
|
||||||
|
|
||||||
.LoginModal-alert {
|
.LoginModal-alert {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
|||||||
@@ -98,8 +98,7 @@ export default ['$log', '$cookies', '$compile', '$rootScope',
|
|||||||
scope.customLogo = $rootScope.custom_logo;
|
scope.customLogo = $rootScope.custom_logo;
|
||||||
scope.customLogoPresent = true;
|
scope.customLogoPresent = true;
|
||||||
} else {
|
} else {
|
||||||
// scope.customLogo = "tower-logo-login.svg";
|
scope.customLogo = "default-logo-large.png";
|
||||||
scope.customLogo = "awx-logo-small.png";
|
|
||||||
scope.customLogoPresent = false;
|
scope.customLogoPresent = false;
|
||||||
}
|
}
|
||||||
scope.customLoginInfo = $AnsibleConfig.custom_login_info;
|
scope.customLoginInfo = $AnsibleConfig.custom_login_info;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
@import "../shared/branding/colors.default.less";
|
@import "../shared/branding/colors.default.less";
|
||||||
|
@import "./client/assets/variables.less";
|
||||||
|
|
||||||
/** @define MainMenu */
|
/** @define MainMenu */
|
||||||
|
|
||||||
@@ -27,6 +28,15 @@
|
|||||||
background-color: @menu-link-bg;
|
background-color: @menu-link-bg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.MainMenu-logoImage {
|
||||||
|
max-width: @main-menu-max-width;
|
||||||
|
max-height: @main-menu-max-height;
|
||||||
|
height: @main-menu-height;
|
||||||
|
width: @main-menu-width;
|
||||||
|
margin: @main-menu-margin;
|
||||||
|
padding-top: @main-menu-padding-top;
|
||||||
|
}
|
||||||
|
|
||||||
.MainMenu-logoImage--licenseMissing:hover{
|
.MainMenu-logoImage--licenseMissing:hover{
|
||||||
cursor:default;
|
cursor:default;
|
||||||
background-color: @default-bg!important;
|
background-color: @default-bg!important;
|
||||||
|
|||||||
@@ -6,9 +6,8 @@
|
|||||||
ng-class="{'is-loggedOut' : !current_user || !current_user.username, 'MainMenu-logoImage--licenseMissing': licenseMissing}">
|
ng-class="{'is-loggedOut' : !current_user || !current_user.username, 'MainMenu-logoImage--licenseMissing': licenseMissing}">
|
||||||
<img class="MainMenu-logoImage"
|
<img class="MainMenu-logoImage"
|
||||||
ng-class="{'MainMenu-logoImage--licenseMissing': licenseMissing}"
|
ng-class="{'MainMenu-logoImage--licenseMissing': licenseMissing}"
|
||||||
ng-src="/static/assets/awx-logo-small.png">
|
ng-src="/static/assets/default-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