Improve UI a bit (#161)
* Remove right margin from expiration dropdown on index * Use flexbox for bin/story display * Move Paste/Save button after expire dropdown, instead of before
This commit is contained in:
parent
f46b61399b
commit
73f127306c
|
@ -70,11 +70,21 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
#info {
|
#info {
|
||||||
|
background-color: white;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-flex {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
align-items: baseline;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
background-color: white;
|
}
|
||||||
padding: 5px 5px 5px 5px;
|
|
||||||
|
.info-actions {
|
||||||
|
margin-left: 15px;
|
||||||
|
font-size: 13px;
|
||||||
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
#info #extension,
|
#info #extension,
|
||||||
|
@ -82,10 +92,6 @@ body {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#info .text-right {
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#info a {
|
#info a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #556A7F;
|
color: #556A7F;
|
||||||
|
@ -249,10 +255,6 @@ body {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#choices label:first-child {
|
|
||||||
margin-right: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#expiry {
|
#expiry {
|
||||||
padding-top: 1px;
|
padding-top: 1px;
|
||||||
}
|
}
|
||||||
|
@ -295,14 +297,11 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#info input[type=text] {
|
#info input[type=text] {
|
||||||
border: 1px solid #eaeaea;
|
border: 1px solid #eaeaea;
|
||||||
color: #556A7F;
|
color: #556A7F;
|
||||||
border-radius: 4px 4px 4px 4px;
|
padding: 2px 4px;
|
||||||
padding-left: 4px;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
padding-right: 4px;
|
|
||||||
height: 15px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.storygreen {
|
.storygreen {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
|
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
|
||||||
|
|
||||||
var navlist = document.getElementById("info").getElementsByClassName("text-right")[0];
|
var navlist = document.getElementById("info").getElementsByClassName("info-actions")[0];
|
||||||
|
|
||||||
init();
|
init();
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title>{% block title %}{{ sitename }}{% endblock %}</title>
|
<title>{% block title %}{{ sitename }}{% endblock %}</title>
|
||||||
<meta charset='utf-8' content='text/html' http-equiv='content-type'>
|
<meta charset='utf-8' content='text/html' http-equiv='content-type'>
|
||||||
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
|
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
|
||||||
<link href='{{ sitepath }}static/css/linx.css' media='screen, projection' rel='stylesheet' type='text/css'>
|
<link href='{{ sitepath }}static/css/linx.css?v=1' media='screen, projection' rel='stylesheet' type='text/css'>
|
||||||
<link href='{{ sitepath }}static/css/hint.css' rel='stylesheet' type='text/css'>
|
<link href='{{ sitepath }}static/css/hint.css' rel='stylesheet' type='text/css'>
|
||||||
<link href='{{ sitepath }}static/images/favicon.gif' rel='icon' type='image/gif'>
|
<link href='{{ sitepath }}static/images/favicon.gif' rel='icon' type='image/gif'>
|
||||||
{% block head %}{% endblock %}
|
{% block head %}{% endblock %}
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<div id="info" class="dinfo">
|
<div id="info" class="dinfo info-flex">
|
||||||
<div id="filename">
|
<div id="filename">
|
||||||
{{ filename }}
|
{{ filename }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class='text-right pad-left'>
|
<div class="info-actions">
|
||||||
{% if expiry %}
|
{% if expiry %}
|
||||||
<span>file expires in {{ expiry }}</span> |
|
<span>file expires in {{ expiry }}</span> |
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -12,17 +12,20 @@
|
||||||
{% block infoleft %}
|
{% block infoleft %}
|
||||||
<div id="editform">
|
<div id="editform">
|
||||||
<form id="reply" action='{{ sitepath }}upload' method='post'>
|
<form id="reply" action='{{ sitepath }}upload' method='post'>
|
||||||
<div class="right pad-left">
|
<div class="info-flex">
|
||||||
<button id="save">save</button>
|
<div>
|
||||||
|
{% if not forcerandom %}<input class="codebox" name='filename' id="filename" type='text' value="" placeholder="filename">{% endif %}.<input id="extension" class="codebox" name='extension' type='text' value="{{ extra.extension }}" placeholder="txt">
|
||||||
|
</div>
|
||||||
|
<div class="info-actions">
|
||||||
<select id="expiry" name="expires">
|
<select id="expiry" name="expires">
|
||||||
<option disabled=disabled>Expires:</option>
|
<option disabled>Expires:</option>
|
||||||
{% for expiry in expirylist %}
|
{% for expiry in expirylist %}
|
||||||
<option value="{{ expiry.Seconds }}"{% if forloop.Last %} selected{% endif %}>{{ expiry.Human }}</option>
|
<option value="{{ expiry.Seconds }}"{% if forloop.Last %} selected{% endif %}>{{ expiry.Human }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
<button type="submit" id="save">Save</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if not forcerandom %}<input class="codebox" name='filename' id="filename" type='text' value="" placeholder="filename">{% endif %}.<input id="extension" class="codebox" name='extension' type='text' value="{{ extra.extension }}" placeholder="txt">
|
|
||||||
<textarea name='content' id="newcontent" class="editor"></textarea>
|
<textarea name='content' id="newcontent" class="editor"></textarea>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -45,5 +48,5 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<script src="{{ sitepath }}static/js/util.js"></script>
|
<script src="{{ sitepath }}static/js/util.js"></script>
|
||||||
<script src="{{ sitepath }}static/js/bin.js"></script>
|
<script src="{{ sitepath }}static/js/bin.js?v=1"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -10,17 +10,21 @@
|
||||||
{% block infoleft %}
|
{% block infoleft %}
|
||||||
<div id="editform">
|
<div id="editform">
|
||||||
<form id="reply" action='{{ sitepath }}upload' method='post'>
|
<form id="reply" action='{{ sitepath }}upload' method='post'>
|
||||||
<div class="right pad-left">
|
<div class="info-flex">
|
||||||
<button id="save">save</button>
|
<div>
|
||||||
|
{% if not forcerandom %}<input class="codebox" name='filename' id="filename" type='text' value="" placeholder="filename">{% endif %}.<input id="extension" class="codebox" name='extension' type='text' value="story" placeholder="txt">
|
||||||
|
</div>
|
||||||
|
<div class="info-actions">
|
||||||
<select id="expiry" name="expires">
|
<select id="expiry" name="expires">
|
||||||
<option disabled=disabled>Expires:</option>
|
<option disabled>Expires:</option>
|
||||||
{% for expiry in expirylist %}
|
{% for expiry in expirylist %}
|
||||||
<option value="{{ expiry.Seconds }}"{% if forloop.Last %} selected{% endif %}>{{ expiry.Human }}</option>
|
<option value="{{ expiry.Seconds }}"{% if forloop.Last %} selected{% endif %}>{{ expiry.Human }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
<button type="submit" id="save">Save</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if not forcerandom %}<input class="codebox" name='filename' id="filename" type='text' value="" placeholder="filename">{% endif %}.<input id="extension" class="codebox" name='extension' type='text' value="story" placeholder="txt">
|
|
||||||
<textarea name='content' id="newcontent" class="editor"></textarea>
|
<textarea name='content' id="newcontent" class="editor"></textarea>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -38,5 +42,5 @@
|
||||||
|
|
||||||
|
|
||||||
<script src="{{ sitepath }}static/js/util.js"></script>
|
<script src="{{ sitepath }}static/js/util.js"></script>
|
||||||
<script src="{{ sitepath }}static/js/bin.js"></script>
|
<script src="{{ sitepath }}static/js/bin.js?v=1"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -3,18 +3,18 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<form id="reply" action='{{ sitepath }}upload' method='post'>
|
<form id="reply" action='{{ sitepath }}upload' method='post'>
|
||||||
<div id="main" class="paste">
|
<div id="main" class="paste">
|
||||||
<div id="info">
|
<div id="info" class="info-flex">
|
||||||
<div>
|
<div>
|
||||||
{% if not forcerandom %}<span class="hint--top hint--bounce" data-hint="Leave empty for random filename"><input class="codebox" name='filename' id="filename" type='text' value="" placeholder="filename" /></span>{% endif %}.<span class="hint--top hint--bounce" data-hint="Enable syntax highlighting by adding the extension"><input id="extension" class="codebox" name='extension' type='text' value="" placeholder="txt" /></span>
|
{% if not forcerandom %}<span class="hint--top hint--bounce" data-hint="Leave empty for random filename"><input class="codebox" name='filename' id="filename" type='text' value="" placeholder="filename" /></span>{% endif %}.<span class="hint--top hint--bounce" data-hint="Enable syntax highlighting by adding the extension"><input id="extension" class="codebox" name='extension' type='text' value="" placeholder="txt" /></span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input type="submit" value="Paste">
|
|
||||||
<select id="expiry" name="expires">
|
<select id="expiry" name="expires">
|
||||||
<option disabled="disabled">Expires:</option>
|
<option disabled>Expires:</option>
|
||||||
{% for expiry in expirylist %}
|
{% for expiry in expirylist %}
|
||||||
<option value="{{ expiry.Seconds }}"{% if forloop.Last %} selected{% endif %}>{{ expiry.Human }}</option>
|
<option value="{{ expiry.Seconds }}"{% if forloop.Last %} selected{% endif %}>{{ expiry.Human }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
<button type="submit">Paste</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue