Browse Source

Add style to config; minor tweaks.

master
Ben Kurtovic 8 years ago
parent
commit
5363fc32b0
5 changed files with 16 additions and 8 deletions
  1. +1
    -1
      calefaction/__init__.py
  2. +6
    -1
      config/config.yml.sample
  3. +5
    -4
      static/main.css
  4. +4
    -1
      templates/_base.mako
  5. +0
    -1
      templates/error.mako

+ 1
- 1
calefaction/__init__.py View File

@@ -1 +1 @@
__version__ = "0.1"
__version__ = "0.1.dev0"

+ 6
- 1
config/config.yml.sample View File

@@ -1,12 +1,17 @@
# This is a sample config file for Calefaction.
# Copy this to config.yml and modify it to set up your website.
# You must restart the server after making any changes.

corp:
# Find your corp's ID at, e.g., https://zkillboard.com/corporation/917701062/
id: 123456789
# Full corp name (doesn't need to match in-game name exactly, but should)
# Full corp name (doesn't need to match in-game name exactly, but it should)
name: My Corp Name Here

# Default stylesheet from static/styles/*.css:
# one of "amarr", "caldari", "gallente", "minmatar", or add your own
style: null

welcome: |-
(If you are seeing this message on the public internet, someone forgot to
configure their website. Whoops!)


+ 5
- 4
static/main.css View File

@@ -36,13 +36,13 @@ a:hover {
}

main, header, footer {
background-color: rgba(0, 0, 0, 0.8);
background-color: rgba(0, 0, 0, 0.75);
border-color: #4A4A4A;
}

main {
margin: 2em auto;
padding: 0 1em;
padding: 0.5em 1.5em;
border-width: 1px;
border-style: solid;
}
@@ -95,7 +95,8 @@ header a {
}

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

header .aligned {
@@ -104,7 +105,7 @@ header .aligned {

#corp-masthead {
height: 30px;
margin-right: 0.5em;
margin-right: 0.25em;
}

#login-button {


+ 4
- 1
templates/_base.mako View File

@@ -6,7 +6,10 @@
<%block name="title">${g.config.get("corp.name") | h}</%block>
</title>
<link rel="stylesheet" type="text/css" href="${url_for('staticv', filename='main.css')}" />
<link rel="stylesheet" type="text/css" href="${url_for('staticv', filename='styles/minmatar.css')}" />
% if g.config.get("style"):
<% stylesheet = "styles/{}.css".format(g.config.get("style")) %>
<link rel="stylesheet" type="text/css" href="${url_for('staticv', filename=stylesheet)}" />
% endif
% for size in g.eve.image.corp_widths:
<link rel="icon" type="image/png" sizes="${size}x${size}" href="${g.eve.image.corp(g.config.get('corp.id'), size)}" />
% endfor


+ 0
- 1
templates/error.mako View File

@@ -2,7 +2,6 @@
<%block name="title">
Error &ndash; ${g.config.get("corp.name") | h}
</%block>
<%block name="header"/>
<h1>Error!</h1>
<p>You may report the following information to the developers:</p>
<div id="error">


Loading…
Cancel
Save