CommonSource.h

00001 /*
00002  * This source file is part of libRocket, the HTML/CSS Interface Middleware
00003  *
00004  * For the latest information, see http://www.librocket.com
00005  *
00006  * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
00007  *
00008  * Permission is hereby granted, free of charge, to any person obtaining a copy
00009  * of this software and associated documentation files (the "Software"), to deal
00010  * in the Software without restriction, including without limitation the rights
00011  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00012  * copies of the Software, and to permit persons to whom the Software is
00013  * furnished to do so, subject to the following conditions:
00014  *
00015  * The above copyright notice and this permission notice shall be included in
00016  * all copies or substantial portions of the Software.
00017  * 
00018  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00019  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00020  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
00021  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00022  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00023  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
00024  * THE SOFTWARE.
00025  *
00026  */
00027 
00028 static const char* common_rcss =
00029 "body\n"
00030 "{\n"
00031 "       font-family: Lacuna;\n"
00032 "       z-index: top;\n"
00033 "       font-size: 12;\n"
00034 "       color: black;\n"
00035 "       padding-top: 30px;\n"
00036 "}\n"
00037 "div, h1, h2, h3, h4, p\n"
00038 "{\n"
00039 "       display: block;\n"
00040 "}\n"
00041 "em\n"
00042 "{\n"
00043 "       font-style: italic;\n"
00044 "}\n"
00045 "h1\n"
00046 "{\n"
00047 "       position: absolute;\n"
00048 "       top: 0px;\n"
00049 "       height: 22px;\n"
00050 "       padding: 4px;\n"
00051 "       color: white;\n"
00052 "       background-color: #888;\n"
00053 "       font-size: 15px;\n"
00054 "}\n"
00055 "h2\n"
00056 "{\n"
00057 "       background-color: #ddd;\n"
00058 "       border-width: 1px 0px;\n"
00059 "       border-color: #888;\n"
00060 "}\n"
00061 "h3\n"
00062 "{\n"
00063 "       margin-top: 1em;\n"
00064 "       color: red;\n"
00065 "}\n"
00066 "h4\n"
00067 "{\n"
00068 "       color: #cc0000;\n"
00069 "}\n"
00070 "handle#position_handle\n"
00071 "{\n"
00072 "       height: 100%;\n"
00073 "       width: 100%;\n"
00074 "}\n"
00075 "div#close_button\n"
00076 "{\n"
00077 "       margin-left: 10px;\n"
00078 "       float: right;\n"
00079 "       width: 18px;\n"
00080 "       color: black;\n"
00081 "       background-color: #ddd;\n"
00082 "       border-width: 1px;\n"
00083 "       border-color: #666;\n"
00084 "       text-align: center;\n"
00085 "}\n"
00086 "div#content\n"
00087 "{\n"
00088 "       position: relative;\n"
00089 "   width: auto;\n"
00090 "   height: 100%;\n"
00091 "       overflow: auto;\n"
00092 "       background: white;\n"
00093 "       border-width: 2px;\n"
00094 "       border-color: #888;\n"
00095 "       border-width-top: 0px;\n"
00096 "}\n"
00097 ".error\n"
00098 "{\n"
00099 "       background: #d24040;\n"
00100 "       color: white;\n"
00101 "       border-color: #b74e4e;\n"
00102 "}\n"
00103 ".warning\n"
00104 "{\n"
00105 "       background: #e8d34e;\n"
00106 "       color: black;\n"
00107 "       border-color: #ca9466;\n"
00108 "}\n"
00109 ".info\n"
00110 "{\n"
00111 "       background: #2a9cdb;\n"
00112 "       color: white;\n"
00113 "       border-color: #3b70bb;\n"
00114 "}\n"
00115 ".debug\n"
00116 "{\n"
00117 "       background: #3fab2a;\n"
00118 "       color: white;\n"
00119 "       border-color: #226c13;\n"
00120 "}\n"
00121 "scrollbarvertical\n"
00122 "{\n"
00123 "       width: 16px;\n"
00124 "       scrollbar-margin: 16px;\n"
00125 "}\n"
00126 "scrollbarhorizontal\n"
00127 "{\n"
00128 "       height: 16px;\n"
00129 "       scrollbar-margin: 16px;\n"
00130 "}\n"
00131 "scrollbarvertical slidertrack,\n"
00132 "scrollbarhorizontal slidertrack\n"
00133 "{\n"
00134 "       background: #aaa;\n"
00135 "       border-color: #888;\n"
00136 "}\n"
00137 "scrollbarvertical slidertrack\n"
00138 "{\n"
00139 "       border-left-width: 1px;\n"
00140 "}\n"
00141 "scrollbarhorizontal slidertrack\n"
00142 "{\n"
00143 "       height: 15px;\n"
00144 "       border-top-width: 1px;\n"
00145 "}\n"
00146 "scrollbarvertical sliderbar,\n"
00147 "scrollbarhorizontal sliderbar\n"
00148 "{\n"
00149 "       background: #ddd;\n"
00150 "       border-color: #888;\n"
00151 "}"
00152 "scrollbarvertical sliderbar\n"
00153 "{\n"
00154 "       border-width: 1px 0px;\n"
00155 "       margin-left: 1px;\n"
00156 "}\n"
00157 "scrollbarhorizontal sliderbar\n"
00158 "{\n"
00159 "       height: 15px;\n"
00160 "       border-width: 0px 1px;\n"
00161 "       margin-top: 1px;\n"
00162 "}\n"
00163 "scrollbarcorner\n"
00164 "{\n"
00165 "       background: #888;\n"
00166 "}\n"
00167 "handle#size_handle\n"
00168 "{\n"
00169 "       position: absolute;\n"
00170 "       width: 16px;\n"
00171 "       height: 16px;\n"
00172 "       bottom: -2px;\n"
00173 "       right: 2px;\n"
00174 "       background-color: #888;\n"
00175 "}\n";