Clean up styles woo
This commit is contained in:
4
sass/Makefile
Normal file
4
sass/Makefile
Normal file
@@ -0,0 +1,4 @@
|
||||
SRC=$(wildcard *.scss)
|
||||
|
||||
all: $(SRC)
|
||||
sass include.scss ../static/css/site.css
|
||||
5
sass/committee.scss
Normal file
5
sass/committee.scss
Normal file
@@ -0,0 +1,5 @@
|
||||
form.committee {
|
||||
border-bottom: 1px solid $midgray;
|
||||
padding: $pad-l;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
44
sass/details.scss
Normal file
44
sass/details.scss
Normal file
@@ -0,0 +1,44 @@
|
||||
.approve {
|
||||
padding: $pad-xl;
|
||||
|
||||
.status {
|
||||
font-size: 16px;
|
||||
color: $midgray;
|
||||
font-weight: lighter;
|
||||
|
||||
span {
|
||||
color: $text;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
border: 1px solid $midgray;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
margin: $pad-m 0;
|
||||
|
||||
a {
|
||||
flex: 0 0 auto;
|
||||
margin-bottom: $pad-m;
|
||||
margin-right: $pad-m;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.details {
|
||||
border: 1px solid $midgray;
|
||||
border-radius: $pad-s;
|
||||
font-size: 12px;
|
||||
margin: $pad-m 0;
|
||||
padding: $pad-l;
|
||||
|
||||
span {
|
||||
color: $midgray;
|
||||
}
|
||||
}
|
||||
105
sass/globals.scss
Normal file
105
sass/globals.scss
Normal file
@@ -0,0 +1,105 @@
|
||||
$purple: #563d7c;
|
||||
$gold: #fdd017;
|
||||
$lightgray: #f8f8f8;
|
||||
$midgray: #969499;
|
||||
$darkgray: #4b4a4d;
|
||||
$text: #252526;
|
||||
$shadowgray: rgba(0, 0, 0, .8);
|
||||
$lightshadowgray: rgba(0, 0, 0, 0.2);
|
||||
|
||||
// size constants
|
||||
$pad-s: 2px;
|
||||
$pad-m: 8px;
|
||||
$pad-l: 16px;
|
||||
$pad-xl: 36px;
|
||||
|
||||
html,
|
||||
body {
|
||||
background-color: $lightgray;
|
||||
color: $text;
|
||||
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Helvetica,Arial,sans-serif;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100vw;
|
||||
}
|
||||
|
||||
body {
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
|
||||
.nav {
|
||||
align-items: center;
|
||||
box-shadow: 0px 3px 12px $shadowgray;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
flex: 0 0 auto;
|
||||
height: 50px;
|
||||
padding: $pad-l;
|
||||
background-color: $purple;
|
||||
color: $gold;
|
||||
z-index: 10;
|
||||
|
||||
h3 {
|
||||
font-weight: normal;
|
||||
font-size: 16px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $gold;
|
||||
text-decoration: none;
|
||||
font-size: 16px;
|
||||
margin-left: $pad-m;
|
||||
&:hover {
|
||||
color: darken($gold, 20%);
|
||||
text-decoration: initial;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
overflow-y: auto;
|
||||
min-height: 1;
|
||||
}
|
||||
|
||||
.container {
|
||||
background-color: #fff;
|
||||
box-shadow: 0px 3px 12px $lightshadowgray;
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
flex-direction: column;
|
||||
min-height: 1;
|
||||
}
|
||||
|
||||
.btn {
|
||||
background-color: #fff;
|
||||
border-radius: $pad-s;
|
||||
border: 1px solid $midgray;
|
||||
box-sizing: border-box;
|
||||
color: $purple;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Helvetica,Arial,sans-serif;
|
||||
font-size: 12px;
|
||||
font-weight: normal;
|
||||
padding: $pad-m $pad-l;
|
||||
text-decoration: none;
|
||||
vertical-align: middle;
|
||||
white-space: nowrap;
|
||||
|
||||
|
||||
&:hover {
|
||||
background-color: lighten($purple, 35%);
|
||||
}
|
||||
}
|
||||
6
sass/include.scss
Normal file
6
sass/include.scss
Normal file
@@ -0,0 +1,6 @@
|
||||
@import 'globals';
|
||||
@import 'details';
|
||||
@import 'committee';
|
||||
@import 'items';
|
||||
@import 'login';
|
||||
@import 'new';
|
||||
166
sass/items.scss
Normal file
166
sass/items.scss
Normal file
@@ -0,0 +1,166 @@
|
||||
section {
|
||||
color: $midgray;
|
||||
flex: 0 0 auto;
|
||||
font-weight: lighter;
|
||||
font-size: 16px;
|
||||
margin-top: $pad-xl;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.items {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1 0 auto;
|
||||
|
||||
a.page {
|
||||
display: inline-block;
|
||||
margin: $pad-m;
|
||||
text-decoration: none;
|
||||
color: $purple;
|
||||
font-size: 12px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
a.page:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
a.page.empty {
|
||||
color: $midgray;
|
||||
text-decoration: none;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
.pagination {
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
margin-bottom: $pad-l;
|
||||
padding: 0 $pad-xl;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: $pad-m $pad-xl;
|
||||
margin: 0px;
|
||||
border-bottom: 1px solid $midgray;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
|
||||
|
||||
.committeeAndCost {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.committee {
|
||||
color: $midgray;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.details-row {
|
||||
color: $text;
|
||||
font-size: 16px;
|
||||
font-weight: lighter;
|
||||
line-height: 24px;
|
||||
margin: $pad-m 0;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: darken($purple, 10%);
|
||||
box-shadow: 0 0 12px rgba(0,0,0,.16),0 12px 12px rgba(0,0,0,.32);
|
||||
}
|
||||
}
|
||||
34
sass/login.scss
Normal file
34
sass/login.scss
Normal file
@@ -0,0 +1,34 @@
|
||||
body.login {
|
||||
background-color: $purple;
|
||||
color: $gold;
|
||||
}
|
||||
|
||||
|
||||
.login {
|
||||
text-align: center;
|
||||
color: $gold;
|
||||
|
||||
div {
|
||||
margin-top: 30%;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 24px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 28px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.btn {
|
||||
background-color: $gold;
|
||||
color: $purple;
|
||||
font-size: 16px;
|
||||
|
||||
&:hover {
|
||||
background-color: darken($gold, 15%);
|
||||
}
|
||||
}
|
||||
}
|
||||
54
sass/new.scss
Normal file
54
sass/new.scss
Normal file
@@ -0,0 +1,54 @@
|
||||
h1 {
|
||||
font-size: 18px;
|
||||
font-weight: lighter;
|
||||
color: $purple;
|
||||
margin: $pad-l;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: $pad-l;
|
||||
color: $midgray;
|
||||
}
|
||||
|
||||
.inputRow {
|
||||
box-sizing: border-box;
|
||||
margin-bottom: $pad-l;
|
||||
padding: 0 $pad-xl;
|
||||
|
||||
label {
|
||||
color: $midgray;
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
margin-left: $pad-s;
|
||||
}
|
||||
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
box-sizing: border-box;
|
||||
border: 1px solid $midgray;
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
padding: $pad-s;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
}
|
||||
|
||||
.editActions {
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
padding: 0 $pad-xl;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.notes {
|
||||
color: $midgray;
|
||||
font-size: 12px;
|
||||
margin: $pad-l $pad-xl;
|
||||
}
|
||||
Reference in New Issue
Block a user