Commit 98b93583df7777daef4ee850d75ada0464f51e70
1 parent
0386fbf5
Exists in
master
and in
22 other branches
ActionItem0: integrating comatose with the design
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@360 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
4 changed files
with
130 additions
and
97 deletions
Show diff stats
app/views/comatose_admin
app/views/layouts/application.rhtml
| 1 | -<html> | 1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 2 | + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
| 3 | +<html class="noscript" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
| 2 | <head> | 4 | <head> |
| 5 | + <meta http-equiv="Content-Type" content="text/html; charset=<%= Comatose.config.content_type %>"/> | ||
| 6 | + <title>Comatose Admin</title> | ||
| 7 | + <%= stylesheet_link_tag 'comatose_admin' %> | ||
| 3 | <%= javascript_include_tag :defaults %> | 8 | <%= javascript_include_tag :defaults %> |
| 4 | - <%= stylesheet_link_tag 'common' %> | ||
| 5 | - <%= design_all_header_tags %> | ||
| 6 | <%= javascript_include_tag 'comatose_admin' %> | 9 | <%= javascript_include_tag 'comatose_admin' %> |
| 7 | - <% if params[:controller] == 'comatose_admin' %> | ||
| 8 | - <%= stylesheet_link_tag 'comatose_admin' %> | ||
| 9 | - <% end %> | ||
| 10 | - | ||
| 11 | </head> | 10 | </head> |
| 12 | - | ||
| 13 | <body> | 11 | <body> |
| 14 | - <%= image_tag 'loading.gif', :id => 'spinner', :style => "display:none; float:right;" %> | ||
| 15 | - <div id="wrap"> | ||
| 16 | - <div id="frame"> | ||
| 17 | - <div id="menu"> | ||
| 18 | - <%= _('Skip to:') %> | ||
| 19 | - <a href="#main_content"><%= _('Content') %></a> | | ||
| 20 | - <a href="#sidebar"><%= _('Navigation') %></a> | | ||
| 21 | - <a href="#footer"><%= _('Footer') %></a> | ||
| 22 | - </div> | ||
| 23 | - | ||
| 24 | - <div id="header"> | ||
| 25 | - <%= header %> | ||
| 26 | - </div> | ||
| 27 | - | ||
| 28 | - <% unless flash[:notice].nil? %> | ||
| 29 | - <div id='notice'> | ||
| 30 | - <%= flash[:notice] %> | ||
| 31 | - </div> | ||
| 32 | - <% end %> | ||
| 33 | - | ||
| 34 | - <div id='content'> | ||
| 35 | - <!-- <a name='main_content'/></a> --> | ||
| 36 | - <div id='header_content'> | ||
| 37 | - <!-- Aqui entra um conteudo tipo o titulo da pagina do usuário e os botoes do comatose? --> | ||
| 38 | - </div> | ||
| 39 | - <% if params[:controller] == 'comatose_admin' %> | ||
| 40 | - <%= yield %> | ||
| 41 | - <% else %> | ||
| 42 | - <%= design_display(yield) %> | ||
| 43 | - <% end %> | ||
| 44 | - </div> | ||
| 45 | - | ||
| 46 | - <div id="footer"> | ||
| 47 | - <!-- <a name='footer'/></a> --> | ||
| 48 | - <%= footer %> | ||
| 49 | - <%= design_display_icon('back', _('Back') , :action => 'list')%> | 12 | + <div id="page-container"> |
| 13 | + <div id="header"> | ||
| 14 | + <h1><%= link_to Comatose.config.admin_title, :controller=>controller.controller_name, :action=>'index' %></h1> | ||
| 15 | + <div id="flash"> | ||
| 16 | + <span id="flash-content"><%= flash[:notice] %></span> | ||
| 50 | </div> | 17 | </div> |
| 18 | + <h5><%= Comatose.config.admin_sub_title %></h5> | ||
| 19 | + </div> | ||
| 20 | + <div id="content"> | ||
| 21 | + <%= yield %> | ||
| 22 | + </div> | ||
| 23 | + <div id="footer"> | ||
| 24 | + Powered by <a href="http://comatose.rubyforge.org" target="_new_window">Comatose <%= Comatose::VERSION %></a>, created by <a href="http://www.mattmccray.com" target="_new_window">M@ McCray</a>. | ||
| 51 | </div> | 25 | </div> |
| 52 | </div> | 26 | </div> |
| 53 | - | ||
| 54 | </body> | 27 | </body> |
| 55 | - | ||
| 56 | </html> | 28 | </html> |
public/javascripts/comatose_admin.js
public/stylesheets/comatose_admin.css
| 1 | +BODY { | ||
| 2 | + background: #DDD; | ||
| 3 | + margin: 0px 100px; | ||
| 4 | + padding: 0px; | ||
| 5 | + font-family: "Lucida Grande", Tahoma, Verdana, Arial, Sans-Serif; | ||
| 6 | + font-size: 12px; | ||
| 7 | + min-width: 450px; | ||
| 8 | +} | ||
| 9 | +/* General Layout and Header Area */ | ||
| 10 | +#page-container { | ||
| 11 | + margin: 0px; | ||
| 12 | + padding: 0px; | ||
| 13 | +} | ||
| 14 | +#header { | ||
| 15 | + background: #0053C2; | ||
| 16 | + padding: 5px; | ||
| 17 | + border-bottom: 4px solid #00398B; | ||
| 18 | +} | ||
| 19 | +#header A { | ||
| 20 | + text-decoration: none; | ||
| 21 | + color: white; | ||
| 22 | +} | ||
| 23 | +#header A:hover { | ||
| 24 | + color: white; | ||
| 25 | +} | ||
| 26 | +#header h1 { | ||
| 27 | + margin: 0px; | ||
| 28 | + padding: 0px; | ||
| 29 | + padding-left: 10px; | ||
| 30 | +} | ||
| 31 | +#header h5 { | ||
| 32 | + margin: 0px; | ||
| 33 | + padding: 0px; | ||
| 34 | + padding-left: 15px; | ||
| 35 | + color: silver; | ||
| 36 | +} | ||
| 37 | +#header #flash { | ||
| 38 | + float: right; | ||
| 39 | + color: #4BA8FF; | ||
| 40 | + font-weight: bold; | ||
| 41 | + margin-right: 5px; | ||
| 42 | +} | ||
| 43 | +/* Content Area */ | ||
| 44 | +#content { | ||
| 45 | + padding: 15px; | ||
| 46 | + background: white; | ||
| 47 | + border-left: 1px solid silver; | ||
| 48 | + border-right: 1px solid silver; | ||
| 49 | +} | ||
| 50 | +#content h1 { | ||
| 51 | + margin: 0px; | ||
| 52 | + padding: 0px; | ||
| 53 | + font-size: 135%; | ||
| 54 | + color: gray; | ||
| 55 | +} | ||
| 56 | +#content .action { | ||
| 57 | + float: right; | ||
| 58 | + color: gray; | ||
| 59 | +} | ||
| 60 | +#content .action A { | ||
| 61 | + font-weight: bold; | ||
| 62 | + text-decoration: none; | ||
| 63 | + color: darkgreen; | ||
| 64 | + border-bottom: 1px solid black; | ||
| 65 | +} | ||
| 66 | +#content .action A:hover { | ||
| 67 | + color: red; | ||
| 68 | + border-bottom: 1px solid red; | ||
| 69 | +} | ||
| 70 | +#content .page-header { | ||
| 71 | + color: gray; | ||
| 72 | +} | ||
| 1 | 73 | ||
| 2 | /* Page Listing */ | 74 | /* Page Listing */ |
| 3 | #content .tree-controller { | 75 | #content .tree-controller { |
| @@ -15,10 +87,10 @@ | @@ -15,10 +87,10 @@ | ||
| 15 | display: none; | 87 | display: none; |
| 16 | } | 88 | } |
| 17 | #content .page-list { | 89 | #content .page-list { |
| 18 | - /* background: white; */ | 90 | + background: white; |
| 19 | clear: both; | 91 | clear: both; |
| 20 | list-style: none; | 92 | list-style: none; |
| 21 | - border-left: none; | 93 | + border-left: 0px dotted silver; |
| 22 | margin: 0px; | 94 | margin: 0px; |
| 23 | padding: 0px; | 95 | padding: 0px; |
| 24 | padding-left: 15px; | 96 | padding-left: 15px; |
| @@ -35,29 +107,30 @@ | @@ -35,29 +107,30 @@ | ||
| 35 | #content .page-list .commands { | 107 | #content .page-list .commands { |
| 36 | font-size: 90%; | 108 | font-size: 90%; |
| 37 | padding-left: 5px; | 109 | padding-left: 5px; |
| 110 | + color: silver; | ||
| 38 | } | 111 | } |
| 39 | #content .page-list .commands A { | 112 | #content .page-list .commands A { |
| 40 | - /* color: gray; */ | 113 | + color: gray; |
| 41 | } | 114 | } |
| 42 | #content .page-list .commands A.add-page:hover { | 115 | #content .page-list .commands A.add-page:hover { |
| 43 | - /* color: blue; */ | 116 | + color: blue; |
| 44 | } | 117 | } |
| 45 | #content .page-list .commands A.reorder-children:hover { | 118 | #content .page-list .commands A.reorder-children:hover { |
| 46 | -/* color: black; */ | 119 | + color: black; |
| 47 | } | 120 | } |
| 48 | #content .page-list .commands A.delete-page:hover { | 121 | #content .page-list .commands A.delete-page:hover { |
| 49 | -/* color: white; */ | 122 | + color: white; |
| 50 | } | 123 | } |
| 51 | #content .page-list .commands A.reordering { | 124 | #content .page-list .commands A.reordering { |
| 52 | -/* background: navy; */ | ||
| 53 | -/* color: white; */ | 125 | + background: navy; |
| 126 | + color: white; | ||
| 54 | } | 127 | } |
| 55 | #content .page-list .commands A.reordering:hover { | 128 | #content .page-list .commands A.reordering:hover { |
| 56 | -/* color: white; */ | 129 | + color: white; |
| 57 | } | 130 | } |
| 58 | #content .page-list A.page { | 131 | #content .page-list A.page { |
| 59 | text-decoration: none; | 132 | text-decoration: none; |
| 60 | -/* color: black; */ | 133 | + color: black; |
| 61 | margin-left: 3px; | 134 | margin-left: 3px; |
| 62 | font-size: 150%; | 135 | font-size: 150%; |
| 63 | display: block; | 136 | display: block; |
| @@ -71,29 +144,29 @@ | @@ -71,29 +144,29 @@ | ||
| 71 | } | 144 | } |
| 72 | 145 | ||
| 73 | #content .page-list .hover { | 146 | #content .page-list .hover { |
| 74 | -/* background: #F1F0DB; */ | 147 | + background: #F1F0DB; |
| 75 | } | 148 | } |
| 76 | #content .page-list .hover-delete { | 149 | #content .page-list .hover-delete { |
| 77 | background: red; | 150 | background: red; |
| 78 | -/* color: #FF8E90; */ | 151 | + color: #FF8E90; |
| 79 | } | 152 | } |
| 80 | #content .page-list .hover-delete A, | 153 | #content .page-list .hover-delete A, |
| 81 | #content .page-list .hover-delete .commands A { | 154 | #content .page-list .hover-delete .commands A { |
| 82 | -/* color: #FF8E90; */ | 155 | + color: #FF8E90; |
| 83 | } | 156 | } |
| 84 | #content .page-list .hover-delete A.page { | 157 | #content .page-list .hover-delete A.page { |
| 85 | -/* color: white; */ | 158 | + color: white; |
| 86 | border-bottom: 0px; | 159 | border-bottom: 0px; |
| 87 | } | 160 | } |
| 88 | #content .page-list .hover-delete UL LI A.page { | 161 | #content .page-list .hover-delete UL LI A.page { |
| 89 | -/* color: red; */ | 162 | + color: red; |
| 90 | border-bottom: 0px; | 163 | border-bottom: 0px; |
| 91 | } | 164 | } |
| 92 | 165 | ||
| 93 | #content .do-reorder LI .handle { | 166 | #content .do-reorder LI .handle { |
| 94 | display: inline; | 167 | display: inline; |
| 95 | -/* background: gray; */ | ||
| 96 | -/* color: white; */ | 168 | + background: gray; |
| 169 | + color: white; | ||
| 97 | padding: 1px 3px; | 170 | padding: 1px 3px; |
| 98 | cursor: move; | 171 | cursor: move; |
| 99 | } | 172 | } |
| @@ -108,10 +181,10 @@ | @@ -108,10 +181,10 @@ | ||
| 108 | } | 181 | } |
| 109 | #content .page-form LABEL { | 182 | #content .page-form LABEL { |
| 110 | font-weight: bold; | 183 | font-weight: bold; |
| 111 | -/* color: #555; */ | 184 | + color: #555; |
| 112 | } | 185 | } |
| 113 | #content .page-form .meta-info LABEL { | 186 | #content .page-form .meta-info LABEL { |
| 114 | -/* color: #999 !important; */ | 187 | + color: #999 !important; |
| 115 | } | 188 | } |
| 116 | #content .page-form .label { | 189 | #content .page-form .label { |
| 117 | padding-top: 5px; | 190 | padding-top: 5px; |
| @@ -127,29 +200,28 @@ | @@ -127,29 +200,28 @@ | ||
| 127 | padding-top: 5px; | 200 | padding-top: 5px; |
| 128 | } | 201 | } |
| 129 | #content .page-form .field-help { | 202 | #content .page-form .field-help { |
| 130 | -/* color: gray; */ | 203 | + color: gray; |
| 131 | } | 204 | } |
| 132 | #content .page-form #page_title { | 205 | #content .page-form #page_title { |
| 133 | font-size: 125%; | 206 | font-size: 125%; |
| 134 | font-weight: bold; | 207 | font-weight: bold; |
| 135 | } | 208 | } |
| 136 | #content .page-form #page_slug { | 209 | #content .page-form #page_slug { |
| 137 | -/* color: gray; */ | 210 | + color: gray; |
| 138 | } | 211 | } |
| 139 | #content .page-form #page_body { | 212 | #content .page-form #page_body { |
| 140 | font-family: monospace; | 213 | font-family: monospace; |
| 141 | font-size: 110%; | 214 | font-size: 110%; |
| 142 | } | 215 | } |
| 143 | - | ||
| 144 | #content #button-group { | 216 | #content #button-group { |
| 145 | padding: 10px; | 217 | padding: 10px; |
| 146 | text-align: right; | 218 | text-align: right; |
| 147 | -/* background-color: #EAEAEA; */ | 219 | + background-color: #EAEAEA; |
| 148 | margin-top: 10px; | 220 | margin-top: 10px; |
| 149 | } | 221 | } |
| 150 | #content #button-group .last-update { | 222 | #content #button-group .last-update { |
| 151 | float: left; | 223 | float: left; |
| 152 | -/* color: gray; */ | 224 | + color: gray; |
| 153 | padding-top: 4px; | 225 | padding-top: 4px; |
| 154 | font-weight: bold; | 226 | font-weight: bold; |
| 155 | } | 227 | } |
| @@ -157,20 +229,19 @@ | @@ -157,20 +229,19 @@ | ||
| 157 | font-weight: normal; | 229 | font-weight: normal; |
| 158 | } | 230 | } |
| 159 | #content #button-group .last-update A { | 231 | #content #button-group .last-update A { |
| 160 | -/* color: gray; */ | 232 | + color: gray; |
| 161 | } | 233 | } |
| 162 | #content #button-group A { | 234 | #content #button-group A { |
| 163 | -/* color: maroon; */ | 235 | + color: maroon; |
| 164 | } | 236 | } |
| 165 | #content #button-group A:hover { | 237 | #content #button-group A:hover { |
| 166 | -/* color: red; */ | 238 | + color: red; |
| 167 | } | 239 | } |
| 168 | - | ||
| 169 | #content #preview-area { | 240 | #content #preview-area { |
| 170 | margin-top: 10px; | 241 | margin-top: 10px; |
| 171 | } | 242 | } |
| 172 | #content #preview-area FIELDSET { | 243 | #content #preview-area FIELDSET { |
| 173 | -/* border: 1px solid silver; */ | 244 | + border: 1px solid silver; |
| 174 | } | 245 | } |
| 175 | #content #preview-area LEGEND { | 246 | #content #preview-area LEGEND { |
| 176 | font-size: 125%; | 247 | font-size: 125%; |
| @@ -179,18 +250,18 @@ | @@ -179,18 +250,18 @@ | ||
| 179 | padding: 10px; | 250 | padding: 10px; |
| 180 | } | 251 | } |
| 181 | #content #preview-area .preview-note { | 252 | #content #preview-area .preview-note { |
| 182 | -/* background: #FFFFD9; */ | 253 | + background: #FFFFD9; |
| 183 | padding: 15px; | 254 | padding: 15px; |
| 184 | } | 255 | } |
| 185 | #content #preview-area .commands { | 256 | #content #preview-area .commands { |
| 186 | text-align: right; | 257 | text-align: right; |
| 187 | -/* color: gray; */ | 258 | + color: gray; |
| 188 | } | 259 | } |
| 189 | -#content #preview-area .commands A { | ||
| 190 | -/* color: gray; */ | 260 | +#content #preview-area .commands A{ |
| 261 | + color: gray; | ||
| 191 | } | 262 | } |
| 192 | -#content #preview-area .commands A:hover { | ||
| 193 | -/* color: black; */ | 263 | +#content #preview-area .commands A:hover{ |
| 264 | + color: black; | ||
| 194 | } | 265 | } |
| 195 | #content .revisions { | 266 | #content .revisions { |
| 196 | padding: 10px; | 267 | padding: 10px; |
| @@ -199,16 +270,16 @@ | @@ -199,16 +270,16 @@ | ||
| 199 | #content .current-content { | 270 | #content .current-content { |
| 200 | } | 271 | } |
| 201 | #content .older-content { | 272 | #content .older-content { |
| 202 | -/* background: #E9E9E9; */ | 273 | + background: #E9E9E9; |
| 203 | float: right; | 274 | float: right; |
| 204 | } | 275 | } |
| 205 | 276 | ||
| 206 | #content .revisions label { | 277 | #content .revisions label { |
| 207 | display: block; | 278 | display: block; |
| 208 | -/* color: #000; */ | 279 | + color: #000; |
| 209 | } | 280 | } |
| 210 | #content .revisions label span { | 281 | #content .revisions label span { |
| 211 | -/* color: #999; */ | 282 | + color: #999; |
| 212 | font-weight: normal !important; | 283 | font-weight: normal !important; |
| 213 | } | 284 | } |
| 214 | #content .revisions .title { | 285 | #content .revisions .title { |
| @@ -224,7 +295,7 @@ | @@ -224,7 +295,7 @@ | ||
| 224 | float: right; | 295 | float: right; |
| 225 | font-size: 90%; | 296 | font-size: 90%; |
| 226 | font-weight: normal; | 297 | font-weight: normal; |
| 227 | -/* color: #999; */ | 298 | + color: #999; |
| 228 | } | 299 | } |
| 229 | #content .revisions .meta { | 300 | #content .revisions .meta { |
| 230 | margin-bottom: 15px; | 301 | margin-bottom: 15px; |
| @@ -239,14 +310,14 @@ | @@ -239,14 +310,14 @@ | ||
| 239 | /* Errors */ | 310 | /* Errors */ |
| 240 | #errorExplanation { | 311 | #errorExplanation { |
| 241 | border: 1px solid red; | 312 | border: 1px solid red; |
| 242 | -/* background: #FFEAEB; */ | 313 | + background: #FFEAEB; |
| 243 | padding: 10px; | 314 | padding: 10px; |
| 244 | margin-top: 10px; | 315 | margin-top: 10px; |
| 245 | } | 316 | } |
| 246 | #errorExplanation h2 { | 317 | #errorExplanation h2 { |
| 247 | margin: 0px; | 318 | margin: 0px; |
| 248 | padding: 0px; | 319 | padding: 0px; |
| 249 | -/* color: maroon; */ | 320 | + color: maroon; |
| 250 | } | 321 | } |
| 251 | #errorExplanation p { | 322 | #errorExplanation p { |
| 252 | margin: 0px; | 323 | margin: 0px; |
| @@ -264,9 +335,7 @@ | @@ -264,9 +335,7 @@ | ||
| 264 | padding: 0px; | 335 | padding: 0px; |
| 265 | padding-top: 5px; | 336 | padding-top: 5px; |
| 266 | } | 337 | } |
| 267 | - | ||
| 268 | /* Footer Area*/ | 338 | /* Footer Area*/ |
| 269 | -/* | ||
| 270 | #footer { | 339 | #footer { |
| 271 | border-top: 4px solid #AAA; | 340 | border-top: 4px solid #AAA; |
| 272 | text-align: center; | 341 | text-align: center; |
| @@ -284,7 +353,6 @@ | @@ -284,7 +353,6 @@ | ||
| 284 | color: #333; | 353 | color: #333; |
| 285 | text-decoration: underline; | 354 | text-decoration: underline; |
| 286 | } | 355 | } |
| 287 | -*/ | ||
| 288 | 356 | ||
| 289 | /* Modifiers */ | 357 | /* Modifiers */ |
| 290 | 358 | ||
| @@ -311,8 +379,3 @@ | @@ -311,8 +379,3 @@ | ||
| 311 | .noscript #content .revisions #go-btn { | 379 | .noscript #content .revisions #go-btn { |
| 312 | display: inline; | 380 | display: inline; |
| 313 | } | 381 | } |
| 314 | - | ||
| 315 | -ul.page-list li table, | ||
| 316 | -ul.page-list li td { | ||
| 317 | - border: none; | ||
| 318 | -} |