nirvash/static/style.css

237 lines
No EOL
3.9 KiB
CSS

body {
padding: 0;
margin: 0;
font-family: sans;
font-size: 16px;
height: 100vh;
background: black;
color: white;
background: url('/static/bg2.png');
background-size: cover;
background-position: top left;
background-attachment: fixed;
}
.login-body {
background: url('/static/bg.png');
background-size: cover;
background-position: center center;
}
.login {
text-align: center;
position: relative;
width: 100%;
box-sizing: border-box;
height: auto;
top: 50%;
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
background-color: rgba(0,0,0,0.8);
padding: 1em;
}
.login h1 {
font-size: 225%;
text-transform: uppercase;
color: lightgray;
}
.login form input {
display: block;
margin: 1em;
margin-left: auto;
margin-right: auto;
background: transparent;
border: solid 2px lightgray;
font-size: 200%;
color: lightgray;
padding: 0.2em;
}
.login form input[type="text"], login form input[type="password"] {
transition: border 1s;
outline: none;
}
.login form input:focus {
border: solid 2px cyan;
outline: none;
}
.login form input[type="submit"] {
text-transform: uppercase;
transition: background 1s, color 1s;
}
.login form input[type="submit"]:hover {
background: lightgray;
color: black;
}
.login .error {
positon: relative;
text-align: center;
margin-left: auto;
margin-right: auto;
color: lightgray;
border-bottom: 2px solid crimson;
width: auto;
}
h1 {
text-align: center;
font-size: 225%;
text-transform: uppercase;
background: rgba(0,0,0,0.8);
margin: 0;
padding-top: 0.5em;
padding-bottom: 0.5em;
}
.login h1 {
background: transparent;
}
nav {
text-align: center;
background: rgba(0,0,0,0.8);
padding-top: 0.5em;
padding-bottom: 0.5em;
position: sticky;
top: 0px;
}
nav ul {
list-style: none;
}
nav ul li {
display: inline;
margin-left: 0.5em;
margin-right: 0.5em;
}
a {
color: white;
font-weight: normal;
text-decoration: underline;
}
a:hover {
color: cyan;
}
a.new-page-button {
position: sticky;
top: 0;
text-decoration: none;
background: transparent;
border: solid 2px lightgray;
font-size: 150%;
color: lightgray;
padding: 0.2em;
text-transform: uppercase;
transition: background 1s, color 1s;
float: right;
z-index: 2;
}
a.new-page-button:hover {
background: lightgray;
color: black;
}
h2 {
margin: 1em;
font-size: 200%;
text-transform: uppercase;
background: rgba(0,0,0,0.8);
display: block;
border-left: 8px solid cyan;
padding-left: 8px;
position: sticky;
top: 3em;
}
.page-list, form.editor, form.build, span.adapter-error, span.adapter-success, .danger-zone {
width: 80%;
max-width: 500px;
background: rgba(0,0,0,0.8);
padding: 2em;
margin-left: auto;
margin-right: auto;
max-height: calc(100vh - 20em);
overflow-y: auto;
}
form.editor label, form.build label {
font-size: 80%;
color: lightgray;
text-transform: uppercase;
}
form.editor input, form.build input, form.editor textarea {
display: block;
margin: 0;
margin-top: 0.2em;
margin-bottom: 0.2em;
background: transparent;
border: solid 2px lightgray;
color: lightgray;
padding: 0.2em;
transition: border 1s;
outline: none;
}
form.editor input.title-input {
margin: 0;
width: 100%;
font-size: 150%;
}
form.editor, .danger-zone {
max-width: 80em;
}
form.editor textarea {
margin: 0;
width: 80em;
font-size: 16px;
height: 25em;
}
form.editor input[type="submit"], form.build input[type="submit"] {
margin-left: auto;
margin-right: 0;
font-size: 150%;
text-transform: uppercase;
transition: background 1s, color 1s;
}
form.editor input[type="submit"]:hover {
background: lightgray;
color: black;
}
.edited-time {
font-size: 75%;
color: lightgray;
float: right;
}
.page-list ul {
margin: 0;
position: relative;
list-style: none;
z-index: 1;
}
.page-list ul li a {
line-height: 2em;
}
form input[hidden] {
display: none;
}