get app ready for heroku

This commit is contained in:
2017-02-07 22:26:44 -05:00
parent ae5250e688
commit 537795bf16
36 changed files with 33 additions and 0 deletions

4
static/sass/Makefile Normal file
View File

@@ -0,0 +1,4 @@
SRC=$(wildcard *.scss)
all: $(SRC)
sass include.scss ../css/site.css

42
static/sass/details.scss Normal file
View File

@@ -0,0 +1,42 @@
.approve {
padding: $pad-xl;
.status {
font-size: 16px;
color: $midgray;
font-weight: lighter;
span {
color: $text;
}
}
img {
border: 1px solid $midgray;
max-width: 100%;
}
}
.actions {
margin: $pad-m 0;
a {
text-decoration: none;
font-size: 12px;
font-weight: normal;
}
}
.details {
color: $text;
font-size: 12px;
font-weight: normal;
margin: $pad-m 0;
padding: $pad-l;
border-radius: $pad-s;
border: 1px solid $midgray;
span {
color: $midgray;
}
}

85
static/sass/globals.scss Normal file
View File

@@ -0,0 +1,85 @@
$purple: #563d7c;
$gold: #fdd017;
$lightgray: #f8f8f8;
$midgray: #969499;
$darkgray: #4b4a4d;
$text: #252526;
$shadowgray: rgba(0, 0, 0, .8);
// size constants
$pad-s: 2px;
$pad-m: 8px;
$pad-l: 16px;
$pad-xl: 36;
body {
color: $text;
font-family: sans-serif;
background-color: $lightgray;
padding-bottom: 0px;
margin: 0px $pad-l;
}
.nav {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 50px;;
box-sizing: border-box;
padding: 16px;
background-color: $purple;
color: $gold;
box-shadow: 0px 3px 12px $shadowgray;
z-index: 10;
h3 {
font-weight: lighter;
font-size: 16px;
margin: 0;
}
a {
float: right;
color: $gold;
text-decoration: none;
font-size: 16px;
}
}
.pull-right {
float: right;
margin: $pad-l;
}
.container {
margin-bottom: $pad-xl;
& > div {
margin-left: auto;
margin-right: auto;
margin-top: 64px;
max-width: 960;
background-color: #fff;
border: solid 1px $midgray;
box-shadow: 0px 3px 9px lighten($shadowgray, 20%);
}
}
.btn {
border-radius: $pad-s;
border: 1px solid $midgray;
color: $purple;
display: inline-block;
padding: $pad-m $pad-l;
text-decoration: none;
vertical-align: middle;
white-space: nowrap;
&:hover {
background-color: lighten($purple, 35%);
}
}

5
static/sass/include.scss Normal file
View File

@@ -0,0 +1,5 @@
@import 'globals';
@import 'details';
@import 'items';
@import 'login';
@import 'new';

144
static/sass/items.scss Normal file
View File

@@ -0,0 +1,144 @@
section {
color: $midgray;
font-weight: lighter;
font-size: 16px;
margin-top: 2*$pad-xl;
margin-bottom: -2*$pad-xl + $pad-l;
max-width: 960px;
margin-right: auto;
margin-left: auto;
}
.items {
a.page {
display: inline-block;
margin: $pad-m;
text-decoration: none;
color: $midgray;
font-size: 12px;
float: right;
}
a.page:hover {
text-decoration: underline;
color: $purple;
}
a.page.empty:hover {
color: $midgray;
text-decoration: none;
}
}
.item {
padding: $pad-m $pad-xl;
margin: 0px;
border-bottom: 1px solid $midgray;
box-sizing: border-box;
width: 100%;
.committee {
color: $midgray;
font-size: 12px;
font-weight: bold;
margin: 0px;
}
a {
text-decoration: none;
}
.details-row {
margin: $pad-m 0;
font-size: 16px;
font-weight: lighter;
color: $text;
padding: 0px;
b {
color: $darkgray;
}
em {
color: $midgray;
margin: 0 $pad-s;
}
}
.status {
color: $midgray;
font-size: 12px;
margin: 0px;
}
.cost {
display: inline-block;
text-align: center;
width: 120px;
height: 24px;
font-size: 12px;
color: $midgray;
border-radius: $pad-s;
border: 1px solid $midgray;
box-sizing: border-box;
padding: 2*$pad-s;
margin: 2*$pad-s 0;
}
.approved {
background-color: #ffd9d9;
}
.processed {
background-color: #d9ffd9;
}
.rejected {
background-color: $midgray;
color: $lightgray;
}
.newItem {
background-color: #fff7d9;
}
}
@media (min-width: 800px) {
.item .cost {
float: right;
}
}
.empty {
margin: $pad-l;
color: $midgray;
font-weight: lighter;
font-size: 16px;
text-align: center;
}
$button-size: 24px;
.btn-floating {
position: fixed;
bottom: $button-size;
right: $button-size;
padding: $button-size/2;
color: $gold;
background-color: $purple;
text-decoration: none;
font-weight: bold;
z-index: 1000;
border-radius: 50%;
text-align: center;
box-shadow: 0 0 6px rgba(0,0,0,.16),0 6px 12px rgba(0,0,0,.32);
span {
display: block;
width: 36;
height: 36;
font-size: 28;
}
}

33
static/sass/login.scss Normal file
View File

@@ -0,0 +1,33 @@
body.login {
background-color: $purple;
color: $gold;
}
.login {
text-align: center;
color: $gold;
div {
margin-top: 30%;
}
h3 {
font-size: 24px;
margin-bottom: $pad-m;
}
h2 {
font-size: 28px;
margin-top: -$pad-l;
}
.btn {
background-color: $gold;
color: $purple;
&:hover {
background-color: darken($gold, 15%);
}
}
}

74
static/sass/new.scss Normal file
View File

@@ -0,0 +1,74 @@
h1 {
font-size: 18px;
font-weight: lighter;
color: $purple;
margin: $pad-l;
}
hr {
margin: $pad-l;
color: $midgray;
}
form {
div {
margin: $pad-l;
* {
display: inline-block;
}
label {
width: 180px;
color: $text;
vertical-align: top;
}
input, select, textarea {
width: 180px;
}
&.clear {
margin: -$pad-l 0;
width: 180px;
}
&.clear:after {
content: "";
display: table;
clear: both;
}
}
}
.rcol {
margin: $pad-l;
color: $midgray;
font-weight: lighter;
}
@media (min-width: 430px) {
form {
div {
width: 376px;
label {
text-align: right;
}
input, select, textarea {
width: 180px;
float: right;
}
}
}
}
@media (min-width: 800px) {
.rcol {
float: right;
width: 40%;
}
}