Skip to content

Commit 7fa6db1

Browse files
authored
Merge pull request #28 from Crizz0/issue/25
Improve design and appearance of the pastebin body and view
2 parents fbab537 + 0a0829f commit 7fa6db1

File tree

2 files changed

+47
-19
lines changed

2 files changed

+47
-19
lines changed

styles/prosilver/template/pastebin_body.html

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
<h2>{{ lang('PASTEBIN') }}</h2>
66

77
<div id="extras">
8-
9-
108
{% if S_AUTH_POST or S_MODE eq 'view' %}
11-
<div class="mini-panel navbar">
9+
<div class="new-entry mini-panel navbar">
1210
<h3>{{ lang('PASTEBIN') }}</h3>
1311
<ul>
1412
{% if S_AUTH_POST %}<li><a href="{{ U_PASTEBIN }}">{{ lang('SNIPPET_NEW') }}</a></li>{% endif %}
@@ -18,7 +16,7 @@ <h3>{{ lang('PASTEBIN') }}</h3>
1816
{% endif %}
1917

2018
{% if (S_AUTH_EDIT || S_AUTH_DELETE) && S_MODE eq 'view' %}
21-
<div class="mini-panel navbar">
19+
<div class="mod-panel mini-panel navbar">
2220
<h3>{{ lang('MODERATE_SNIPPET') }}</h3>
2321

2422
<form method="post" action="{{ S_FORM_ACTION_MOD }}">
@@ -51,8 +49,6 @@ <h3>{{ lang('MODERATE_SNIPPET') }}</h3>
5149
{% endif %}
5250
</div>
5351

54-
55-
5652
<div id="content">
5753
{% if S_MODE eq 'view' %}
5854
{% INCLUDE 'pastebin_view.html' %}
@@ -61,9 +57,8 @@ <h3>{{ lang('MODERATE_SNIPPET') }}</h3>
6157
{% endif %}
6258
</div>
6359

64-
6560
{% if S_AUTH_VIEW %}
66-
<div class="mini-panel navbar">
61+
<div class="last-snippets mini-panel navbar">
6762
<h3>{{ lang('LATEST_SNIPPETS') }}</h3>
6863

6964
{% if loops.latest_snippets|length %}

styles/prosilver/theme/pastebin.css

Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
}
44

55
.pastebin #pastebin-codebox dd {
6-
margin: 0px 0px 0px 4em;
7-
padding: 0.5em 0px 0px 0.5px;
6+
margin: 0 0 0 4em;
7+
padding: 5px 0 0 1px;
88
}
99

1010
.pastebin #pastebin-codebox dt {
@@ -13,30 +13,52 @@
1313
font-size: 0.8em;
1414
font-weight: bold;
1515
display:block;
16-
padding: 0.2em 0px 0.2px 0.1em;
16+
padding: 3px 0 0.5% 2px;
1717
}
1818

1919
.pastebin .mini-panel {
2020
display: block;
21-
padding: 1em ;
22-
margin-top: 1em;
23-
margin-bottom: 1em;
21+
font-size: 110%;
22+
padding: 1% ;
23+
margin-top: 12px;
24+
margin-bottom: 12px;
25+
}
26+
27+
.pastebin .new-entry {
28+
float: right;
29+
line-height: 1.5;
30+
margin-right: 10px;
31+
width: 30%
32+
}
33+
34+
.pastebin .last-snippets {
35+
float: right;
36+
line-height: 1.5;
37+
margin: 20px 10px 0 0;
38+
width: 30%;
39+
}
40+
41+
.pastebin .mod-panel {
42+
float: left;
43+
width: 63%;
2444
}
2545

2646
.pastebin #content {
27-
width: 100%;
47+
font-size: 105%;
48+
float: left;
49+
width: 65%;
2850
}
2951

3052
.pastebin #extras {
3153
width: 100%;
3254
}
3355

3456
.pastebin .mini-panel h3 {
35-
margin-top: 0px;
57+
margin-top: 0;
3658
}
3759

3860
.pastebin .mini-panel ul {
39-
padding-left: 1em;
61+
padding-left: 12px;
4062
}
4163

4264
.pastebin #copy_paste.inputbox{
@@ -46,9 +68,20 @@
4668
}
4769

4870
.pastebin .textwrapper{
49-
border: 1px solid;
50-
border-color: #B4BAC0;
71+
border: 1px solid #B4BAC0;
5172
padding: 5px;
5273
margin-bottom: 10px;
5374
margin-top: 10px;
5475
}
76+
77+
/* Responsive */
78+
@media (max-width: 860px) {
79+
.pastebin .last-snippets,
80+
.pastebin .mod-panel,
81+
.pastebin .new-entry,
82+
.pastebin #content {
83+
float: none;
84+
margin: 10px 0;
85+
width: auto;
86+
}
87+
}

0 commit comments

Comments
 (0)