CARDS 2.4.87
Package manager for the NuTyX GNU/Linux distribution
config_webcards.h
1 // config_webcards.h
2 //
3 // Copyright (c) 2016 by NuTyX team (http://nutyx.org)
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
18 // USA.
19 //
20 #ifndef CONFIGWEBCARDS_H
21 #define CONFIGWEBCARDS_H
22 #define CSSDATA cout << " <style type=\"text/css\">" << endl \
23  << " body{" << endl \
24  << " text-align: left;" << endl \
25  << " color: #444;" << endl \
26  << " background: #eee url(data:image/png;base64,iVBORw0KGgo\
27 AAAANSUhEUgAAAAUAAAAFCAMAAAC6sdbXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZS\
28 BJbWFnZVJlYWR5ccllPAAAAAZQTFRF3d3d
29 AAAAFUlEQVR42mJgBAEGGMmAxAYCgAADAAGGABmnk/7aAAAAAElFTkSuQmCC); " << endl \
30  << " font: 14px;" << endl \
31  << "}" << endl \
32  << "header {" << endl \
33  << " float: left;" << endl \
34  << " padding-top: 6px;" << endl \
35  << " padding-left: 2%;" << endl \
36  << " margin-right: 2%;" << endl \
37  << " background-color: #606060;" << endl \
38  << "}" << endl \
39  << "nav { padding-top: 1px; }" << endl \
40  << "/* horizontally center ul element */" << endl \
41  << "nav ul { text-align:center; }" << endl \
42  << "nav li {" << endl \
43  << " /* make list elements fall inline as block elements */" << endl \
44  << " position: relative;" << endl \
45  << " display: inline-block;" << endl \
46  << " /* next two lines only for display purposes */" << endl \
47  << " text-align: center;" << endl \
48  << " border:1px solid black;" << endl \
49  << "}" << endl \
50  << "nav li a {" << endl \
51  << " font-size:12px;" << endl \
52  << " text-decoration: none;" << endl \
53  << " float:left;" << endl \
54  << " padding:10px;" << endl \
55  << " background-color: #333333;" << endl \
56  << " color:#ffffff;" << endl \
57  << " border-bottom:1px;" << endl \
58  << " border-bottom-color:#000000;" << endl \
59  << " border-bottom-style:solid;" << endl \
60  << "}" << endl \
61  << "nav li a:hover {" << endl \
62  << " background-color:#9B1C26;" << endl \
63  << " border-bottom-color:#000000;" << endl \
64  << " border-bottom-style:solid;" << endl \
65  << "}" << endl \
66  << "img { border: 0; }" << endl \
67  << "nav.img { border: 0; }" << endl \
68  << "h1 { text-decoration: underline; }" << endl \
69  << endl \
70  << "p1 {" << endl \
71  << " display: inline-block;" << endl \
72  << " vertical-align: top;" << endl \
73  << " text-align: left;" << endl \
74  << " color:#585858;" << endl \
75  << " font-size:1em;" << endl \
76  << "}" << endl \
77  << "pre {" << endl \
78  << " padding: 0.5em 1em;" << endl \
79  << " margin: 1em 0em 1em 2em;" << endl \
80  << " font-weight:bold;" << endl \
81  << " color: black;" << endl \
82  << " font-family: monospace;" << endl \
83  << " background-color: #D0D0D0;" << endl \
84  << "}" << endl \
85  << "td { padding: 0.5em 0.5em 0.5em 0.5em; }" << endl \
86  << "tr.header { color: white; background-color: #606060; }" << endl \
87  << "tr.odd { background-color: #D0D0D0; }" << endl \
88  << ".sidebar { background-color: #E0E0E0; }" << endl \
89  << "pre.command { border-left: 0.2em solid #C70000; }" << endl \
90  << "pre.command_user { border-left: 0.2em solid #00C700; }" << endl \
91  << "pre.output { font-weight:normal; }" << endl \
92  << "div.important {" << endl \
93  << " margin: 1em 2em 1em 2em;" << endl \
94  << " font-size: 1.2em;" << endl \
95  << " color:#883333;" << endl \
96  << " padding: 0.5em 0.5em 0.5em 0.5em;" << endl \
97  << " border: 2px solid #866;" << endl \
98  << "}" << endl \
99  << "div.note {" << endl \
100  << " margin: 1em 2em 1em 0em;" << endl \
101  << " font-size: 1em;" << endl \
102  << " color:#333388;" << endl \
103  << " border: 2px solid #dbddec;" << endl \
104  << " padding: 0.5em 0.5em 0.5em 0.5em;" << endl \
105  << "}" << endl \
106  << "div.toc {" << endl \
107  << " margin: 0em 0em 0em 0em;" << endl \
108  << " font-size: 0.9em;" << endl \
109  << " border: 1px solid #999999;" << endl \
110  << " padding: 0em 2em 0em 1em;" << endl \
111  << " width: -moz-max-content;" << endl \
112  << " background-color: #e9e9ef;" << endl \
113  << "}" << endl \
114  << "div.important img { padding: 0.4em; }" << endl \
115  << "div.note img { padding: 0em 0.4em; }" << endl \
116  << "div.pied_page { text-align: center; }" << endl \
117  << "a { color: #F64825; }" << endl \
118  << "#foot {" << endl \
119  << " text-align: center;" << endl \
120  << " text-decoration-color: #000000;" << endl \
121  << " font-size: 10px;" << endl \
122  << "}" << endl \
123  << "/* Last edited info */" << endl \
124  << "p.updated {" << endl \
125  << " text-align: left;" << endl \
126  << " font-size: small;" << endl \
127  << " font-weight: bold;" << endl \
128  << " font-style: italic;" << endl \
129  << "}" << endl \
130  << "a:link {" << endl \
131  << " color: #703030;" << endl \
132  << " text-decoration: none;" << endl \
133  << "}" << endl \
134  << "a:visited {" << endl \
135  << " color: #0b0080;" << endl \
136  << "}" << endl \
137  << "a:hover {" << endl \
138  << " color: #403030;" << endl \
139  << " text-decoration: underline;" << endl \
140  << "}" << endl \
141  << "table {" << endl \
142  << " width: 100%;" << endl \
143  << "}" << endl \
144  << "td.menu {" << endl \
145  << " font: courrier;" << endl \
146  << " background-color: #959595;" << endl \
147  << " text-decoration: none;" << endl \
148  << " vertical-align:middle;" << endl \
149  << " text-align:center;" << endl \
150  << " height:60px;" << endl \
151  << "}" << endl \
152  << "td.menu:hover {" << endl \
153  << " text-decoration: none;" << endl \
154  << " background-color: #AAAAAA;" << endl \
155  << " text-transform: uppercase;" << endl \
156  << "}" << endl \
157  << "td.menu a:link {" << endl \
158  << " font-weight:bold;" << endl \
159  << " color: black;" << endl \
160  << " text-decoration: none;" << endl \
161  << " font-family: arial;" << endl \
162  << "}" << endl \
163  << "td.menu a:visited {" << endl \
164  << " font-weight:bold;" << endl \
165  << " color: black;" << endl \
166  << " text-decoration: none;" << endl \
167  << " font-family: arial;" << endl \
168  << "}" << endl \
169  << "td.menu a:hover {" << endl \
170  << " color: black;" << endl \
171  << " text-decoration: none;" << endl \
172  << " font-family: arial;" << endl \
173  << "}" << endl \
174  << " @media print { header, footer {display:none } }" << endl \
175  << " </style>" << endl \
176  << "</head>" << endl
177 
178 #define FOOTERTEXT cout << "<hr>" << endl \
179  << " <footer >" << endl \
180  << " <p id=\"foot\"> Powered by cards " << VERSION \
181  << " &copy; 2007 - 2017 " \
182  << "<a href=\".\">NuTyX</a>.<br><br>" << endl \
183  << "Hosted by <a href=\"http://tuxfamily.org\"><img src=\"../graphics/logo_tuxfamily_50.png\"/></a><br><br>" << endl \
184  << " <a href=\"http://www.wtfpl.net/\">" << endl \
185  << " <img src=\"http://www.wtfpl.net/wp-content/uploads/2012/12/wtfpl-badge-4.png\"" \
186  << endl \
187  << " width=\"80\" height=\"15\" alt=\"WTFPL\" /></a> " << endl \
188  << " <a href=\"http://www.anybrowser.org/campaign/\">" << endl \
189  << " <img src=\"../graphics/abblue.gif\" width=\"80\" height=\"15\"" << endl \
190  << " alt=\"anybrowser\"></a>" << endl \
191  << " </footer>" << endl
192 
193 #define HEADERTEXT cout << "Content-type:text/html\r\n\r\n" \
194  << "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"" << endl \
195  << " \"http://www.w3.org/TR/html4/strict.dtd\">" << endl \
196  << "<HTML>" << endl \
197  << " <HEAD>" << endl \
198  << " <TITLE>NuTyX GNU/Linux</TITLE>" << endl \
199  << " <META charset=\"utf-8\" />" << endl \
200  << " <LINK rel=\"shortcut icon\" href=\"../favicon.icon\">" \
201  << endl
202 
203 #define SEARCH cout << " <div>" << endl \
204  << " <form method=\"get\" action=\".\">" << endl \
205  << " <fieldset>" << endl \
206  << " <label for=\"search-field\">" \
207  << search << "</label>" << endl \
208  << " <input id=\"search-field\" type=\"text\" name=\"search\" \
209 size=\"18\" maxlength=\"200\" />" << endl \
210  << " </fieldset>" << endl \
211  << " </form>" << endl \
212  << " </div>" << endl
213 
214 #endif /* CONFIGWEBCARDS_H */
215 // vim:set ts=2 :