Lots of style changes

This commit is contained in:
2019-07-06 18:41:16 +02:00
parent a58d9218e6
commit 3ac951ba9d
27 changed files with 235 additions and 153 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 251 B

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 195 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 314 B

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 B

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 357 B

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 215 B

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 280 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -18,13 +18,11 @@ var Toolbar = {
document.getElementById("toolbar").style.left = "-9em";
document.getElementById("filepreview").style.left = "0px";
document.getElementById("info_popup").style.left = "1em";
this.visible = false;
} else {
document.getElementById("toolbar").style.left = "0px";
document.getElementById("filepreview").style.left = "8em";
document.getElementById("info_popup").style.left = "9em";
this.visible = true;
}
@@ -175,7 +173,7 @@ function loadCaptcha(){
var DetailsWindow = {
visible: false,
popupDiv: document.getElementById("info_popup"),
popupDiv: document.getElementById("details_popup"),
detailsButton: document.getElementById("btnDetails"),
toggle: function () {
if (this.visible) {

View File

@@ -62,10 +62,11 @@ body{
margin: 0;
text-align: center; /* Center the header and body */
line-height: 1.5em;
height: 100%;
overflow-x: hidden;
color: #bfbfbf; /* Fallback */
color: var(--text_color);
box-sizing: border-box;
padding: 0;
}
/* Page layout elements */
@@ -83,14 +84,13 @@ body{
min-width: 300px;
width: 100%;
height: auto;
padding: 0px 8px 0px 8px;
padding: 0 10px 0 10px;
margin: 30px 0 30px 0;
box-sizing: border-box;
background-color: var(--body_color);
margin-top: 30px;
margin-bottom: 30px;
text-align: left;
box-shadow: #000000 8px 8px 50px, 5px;
box-shadow: var(--shadow_color) 8px 8px var(--shadow_spread) var(--shadow_intensity);
box-shadow: #000000 0 0 10px, 5px;
box-shadow: var(--shadow_color) 0 0 var(--shadow_spread) var(--shadow_intensity);
z-index: 1;
word-break: break-word;
}
@@ -112,8 +112,8 @@ body{
.navigation a:hover {
background: linear-gradient(#82c13e, #6da234);
background: linear-gradient(var(--highlight_color), var(--highlight_color_dark));
box-shadow: #82c13e, 2px 2px 8px #000000;
box-shadow: var(--highlight_border), 2px 2px 8px var(--shadow_color);
box-shadow: #82c13e, 1px 1px 4px #000000;
box-shadow: var(--highlight_border), 1px 1px 4px var(--shadow_color);
color: #000000;
color: var(--highlight_text_color);
transition: box-shadow 0.5s;
@@ -150,19 +150,43 @@ body{
position: relative;
width: auto;
height: auto;
margin: 0 -8px 0 -8px;
margin: 0 -10px 0 -10px;
box-sizing: border-box;
overflow: hidden;
text-align: center;
padding: 4px 0px 4px 0px;
padding: .5em;
z-index: 101;
}
.highlight_dark {background-color: var(--accent_color_dark); border-color: var(--accent_color_dark_border); box-shadow: inset 1px 1px 12px -1px var(--shadow_color);}
.highlight_middle {background-color: var(--accent_color_medium); border-color: var(--accent_color_medium_border); box-shadow: inset 1px 1px 8px -1px var(--shadow_color);}
.highlight_light {background-color: var(--accent_color_light); border-color: var(--accent_color_light_border); box-shadow: 1px 1px 4px var(--shadow_color);}
.highlight_green {background-color: rgba(0, 255, 0, 0.05); border-color: #00d000;}
.highlight_blue {background-color: rgba(32, 32, 255, 0.2); border-color: rgb(54, 54, 255);}
.highlight_red {background-color: rgba(255, 0, 0, 0.1); border-color: #B00000;}
.highlight_dark {
background-color: var(--accent_color_dark);
border-color: var(--accent_color_dark_border);
box-shadow: inset 1px 1px 8px -1px var(--shadow_color);}
.highlight_middle {
background-color: var(--accent_color_medium);
border-color: var(--accent_color_medium_border);
box-shadow: inset 1px 1px 6px -1px var(--shadow_color);}
.highlight_light {
background-color: var(--accent_color_light);
border-color: var(--accent_color_light_border);
box-shadow: 1px 1px 4px var(--shadow_color);}
.highlight_green {
background-color: rgba(0, 255, 0, 0.05);
border-color: #00d000;}
.highlight_blue {
background-color: rgba(32, 32, 255, 0.2);
border-color: rgb(54, 54, 255);}
.highlight_red {
background-color: rgba(255, 0, 0, 0.1);
border-color: #B00000;}
body > .highlight_dark,
body > .highlight_middle,
body > .highlight_light,
body > .highlight_green,
body > .highlight_blue,
body > .highlight_red {
margin: 0;
}
.border_top {border-top-width: 1px; border-top-style: solid;}
.border_bottom {border-bottom-width: 1px; border-bottom-style: solid;}
@@ -189,8 +213,11 @@ hr{
width: 12px; /* for vertical scrollbars */
height: 12px; /* for horizontal scrollbars */
}
::-webkit-scrollbar-track {background: var(--accent_color_dark);}
::-webkit-scrollbar-thumb {background-color: var(--accent_color_light);}
::-webkit-scrollbar-track {background: var(--scrollbar_background_color);}
::-webkit-scrollbar-thumb {
background-color: var(--scrollbar_foreground_color);
border-radius: 6px;
}
::-webkit-scrollbar-corner{background: transparent;}
a {color: var(--highlight_color); text-decoration: none;}
@@ -312,7 +339,7 @@ select{
margin: 2px;
background: linear-gradient(var(--input_color), var(--input_color_dark));
padding: 6px 8px 6px 8px;
box-shadow: 2px 2px 8px var(--shadow_color);
box-shadow: 2px 2px 4px var(--shadow_color);
font-weight: bold;
font-size: 0.85em;
overflow: hidden;
@@ -340,7 +367,7 @@ select:focus{
color: #bfbfbf; /* Fallback */
color: var(--input_text_color);
text-decoration: none;
box-shadow: var(--highlight_border), 2px 2px 8px var(--shadow_color);
box-shadow: var(--highlight_border), 2px 2px 4px var(--shadow_color);
}
button:active,
.button:active,
@@ -349,7 +376,7 @@ input[type="button"]:active,
input[type="color"]:active,
select:active{
background: linear-gradient(var(--input_color_dark), var(--input_color));
box-shadow: inset 5px 5px 10px var(--shadow_color);
box-shadow: inset 4px 4px 8px var(--shadow_color);
padding: 11px 3px 1px 13px; /* Exactly 5px offset compared to the inactive padding to give a depth effect */
}
.button_full_width {width: calc(100% - 4px);}
@@ -376,7 +403,7 @@ input[type="number"]{
box-sizing: border-box;
border-radius: 4px;
background: linear-gradient(var(--input_color_dark), var(--input_color));
box-shadow: inset 3px 3px 6px var(--shadow_color);
box-shadow: inset 2px 2px 4px var(--shadow_color);
padding: 3px 5px;
color: var(--input_text_color);
height: 26px;

View File

@@ -190,32 +190,15 @@ body{
/* =====================
|| MISC COMPONENTS ||
===================== */
.full_popup{
.popup {
position: fixed;
visibility: hidden;
opacity: 0;
transition: visibility 1s, opacity 1s, left 1s;
background-color: var(--background_color);
left: 9em;
right: 1em;
bottom: 1em;
top: 1em;
overflow-y: scroll;
padding: 1em;
box-sizing: border-box;
text-align: left;
box-shadow: var(--shadow_color) 0px 0px 50px;
z-index: 100;
}
.captcha_popup{
position: fixed;
visibility: hidden;
opacity: 0;
transition: visibility 1s, opacity 1s, left 1s;
background-color: var(--background_color);
transition: visibility 1s, opacity 1s;
background-color: var(--body_color);
border-color: var(--accent_color_dark_border);
height: auto;
width: 450px;
max-height: 100%;
max-width: 100%;
top: 10%;
left: 50%;
@@ -224,6 +207,20 @@ body{
box-sizing: border-box;
text-align: left;
box-shadow: var(--shadow_color) 0px 0px 50px;
}
.popup .highlight_light {
font-size: 1.2em;
}
.details_popup{
overflow-y: scroll;
width: 1200px;
height: 800px;
z-index: 100;
}
.captcha_popup{
height: auto;
width: 450px;
z-index: 101;
}
#captcha_popup_captcha > div {

View File

@@ -79,10 +79,10 @@
{{template "api-list-post"}}
{{template "api-list-get"}}
<!--<h2>Filesystem Methods</h2>-->
{{/*template "api-filesystem-path-post"*/}}
{{/*template "api-filesystem-path-get"*/}}
{{/*template "api-filesystem-path-delete"*/}}
<h2>Filesystem Methods</h2>
{{template "api-filesystem-path-post"}}
{{template "api-filesystem-path-get"}}
{{template "api-filesystem-path-delete"}}
{{template "footer"}}
</div>

View File

@@ -117,14 +117,11 @@
</button>
</div>
<div id="info_popup" class="full_popup">
<img
alt="Close"
src="/res/img/cross.png"
style="position: absolute; top: 5px; right: 5px; width: 40px; height: 40px; cursor: pointer;"
onclick="DetailsWindow.toggle();"
/>
<h3>File Info</h3>
<div id="details_popup" class="popup details_popup border_bottom">
<div id="details_popup_title" class="highlight_light border_top border_bottom">
File Info
<button style="position: absolute; top: 3px; right: 3px;" class="button_red" onclick="DetailsWindow.toggle();">X</button>
</div>
<span id="info_file_details"></span>
<span id="info_about">
<h3>About</h3>
@@ -158,7 +155,7 @@
<br/>
</span>
</div>
<div id="captcha_popup" class="captcha_popup border_bottom">
<div id="captcha_popup" class="popup captcha_popup border_bottom">
<div id="captcha_popup_title" class="highlight_light border_top border_bottom"></div>
<div id="captcha_popup_content"></div>
<br/>

View File

@@ -2,7 +2,8 @@
<br/>
<div class="highlight_dark border_top border_bottom">
Pixeldrain is a product by <a href="//fornaxian.com" target="_blank">Fornaxian Technologies</a> |
Twitter: <a href="https://twitter.com/Fornax96" target="_blank">@Fornax96</a>
Reddit: <a href="https://reddit.com/r/pixeldrain" target="_blank">/r/pixeldrain</a>
Twitter:&nbsp;<a href="https://twitter.com/Fornax96" target="_blank">@Fornax96</a>
Reddit:&nbsp;<a href="https://reddit.com/r/pixeldrain" target="_blank">/r/pixeldrain</a>
Medium:&nbsp;<a href="https://medium.com/pixeldrain" target="_blank">Pixeldrain</a>
</div>
{{end}}

View File

@@ -22,7 +22,7 @@
<br/>
<div id="body" class="body">
{{template "menu" .}}
<div class="highlight_middle border_bottom" style="padding: 0;">
<div class="highlight_middle border_bottom">
<input id="file_input_field" type="file" name="file" multiple="multiple"/>
<button id="select_file_button" class="big_button button_highlight">Upload Files</button>
<button id="text_button" class="big_button button_highlight" onClick="window.location.href = '/t/'">Upload Text</button><br/>
@@ -47,6 +47,14 @@
files you can upload. A list can contain up to 10000 files.
</p>
<h2>Style selector</h2>
<input type="radio" id="style_default" name="style"><label for="style_default">Pixeldrain Style</label><br/>
<input type="radio" id="style_solarized_dark" name="style"><label for="style_solarized_dark">Solarized Dark Style</label><br/>
<input type="radio" id="style_maroon" name="style"><label for="style_maroon">Maroon Style</label><br/>
<input type="radio" id="style_hacker" name="style"><label for="style_hacker">Hacker Style</label><br/>
<input type="radio" id="style_canta" name="style"><label for="style_canta">Canta Style</label>
(Inspired by <a href="https://github.com/vinceliuice/Canta-theme" target="_blank">Canta GTK</a>)<br/>
<h2>Questions and Answers</h2>
<h3>For how long will my files be stored?</h3>
@@ -150,12 +158,6 @@
<a href="mailto:support@pixeldrain.com">support@pixeldrain.com</a>
</p>
<h2>Style selector</h2>
<input type="radio" id="style_default" name="style"><label for="style_default">Default Pixeldrain Style</label><br/>
<input type="radio" id="style_solarized_dark" name="style"><label for="style_solarized_dark">Solarized Dark Style</label><br/>
<input type="radio" id="style_maroon" name="style"><label for="style_maroon">Maroon Style</label><br/>
<input type="radio" id="style_hacker" name="style"><label for="style_hacker">Hacker Style</label><br/>
{{template "footer"}}
</div>