root/veekun/trunk/templates/style/global.tt @ 386

Revision 386, 12.2 KB (checked in by eevee, 2 years ago)

Sped up unread-post listing; added a 'mark all read' button. (end of #46)

Line 
1[%
2    sidebar_width = '12em';
3%]
4
5/* force hasLayout in IE4+ -- marginal improvement at least */
6/* lolol I don't care about CSS compliance~ */
7* { _zoom: 1; }
8
9/* base font; I hate to do this, but the default in EVERY browser is awful */
10body, code, pre { font-size: 12px; }
11body { font-family: Helvetica, Verdana, Arial, sans-serif; }
12table, th, td { font-size: inherit; }
13
14a img { border: none; }
15img { vertical-align: middle; }
16.total { clear: both; }
17
18p, li, dd { line-height: 150%; }
19
20.color1 { background: [% glass_background(content_fill) %]; }
21.color2 { background: [% glass_background(tablerow_fill2) %]; }
22  tr.color1:hover,
23  tr.color2:hover { background: [% glass_background(hover_verylight) %]; }
24.color1.dimmed { background-color: [% tablerow_dim %]; }
25.color2.dimmed { background-color: [% tablerow_dim2 %]; }
26table tr.heading th { background: [% header_fill %]; color: [% header_text %]; border: 1px solid [% header_border %]; border-left: none; border-right: none; }
27  table tr.heading th.corner { background: [% header_fill %]; color: [% header_text %]; border: 1px solid [% header_border %]; border-bottom: none; border-right: none; }
28table tr th.heading-vert { background: [% header_fill %]; color: [% header_text %]; border: 1px solid [% header_border %]; border-top: none; border-bottom: none; }
29
30/* lazy alignment */
31.left { text-align: left !important; }
32.center { text-align: center !important; }
33.right { text-align: right !important; }
34
35/* links */
36a { text-decoration: none; }
37a:link, a:active { color: [% link_normal %]; }
38a:visited { color: [% link_visited %]; }
39a:hover { color: [% hover_dark %]; }
40
41a.blocklink { border: 1px solid transparent; }
42a.blocklink:hover { background: [% glass_background(hover_light) %]; border-color: [% hover_medium %]; }
43
44/* regular ol' layout bits */
45p { margin: 0.5em 0; line-height: 133%; }
46#content h1, #content h2, #content h3 { background: url(/images/h1.png) [% header_fill %] no-repeat left center; clear: both; margin: 0.5em 0 0.25em 0; padding-left: 24px; color: [% header_text %]; border: 1px solid [% header_border %]; border-left: none; border-right: none; }
47#content h1 { font-size: 2em; margin: 0.5em -0.25em; border-top: 2px solid [% dark_separator %]; }
48#content h2 { font-size: 1.5em; background-image: url(/images/h2.png); }
49#content h3 { font-size: 1.2em; background-image: url(/images/h3.png); }
50#content h1 img, #content h2 img, #content h3 img { vertical-align: 0; }
51#content > h1:first-child { margin-top: -0.25em; border-top: none; }
52#content > h2:first-child { margin-top: -0.333em; border-top: none; }
53#content > h3:first-child { margin-top: -0.417em; border-top: none; }
54#content hr { border: none; border-bottom: 1px dashed [% header_border %]; height: 0; margin: 2px 0.5em; }
55#content > hr { clear: both; }
56
57body { color: black; background: url(/images/bg.png) [% body_fill %] fixed left bottom no-repeat; margin: 1.5em; }
58#header { position: relative; height: 6em; background: [% glass_background(header_fill) %]; border: 1px solid [% dark_separator %]; -moz-border-radius-topleft: 64px; padding: 0.5em; padding-left: 100px; }
59  #logo { position: absolute; bottom: -4px; left: -10px; height: 100px; width: 100px; margin-right: 8px; z-index: 1; }
60  #site-title { color: [% title_text %]; font-size: 30px; font-weight: bold; }
61  #page-title { font-size: 30px; }
62  #login { position: absolute; top: 0; right: 0; margin: 1em; }
63  #dex-lookup { position: absolute; bottom: 0; right: 0; margin: 1em; text-align: right; }
64    #dex-lookup input[type='text'] { width: 10em; background-image: url(/images/pokedex-fade.png); background-repeat: no-repeat; background-position: right center; font-family: monospace; font-size: 1.75em; }
65    #dex-lookup input[type='submit'] { font-size: 1.75em; }
66#statusline { line-height: 2em; text-align: center; color: [% content_fill %]; }
67  #statusline a { color: [% link_light %];  }
68    #statusline a:hover { color: [% hover_verylight %];  }
69
70#left { float: left; width: [% sidebar_width %]; margin-right: -1px; }
71  #left h1 { margin: 0; padding: 0.33em; background: [% glass_background(header_fill) %]; border-bottom: 1px dotted [% dark_separator %]; color: [% header_text %]; font-size: 1em; text-align: center; }
72  #left .linkbox { margin-top: 2em; border: 1px solid [% dark_separator %]; background: [% glass_background(content_fill) %]; }
73    #left .linkbox ul { margin: 0; padding: 0; }
74    #left .linkbox ul li { list-style: none; margin: 0; padding: 0; }
75    #left .linkbox ul li a { display: block; padding: 2px; text-align: center; font-size: 85%; }
76    #left .linkbox ul li a:hover { background: [% glass_background(hover_light) %]; }
77    #left .linkbox ul li a img { vertical-align: middle; }
78#linkbar { margin: 0; padding: 0; }
79  #linkbar > li { list-style: none; margin: 0; padding: 0; }
80  #linkbar > li > a,
81  #linkbar > li > span { display: block; background: [% glass_background(dark_separator) %]; color: white; padding: 4px; font-size: 120%; }
82  #linkbar > li > a:hover { background-color: [% hover_dark %]; }
83  #linkbar #youarehere:before { content: ' '; background: url(/images/youarehere.png) left center no-repeat; vertical-align: middle; margin-left: -16px; padding-right: 16px; }
84    #linkbar > li > ul { margin: 0; padding: 0; }
85    #linkbar > li > ul > li { display: block; }
86    #linkbar > li > ul > li > a { display: block; background: [% glass_background(header_fill) %]; padding: 3px 0 3px 5px; border-left: 3px double [% dark_separator %]; border-right: 1px solid [% dark_separator %]; color: black; }
87    #linkbar > li > ul > li > a:hover { background-color: [% hover_medium %]; border-color: [% hover_dark %]; }
88
89#content,
90#debug,
91#footer { background: [% glass_background(content_fill) %]; padding: 0.5em; border: 1px solid [% dark_separator %]; overflow: hidden; }
92#debug,
93#footer { background-color: [% header_fill %]; }
94#content,
95#debug { margin-bottom: 1em; }
96#content { position: relative; }
97#footer { -moz-border-radius-bottomright: 64px; }
98  #footer #svn-revision { float: right; font-size: 85%; }
99
100#breadcrumbs { margin: -0.5em; margin-bottom: 0.5em; padding: 0.5em; background: [% glass_background(tablerow_fill2) %]; }
101  #breadcrumbs a { padding: 0.25em; margin: 0 -0.25em; border: 1px solid transparent; }
102    #breadcrumbs a:hover { background: [% glass_background(hover_light) %]; border-color: [% hover_medium %]; }
103#breadcrumbs + h1 { margin-top: -0.25em; border-top: none; }
104#breadcrumbs + h2 { margin-top: -0.333em; border-top: none; }
105#breadcrumbs + h3 { margin-top: -0.417em; border-top: none; }
106
107/* errors, messages, whatevers */
108#error, #info, #success { overflow: hidden; margin: 0 0 1em 0em; }
109  #error p, #info p, #success p { padding: 0.5em; margin: 0; }
110  #error    { border: 1px solid [% dark_separator %]; background: [% glass_background('#ffe6e6') %]; }
111  #info     { border: 1px solid [% dark_separator %]; background: [% glass_background('#e6e6ff') %]; }
112  #success  { border: 1px solid [% dark_separator %]; background: [% glass_background('#e6ffe6') %]; }
113  #error   .heading,
114  #info    .heading,
115  #success .heading { font-size: 120%; font-weight: bold; padding: 0.25em 1em; }
116  #error   .heading { background: #c08080; color: #ffe6e6; }
117  #info    .heading { background: #8080c0; color: #e6e6ff; }
118  #success .heading { background: #80c080; color: #e6ffe6; }
119
120.warning { margin: 0.5em auto; width: 75%; padding: 0.5em; text-align: center; font-size: 120%; border: 1px dotted #904040; color: #904040; font-weight: bold; background: [% glass_background('#ffe6e6') %]; }
121
122/* sql dump table */
123table#sqldump tr td, table#sqldump tr th { padding: 3px; vertical-align: top; }
124table#sqldump tr td + td + td + td + td + td { font-family: monospace; font-size: 80%; }
125
126/* forms */
127fieldset { border: 2px solid [% dark_separator %]; border-right: none; border-bottom: none; -moz-border-radius-topleft: 16px; padding: 0 0.5em; margin: 0.5em 0; }
128fieldset legend { font-weight: bold; margin-left: 1em; }
129
130input { font-family: sans-serif; vertical-align: middle; }
131input[type='text'], input[type='password'], textarea { padding: 3px; border: 1px solid [% header_border %]; -moz-border-radius: 4px; background-color: white; }
132input[type='text']:focus, input[type='password']:focus, textarea:focus { background-color: [% input_active %]; outline: 2px solid [% hover_medium %]; border-color: [% hover_dark %]; -moz-outline-radius: 4px; -moz-border-radius: 0; }
133input[type='submit'], input[type='reset'], input[type='button'], button { border: 1px solid [% link_medium %]; background: url(/images/pawprint.png) [% link_dimmed %] 2px center no-repeat; padding: 2px 2px 2px 18px; color: black; -moz-border-radius: 8px; }
134input[type='submit'] { background-color: [% link_light %]; }
135input[type='submit']:hover, input[type='reset']:hover, input[type='button']:hover, button:hover { border-style: solid; border-color: [% hover_medium %]; background-color: [% hover_light %]; }
136input[type='submit']:active, input[type='reset']:active, input[type='button']:active, button:active { border-style: inset; }
137input[type='submit']:hover, input[type='reset']:hover, input[type='button']:hover, button:hover, label:hover { cursor: pointer; }
138
139/* little inline-ish form */
140.tinyform, .tinyform p { margin: 0; padding: 0; }
141
142/* def. list with terms next to defs */
143dl.compact { margin: 0.25em 0.5em; }
144  dl.compact dt { float: left; width: 9.75em; padding: 0.25em 0 0 0.25em; line-height: 150%; font-style: italic; position: relative; z-index: 2; }
145  dl.compact dt img { vertical-align: middle; }
146  dl.compact dt:after { content: ':'; }
147  dl.compact:after,
148  dl.compact dd:after { display: block; clear: left; content: 'v'; height: 1px; visibility: hidden; margin-top: -1px; }
149  dl.compact dd { padding: 0.25em 0 0.25em 10em; margin: 0; position: relative; z-index: 1; }
150  dl.compact dd { ~padding-left: 0.25em; /* IE has a retarded float model; see http://www.howtocreate.co.uk/wrongWithIE/?chapter=Float+Model */ }
151  dl.compact dd.solo { margin-left: 2em; clear: left; }
152dl.compact.highlights { }
153  dl.compact.highlights dd:hover,
154  dl.compact.highlights dt:hover + dd { background: [% glass_background(hover_verylight) %]; }
155    dl.compact.highlights dl.compact.highlights dd:hover { background: none; }
156
157/* lists */
158dl, ul, ol { padding: 0; margin: 0.25em 0.25em 0.25em 2em; }
159  li.dimmed { color: gray; text-decoration: line-through; }
160
161/* pagelist */
162.pagelist { margin: 0.25em; margin-left: 1px; }
163  .pagelist:after { content: 'v'; visibility: hidden; height: 0px; display: block; clear: both; }
164  .pagelist .label { float: left; padding: 0.25em 0.5em; }
165  .pagelist span, .pagelist a { position: relative; display: block; float: left; padding: 0.25em 0.5em; margin-left: -1px; border: 1px dotted [% header_border %]; border-top-style: solid; border-bottom-style: solid; }
166  .pagelist span { font-weight: bold; }
167  .pagelist .endcap { background: [% header_fill %]; font-weight: normal; }
168  .pagelist span:first-child, .pagelist a:first-child { border-left-style:  solid; }
169  .pagelist span:last-child,  .pagelist a:last-child  { border-right-style: solid; }
170  .pagelist a:hover { background: [% hover_light %]; border-color: [% hover_medium %]; z-index: 1; }
171
172/* hash dump, currently used for flagrant error */
173dl.hashdump { font-family: monospace; }
174  dl.hashdump:after { display: block; content: ' '; clear: left; }
175  dl.hashdump dt { margin: 0; padding: 0; clear: left; float: left; width: 8em; text-align: right; color: [% code %]; }
176  dl.hashdump dd { margin: 0; padding: 0; float: left; padding-left: 1em; }
177
178
179/* javascript suggestion dropdown */
180ul#dexsuggest { position: absolute; margin: 0; padding: 0; border: 1px solid [% dark_separator %]; background: [% tablerow_fill2 %]; color: black; max-height: 10em; /* x * (1 + 0.25 * 2) */ overflow: auto; text-align: left; }
181  ul#dexsuggest li { cursor: pointer; padding: 0.33em; margin: 0; height: 1.2em; line-height: 1.2em; overflow: hidden; list-style: none; background: transparent no-repeat 0.33em center; padding-left: 32px; }
182    ul#dexsuggest li span.typed { font-weight: bold; padding-left: 0.66em; }
183    ul#dexsuggest li:hover { background-color: [% hover_light %]; }
184    ul#dexsuggest li.selected { background-color: [% hover_verylight %]; }
Note: See TracBrowser for help on using the browser.