Redo design from scratch with something significantly simpler and lower maintainence.

This commit is contained in:
Robert Marshall 2020-01-03 16:30:40 +00:00
parent a84bf8aab3
commit 3d00f28657
31 changed files with 228 additions and 1857 deletions

View file

@ -1,31 +0,0 @@
.ng-leave {
opacity:1;
&.ng-leave-active {
opacity:0;
}
}
.ng-enter{
opacity:0;
&.ng-enter-active {
opacity:1;
}
}
.ng-hide-add{
opacity:1;
&.ng-hide-add-active{
opacity:0;
}
}
.ng-hide-remove{
opacity:0;
&.ng-hide-remove-active{
opacity:1;
}
}

View file

@ -1,32 +1,56 @@
@import "colours.less";
.editor-colors {
border: 4px solid #fff;
background: #fff;
border-radius: 4px;
margin-bottom: 10px;
overflow: auto;
padding: 6px;
border: 4px solid #fff;
background: #fff;
border-radius: 4px;
margin-bottom: 10px;
overflow: auto;
padding: 6px;
pre {
margin: 0;
tab-size: 4;
-moz-tab-size: 4;
}
pre {
margin: 0;
tab-size: 4;
-moz-tab-size: 4;
}
}
.image {
padding: 5px;
background: @control2;
display: inline-block;
text-align: center;
max-width: 100%;
padding: 5px;
background: @control2;
display: inline-block;
text-align: center;
max-width: 100%;
img {
display: block;
}
img {
display: block;
}
span {
font-size: 0.8em;
}
span {
font-size: 0.8em;
}
}
.blog-navigation{
display: flex;
justify-content: space-between;
&__next{
margin-left: auto;
}
}
.edit-form{
&__title{
display: flex;
&__label{
flex: 0 0 auto;
margin-right: 5px;
}
&__input{
flex: 1 1 auto;
}
}
}

View file

@ -1,35 +0,0 @@
@import "colours.less";
.contextMenu{
position: absolute;
float:left;
background:@background;
border:1px solid @Grey-500;
border-radius:3px;
padding: 3px 0;
box-shadow: 3px 3px 5px 0px rgba(0, 0, 0, 0.5);
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
user-select: none;
cursor:default;
z-index:10000;
.menuItem{
padding: 0 5px;
position:relative;
white-space: nowrap;
&:hover{
background: @accent-200;
}
&:not(:last-child){
border-bottom: 1px solid @Grey-200;
}
.arrow{
text-align: right;
}
}
}

View file

@ -1,198 +0,0 @@
@import "colours.less";
#tabs{
background:@primary;
margin:-20px;
margin-bottom:10px;
position:fixed;
width:100%;
box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.8);
overflow-x:auto;
white-space:nowrap;
a{
display:inline-block;
color:@primary-100;
padding:15px 30px;
text-decoration:none;
text-transform: uppercase;
&.active{
color:#fff;
border-bottom:3px solid #fff;
}
}
}
.album{
width:33.33%;
/*float:left;*/
display:inline-block;
vertical-align:top;
div{
margin:5px;
padding:5px;
background:@control2;
}
span{
display:block;
text-align:center;
color:@Grey-800;
overflow:hidden;
}
}
.imageSelector{
.image{
width:25%;
display:inline-block;
vertical-align:top;
text-align:center;
&.selected {
>div{
background:@primary-300;
&:hover{
background:@primary-400;
}
}
}
input[type=checkbox]{
display:none;
}
>div{
margin:5px;
padding:5px;
background:@control2;
&:hover{
background:@Grey-400;
}
}
}
}
#album-viewer{
height:100%;
display:flex;
flex-direction: column;
#album-description{
flex: 0 0 auto;
.expander{
padding:5px;
background:@control2;
&:after{
float:right;
content: "+";
}
&.expanded:after{
content: '-';
}
}
.text{
background:@control;
padding:5px;
&.ng-hide{
//opacity: 0;
line-height: 0;
}
}
}
#album-thumbnails{
flex: 0 0 auto;
overflow-x:auto;
overflow-y:hidden;
white-space:nowrap;
text-align:center;
img{
width:100px;
border:3px solid transparent;
&.selected{
border:3px solid @primary-300;
}
}
}
#album-images{
flex: 1 1 auto;
overflow:auto;
position:relative;
.image{
position:absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow:hidden;
text-align:center;
img{
max-height: 100%;
}
}
}
}
#galleryUpload{
.upload{
font-size:2em;
padding:5px;
}
.dragDrop{
min-height:200px;
border-color: @background;
background-position: center;
background-size: 100px;
margin-bottom:5px;
&.dragOver{
border: 3px dashed @Grey-700;
background-image: url("/images/upload.svg");
background-repeat: no-repeat;
}
}
.newImage{
display:flex;
margin-bottom:5px;
.information{
flex:1;
}
.preview{
flex:1;
position: relative;
.imageContainer{
position:absolute;
top:0;
bottom:0;
right:0;
text-align:right;
img{
height:100%;
}
}
}
}
}

View file

@ -1,50 +0,0 @@
@import "colours.less";
body{
display:initial;
}
#menu{
left:0;
position:fixed;
height:100%;
box-shadow:-10px 0px 5px 10px @Grey-900;
transition:all ease-in-out 0.4s;
&.ng-hide{
left:-280px;
}
}
#main{
.header{
#menu-button{
cursor: pointer;
display: inline-block;
max-height: 100%;
}
}
}
#buttons-left, #buttons-right{
button{
width:60px;
height:60px;
}
}
.backdrop{
display: initial;
}
.row{
>.col {
width:100%;
float:left;
}
&.col-lg-1>.col, &.col-lg-2>.col, &.col-lg-3>.col, &.col-lg-4>.col{
width: 100%;
}
}

View file

@ -1,47 +0,0 @@
dl{
margin-top: 12px;
margin-bottom: 12px;
}
#main{
.header {
span:not(:last-child){
display:none;
}
>*{
padding-left: 15px !important;
}
}
}
#nav-container{
top:48px;
}
.header{
height: 48px;
> *{
line-height: 48px;
font-size:18px;
}
span:not(:first-child):before{
content:none;
}
}
.row{
>.col {
width:100%;
float:left;
}
&.col-md-1>.col, &.col-md-2>.col, &.col-md-3>.col, &.col-md-4>.col{
width: 100%;
}
}
table{
width:100%;
}

View file

@ -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";