topics_table_stylesheet

NAML documentation   Watch a video
   Usages of this macro
... in responsive.naml
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<override_macro name="topics_table_stylesheet">
    <style type="text/css">
        table.main {
            width:99.9%;
            border-width: 1px;
            margin:0 1px;
            border-style: solid;
            border-collapse:collapse;
        }
        table.main td {
            padding:.1em;
            height:2.2em;
        }
        tr.header-row td {
            font-weight:bold;
            padding: .1em .2em;
            border-bottom-width: 1px;
            border-bottom-style: solid;
        }
        @media (max-width: 600px) {
            table.main td{padding-left:0 !important;font-size:95%}
            tr.header-row td{font-size:80%}
            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_topics.naml
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<macro name="topics_table_stylesheet">
    <style type="text/css">
        table.main {
            width:99.9%;
            border-width: 1px;
            margin:0 1px;
            border-style: solid;
            border-collapse:collapse;
        }
        table.main td {
            padding:.1em;
            height:2.2em;
        }
        tr.header-row td {
            font-weight:bold;
            padding: .1em .2em;
            border-bottom-width: 1px;
            border-bottom-style: solid;
        }
    </style>
</macro>