commit
3f108901f5
@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Searchbar Element
|
||||
* Stylesheet taken from Tobias' Wave Startpage concept
|
||||
* Modified by YandolsZX
|
||||
* Original source can be found here: https://github.com/Tobias-Schoch/startpage-wave
|
||||
*/
|
||||
|
||||
form .search-field, form .search-submit {
|
||||
background: none;
|
||||
outline: none;
|
||||
border: none;
|
||||
line-height: 40px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
form .search-field {
|
||||
width: 93%;
|
||||
padding-left: 15px;
|
||||
color: white;
|
||||
font-size: 30px;
|
||||
bottom: -1px;
|
||||
}
|
||||
|
||||
form .search-field::placeholder {
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
form .search-submit {
|
||||
width: 6%;
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
form .search-submit:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
form .search-submit::before {
|
||||
background-image:url(./google1.svg);
|
||||
background-position:center center;
|
||||
fill: white;
|
||||
content:"";
|
||||
width:23px;
|
||||
height:23px;
|
||||
position:absolute;
|
||||
right:23px;
|
||||
bottom: -3px;
|
||||
}
|
@ -0,0 +1,301 @@
|
||||
/*
|
||||
* Startpage Stylesheet
|
||||
* Sheet taken from TB-96's Evening Startpage project
|
||||
* Modified by YandolsZX
|
||||
* Original source can found here: https://github.com/TB-96/Evening-Startpage
|
||||
*/
|
||||
:root {
|
||||
--color-theme: #2978ad;
|
||||
--bg-primary: #212121;
|
||||
--bg-secondary: rgba(21,21,21,.5);
|
||||
--bg-hover: rgba(41,120,173,.5);
|
||||
--color-primary: #eee;
|
||||
--color-secondary: #74a7ca;
|
||||
--color-success: #66BB6A;
|
||||
--color-warning: #F57C00;
|
||||
--color-danger: #DC3545;
|
||||
--padding: 1rem;
|
||||
--rounded: 0.25rem;
|
||||
--shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.12)
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-size: 15px;
|
||||
transition: opacity .3s;
|
||||
font-family: "Open Sans";
|
||||
}
|
||||
|
||||
html {
|
||||
color: var(--color-primary);
|
||||
background: var(--bg-primary) url("https://source.unsplash.com/1920x1080/?landscapes") no-repeat fixed center ;
|
||||
background-size: 100%;
|
||||
}
|
||||
body {
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background: #4e4e4e;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
a, a:visited {
|
||||
color: var(--color-secondary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover, a:focus {
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
webkit-text-decoration-color: var(--color-text-acc);
|
||||
webkit-text-decoration-skip: true;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 2em auto 0;
|
||||
width: 70%;
|
||||
background-color: rgba(10, 10, 10, 0.7);
|
||||
padding: 40px;
|
||||
-moz-border-radius: 8px;
|
||||
-webkit-border-radius: 8px;
|
||||
border-radius: 8px;
|
||||
-moz-box-shadow: 0 0 10px black;
|
||||
-webkit-box-shadow: 0 0 10px black;
|
||||
box-shadow: 0 0 10px black;
|
||||
}
|
||||
|
||||
h1, h2 {
|
||||
font-weight: 300;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
h3, h4 {
|
||||
text-transform: uppercase;
|
||||
text-align: left;
|
||||
color: var(--color-secondary);
|
||||
}
|
||||
h1 {
|
||||
font-size: 4em;
|
||||
font-weight: 700;
|
||||
}
|
||||
h3 {
|
||||
font-size: 20px;
|
||||
font-weight: 900;
|
||||
padding: var(--padding);
|
||||
}
|
||||
h4 {
|
||||
font-size: 1.1em;
|
||||
font-weight: 400;
|
||||
padding-bottom: .5rem;
|
||||
}
|
||||
h5 {
|
||||
text-align: center;
|
||||
font-size: 0.7em;
|
||||
}
|
||||
h5 a {
|
||||
font-size: 1.0em;
|
||||
}
|
||||
#togglebookmarks {
|
||||
text-decoration: none!important;
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: var(--bg-hover);
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 10px 20px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
margin: 4px 2px;
|
||||
cursor: pointer;
|
||||
border-radius: 5rem;
|
||||
text-transform: uppercase;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
button:hover {
|
||||
background-color: var(--color-theme);
|
||||
}
|
||||
|
||||
/* ANIMATION */
|
||||
|
||||
@keyframes fadeseq{
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.fade {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.fade {
|
||||
animation: fadeseq .3s forwards;
|
||||
}
|
||||
|
||||
.fade:nth-child(2) {
|
||||
animation-delay: .4s;
|
||||
}
|
||||
|
||||
/* HEADERS */
|
||||
|
||||
#header {
|
||||
text-align: center;
|
||||
}
|
||||
#header-time, #header-date {
|
||||
cursor: default;
|
||||
}
|
||||
#header-time {
|
||||
font-size: 5em;
|
||||
}
|
||||
#header-date {
|
||||
margin-top: -1rem;
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
#header-quote {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
|
||||
/* LINKS */
|
||||
|
||||
#apps-container {
|
||||
display: grid;
|
||||
grid-column-gap: 0px;
|
||||
grid-row-gap: 0px;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||
}
|
||||
|
||||
#apps-container a {
|
||||
text-decoration: none;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.apps-item {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
height: 64px;
|
||||
margin: .5rem;
|
||||
box-shadow: var(--shadow);
|
||||
background: var(--bg-secondary);
|
||||
border-radius: var(--rounded);
|
||||
-o-transition: background-color .3s;
|
||||
-ms-transition: background-color .3s;
|
||||
-moz-transition: background-color .3s;
|
||||
-webkit-transition: background-color .3s;
|
||||
/* ...and now for the proper property */
|
||||
transition: background-color .3s;
|
||||
}
|
||||
.apps-item:hover {
|
||||
background-color: var(--bg-hover)!important;
|
||||
}
|
||||
|
||||
.apps-icon {
|
||||
height: 64px;
|
||||
margin: 0 1em;
|
||||
padding-top: 13px;
|
||||
}
|
||||
|
||||
.icon {
|
||||
font-size: 2.5em;
|
||||
}
|
||||
|
||||
.apps-text {
|
||||
text-align: left;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
.apps-text span {
|
||||
font-size: 1em;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none!important;
|
||||
}
|
||||
.apps-text span:nth-child(2n) {
|
||||
color: var(--color-secondary);
|
||||
font-size: 0.8em;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
/* BOOKMARKS */
|
||||
|
||||
#links-container {
|
||||
display: grid;
|
||||
flex-wrap: nowrap;
|
||||
grid-column-gap: 20px;
|
||||
grid-row-gap: 0px;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||
grid-template-rows: auto;
|
||||
}
|
||||
|
||||
.links-item {
|
||||
line-height: 1.5rem;
|
||||
margin-left: 1rem;
|
||||
margin-bottom: 2em;
|
||||
webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
.links-item a {
|
||||
color: var(--color-primary);
|
||||
display: block;
|
||||
line-height: 2;
|
||||
text-decoration: none;
|
||||
padding-left: .5em;
|
||||
-o-transition: padding .3s;
|
||||
-ms-transition: padding .3s;
|
||||
-moz-transition: padding .3s;
|
||||
-webkit-transition: padding .3s;
|
||||
transition: padding .3s;
|
||||
}
|
||||
.links-item a:hover {
|
||||
color: var(--color-secondary);
|
||||
padding-left: 1em;
|
||||
}
|
||||
|
||||
|
||||
/* MOBILE */
|
||||
|
||||
@media screen and (max-width: 1100px) {
|
||||
#container {
|
||||
width: 90%;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 858px) {
|
||||
#apps-container {
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
width: 90vw;
|
||||
}
|
||||
#links-container {
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 666px) {
|
||||
#apps-container {
|
||||
grid-column-gap: 0px;
|
||||
grid-row-gap: 0px;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
width: 90vw;
|
||||
}
|
||||
#links-container{
|
||||
display: grid;
|
||||
flex-wrap: nowrap;
|
||||
grid-column-gap: 20px;
|
||||
grid-row-gap: 0px;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-rows: auto;
|
||||
}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Wave Animation
|
||||
* Stylesheet taken from Tobias' Wave Startpage concept
|
||||
* Modified by YandolsZX
|
||||
* Original source can be found here: https://github.com/Tobias-Schoch/startpage-wave
|
||||
*/
|
||||
|
||||
.wave-container .wave{
|
||||
position:absolute;
|
||||
bottom:0;
|
||||
left:0;
|
||||
width:100%;
|
||||
height:100px;
|
||||
background:url('wave.svg');
|
||||
background-size:990px 100px;
|
||||
background-repeat: repeat-x;
|
||||
-webkit-filter: drop-shadow( 0px 3px 3px rgba(0, 0, 0, .7));
|
||||
filter: drop-shadow( 0px 3px 3px rgba(0, 0, 0, .7));
|
||||
}
|
||||
|
||||
.wave-container .wave.wave1{
|
||||
animation:animate 30s linear infinite;
|
||||
z-index:1000;
|
||||
opacity:1;
|
||||
animation-delay:0s;
|
||||
bottom: 0;
|
||||
}
|
||||
.wave-container .wave.wave2{
|
||||
animation:animate2 15s linear infinite;
|
||||
z-index:999;
|
||||
opacity:0.5;
|
||||
animation-delay:-5s;
|
||||
bottom: 10px;
|
||||
}
|
||||
.wave-container .wave.wave3{
|
||||
animation:animate 30s linear infinite;
|
||||
z-index:998;
|
||||
opacity:0.2;
|
||||
animation-delay:-2s;
|
||||
bottom: 15px;
|
||||
|
||||
}
|
||||
.wave-container .wave.wave4{
|
||||
animation:animate2 5s linear infinite;
|
||||
z-index:997;
|
||||
opacity:0.7;
|
||||
animation-delay:-5s;
|
||||
bottom: 20px;
|
||||
}
|
||||
@keyframes animate{
|
||||
0%{
|
||||
background-position-x: 0;
|
||||
}
|
||||
100%{
|
||||
background-position-x: 990px;
|
||||
}
|
||||
}
|
||||
@keyframes animate2{
|
||||
0%{
|
||||
background-position-x: 0;
|
||||
}
|
||||
100%{
|
||||
background-position-x: -990px;
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 25 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Startpage Background Script
|
||||
* Script taken from TB-96's Evening Startpage project
|
||||
* Modified by YandolsZX
|
||||
* Original source can found here: https://github.com/TB-96/Evening-Startpage
|
||||
*/
|
||||
|
||||
function startTime() {
|
||||
var currentDate = new Date();
|
||||
var hr = parseInt(currentDate.getHours());
|
||||
var min = parseInt(currentDate.getMinutes());
|
||||
//Add a zero in front of numbers<10
|
||||
if (min < 10) {
|
||||
min = "0" + min;
|
||||
}
|
||||
if (hr < 10) {
|
||||
hr = "0" + hr;
|
||||
}
|
||||
document.getElementById("header-time").innerHTML = hr + ":" + min;
|
||||
|
||||
var dateOptions = {
|
||||
weekday: "long",
|
||||
year: "numeric",
|
||||
month: "long",
|
||||
day: "numeric"
|
||||
}
|
||||
|
||||
var date = currentDate.toLocaleDateString("en-GB", dateOptions);
|
||||
document.getElementById("header-date").innerHTML = date;
|
||||
|
||||
var time = setTimeout(function(){ startTime() }, 60000);
|
||||
}
|
||||
|
||||
/*
|
||||
const quotes = [
|
||||
'Hello, world...',
|
||||
'yeet',
|
||||
'fuq'
|
||||
];
|
||||
document.getElementById("header-quote").innerText = quotes[
|
||||
Math.floor(Math.random() * quotes.length)
|
||||
];
|
||||
*/
|
||||
|
||||
$(document).ready(function(){
|
||||
$("#togglebookmarks").click(function(){
|
||||
$("#hiddenbookmarks").toggle();
|
||||
});
|
||||
});
|
||||
|
||||
document.addEventListener('click', function (event) {
|
||||
|
||||
// If the clicked element doesn't have the right selector, bail
|
||||
if (!event.target.matches('#link')) return;
|
||||
// Otherwise, run your code...
|
||||
document.body.style.opacity = 0;
|
||||
|
||||
}, false);
|
||||
|
||||
document.getElementById("container").addEventListener("DOMContentLoaded", startTime());
|
Loading…
Reference in new issue