Updated to work with live site

Added components from somewhere
fixed some css background image
This commit is contained in:
2020-08-20 19:56:24 +10:00
parent dc6580e21c
commit dce18f97d1
16 changed files with 885 additions and 4 deletions

6
static/css/bootstrap.min.css vendored Executable file

File diff suppressed because one or more lines are too long

140
static/css/global.css Executable file
View File

@ -0,0 +1,140 @@
body {
font-family: 'Open Sans', sans-serif;
font-display: swap;
font-size: 1rem;
line-height: 1.8;
}
.overlay {
display: flex;
background-size: cover;
background-position: center;
min-height: 200px;
text-align: center;
align-items: center;
justify-content: center;
}
.title {
display: inline-block;
font-size: 3rem;
text-decoration: none;
}
nav {
align-items: center;
display: flex;
flex-direction: row;
justify-content: space-between;
}
/* flexbox navbar test*/
nav ul {
display: flex;
padding: 0;
margin: 0;
}
nav ul li {
font-size: 1rem;
text-align: center;
padding: 5px;
}
nav li {
list-style-type: none;
}
/* Change color on hover */
nav li a {
margin-left: 20px;
margin-right: 20px;
text-decoration: none;
}
main {
margin-top: 30px;
}
/* Content types */
section {
border-radius: 5px;
padding: 5px 20px;
}
/*Simple css to style it like a toggle switch*/
.theme-switch-wrapper {
display: flex;
align-items: center;
}
.theme-switch {
display: inline-block;
height: 24px;
position: relative;
width: 40px;
}
.theme-switch input {
display: none;
}
.slider {
background-color: #ccc;
bottom: 0;
cursor: pointer;
left: 0;
position: absolute;
right: 0;
top: 0;
transition: .2s;
}
.slider:before {
background-color: #fff;
bottom: 4px;
content: "";
height: 16px;
left: 4px;
position: absolute;
transition: .2s;
width: 16px;
}
input:checked + .slider {
background-color: #66bb6a;
}
input:checked + .slider:before {
transform: translateX(16px);
}
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}
/* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
.title {
display: block;
text-align: center;
}
nav {
flex-direction: column;
}
nav ul {
flex-direction: column;
margin: 0 auto;
}
nav ul li a {
text-align: center;
margin: 0 auto;
}
}

43
static/css/themes.css Executable file
View File

@ -0,0 +1,43 @@
/* Default theme */
:root {
--background-color: #222222;
--headings-color: #ffffff;
--font-color: #ffffff;
}
/* Dark theme */
html[data-theme='dark'] {
--background-color: #222222;
--headings-color: #ffffff;
--font-color: #ffffff;
}
body {
background-color: var(--background-color);
color: var(--font-color);
}
h1, h2, h3, h4, h5 {
color: var(--headings-color);
}
hr {
background-color: #eeeeee;
}
.overlay {
border-bottom: 2px solid #eeeeee;
}
li a:hover {
border-bottom: 3px solid white;
text-decoration: none;
}
a {
color: #CC99FF;
}
a:hover {
color: white;
}

BIN
static/img/bluenebula.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
static/img/bluenebula.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
static/img/favicon.ico Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
static/img/friendscats1.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

5
static/img/user.svg Normal file
View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user">
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
<circle cx="12" cy="7" r="4"></circle>
</svg>

After

Width:  |  Height:  |  Size: 322 B