aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style
diff options
context:
space:
mode:
authorVjacheslav Trushkin <cyberalien@gmail.com>2013-10-26 11:01:23 +0300
committerVjacheslav Trushkin <cyberalien@gmail.com>2013-10-26 22:00:24 +0300
commitb107b4c0e2ff5f946e71eb962622295ded7f54ea (patch)
treea9e5935dbc2d92cb5cfe35bf934dd484b88ab857 /phpBB/adm/style
parent10f0c8b3337001743fc310539da43363873dcf0a (diff)
downloadforums-b107b4c0e2ff5f946e71eb962622295ded7f54ea.tar
forums-b107b4c0e2ff5f946e71eb962622295ded7f54ea.tar.gz
forums-b107b4c0e2ff5f946e71eb962622295ded7f54ea.tar.bz2
forums-b107b4c0e2ff5f946e71eb962622295ded7f54ea.tar.xz
forums-b107b4c0e2ff5f946e71eb962622295ded7f54ea.zip
[ticket/11957] Responsive forums list
PHPBB3-11957
Diffstat (limited to 'phpBB/adm/style')
-rw-r--r--phpBB/adm/style/acp_forums.html8
-rw-r--r--phpBB/adm/style/admin.css43
-rw-r--r--phpBB/adm/style/admin.js7
3 files changed, 48 insertions, 10 deletions
diff --git a/phpBB/adm/style/acp_forums.html b/phpBB/adm/style/acp_forums.html
index 7b1466cfbd..3fd2f18d67 100644
--- a/phpBB/adm/style/acp_forums.html
+++ b/phpBB/adm/style/acp_forums.html
@@ -440,19 +440,19 @@
<p><strong>{NAVIGATION}<!-- IF S_NO_FORUMS --> [<a href="{U_EDIT}">{L_EDIT}</a> | <a href="{U_DELETE}">{L_DELETE}</a><!-- IF not S_LINK --> | <a href="{U_SYNC}">{L_RESYNC}</a><!-- ENDIF -->]<!-- ENDIF --></strong></p>
<!-- IF .forums -->
- <table cellspacing="1">
+ <table cellspacing="1" class="forums">
<col class="row1" /><col class="row1" /><col class="row2" />
<tbody>
<!-- BEGIN forums -->
<tr data-down="{forums.U_MOVE_DOWN}" data-up="{forums.U_MOVE_UP}">
- <td style="width: 5%; text-align: center;">{forums.FOLDER_IMAGE}</td>
- <td>
+ <td class="folder">{forums.FOLDER_IMAGE}</td>
+ <td class="forum-desc">
<!-- IF forums.FORUM_IMAGE --><div style="float: {S_CONTENT_FLOW_BEGIN}; margin-right: 5px;">{forums.FORUM_IMAGE}</div><!-- ENDIF -->
<strong><!-- IF forums.S_FORUM_LINK -->{forums.FORUM_NAME}<!-- ELSE --><a href="{forums.U_FORUM}">{forums.FORUM_NAME}</a><!-- ENDIF --></strong>
<!-- IF forums.FORUM_DESCRIPTION --><br /><span>{forums.FORUM_DESCRIPTION}</span><!-- ENDIF -->
<!-- IF forums.S_FORUM_POST --><br /><br /><span>{L_TOPICS}{L_COLON} <strong>{forums.FORUM_TOPICS}</strong> / {L_POSTS}{L_COLON} <strong>{forums.FORUM_POSTS}</strong></span><!-- ENDIF -->
</td>
- <td style="vertical-align: top; width: 100px; text-align: right; white-space: nowrap;">
+ <td class="actions">
<!-- IF forums.S_FIRST_ROW && not forums.S_LAST_ROW -->
<span class="up">{ICON_MOVE_UP_DISABLED}</span>
<span class="down"><a href="{forums.U_MOVE_DOWN}" data-ajax="row_down" data-overlay="false">{ICON_MOVE_DOWN}</a></span>
diff --git a/phpBB/adm/style/admin.css b/phpBB/adm/style/admin.css
index b3f086b6d2..48b1712871 100644
--- a/phpBB/adm/style/admin.css
+++ b/phpBB/adm/style/admin.css
@@ -750,6 +750,19 @@ td.name {
color: #BC2A4D;
}
+/* Forums list */
+table.forums td.folder {
+ width: 27px;
+ text-align: center;
+}
+
+table.forums td.actions {
+ vertical-align: middle;
+ width: 100px;
+ text-align: right;
+ white-space: nowrap;
+}
+
@media only screen and (max-width: 700px), only screen and (max-device-width: 700px)
{
table.responsive, table.responsive tbody, table.responsive tr, table.responsive td {
@@ -846,6 +859,36 @@ td.name {
table.responsive#memberlist td:first-child input[type="checkbox"] {
float: right;
}
+
+ /* Forums list */
+ table.responsive.forums td.folder {
+ float: left;
+ width: 27px;
+ background: transparent;
+ }
+ .rtl table.responsive.forums td.folder {
+ float: right;
+ }
+
+ table.responsive.forums td.forum-desc {
+ margin-left: 35px;
+ min-height: 27px;
+ background: transparent;
+ }
+
+ .rtl table.responsive.forums td.forum-desc {
+ margin-left: 0;
+ margin-right: 35px;
+ }
+
+ table.responsive.forums td.actions {
+ clear: both;
+ text-align: right !important;
+ }
+
+ .rtl table.responsive.forums td.actions {
+ text-align: left !important;
+ }
}
/* General form styles
diff --git a/phpBB/adm/style/admin.js b/phpBB/adm/style/admin.js
index 342859ce54..648d542325 100644
--- a/phpBB/adm/style/admin.js
+++ b/phpBB/adm/style/admin.js
@@ -51,12 +51,7 @@ function parse_document(container)
// Find columns
$this.find('colgroup:first').children().each(function(i) {
var column = $(this);
- if (column.hasClass('col1')) {
- $this.find('td:nth-child(' + (i + 1) + ')').addClass('col1');
- }
- if (column.hasClass('col2')) {
- $this.find('td:nth-child(' + (i + 1) + ')').addClass('col2');
- }
+ $this.find('td:nth-child(' + (i + 1) + ')').addClass(column.prop('className'));
});
// Find each header