Skip to content

Commit

Permalink
Mobile responsive
Browse files Browse the repository at this point in the history
MARTINS Charly committed May 17, 2018
1 parent 825ecd5 commit a1f8c21
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions Resources/public/css/forum.css
Original file line number Diff line number Diff line change
@@ -52,6 +52,8 @@
padding: 5px;
width: 99%;
border-collapse: collapse;
table-layout: fixed;
overflow: hidden;
}

.wf_thread_list td {
@@ -60,10 +62,11 @@
text-align: left;
}

.wf_thread_list .wf_label {
width: 40%;
.wf_thread_list a, .wf_thread_list p {
word-wrap: break-word;
}


.wf_thread_list .wf_sublabel {
font-size: 12px;
}
@@ -88,13 +91,15 @@
font-size: 14px;
padding: 5px;
margin: 0;
word-wrap: break-word;
}

.wf_breadcrumb {
border-radius: 4px;
list-style: outside none none;
margin-bottom: 20px;
padding: 8px 15px;
word-wrap: break-word;
}

.wf_post {
@@ -288,6 +293,7 @@
margin-bottom: 0;
margin-top: 0;
font-weight: normal;
word-wrap: break-word;
}

.wf_forum_block_admin {
@@ -756,7 +762,7 @@ code {
}

.wf_post .wf_post-right {
margin-left: 9rem;
margin-left: 7.5rem;
}

.wf_post {
@@ -798,6 +804,14 @@ code {
clear: both;
margin-left: 0;
}

.wf_post .wf_post-left {
width: 15%;
}

.wf_message {
font-size: 0.8em;
}
}

@media only screen and (min-width: 320px) and (max-width: 425px) { /* MEDIUM MOBILE */
2 changes: 1 addition & 1 deletion Resources/views/Forum/thread_list.html.twig
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@
<span class="wf_pinText"><img src="{{ asset('bundles/yosimitsoworkingforum/images/tick.png') }}" width="16"/>{#{{ 'forum.resolved' | trans }} : #}</span>
{% endif %}

<a href="{{ path( 'workingforum_thread', {'subforum_slug' : thread.subforum.slug, 'thread_slug' : thread.slug}) }}">{{ thread.label }}</a>
<a class="wf_label" href="{{ path( 'workingforum_thread', {'subforum_slug' : thread.subforum.slug, 'thread_slug' : thread.slug}) }}">{{ thread.label }}</a>
</p>


0 comments on commit a1f8c21

Please sign in to comment.