Redo design from scratch with something significantly simpler and lower maintainence.
This commit is contained in:
parent
a84bf8aab3
commit
3d00f28657
31 changed files with 228 additions and 1857 deletions
|
@ -1,455 +1,128 @@
|
|||
@import url('https://fonts.googleapis.com/css?family=Public+Sans&display=swap');
|
||||
@import "colours.less";
|
||||
@import "animations.less";
|
||||
@import "contextMenu.less";
|
||||
|
||||
@import url(//fonts.googleapis.com/css?family=Roboto);
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
outline: none;
|
||||
|
||||
transition: all 0.2s ease;
|
||||
box-sizing: border-box;
|
||||
outline: none;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
html {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: @Grey-900;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
h1,
|
||||
h2,
|
||||
button {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
html,
|
||||
button,
|
||||
input,
|
||||
textarea {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: 'Public Sans', sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: @background;
|
||||
display: flex;
|
||||
max-width: 1280px;
|
||||
min-height: 100%;
|
||||
margin: auto;
|
||||
background: @Grey-100;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
a {
|
||||
color: @accent;
|
||||
}
|
||||
|
||||
nav {
|
||||
img {
|
||||
vertical-align: middle;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
dt,
|
||||
dd {
|
||||
|
||||
&:hover,
|
||||
&.active {
|
||||
background: @control;
|
||||
cursor: pointer;
|
||||
cursor: hand;
|
||||
}
|
||||
}
|
||||
|
||||
dt {
|
||||
padding: 10px 10px;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0;
|
||||
padding: 10px 10px 10px 40px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-bottom: 10px;
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-bottom: 10px;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 1px solid @control;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
|
||||
input[type=text],
|
||||
textarea {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0 10px 5px 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
button {
|
||||
border: none;
|
||||
background: @control;
|
||||
}
|
||||
|
||||
form {
|
||||
|
||||
button,
|
||||
input[type=submit] {
|
||||
border: none;
|
||||
background: @control;
|
||||
|
||||
&:hover {
|
||||
background: @control2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
button:hover {
|
||||
cursor: pointer;
|
||||
cursor: hand;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
p {
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
#menu {
|
||||
background: @background;
|
||||
width: 280px;
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: -2px 0px 0px 0px @control inset;
|
||||
z-index: 400;
|
||||
overflow-x: hidden;
|
||||
|
||||
#nav-container {
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
flex: 1 1 auto;
|
||||
|
||||
dl {
|
||||
margin: 5px 0 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
.header {
|
||||
z-index: 401;
|
||||
flex: 0 0 auto;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
|
||||
#main {
|
||||
flex: 1 1 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
|
||||
.header {
|
||||
flex: 0 0 auto;
|
||||
z-index: 1;
|
||||
|
||||
#menu-button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
>* {
|
||||
padding-left: 20px !important;
|
||||
}
|
||||
}
|
||||
|
||||
#content {
|
||||
flex: 1 1 auto;
|
||||
overflow: auto;
|
||||
z-index: 0;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
#body {
|
||||
padding: 20px;
|
||||
//height:100%;
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#buttons-left,
|
||||
#buttons-right {
|
||||
position: absolute;
|
||||
padding: 10px;
|
||||
bottom: 0px;
|
||||
|
||||
button {
|
||||
margin: 10px;
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.25);
|
||||
vertical-align: middle;
|
||||
border: none;
|
||||
background: @accent;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
color: white;
|
||||
font-size: 24px;
|
||||
line-height: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
#buttons-left {
|
||||
left: 0px;
|
||||
}
|
||||
|
||||
#buttons-right {
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
#cookiePopup {
|
||||
position: absolute;
|
||||
background: black;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
padding: 20px;
|
||||
border-radius: 30px;
|
||||
width: 230px;
|
||||
height: 230px;
|
||||
margin-top: -115px;
|
||||
margin-left: -115px;
|
||||
color: white;
|
||||
|
||||
>div {
|
||||
margin-top: 40px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
#spinner {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
z-index: 1000;
|
||||
transition: all ease-in-out 0.5s;
|
||||
|
||||
&.ng-hide {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
>img {
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.scrollLock {
|
||||
overflow: hidden;
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
.header {
|
||||
height: 64px;
|
||||
background: @primary;
|
||||
color: white;
|
||||
white-space: nowrap;
|
||||
padding: 0 !important;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 -9px 5px 10px rgba(50, 50, 50, 0.8);
|
||||
background: url(/images/header.jpg) no-repeat;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
padding: 40px 30px;
|
||||
display: flex;
|
||||
align-items: start;
|
||||
justify-content: flex-end;
|
||||
|
||||
>* {
|
||||
line-height: 64px;
|
||||
font-size: 24px;
|
||||
font-weight: 400;
|
||||
padding-left: 10px;
|
||||
white-space: nowrap;
|
||||
display: inline;
|
||||
vertical-align: middle;
|
||||
}
|
||||
&__blurb {
|
||||
|
||||
&__title {
|
||||
font-size: 32px;
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
>h2>span {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
>img {
|
||||
height: 50%;
|
||||
}
|
||||
|
||||
span {
|
||||
display: inline-block;
|
||||
|
||||
&:not(:first-child):before {
|
||||
margin: 2px 10px 0 10px;
|
||||
width: 6px;
|
||||
float: left;
|
||||
height: 62px;
|
||||
background: url("/images/chevron.png") no-repeat scroll right center / contain rgba(0, 0, 0, 0);
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
&__headshot {
|
||||
flex: 0 0 auto;
|
||||
background: url(/images/headshot.jpg) center no-repeat;
|
||||
background-size: cover;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
border: 5px solid white;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0px 0px 5px 0px rgba(0,0,0,1);
|
||||
}
|
||||
}
|
||||
|
||||
.circle {
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
overflow: hidden;
|
||||
#content {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
|
||||
main {
|
||||
flex: 1 1 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
nav {
|
||||
flex: 0 0 200px;
|
||||
border-left: 1px solid @Grey-400;
|
||||
margin: 20px 0;
|
||||
padding: 0 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.go,
|
||||
.expand {
|
||||
display: none;
|
||||
float: right;
|
||||
footer {
|
||||
padding: 20px;
|
||||
margin-top: auto;
|
||||
|
||||
.logo {
|
||||
background: url(/images/logo.png) no-repeat center;
|
||||
background-size: contain;
|
||||
height: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
.backdrop {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 100;
|
||||
display: none;
|
||||
transition: all ease-in-out 0.5s;
|
||||
|
||||
&.ng-hide {
|
||||
opacity: 0;
|
||||
}
|
||||
button {
|
||||
background: @accent;
|
||||
border: none;
|
||||
box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.25);
|
||||
padding: 10px 20px;
|
||||
border-radius: 50px;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.errors {
|
||||
background: url(/images/error.svg) no-repeat scroll 10px 10px @Grey-800;
|
||||
padding: 10px;
|
||||
padding-left: 40px;
|
||||
color: #fff;
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
list-style: square;
|
||||
}
|
||||
.round-button {
|
||||
border-radius: 50%;
|
||||
background: @accent;
|
||||
padding: 0;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: none;
|
||||
box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.25);
|
||||
margin: 10px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.row {
|
||||
width: 100%;
|
||||
clear: both;
|
||||
|
||||
>.col {
|
||||
width: 100%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
&.col-lg-1,
|
||||
&.col-md-1,
|
||||
&.col-sm-1 {
|
||||
>.col {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&.col-lg-2,
|
||||
&.col-md-2,
|
||||
&.col-sm-2 {
|
||||
>.col {
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
&.col-lg-3,
|
||||
&.col-md-3,
|
||||
&.col-sm-3 {
|
||||
>.col {
|
||||
width: 33.3333%;
|
||||
}
|
||||
}
|
||||
|
||||
&.col-lg-4,
|
||||
&.col-md-4,
|
||||
&.col-sm-4 {
|
||||
>.col {
|
||||
width: 25%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
table.alternatingRows {
|
||||
tr {
|
||||
&:nth-child(1n) {
|
||||
background: @control;
|
||||
}
|
||||
|
||||
&:nth-child(2n) {
|
||||
background: @control2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 3px;
|
||||
|
||||
&.number {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
div.percentageBar {
|
||||
width: 100%;
|
||||
height: 20px;
|
||||
background: @LightGreen-400;
|
||||
overflow: hidden;
|
||||
|
||||
>div {
|
||||
background: @Red-400;
|
||||
height: 100%;
|
||||
transition: all 500ms ease-in-out;
|
||||
}
|
||||
form {
|
||||
.form-row {
|
||||
margin: 5px 0;
|
||||
}
|
||||
}
|
||||
|
||||
@import "blog.less";
|
||||
@import "gallery.less";
|
Loading…
Add table
Add a link
Reference in a new issue