change colors to root variables

This commit is contained in:
Mystikfluu 2022-06-15 22:29:53 +02:00
parent d0f9928936
commit f93487b7fa
7 changed files with 36 additions and 23 deletions

View File

@ -1,9 +1,21 @@
:root {
--green: #C2F9BB;
--fg-color: #303034;
--bg-color: #1B1B1E;
--text-color: #ECEAF1;
--blue-ish: #587291;
}
.noselect {
user-select: none;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #303034;
background-color: var(--fg-color);
}
li {
@ -26,7 +38,7 @@ a {
text-decoration: none;
}
a:link, a:visited {
color: #C2F9BB;
color: var(--green);
}
a:hover {
color: red;

View File

@ -3,11 +3,11 @@
}
.status {
color: white;
color: var(--text-color);
}
.self {
color: white;
color: var(--text-color);
}
#username-self {
@ -23,11 +23,11 @@
}
.greentext {
color: #BFE7D4;
color: var(--green);
}
#posts > div {
background-color: #303034;
background-color: var(--fg-color);
padding-left: 5px;
padding-bottom: 2px;
}
@ -51,15 +51,15 @@
}
body {
background-color: #1B1B1E;
background-color: var(--bg-color);
}
textarea {
background-color: #1B1B1E;
background-color: var(--bg-color);
}
button {
background-color: #587291;
background-color: var(--blue-ish);
}
* {
@ -67,7 +67,7 @@ button {
}
.post,.self,.status {
color: #ECEAF1;
color: var(--text-color);
width: 50%;
margin-left: 25%;
margin-right: 25%;
@ -78,7 +78,7 @@ button {
}
#post-text, button {
color: #ECEAF1;
color: var(--text-color);
border-radius: 5px;
resize: none;
overflow-wrap: break-word;

View File

@ -1,4 +1,4 @@
const navbar = `<ul class="navbar">
const navbar = `<ul class="navbar noselect">
<li><a href="/">Home</a></li>
<li><a href="/user" id="hide_user">Profile</a></li>
<li><a href="/posts" id="hide_posts">Posts</a></li>

View File

@ -948,7 +948,7 @@ also sets the AUTH_COOKIE cookie to the new one
<div class="tab-pane active" id="examples-Everyone-changePW-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST\
-H "Content-Type: application/json"\
"https://ws.zerotwohub.tk:25566//api/changePW"</code></pre>
"https://ws.zerotwohub.tk:25566/api/changePW"</code></pre>
</div>
<div class="tab-pane" id="examples-Everyone-changePW-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
@ -1221,7 +1221,7 @@ username and post text are URI Encoded
<div class="tab-pane active" id="examples-Everyone-getPosts-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET\
-H "Accept: application/json"\
"https://ws.zerotwohub.tk:25566//api/getPosts"</code></pre>
"https://ws.zerotwohub.tk:25566/api/getPosts"</code></pre>
</div>
<div class="tab-pane" id="examples-Everyone-getPosts-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
@ -1493,7 +1493,7 @@ except ApiException as e:
<div class="tab-pane active" id="examples-Everyone-getotheruser-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET\
-H "Accept: application/json"\
"https://ws.zerotwohub.tk:25566//api/getotheruser?user="</code></pre>
"https://ws.zerotwohub.tk:25566/api/getotheruser?user="</code></pre>
</div>
<div class="tab-pane" id="examples-Everyone-getotheruser-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
@ -1799,7 +1799,7 @@ except ApiException as e:
<div class="tab-pane active" id="examples-Everyone-getuser-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET\
-H "Accept: application/json"\
"https://ws.zerotwohub.tk:25566//api/getuser"</code></pre>
"https://ws.zerotwohub.tk:25566/api/getuser"</code></pre>
</div>
<div class="tab-pane" id="examples-Everyone-getuser-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
@ -2065,7 +2065,7 @@ except ApiException as e:
<div class="tab-pane active" id="examples-Everyone-login-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST\
-H "Content-Type: application/json"\
"https://ws.zerotwohub.tk:25566//login"</code></pre>
"https://ws.zerotwohub.tk:25566/login"</code></pre>
</div>
<div class="tab-pane" id="examples-Everyone-login-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
@ -2336,7 +2336,7 @@ has to be logged in either by cookie or given user and password
<div class="tab-pane active" id="examples-Everyone-post-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST\
-H "Content-Type: application/json"\
"https://ws.zerotwohub.tk:25566//api/post"</code></pre>
"https://ws.zerotwohub.tk:25566/api/post"</code></pre>
</div>
<div class="tab-pane" id="examples-Everyone-post-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
@ -2606,7 +2606,7 @@ except ApiException as e:
<div class="tab-pane active" id="examples-Everyone-register-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST\
-H "Content-Type: application/json"\
"https://ws.zerotwohub.tk:25566//register"</code></pre>
"https://ws.zerotwohub.tk:25566/register"</code></pre>
</div>
<div class="tab-pane" id="examples-Everyone-register-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
@ -2876,7 +2876,7 @@ except ApiException as e:
<div class="tab-pane active" id="examples-Everyone-search-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET\
-H "Accept: application/json"\
"https://ws.zerotwohub.tk:25566//api/search?type=&selector="</code></pre>
"https://ws.zerotwohub.tk:25566/api/search?type=&selector="</code></pre>
</div>
<div class="tab-pane" id="examples-Everyone-search-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
@ -3215,7 +3215,7 @@ except ApiException as e:
<div class="tab-pane active" id="examples-Everyone-setBio-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X POST\
-H "Content-Type: application/json"\
"https://ws.zerotwohub.tk:25566//api/setBio"</code></pre>
"https://ws.zerotwohub.tk:25566/api/setBio"</code></pre>
</div>
<div class="tab-pane" id="examples-Everyone-setBio-0-java">
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;

View File

@ -9,7 +9,7 @@
<body>
<header>
<h1>IPost</h1>
<h1 class="noselect">IPost</h1>
</header>
<main>
<form id="login_form" class="form_class" action="login" method="post">

View File

@ -3,8 +3,8 @@
<head>
<meta charset="utf-8">
<title>Posts</title>
<link rel="stylesheet" href="/css/posts.css">
<link rel="stylesheet" href="/css/global.css">
<link rel="stylesheet" href="/css/posts.css">
<script type="text/javascript" src="/js/httppost.js"></script>
<script type="text/javascript" src="/js/htmlescape.js"></script>
<script type="text/javascript" src="/js/addnavbar.js"></script>

View File

@ -41,5 +41,6 @@
<a href="/PrivacyPolicy">Our PrivacyPolicy</a> <br>
<a href="/ToS">Our Terms of Service</a> <br>
</footer>
<style media="screen" id="userstyle"></style>
</body>
</html>