Cleanup, refactor and new features

This commit is contained in:
David Ralph
2020-11-29 14:32:08 +00:00
parent 87dd07c45c
commit 82e1d7684a
37 changed files with 462 additions and 421 deletions

View File

@@ -1,12 +1,6 @@
@import 'variables';
@import 'mixins';
@import 'modules/clock';
@import 'modules/greeting';
@import 'modules/quote';
@import 'modules/search';
@import 'modules/credit';
@import 'modules/navbar';
@import 'modules/modal';
@import 'modules/settings';
@import 'modules/toast';
@@ -59,44 +53,4 @@ body {
min-height: 100vh;
display: grid;
color: map-get($theme-colours, 'main-text-color');
}
#backgroundImage {
height: 100vh;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
}
#backgroundVideo {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
}
.fade-in {
@include animation('fadein 2s');
}
@include keyframes(fadein) {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.backgroundEffects {
opacity: 0.7;
transition: ease 0.6s;
}
.creditlink {
text-decoration: none;
color: white;
}

View File

@@ -1,20 +0,0 @@
.clock {
font-size: 4em;
margin: 0;
}
.ampm {
font-size: 0.5em;
}
.analogclock, .react-clock__face {
margin: 0 auto;
border-radius: 100%;
box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
border: 1px solid map-get($theme-colours, "main");
}
.react-clock__hand__body {
background: map-get($theme-colours, "main");;
box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

View File

@@ -1,107 +0,0 @@
.photoInformation {
position: absolute;
bottom: 1rem;
left: 1rem;
font-size: calc(10px + 0.1vmin) !important;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
svg {
float: left;
vertical-align: middle;
margin-right: 1rem;
font-size: calc(10px + 2vmin);
}
span {
display: none;
}
h1 {
position: relative;
}
svg, h1 {
display: inline;
}
svg:hover + .infoCard {
display: block;
}
}
.infoCard {
display: none;
background: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
color: #000;
position: fixed;
bottom: 3.25rem;
left: 0.7em;
padding: 1rem;
border-radius: 24px 24px 24px 0;
max-width: 500px;
text-align: left;
text-shadow: none;
span {
display: block;
}
svg {
margin-right: 0.5rem;
vertical-align: middle;
display: inline-flex;
padding: 2px;
}
span, svg {
font-size: 2em;
}
h1, .infoIcon {
font-size: 3em;
}
.infoIcon {
padding: 4px;
}
hr {
height: 3px;
background: #2d3436;
outline: none;
border: none;
}
}
.infoCard:hover {
display: block !important;
}
.photoInformationHover {
cursor: pointer;
}
.view {
bottom: 10px;
right: 25px;
}
.favourite {
bottom: 10px;
right: 50px;
padding-right: 5px;
}
.view, .favourite {
position: absolute;
transition: all 0.5s ease 0s;
&:hover {
transform: scale(1.1);
}
}
#viewButton, #favouriteButton {
width: auto;
cursor: pointer;
}

View File

@@ -1,4 +0,0 @@
.greeting {
margin: 0;
font-size: 1.6em;
}

View File

@@ -1,149 +0,0 @@
.navbar-container {
position: absolute;
top: 1rem;
right: 1rem;
div {
display: inline;
}
img {
height: 1em;
width: auto;
margin: 0.5rem;
}
svg.topicons {
color: map-get($theme-colours, 'main-text-color');
-webkit-font-smoothing: subpixel-antialiased;
font-size: 1em;
display: inline;
margin: 0.5rem;
filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3));
cursor: pointer;
transition: .2s ease;
&:hover {
color: map-get($theme-colours, 'main-text-color');
transform: translateZ(0);
transform: scale(1.3);
}
}
}
.bottom-navbar {
position: absolute;
bottom: 1rem;
right: 1rem;
div {
display: inline;
}
img {
height: 1em;
width: auto;
margin: 0.5rem;
}
svg.topicons {
color: map-get($theme-colours, 'main-text-color');
-webkit-font-smoothing: subpixel-antialiased;
font-size: 1em;
display: inline;
margin: 0.5rem;
filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3));
cursor: pointer;
transition: .2s ease;
&:hover {
transform: translateZ(0);
transform: scale(1.3);
}
}
}
.notes {
position: relative;
display: inline-block;
h3 {
text-shadow: none;
margin: 0;
}
}
.notes .notescontainer {
text-align: center;
padding: 15px;
visibility: hidden;
background-color: #fff;
color: #000;
text-align: center;
border-radius: 12px;
position: absolute;
z-index: 1;
top: 80%;
left: 50%;
margin-left: -125px;
input[type=text] {
border: none;
color: #2d3436;
}
svg,
input[type=text] {
display: inline-flex;
}
svg {
float: left;
}
::placeholder {
color: #636e72;
opacity: 1;
}
}
.notes:hover .notescontainer {
visibility: visible;
}
textarea {
overflow: none;
border: none;
outline: none;
width: 200px;
resize: none;
height: 100px;
margin: 10px;
}
.noteIcon {
display: inline;
font-size: 1em;
float: none;
}
.topbarnotes {
text-align: center;
svg {
font-size: 48px;
float: left !important;
padding: 9px;
}
h3 {
font-size: 48px;
float: right;
margin-right: 20px;
}
}
.visibilityshow {
visibility: visible !important;
}

View File

@@ -1,56 +0,0 @@
.quote {
font-size: 0.8em;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
@media screen and (min-width: 600px) {
.quote {
margin-left: 30%;
margin-right: 30%;
}
}
.quoteauthor {
font-size: 0.9em;
letter-spacing: 0.5px;
margin: 0;
}
.quoteAuthor, .copyButton {
display: inline;
font-size: 0.8em;
position: relative !important;
display: block;
margin: 0 auto;
}
.copyButton {
cursor: pointer;
vertical-align: middle;
float: middle;
margin: 0 auto;
text-align: right;
transition: ease 0.2s !important;
&:hover {
transform: scale(1.1);
}
}
i.material-icons,
h1.quoteauthor {
display: inline;
}
button.copyButton {
background: transparent;
border: none;
color: map-get($theme-colours, 'main');
padding: 20px 20px;
text-align: center;
text-decoration: none;
font-size: 20px;
cursor: pointer;
border-radius: 5px;
display: table-cell
}

View File

@@ -1,46 +0,0 @@
.searchbar {
position: absolute;
left: 20px;
top: 20px;
display: flex;
flex-direction: row;
display: block;
color: map-get($theme-colours, 'main-text-color');
input[type=text] {
width: 140px;
margin-left: 12px;
border-radius: 24px;
font-size: calc(5px + 1.2vmin);
background: transparent;
border: none;
position: absolute;
background-color: rgba(0, 0, 0, 0.1);
-webkit-transition: width 0.5s ease-in-out;
transition: width 0.5s ease-in-out;
&:focus {
width: 400px;
background-color: rgba(0, 0, 0, .3);
}
}
.MuiSvgIcon-root {
margin-top: 4px;
font-size: 30px;
filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3));
cursor: pointer;
}
}
.input.searchtext {
border: none;
}
.micIcon {
margin-right: 10px;
}
#searchEngine {
width: 130px;
}

View File

@@ -255,4 +255,10 @@ button.remove + input[type=color].colour {
.newFeature {
color: #ff4757;
font-size: 12px;
}
#customcss {
font-family: Consolas !important;
border: solid 1px black !important;
margin-left: 0px;
}