category_table_stylesheet

NAML documentation   Watch a video
   Usages of this macro
... in tweaks.naml
1
2
3
4
5
6
7
8
9
<override_macro name="category_table_stylesheet">
    <n.overridden/>
    <style type="text/css">
        @media (max-width: 600px) {
            table.main td{word-break:break-all}
        table.main td.post_count_column,table.main td.topic-count-column{display:none}
        }
    </style>
</override_macro>
Overrides default macro
... in responsive.naml
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<override_macro name="category_table_stylesheet">
    <n.overridden/>
    <style type="text/css">
        @media (max-width: 600px) {
            table.main td{padding-left:0 !important;font-size:95%}
            tr.header-row td{font-size:80%}
            tr.main-row img[width]{display:none}
            td.column{white-space:normal !important}
            span.column.nowrap{white-space:normal}
            span.pages{margin:2em 0}
            span.pages a{padding:.2em .6em}
        }
    </style>
</override_macro>
Overrides default macro
... in view_category.naml
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<macro name="category_table_stylesheet">
    <style type="text/css">
        table.main {
            margin-top:.2em;
            border-collapse:collapse;
            width:100%;
            border-width:1px;
            border-style:solid;
        }
        table.main tr.header-row td {
            padding: .3em .4em;
            font-weight: bold;
            border-bottom-width: 1px;
            border-bottom-style: solid;
        }
        table.main tr.main-row td {
            padding:.3em .5em;
            border-bottom-width: 1px;
            border-bottom-style: dotted;
        }
        table.main tr.main-row,
        table.avatar-table tr {
            vertical-align:top;
        }
        div.sub-forums {
            margin-top:.8em;
            font-size:90%;
            clear:both;
        }
    </style>
</macro>