nirvash/static/style.css

299 lines
5.2 KiB
CSS
Raw Normal View History

body {
padding: 0;
margin: 0;
2022-06-08 05:44:54 +00:00
font-family: sans-serif;
2022-06-07 06:59:41 +00:00
font-size: 16px;
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;
height: 100vh;
}
.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;
}
2022-06-08 05:44:54 +00:00
.login label {
padding: 0;
margin: 0;
height: 0;
width: 0;
font-size: 0;
display: inline;
position: absolute;
}
2022-06-10 06:59:34 +00:00
.login form input {
display: block;
2022-06-10 06:59:34 +00:00
margin-top: 0.25em;
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 {
position: relative;
text-align: center;
margin-left: auto;
margin-right: auto;
color: lightgray;
border-bottom: 2px solid crimson;
width: auto;
2022-06-07 06:59:41 +00:00
}
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;
2022-06-07 06:59:41 +00:00
padding-bottom: 0.5em;
position: sticky;
top: 0px;
z-index: 3;
2022-06-07 06:59:41 +00:00
}
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;
}
.new-page-button-wrapper {
display: block;
width: 80%;
max-width: 500px;
2022-06-07 06:59:41 +00:00
position: sticky;
top: 5em;
margin-left: auto;
margin-right: auto;
z-index: 2;
text-align: right;
height: 0;
overflow-y: visible;
}
a.new-page-button {
position: relative;
top: 1em;
2022-06-07 06:59:41 +00:00
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;
}
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: relative;
2022-06-07 06:59:41 +00:00
}
2022-06-08 05:44:54 +00:00
.page-list, form.editor, form.build, form.configurator, span.adapter-error, span.adapter-success, .danger-zone {
display: block;
overflow-x: hidden;
2022-06-07 06:59:41 +00:00
width: 80%;
max-width: 500px;
background: rgba(0,0,0,0.8);
padding: 2em;
margin-left: auto;
margin-right: auto;
overflow-y: auto;
}
2022-06-08 05:44:54 +00:00
span.adapter-error {
border-bottom: 2px solid crimson;
}
form.editor label, form.build label, .danger-zone label, form.configurator label {
2022-06-07 06:59:41 +00:00
font-size: 80%;
color: lightgray;
text-transform: uppercase;
}
2022-06-08 05:44:54 +00:00
form.editor input, form.build input, form.editor textarea, form.configurator input, form.configurator textarea, .danger-zone input[type="submit"] {
2022-06-07 06:59:41 +00:00
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;
2022-06-10 06:59:34 +00:00
box-sizing: border-box;
2022-06-07 06:59:41 +00:00
}
2022-06-10 06:59:34 +00:00
form.editor input[type="text"], form.configurator input[type="text"], form.configurator input[type="number"], form.build input[type="text"] {
2022-06-07 06:59:41 +00:00
margin: 0;
width: 100%;
2022-06-08 05:44:54 +00:00
}
form.editor input.slug-input {
font-size: 100%;
}
2022-06-08 05:44:54 +00:00
form.editor input.title-input {
2022-06-07 06:59:41 +00:00
font-size: 150%;
}
2022-06-08 05:44:54 +00:00
form input:focus, form textarea:focus {
border: 2px solid cyan;
}
2022-06-07 06:59:41 +00:00
form.editor, .danger-zone {
max-width: 80em;
}
form.editor textarea {
margin: 0;
2022-06-08 05:44:54 +00:00
width: 100%;
2022-06-07 06:59:41 +00:00
font-size: 16px;
height: 25em;
}
2022-06-08 05:44:54 +00:00
form.configurator textarea {
margin: 0;
2022-06-08 05:44:54 +00:00
width: 100%;
height: 5em;
}
form.configurator input, form.configurator textarea {
font-size: 125%;
}
form.editor input[type="submit"], form.build input[type="submit"], .danger-zone input[type="submit"], form.configurator input[type="submit"] {
2022-06-07 06:59:41 +00:00
margin-left: auto;
margin-right: 0;
font-size: 150%;
text-transform: uppercase;
transition: background 1s, color 1s;
}
2022-06-08 05:44:54 +00:00
form.editor input[type="submit"]:hover,form.build input[type="submit"]:hover, .danger-zone input[type="submit"]:hover, form.configurator input[type="submit"]:hover {
2022-06-07 06:59:41 +00:00
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;
2022-06-08 05:44:54 +00:00
}
form input[readonly] {
border: none;
}
.edit-error {
display: block;
border-bottom: solid 2px crimson;
}