(no comment)
[my-sputnik-wiki.git] / sputnik / style.lua
blobfa3bcc125e9c85f91a5bd5648e8157a92fb4183b
2 fields = [[ css_config = {}
4 ]]
5 title = "Color Configuration"
6 category = ""
7 actions = "css=\"css.fancy_css\""
8 config = ""
9 markup_module = ""
10 templates = ""
11 translations = ""
12 prototype = "@CSS"
13 permissions = "allow(all_users, \"css\")"
14 html_main = ""
15 html_head = ""
16 html_menu = ""
17 html_logo = ""
18 html_search = ""
19 html_page = ""
20 html_content = ""
21 html_body = ""
22 html_header = ""
23 html_footer = ""
24 html_sidebar = ""
25 html_meta_keywords= ""
26 html_meta_description= ""
27 redirect_destination= ""
28 xssfilter_allowed_tags= ""
29 http_cache_control= ""
30 http_expires = ""
31 content = [[$reset_code
35 /* Note that the layout of the top level objects is largely determined by YUI.
39 The sequence of divs at the top level elemens:
43 html
45 head
47 body
49 div #doc3 (or doc2, doc, etc.)
51 div #hd -- the navigation bar
53 div #login
55 div #logo
57 div #menu_bar
59 ul.menu #menu
61 li.front #Section_1
63 li.back #Section_2
65 ul.submenu #submenu
67 li.front #Page_1
69 li.back #Page_2
71 div #bd
73 div #yui-main
75 div.yui-b #page
77 span.toolbar
79 h1.title
81 a.local
83 div.content
85 div.yui-b #sidebar
89 margin/padding cheatsheet: top right bottom left;
97 /* TOP LEVEL ELEMS */
99 html {
101 overflow : -moz-scrollbars-vertical;
103 overflow-y : scroll;
105 /* always use a vert. scroll bar. */
111 body {
113 min-width : 800px;
115 text-align : left;
117 font-size:75%;color:#222;background:#fff;
118 /* font-family: "Verdana", "Helvetica Neue", Helvetica, Arial, sans-serif; */
122 #bg > a {
123 text-color: #ff6600;
124 color : #ff6600;
130 /* THE HEADER */
134 #hd {
136 margin : 0em 0em 0em 0em;
138 padding : 0em 0em 0em 0em;
144 #login {
146 margin : 0em 0em 0em 0em;
148 padding : .4em 0em 0em 0em;
150 float : right;
152 text-align : right;
154 font-size : 90%;
156 vertical-align: text-bottom;
160 #rss_icon {
162 margin : 0em 0em 0em 0em;
164 padding : 0em 0em 0em 0em;
166 position : relative;
168 top : 3px
172 #logo {
178 #menu_bar ul#menu {
180 margin : 1.1em 0em 0em 0em;
182 padding : 0em 0em 0em 0em;
184 width : 100%;
186 text-align : left;
188 display : block;
190 background-color : white;
193 #menu_bar ul#menu li {
195 margin : 0em .5em 0em 0em;
197 padding : 0em 0em 0em 0em;
199 display : inline;
201 list-style-type: none;
205 #menu_bar ul#menu li a {
207 padding : .3em 1em 0.3em 0em;
209 position : relative;
211 text-decoration: none;
217 ul#menu li {
219 font-size : 120%;
225 ul#menu li ul li {
227 font-size : 75%;
235 #menu_bar ul#menu li ul {
237 margin : 0em 0em 0em 0em;
239 padding : .0em 0em .4em 0em;
241 position : relative;
243 left : 0em;
245 top : 0em;
247 min-height : 20px;
249 text-align : left;
251 display : block;
257 #menu_bar ul#menu li ul.back {
259 display : none
263 #menu_bar ul#menu li ul.front{
265 float : left;
267 width : 100%;
269 z-index : 1000
273 #menu_bar ul#menu li ul li{
275 margin : 0em 0em 0em 0em;
277 padding : 0em 0em 0em 0em;
279 display : inline;
281 list-style-type: none;
287 #sidebar ul#menu {
289 margin: .3em 0 0 .3em ;
291 list-style-type: none;
297 #sidebar ul#menu ul.back {
299 display:none
305 #sidebar ul#menu, #sidebar ul#menu li {
307 padding: 0 0 0 0;
313 #sidebar ul#menu li a {
315 padding: 0.3em .2em .3em 1em;
317 margin: 0 0 0 0;
319 display: block;
321 width: 80%;
327 #sidebar ul#menu li ul {
329 padding: 0 0.5em 0 1em;
335 #menu_bar ul#menu li ul li a {
337 margin : 0em .5em 0em .0em;
339 padding : 0em .2em 0em .0em;
341 font-size : 100%;
343 font-family: Verdana, sans-serif;
345 font-weight: bold;
351 ul#menu li a, ul#menu li ul li a {
353 text-decoration:none;
359 /* "BODY" */
361 #bd {
363 margin: 0em 0em 0em 0em;
365 padding: 0em 0em 0em 0em;
369 #yui-main {
373 #page {
375 padding : 5em 2em 0em 1em;
377 min-height : 450px;
383 /* MESSAGES */
385 .error, .warning, .success, .notice {
387 margin : 1em auto .5em auto;
389 padding : 1em 1em 1em 1em;
391 width : 90%;
395 .error {
397 border : medium solid #DF0101;
399 background-color: #F8E0E0;
403 .warning {
405 background-color: #F8F8D0;
407 border : medium solid #DF0101;
411 .success {
413 background-color: #D0F8D0;
415 border : medium solid #01DF01;
419 .notice {
421 background-color: #D0D0F8;
423 border : medium solid #0101DF;
429 /* CONTENT = toolbar + actual content */
431 .content {
433 padding : 1em 3em 1em 3em;
435 font-size : 100%;
437 /* max-width : 700px;
441 .crumbs_and_tools {
443 margin : 0em 0em 0em 0em;
445 padding : .5em .5em .5em 2em; width : 100%;
449 .toolbar {
451 margin : 0em .5em 0em 0em;
453 padding : .5em .5em .5em 2em;
455 float : right;
457 /*position : absolute;
459 right : 0;*/
465 .toolbar a {
467 text-decoration: none;
473 /* ELEMENTS IN CONTENT --------------------------------------------------- */
477 h1 {
479 font-size : 180%;
483 h2 {
485 font-size : 140%;
489 h3 {
491 font-size : 129%;
495 h4 {
497 font-size : 107%;
503 .title a {
505 font-size: 270%;
507 text-decoration: none;
513 .title {
515 color: orange;
517 margin: 0 0 0 0;
519 padding: 0 0 1em 0em;
525 h1, h2, h3, h4, h5 {
527 margin : 1.5em 0em 1em 0em;
529 padding : 0em 0em 0em 0em;
531 font-weight: normal;
533 color: #ff6600;
538 ul {
540 margin: 10px 0em 10px 15px;
542 list-style-type: square
546 li {
548 line-height: 150%
552 ol {
554 margin: 10px 0em 10px 24px;
556 list-style-type: decimal
562 margin: 15px 0em auto auto;
564 line-height: 155%
568 blockquote {
570 margin: 15px 0em auto 3em;
572 line-height: 120%
576 code {
578 padding: 2px 2px 2px 1em;
580 font-size : 100%;
582 font-family: monospace
586 pre {
588 margin: 15px 0em auto auto;
590 padding: 8px 20px 8px 1em;
592 display : block;
594 font-family: monospace;
596 font-size : 90%;
598 overflow: auto;
602 pre code {
604 padding: 0em 0em 0em 0em;
608 th {
610 padding: 2px 5px 2px 5px;
612 vertical-align: top;
614 font-weight: bold
618 td {
620 padding: 2px 5px 2px 5px;
622 vertical-align: top;
626 em {
628 font-style : italic
632 strong {
634 font-weight: bold
638 a.local {
640 padding: auto 3px auto auto;
642 background : none transparent scroll repeat 0% 0%;
648 span.preview {
650 margin: auto 5px 10px auto;
652 padding: 5px 5px 5px 5px;
658 form {
660 /*display : inline*/
664 label {
666 margin : 10px .5em 1em auto;
668 font-weight: bold
672 label.inline {
674 display : inline-block;
676 width: 200px;
680 input, select {
682 margin: .5em .5em .5em .5em;
684 padding: 3px 3px 3px 3px;
686 line-height: 20px;
688 min-height : 20px;
690 font-family: monospace
694 select {
696 min-width: 300px;
700 option {
702 margin: 0em 0em 0em 0em;
704 padding: 0em 0em 0em 0em; spacing : 0em;
708 input.button {
710 margin: 5px 4px 5px 4px;
716 form.search {
718 margin-right: 0px;
720 padding-right: 0px;
722 display: inline;
728 input.search_box {
730 margin: 0em 0px 0px 0px;
732 padding: 2px 2px 2px 2px;
734 border: 1px solid #CCCCCC;
735 background: #EEEEEE;
736 display : inline;
738 line-height: 10px;
740 font-size : 9pt;
742 vertical-align: text-bottom;
744 height: 22px;
748 input.search_button {
750 margin: 0em 0px 0px 0px;
752 padding: 2px 2px 2px 2px;
754 display : inline;
756 line-height: 10px;
758 font-size : 9pt;
760 border: none;
762 background: none;
764 vertical-align: text-bottom;
768 input.submit {
770 margin: .8em 0em .8em .4em;
772 padding: .3em .5em .3em .5em;
774 display : inline;
776 float: right;
778 font-size: 140%;
780 width: 180px;
784 a.button {
786 margin: .8em 0em .8em .4em;
788 padding: .3em .5em .3em .5em;
790 font-size: 140%;
792 width: 180px;
796 input.small_submit {
798 margin: auto 0em auto 1px;
800 padding: 1px 0em 1px auto;
802 display : inline;
804 line-height: 10px;
806 font-size: 90%;
810 input.diff_radio {
812 margin: 0em 0em 0em 0em;
814 padding: 0em 0em 0em 0em;
818 textarea {
820 margin: 1em 1em 5px 1em;
822 padding: 4px 2px 1px 2px;
824 font-family: monospace;
828 input.textfield {
830 min-width: 300px;
834 #more_fields {margin: auto auto auto 200px;
836 padding: auto auto auto 200px; display: block; }
838 input.hidden { display: none; }
840 div.hidden { display: none; }
842 div.honey { display: none; }
844 div.advanced_field { display: none; }
848 ins { text-decoration: none }
852 .history_dates { font-size : 80%; }
854 .error_message {margin: 15px 15px 15px 15px;
856 padding: 15px 15px 15px 15px; }
858 .teaser { font-size : 120%;
860 font-weight: bold }
864 #breadcrumbs {margin: 0em 0em 0em 0em;
866 padding: 0em 0em 0em .0em; float : left;
868 width: 100%;
869 min-height : 3em; }
871 #breadcrumbs ul {margin: 0em 0em 0em 0em;
873 padding: 0em 0em 0em 0em; display : inline;
875 list-style : none; }
877 #breadcrumbs li {margin: 0em 0em 0em 0em;
879 padding: 0em 0em 0em 0em; display : inline; }
881 #breadcrumbs a {margin: 0em .5em 0em 0em; text-decoration: none; color: #ff6600; }
885 textarea.resizeable{
887 height : 20%;
893 div.field {
895 margin-bottom: 2px;
897 padding: .5em .2em .1em .5em ;
899 background-color: #ddd;
907 div.grippie {
909 background:#F3F3F3 url($icon_base_url{}sputnik/grippie.png) no-repeat scroll center 2px;
911 border-color:#DDDDDD;
913 border-style:solid;
915 border-width:0pt 1px 1px;
917 cursor:s-resize;
919 height:6px;
921 overflow:hidden;
923 margin-bottom: 10px;
925 width: 70px;
927 margin-left: 300px;
933 h2.ctrigger {
935 background: url($icon_base_url{}icons/minus.png) no-repeat right;
939 h2.ctrigger.closed {
941 background: url(data:image/png;base64,$icon_plus) no-repeat right;
947 .yui-t0 #sidebar {
949 display: none;
953 .yui-t0 #page {
955 /*margin-left: 3em;*/
961 /*.yui-u > * {
963 margin-right: .5em;
965 margin-left: 1em;
971 .yui-u h2, .yui-u h3, .yui-u h4, .yui-u h5 {
973 margin-right: .5em;
975 margin-left: .5em;
977 } */
981 .box {
983 /*margin-right: .5em;
985 margin-left: .5em;*/
987 border: 1px solid green;
989 background-color: #efe;
997 body { background: white; }
1001 #sidebar {
1003 /*border-right: 1px solid $NAVBAR; */
1009 .title a:visited { color: black; }
1012 H1 { COLOR: $HEADER; BORDER-BOTTOM: 3px solid $NAVBAR; }
1014 H2 { COLOR: $HEADER; BORDER-BOTTOM: 2px solid $H_LINE; }
1016 H3 { COLOR: $HEADER; BORDER-BOTTOM: 1px dotted $H_LINE; }
1018 ul#menu li a { color: $MENU_TEXT; background: $MENU_BG; }
1023 #sidebar ul#menu li.level1 > a:hover {
1025 color: $MENU_TEXT_HOVER;
1029 #menu_bar ul#menu li a:hover {
1031 color: $MENU_TEXT_HOVER;
1035 ul#menu li.front a { background: $NAVBAR; }
1039 ul#menu li ul li a {
1041 background: white;
1043 color: black;
1047 ul#menu li.front ul li a {
1049 background: white;
1051 color: black;
1057 #menu_bar ul#menu li ul { background: $NAVBAR; }
1059 #menu_bar ul#menu li ul li.front a { color: $WHITE; background: $SUBMENU_CURRENT_BG; BORDER: 2px solid $SUBMENU_CURRENT_BORDER; }
1061 #menu_bar ul#menu li ul li.back a { color: $SUBMENU_FG; background: $SUBMENU_BG; BORDER: 1px solid $SUBMENU_BORDER; }
1063 #menu_bar ul#menu li ul li a:hover { color: $MENU_TEXT_HOVER; }
1067 #sidebar ul#menu li ul li.front a {
1069 font-weight: bold;
1077 DEL { COLOR: $BLACK; background: $LIGHT_GRAY; }
1079 INS { COLOR: $TEXT; background: $INS; }
1081 A:link { COLOR: $LINK; }
1083 A:visited { COLOR: $LINK; }
1085 A:hover { COLOR: $LINK; }
1087 A.no_such_node { background: #fffacd; }
1091 CODE { background: $LIGHTEST_GRAY; }
1093 PRE { background: $LIGHTEST_GRAY; BORDER: 1px solid $LIGHT_GRAY; }
1095 TH { background: $LIGHTEST_GRAY; BORDER: 1px solid $LIGHT_GRAY; }
1097 TD { BORDER: 1px solid $LIGHT_GRAY; }
1099 .preview { BORDER: 4px solid #666; }
1101 .missing_page { background: $LIGHT_GRAY }
1111 input, select, textarea {
1113 background: $FORM_BG;
1115 border: 2px solid $GRAY;
1119 input.readonly {
1121 background: $FORM_BG_READONLY;
1127 input.submit {
1129 background: $FORM_BG_SUBMIT;
1135 .active_input {
1137 border: 2px solid $NAVBAR;
1139 background: #ffffd6;
1149 A.button { background: $FORM_BG_SUBMIT; BORDER: 1px outset $FORM_BORDER;
1151 color: black; text-decoration: none;
1155 INPUT.small_submit { background: $FORM_BG_SUBMIT; BORDER: 1px outset $FORM_BORDER; }
1157 .save input { background: #ffa20f; border: 2px outset #d7b9c9 }
1161 .error_message { BORDER: 2px solid red; }
1163 .content .preview { BORDER: 3px dashed $NAV_BAR; }
1171 div.popup_form div.transparency {
1173 background: black;
1175 height: 100%; width: 100%;
1177 position: absolute;
1179 top: 0px;
1181 left: 0px;
1183 z-index: 10000;
1185 opacity: .7;
1191 div.popup_form div.popup_frame {
1193 margin: 100px;
1195 padding: .3em;
1197 border: 5px solid $NAVBAR;
1199 background: white;
1201 position: absolute;
1203 width: 700px;
1205 opacity: 2;
1207 z-index: 10001;
1213 div.popup_form div.actual_form {
1215 padding: 2em;
1221 div.close_popup {
1223 width: 100%;
1225 text-align: right;
1231 /* Comments Styles */
1235 ol.discussion {
1237 margin: 0;
1239 list-style-type: none;
1245 ol.discussion li {
1247 padding-bottom: 10px;
1253 ol.discussion div.content {
1255 clear: both;
1257 padding: 5px 20px;
1259 margin: 0;
1265 ol.discussion div.header {
1267 border-bottom-color: black;
1269 border-bottom-style: solid;
1271 border-bottom-width: 2px;
1273 padding-bottom: 5px;
1279 ol.discussion ul.toolbar {
1281 float:right;
1283 list-style: none;
1285 margin: 0;
1287 padding: 0;
1289 padding-top: 1em;
1295 ol.discussion ul.toolbar li {
1297 float: left;
1299 margin: 0;
1301 padding: 0;
1303 padding-left: 8px;
1309 @media print {
1311 #menu_bar, #login, #ft, .toolbar {
1313 display: none; !important;
1317 body {
1319 background-color: white;
1323 #bd {
1325 margin: 0px;
1327 padding: 0px;
1338 ul#menu li a { color: black; background: white; }
1340 #ft { padding-top: 3em; text-align: center }
1342 #sidebar ul#menu li.level1 > a:hover {
1343 color: #C3D9FF;
1346 /* Menus */
1348 #menu_bar ul#menu li a:hover {
1349 border-top: 1px solid black;
1350 color: #ff6600;
1353 ul#menu li.front a {
1354 background: white;
1355 color: #FF6600;
1358 ul#menu li ul li a {
1359 background: white;
1360 color: black;
1362 ul#menu li.front ul li a {
1363 background: white;
1364 color: black;
1367 /* Submenu */
1368 #menu_bar ul#menu li ul { background: white; }
1369 #menu_bar ul#menu li ul li a { font-weight: normal; }
1370 #menu_bar ul#menu li ul li.front a { color: #FF6600; background: white; }
1371 #menu_bar ul#menu li ul li.back a { color: black; background: white; BORDER: none; }
1373 #menu_bar ul#menu li ul li a:hover { border-top: 1px solid black; }
1375 #sidebar ul#menu li ul li.front a {
1376 font-weight: bold;
1379 a:link {
1380 color : #ff6600;
1383 a:visited {
1384 color: #ff6600;
1394 edit_ui = ""
1395 admin_edit_ui = [[ css_config = {0.0, "textarea"}
1398 breadcrumb = ""
1399 save_hook = ""
1400 css_config = [[MAIN_HUE = 320 -- pick a number between 0 and 360
1402 STARTING_SATURATION = .7 -- pick a number between 0 and 1
1404 MAIN = colors.new(MAIN_HUE, STARTING_SATURATION, .50)
1408 SECOND, THIRD = MAIN:neighbors() -- MAIN:terciary() for more contrast
1410 THIRD = SECOND -- stick with just one color
1414 GRAY = MAIN:desaturate_to(0) -- set value > 0 to make your "grays" lightly colored
1416 LIGHT_GRAY = GRAY:tint(.7) -- higher number = lighter
1418 LIGHTEST_GRAY = GRAY:tint(.9) -- higher number = lighter
1420 DARK_GRAY = GRAY:shade(.7) -- higher nu mber = darker
1422 WHITE = "white"
1424 BLACK = "black"
1428 BODY_BG = BODY_BG_COLOR or MAIN:desaturate_to(0):tint(.3)
1430 LINK = "#0000cc" -- darker blue
1432 TEXT = BLACK
1436 NAVBAR = SECOND:desaturate_to(.7):shade(.1)
1440 MENU_TEXT = BLACK
1442 MENU_TEXT_HOVER = "yellow"
1444 MENU_BG = WHITE
1446 MENU_BG_HOVER = BLACK
1450 SUBMENU_CURRENT_BG = THIRD:shade(.2)
1452 SUBMENU_CURRENT_BORDER = WHITE
1454 SUBMENU_CURRENT_FG = WHITE
1456 SUBMENU_BG = THIRD:shade(.2)
1458 SUBMENU_BORDER = THIRD:tint(.3)
1460 SUBMENU_FG = WHITE
1464 HEADER = THIRD:shade(.1)
1466 H_LINE = THIRD:shade(.1)
1470 FORM_BG = WHITE --SECOND:desaturate_to(.6):tint(.9)
1472 FORM_BG_SUBMIT = SECOND:desaturate_to(.8):tint(.3)
1474 FORM_BG_READONLY = SECOND:desaturate_to(.2):tint(.7)
1476 FORM_BORDER = SECOND
1478 INS = "#cfc"
1482 icon_plus_wrapped = [=[
1484 iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/
1486 wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9gMFBUUKV7DN4kAAAAZdEVYdENvbW
1488 1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAKUlEQVQ4y2NgoAJgJCD/nxi1TNRwyaghuGPnPyV
1490 mDD7vjCa2wWgIVQAA4ZoDHFUwDWsAAAAASUVORK5CYII=
1496 icon_plus = icon_plus_wrapped:gsub("%s", "")