Skip to content

Commit 0a0829f

Browse files
committed
Add responsive CSS
1 parent 66436d3 commit 0a0829f

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

styles/prosilver/template/pastebin_body.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h2>{{ lang('PASTEBIN') }}</h2>
66

77
<div id="extras">
88
{% if S_AUTH_POST or S_MODE eq 'view' %}
9-
<div class="newentry mini-panel navbar">
9+
<div class="new-entry mini-panel navbar">
1010
<h3>{{ lang('PASTEBIN') }}</h3>
1111
<ul>
1212
{% if S_AUTH_POST %}<li><a href="{{ U_PASTEBIN }}">{{ lang('SNIPPET_NEW') }}</a></li>{% endif %}
@@ -58,7 +58,7 @@ <h3>{{ lang('MODERATE_SNIPPET') }}</h3>
5858
</div>
5959

6060
{% if S_AUTH_VIEW %}
61-
<div class="lastsnippets mini-panel navbar">
61+
<div class="last-snippets mini-panel navbar">
6262
<h3>{{ lang('LATEST_SNIPPETS') }}</h3>
6363

6464
{% if loops.latest_snippets|length %}

styles/prosilver/theme/pastebin.css

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,28 @@
1313
font-size: 0.8em;
1414
font-weight: bold;
1515
display:block;
16-
padding: 3px 0 1px 2px;
16+
padding: 3px 0 0.5% 2px;
1717
}
1818

1919
.pastebin .mini-panel {
2020
display: block;
2121
font-size: 110%;
22-
padding: 12px ;
22+
padding: 1% ;
2323
margin-top: 12px;
2424
margin-bottom: 12px;
2525
}
2626

27-
.pastebin .newentry {
27+
.pastebin .new-entry {
2828
float: right;
2929
line-height: 1.5;
3030
margin-right: 10px;
3131
width: 30%
3232
}
3333

34-
.pastebin .lastsnippets {
34+
.pastebin .last-snippets {
3535
float: right;
3636
line-height: 1.5;
37-
margin-right: 10px;
37+
margin: 20px 10px 0 0;
3838
width: 30%;
3939
}
4040

@@ -73,3 +73,15 @@
7373
margin-bottom: 10px;
7474
margin-top: 10px;
7575
}
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)