Add admin panel to delete URLs from the browser. Add copyright notice.

This commit is contained in:
Kevin Alberts 2019-06-30 15:57:11 +02:00
parent 332d82e97a
commit 8288b3624e
Signed by: Kurocon
GPG key ID: BCD496FEBA0C6BC1
11 changed files with 445 additions and 75 deletions

74
static/admin.css Normal file
View file

@ -0,0 +1,74 @@
/*
Copyright (c) 2019 Kevin Alberts <kevin@kevinalberts.nl>
This software is license under the MIT license. It should be included in your copy of this software.
A copy of the MIT license can be obtained at https://mit-license.org/
*/
.paginator-link {
display: inline-block;
padding: 8px;
margin: 2px;
background: #1D428A;
border: 1px solid #1D428A;
color: white;
}
.paginator-link {
text-decoration: none;
}
.paginator-link:hover {
border: 1px solid #1D428A;
color: white;
background: #2450A8;
}
.paginator-current {
display: inline-block;
padding: 8px;
margin: 2px;
border: 1px solid #1D428A;
background: white;
color: #1D428A;
}
#box-title .small {
font-size: 2rem
}
#content_admin {
width: 1200px;
}
#link-table {
border-collapse: separate;
border-spacing: 0;
margin-top: 1rem;
margin-bottom: 2rem;
}
#link-table .link-table-header {
background-color: #1D428A;
color: white;
}
#link-table .link-table-center {
text-align: center;
}
#link-table tr:hover {
background-color: rgba(0, 0, 0, 0.1);
}
#link-table tr.link-table-header:hover {
background-color: #1D428A;
color: white;
}
#link-table .link-table-header th {
text-align: left;
font-size: 1.1rem;
padding: 0.5rem 1rem;
}
#link-table th, #link-table td {
padding: 0.2rem 1rem;
}

View file

@ -1,3 +1,8 @@
/*
Copyright (c) 2019 Kevin Alberts <kevin@kevinalberts.nl>
This software is license under the MIT license. It should be included in your copy of this software.
A copy of the MIT license can be obtained at https://mit-license.org/
*/
body{
margin: 0 0 2rem;
background-color: #f4f4f4;
@ -34,6 +39,11 @@ body{
line-height: 2.75rem;
}
#title a {
color: white;
text-decoration: none;
}
#middle {
width: 100%;
display: flex;
@ -103,6 +113,21 @@ body{
border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}
#username, #password {
/*width: 1%;*/
min-width: 40px;
flex: 1 1 auto;
font-size: 1.75rem;
color: black;
position: relative;
padding: 0.5rem;
margin-top: 1rem;
margin-bottom: 1rem;
border: 1px solid rgba(0, 0, 0, 0.5);
}
#submit {
background-color: #077821;
color: white;
@ -194,3 +219,13 @@ body{
color: #2450A8;
text-decoration: underline;
}
#copyright {
margin-top: 2rem;
font-size: 0.9rem;
}
#copyright span {
text-align: center;
display: block;
}

View file

@ -1,5 +1,5 @@
/*
Copyright (c) 2019 Steven Spangler <132@ikl.sh>
Copyright (c) 2019 Steven Spangler <132@ikl.sh>, Kevin Alberts <kevin@kevinalberts.nl>
This file is part of liteshort by 132ikl
This software is license under the MIT license. It should be included in your copy of this software.
A copy of the MIT license can be obtained at https://mit-license.org/
@ -67,4 +67,4 @@ div.github {
div.github:hover {
opacity: 1;
}
}