Changeset - 99f81d23ea20
[Not reviewed]
default
0 1 1
domruf - 8 years ago 2017-10-25 20:37:52
dominikruf@gmail.com
less: introduce less variables and use them to control the logo styling

This will make it easier to customize the logo.

Also introduce kallithea-variables.less, intended to contain various values
that easily can be modified to change most of the styling.

Original patch modified by Mads Kiilerich to just change the styling method
without changing the look.
2 files changed with 10 insertions and 4 deletions:
0 comments (0 inline, 0 general)
kallithea/public/less/kallithea-variables.less
Show inline comments
 
new file 100644
 
@kallithea-logo-url:                "../images/kallithea-logo.svg";
 
@kallithea-logo-width:              140px;
 
@kallithea-logo-height:             30px;
 
@kallithea-logo-bottom:             4px;
kallithea/public/less/style.less
Show inline comments
 
@@ -8,6 +8,8 @@
 
 *
 
 */
 

	
 
@import "kallithea-variables.less";
 

	
 
body {
 
  background: url("../images/background.png") repeat scroll 0 0 #B0B0B0;
 
}
 
@@ -113,10 +115,10 @@ nav.navbar {
 
    content: "";
 
    display: inline-block;
 
    margin-right: .2em;
 
    background-image: url("../images/kallithea-logo.svg");
 
    width: 140px;
 
    height: 30px;
 
    margin-bottom: -4px;
 
    background-image: url(@kallithea-logo-url);
 
    width: @kallithea-logo-width;
 
    height: @kallithea-logo-height;
 
    margin-bottom: -@kallithea-logo-bottom;
 
    margin-top: -12px;
 
  }
 
}
0 comments (0 inline, 0 general)