Skip to content

Commit

Permalink
CSS: outsource .logo related rules into a new .less file `logo.less'
Browse files Browse the repository at this point in the history
refs #10009
  • Loading branch information
Al2Klimov committed Sep 25, 2015
1 parent cd319f8 commit ed93569
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 29 deletions.
1 change: 1 addition & 0 deletions library/Icinga/Web/StyleSheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class StyleSheet
'css/icinga/pagination.less',
'css/icinga/selection-toolbar.less',
'css/icinga/login.less',
'css/icinga/logo.less',
'css/icinga/controls.less'
);

Expand Down
3 changes: 0 additions & 3 deletions public/css/icinga/layout-structure.less
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,6 @@ html {
}

#login {
.logo .image img {
width: 70%;
}
.form {
width: 100%;
margin: auto;
Expand Down
26 changes: 0 additions & 26 deletions public/css/icinga/login.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,11 @@
width: 100%;
height: 100%;

.logo {
background-color: @colorPetrol;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 60%;
border-bottom: 1px solid #d9d9d9d;
text-align: center;
-webkit-box-shadow: 0 3px 7px -3px #000;
-moz-box-shadow: 0 3px 7px -3px #000;
box-shadow: 0 3px 7px -3px #000;
}

.image {
position: absolute;
bottom: 1em;
left: 0px;
right: 0px;
text-align: center;
}

.error {
margin-left:auto;
margin-right:auto;
}

.image img {
width: 375px;
}

.form {
position: absolute;
font-size: 0.9em;
Expand Down
33 changes: 33 additions & 0 deletions public/css/icinga/logo.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */

.logo {
background-color: @colorPetrol;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 60%;
border-bottom: 1px solid #d9d9d9d;
text-align: center;
-webkit-box-shadow: 0 3px 7px -3px #000;
-moz-box-shadow: 0 3px 7px -3px #000;
box-shadow: 0 3px 7px -3px #000;

.image {
position: absolute;
bottom: 1em;
left: 0px;
right: 0px;
text-align: center;

img {
width: 375px;
}
}
}

#layout.minimal-layout {
.logo .image img {
width: 70%;
}
}

0 comments on commit ed93569

Please sign in to comment.