Browse Source

Fix up header styling when logged in.

master
Ben Kurtovic 8 years ago
parent
commit
90874b72c3
8 changed files with 34 additions and 22 deletions
  1. +1
    -0
      calefaction/__init__.py
  2. +19
    -10
      static/main.css
  3. +2
    -2
      static/styles/amarr.css
  4. +2
    -2
      static/styles/caldari.css
  5. +2
    -2
      static/styles/gallente.css
  6. +2
    -2
      static/styles/minmatar.css
  7. +1
    -1
      templates/_base.mako
  8. +5
    -3
      templates/_default.mako

+ 1
- 0
calefaction/__init__.py View File

@@ -7,6 +7,7 @@ baseLogger = logging.getLogger("calefaction")
del logging del logging


def enable_logging(): def enable_logging():
"""Set up calefaction's logger to print out all logs to stderr."""
import logging import logging


fmt = "%(asctime)s [%(levelname)s] %(name)s: %(message)s" fmt = "%(asctime)s [%(levelname)s] %(name)s: %(message)s"


+ 19
- 10
static/main.css View File

@@ -48,7 +48,6 @@ main {
} }


header { header {
font-size: 120%;
border-bottom-width: 1px; border-bottom-width: 1px;
border-bottom-style: solid; border-bottom-style: solid;
} }
@@ -114,15 +113,6 @@ header > div > div {
} }
} }


header a {
color: #EAEAEA;
}

header a:hover {
color: #BABABA;
text-decoration: none;
}

header .aligned { header .aligned {
vertical-align: middle; vertical-align: middle;
} }
@@ -132,6 +122,11 @@ header .spacer {
visibility: hidden; visibility: hidden;
} }


header nav {
display: inline-block;
margin-left: 1.5em;
}

footer ul { footer ul {
margin: 0; margin: 0;
padding: 0; padding: 0;
@@ -151,8 +146,22 @@ footer ul li:not(:last-child):after {
margin-right: 0.25em; margin-right: 0.25em;
} }


#corp-title {
font-size: 120%;
color: #EAEAEA;
}

#corp-title:hover {
color: #BABABA;
text-decoration: none;
}

#character-portrait { #character-portrait {
height: 32px; height: 32px;
margin-right: 0.25em;
box-sizing: border-box;
border-width: 1px;
border-style: solid;
} }


#flashes { #flashes {


+ 2
- 2
static/styles/amarr.css View File

@@ -1,8 +1,8 @@
body { body {
background-image: url("/static/images/amarr.jpg");
background-image: url("/static/images/amarr.jpg?v=1");
} }


main, header, footer {
main, header, footer, #character-portrait {
border-color: #5F4A26; border-color: #5F4A26;
} }




+ 2
- 2
static/styles/caldari.css View File

@@ -1,8 +1,8 @@
body { body {
background-image: url("/static/images/caldari.jpg");
background-image: url("/static/images/caldari.jpg?v=1");
} }


main, header, footer {
main, header, footer, #character-portrait {
border-color: #364A5F; border-color: #364A5F;
} }




+ 2
- 2
static/styles/gallente.css View File

@@ -1,8 +1,8 @@
body { body {
background-image: url("/static/images/gallente.jpg");
background-image: url("/static/images/gallente.jpg?v=1");
} }


main, header, footer {
main, header, footer, #character-portrait {
border-color: #365F4A; border-color: #365F4A;
} }




+ 2
- 2
static/styles/minmatar.css View File

@@ -1,8 +1,8 @@
body { body {
background-image: url("/static/images/minmatar.jpg");
background-image: url("/static/images/minmatar.jpg?v=1");
} }


main, header, footer {
main, header, footer, #character-portrait {
border-color: #5F3C42; border-color: #5F3C42;
} }




+ 1
- 1
templates/_base.mako View File

@@ -29,7 +29,7 @@
<a href="${url_for('index')}"> <a href="${url_for('index')}">
<img id="corp-masthead" class="aligned" title="Home" alt="Home" src="${g.eve.image.corp(g.config.get('corp.id'), 256)}"/> <img id="corp-masthead" class="aligned" title="Home" alt="Home" src="${g.eve.image.corp(g.config.get('corp.id'), 256)}"/>
</a> </a>
<a href="${url_for('index')}" class="aligned">${g.config.get("corp.name") | h}</a>
<a id="corp-title" class="aligned" href="${url_for('index')}">${g.config.get("corp.name") | h}</a>
</%block> </%block>
</div> </div>
<div class="right"> <div class="right">


+ 5
- 3
templates/_default.mako View File

@@ -1,13 +1,15 @@
<%inherit file="_base.mako"/> <%inherit file="_base.mako"/>
<%block name="lefthead"> <%block name="lefthead">
${parent.lefthead()} ${parent.lefthead()}
<nav>
<nav class="aligned">
Campaign: XYZ | Map | Intel | Members... Campaign: XYZ | Map | Intel | Members...
</nav> </nav>
</%block> </%block>
<%block name="righthead"> <%block name="righthead">
<img id="character-portrait" class="aligned" title="${g.auth.get_character_prop('name')}" alt="" src="${g.eve.image.character(g.auth.get_character_id(), 256)}"/> <img id="character-portrait" class="aligned" title="${g.auth.get_character_prop('name')}" alt="" src="${g.eve.image.character(g.auth.get_character_id(), 256)}"/>
${g.auth.get_character_prop("name")}
[<a title="Log out" href="${url_for('logout')}">logout</a>] <!-- JS switch to a POST form -->
<span class="aligned">
${g.auth.get_character_prop("name")}
[<a title="Log out" href="${url_for('logout')}">logout</a>] <!-- ... JS switch to a POST form -->
</span>
</%block> </%block>
${next.body()} ${next.body()}

Loading…
Cancel
Save