nabble_stylesheets

NAML documentation   Watch a video
   Usages of this macro
... in nabble_stylesheets.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<override_macro name="nabble_stylesheets" unindent="true">
        <n.overridden/>
        
        <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'/>
        <style type="text/css">
            body, input, button, textarea, select {
                font-family: 'Open Sans';             
         
 
            }
                body{
                margin:0;
            
            }
            html{ overflow-y: scroll;}
  
           .top-bar{
            width:96%;
    
            margin-left: 2%;
            margin-right:2%;
 
            
            }
           .action-link{
  
            padding-left: 2%;
 
 
            
            }
 
            a {
            clear:both;
            text-decoration:none;
           
            }
            a:link { color: grey;}      /* unvisited link */
            a:visited { color: grey;}  /* visited link */
            a:hover { color: grey;}  /* mouse over link */
            a:active { color: grey;} 
            
  
       #forum-footer{
            width:96%;
    
            margin-left: 2%;
            margin-right:2%;
 
            
            }     
            
        li {
        display: inline;
        overflow: hidden;
        white-space: nowrap;
        padding: 14px;
        } 
        #rss-feeds {
        width: auto;
        font-size: 16px;
        overflow: hidden;
        margin-right: -100%;
        position: relative;
        -moz-transform: translateX(50%);
        -webkit-transform: translateX(50%);
        transform: translateX(50%);
        /* Apply animation to this element */
        -moz-animation: rss-feeds 75s linear infinite;
        -webkit-animation: rss-feeds 75s linear infinite;
        animation: rss-feeds 75s linear infinite;
        }
        /* Move it (define the animation) */
        @-moz-keyframes rss-feeds {
        0% {
        -moz-transform: translateX(50%);
        }
        100% {
        -moz-transform: translateX(-100%);
        }
        }
        @-webkit-keyframes rss-feeds {
        0% {
        -webkit-transform: translateX(50%);
        }
       100% {
        -webkit-transform: translateX(-100%);
        }
        }
        @keyframes rss-feeds {
        0% {
        -moz-transform: translateX(50%);
        /* Browser bug fix */
        -webkit-transform: translateX(50%);
        /* Browser bug fix */
        transform: translateX(50%);
        }
        100% {
        -moz-transform: translateX(-100%);
        /* Browser bug fix */
        -webkit-transform: translateX(-100%);
        /* Browser bug fix */
        transform: translateX(-100%);
        }
        }
        #feedcontainer{
            display: inline-block;
            width:100%;
            height: 10%;
            overflow: hidden;
            position: relative;        
            
            }
            
      #popup {
            display:none;
            background-color: white;
            border: 1px solid #ccc;
            border-radius: 5px;
            position: absolute;
            margin:0 auto;
            top: 55%;
            left: 44%;
            box-shadow: 0px 0px 50px 2px #000;
            cursor: pointer;
            }       
 
            
           #read:hover {color: grey;}
            
           #read{color: black;}                
       
            
            
          #read {
            text-align: center;     
            vertical-align: middle;   
            padding: 10px;
            }            
            
            
       #description-box{
 
        padding-top: 15px;
        padding-left: 80px;    
          
          }
         #headercontainer{
            display:block;
            overflow:hidden;
            }
 
  @media only screen and (max-width: 600px) {
        table.main td{white-space:normal; table-layout: auto;}
        table.main td{padding-left:0 !important;font-size:95%}
        tr.header-row td{font-size:12px}
        td.column{white-space:normal}
        span.column.nowrap{white-space:normal}
        span.pages{margin: 2em 0}
        span.pages a{padding:.2em .6em}
        #rss-feeds{display:none}
        .banner{display:none}
        #topic-search-box{display:none}
        #popup {
            display:none;
            background-color: white;
            border: 1px solid #ccc;
            border-radius: 5px;
            position: absolute;
            margin:0 auto;
            top: 55%;
            left: 15%;
            height: 10%;
            box-shadow: 0px 0px 50px 2px #000;
            cursor: pointer;
            }       
 
 
 
    }     
                      
   
 
 
   
            
        </style>
        
    </override_macro>
Overrides configuration
... in configuration.naml
20
21
22
23
24
25
26
27
28
29
30
<override_macro name="nabble_stylesheets" unindent="true">
        <n.overridden/>
        
        <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'/>
        <style type="text/css">
            body, input, button, textarea, select {
                font-family: 'Open Sans';
            }
        </style>
        
    </override_macro>
Overrides configuration
... in configuration.naml
8
9
10
11
12
13
14
15
16
17
18
<override_macro name="nabble_stylesheets" unindent="true">
        <n.overridden/>
        
        
        <style type="text/css">
            .second-font, h1, h2, h3, h4, h5, h6 {
                font-family: 'Tahoma';
            }
        </style>
        
    </override_macro>
Overrides default macro
... in responsive.naml
196
197
198
199
200
201
202
203
204
<override_macro name="nabble_stylesheets" unindent="true">
    <n.overridden/>
    <style type="text/css">
        @media (max-width: 600px) {
            #search-box,#topic-search-box{margin:1em 0}
            td.pin-column img{display:none}
        }
    </style>
</override_macro>
Overrides default macro
... in utilities.naml
65
66
67
68
<macro name="nabble_stylesheets">
    <link rel="stylesheet" href="/nabble.css?v=[n.css_version
Binary
Namespace: NabbleNamespace
/]" type="text/css" />
    <link rel="stylesheet" href="/template/NamlServlet.jtp?macro=site_style" type="text/css" />
</macro>