style.css: new css mobile. Initial integration.

This commit is contained in:
fowr 2024-08-11 17:29:04 -03:00 committed by Zankaria
parent 5821004155
commit 6fea059968
4 changed files with 124 additions and 23 deletions

View File

@ -48,7 +48,7 @@ $(document).ready(function(){
hidden_data[board] = {}; // id : timestamp hidden_data[board] = {}; // id : timestamp
} }
var replacement = $('<span>'+_('File')+' <small>(<a class="hide-image-link" href="javascript:void(0)">'+_('hide')+'</a>)</small>: </span>'); var replacement = $('<span><a class="hide-image-link"><i class="fa fa-eye-slash"></i></a></span>');
replacement.find('a').click(function() { replacement.find('a').click(function() {
if (hidden_data[board][id]) { if (hidden_data[board][id]) {
@ -60,7 +60,7 @@ $(document).ready(function(){
} }
store_data(); store_data();
var show_link = $('<a class="show-image-link" href="javascript:void(0)">'+_('show')+'</a>').click(function() { var show_link = $('<a class="show-image-link"><i class="fa fa-eye" title="'+_('show')+'"</i></a>').click(function() {
var i = hidden_data[board][id]['index'].indexOf(index); var i = hidden_data[board][id]['index'].indexOf(index);
if (i > -1) hidden_data[board][id]['index'].splice(i,1); if (i > -1) hidden_data[board][id]['index'].splice(i,1);

View File

@ -253,10 +253,6 @@ input.delete {
margin-left: 0; margin-left: 0;
} }
.intro a {
margin-left: 8px;
}
div.delete { div.delete {
float: right; float: right;
} }
@ -952,7 +948,7 @@ span.pln {
color: grey; color: grey;
} }
@media screen and (min-width: 768px) { @media screen and (min-width: 48em) {
.intro { .intro {
clear: none; clear: none;
} }
@ -1072,6 +1068,111 @@ div.boardlist a {
width: 50px; width: 50px;
} }
div.video-container {
display: block;
min-width: unset !important;
align-items: center;
max-width: 15%;
}
@media only screen and (max-width: 48em) {
/* wired-7 style_m.css plus edit by perdedora */
hr {
margin: 1em 0;
}
div.post.reply {
width: 100%;
padding: 0.5em 0px 0.5em 0.5em;
margin: 0;
max-width: 100% !important;
box-sizing: border-box;
margin: 0px;
}
div.post.reply div.body {
margin-inline-start: 10px;
margin-inline-end: 0px;
margin-left: initial !important;
}
.post-btn {
margin: 0 2px 0 2px;
}
.post-image{
max-width: 150px;
max-height: 150px;
object-fit: cover;
border-radius: 4px;
}
div.post:not(.op) div.body{
clear:none;
}
div.post .files {
display: inline-flex !important;
float:left;
flex-flow: row wrap;
align-content: space-between;
margin-right: 10px;
margin-top: 2px;
}
div.thread.files {
display: flex;
flex-flow: row wrap;
float: left;
}
div.file.multifile {
min-width: unset !important;
width: unset !important;
}
div.post .file {
width: initial !important;
min-width: 100px;
}
.full-image {
max-width: 100%;
}
div.video-container {
max-width: unset !important;
}
.intro time,
.name,
.own_post,
.poster_id,
i fa,
.post_no,
.capcode {
font-size: 1em;
}
.intro a:not(#reply-button) {
margin-left: unset !important;
}
.post-btn,
.hide-thread-link {
margin-right: 2px !important;
}
.show-image-link,
.hide-image-link {
font-size: 16px;
margin: 0 4px !important;
}
}
p.fileinfo .unimportant {
@media (max-width: 48em) {
display: none;
}
}
p.fileinfo span + span {
margin-right: 0.3em;
}
.image_id a + a {
margin-left: 0.3em;
}
/* File selector */ /* File selector */
.dropzone { .dropzone {
color: #000; color: #000;

View File

@ -33,6 +33,6 @@
{% include "post/image.html" with {'post':file} %} {% include "post/image.html" with {'post':file} %}
{% endif %} {% endif %}
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}