Browse Source

Tables css tweaks

Rafał Pitoń 11 years ago
parent
commit
ce7bc8be4c

+ 32 - 8
misago/static/misago/admin/css/misago/tables.less

@@ -33,6 +33,38 @@
         }
       }
 
+      &.message-row {
+        td {
+          padding: @line-height-computed;
+
+          p {
+            margin: 0px;
+
+            font-size: @font-size-large;
+          }
+        }
+      }
+
+      &:first-child {
+        &>:first-child {
+          border-top-left-radius: (@border-radius-base - 1);
+        }
+
+        &>:last-child {
+          border-top-right-radius: (@border-radius-base - 1);
+        }
+      }
+
+      &:last-child {
+        &>:first-child {
+          border-bottom-left-radius: (@border-radius-base - 1);
+        }
+
+        &>:last-child {
+          border-bottom-right-radius: (@border-radius-base - 1);
+        }
+      }
+
       th {
         background: @table-header-bg;
         border: none;
@@ -40,14 +72,6 @@
 
         color: @table-header-color;
         font-size: @font-size-small;
-
-        &:first-child {
-          border-radius: (@border-radius-base - 1) 0px 0px 0px;
-        }
-
-        &:last-child {
-          border-radius: 0px (@border-radius-base - 1) 0px 0px;
-        }
       }
 
       td {

+ 19 - 6
misago/static/misago/admin/css/style.css

@@ -6187,6 +6187,25 @@ body {
 .table-panel table.table tr.active td {
   background-color: rgba(240, 173, 78, 0.05);
 }
+.table-panel table.table tr.message-row td {
+  padding: 20px;
+}
+.table-panel table.table tr.message-row td p {
+  margin: 0px;
+  font-size: 18px;
+}
+.table-panel table.table tr:first-child > :first-child {
+  border-top-left-radius: 3px;
+}
+.table-panel table.table tr:first-child > :last-child {
+  border-top-right-radius: 3px;
+}
+.table-panel table.table tr:last-child > :first-child {
+  border-bottom-left-radius: 3px;
+}
+.table-panel table.table tr:last-child > :last-child {
+  border-bottom-right-radius: 3px;
+}
 .table-panel table.table tr th {
   background: #ededed;
   border: none;
@@ -6194,12 +6213,6 @@ body {
   color: #555555;
   font-size: 12px;
 }
-.table-panel table.table tr th:first-child {
-  border-radius: 3px 0px 0px 0px;
-}
-.table-panel table.table tr th:last-child {
-  border-radius: 0px 3px 0px 0px;
-}
 .table-panel table.table tr td {
   background-color: #fff;
   vertical-align: middle;

+ 5 - 0
misago/templates/misago/admin/generic/list.html

@@ -106,6 +106,11 @@
       </td>
       {% endblock table-row %}
     </tr>
+    {% empty %}
+    <tr class="message-row">
+      {% block emptylist %}
+      {% endblock emptylist %}
+    </tr>
     {% endfor %}
   </table>
 </div><!-- /.table-panel -->

+ 7 - 0
misago/templates/misago/admin/ranks/list.html

@@ -12,3 +12,10 @@
   {{ item.name }}
 </td>
 {% endblock %}
+
+
+{% block emptylist %}
+<td>
+  <p>{% trans "No ranks are currently defined." %}</p>
+</td>
+{% endblock emptylist %}