Commit 50ee8b0f8cc325b470505db672512e5c379b64fe
1 parent
15460295
Exists in
master
and in
29 other branches
New Noosfero default theme.
* some small CSS enhancements in the system CSS * new 'base' theme which can be used as a ... wait for it ... base for new themes * new 'noosfero' theme based on the 'base' theme. It only adds a noosfero logo and header/footer/navigation templates. * Now looking for favicon.ico in the root of the theme directory * Now looking for errors.css in the root ot the theme directory
Showing
27 changed files
with
65 additions
and
165 deletions
Show diff stats
app/helpers/application_helper.rb
@@ -368,6 +368,10 @@ module ApplicationHelper | @@ -368,6 +368,10 @@ module ApplicationHelper | ||
368 | theme_include('footer') | 368 | theme_include('footer') |
369 | end | 369 | end |
370 | 370 | ||
371 | + def theme_extra_navigation | ||
372 | + theme_include('navigation') | ||
373 | + end | ||
374 | + | ||
371 | def is_testing_theme | 375 | def is_testing_theme |
372 | !@controller.session[:theme].nil? | 376 | !@controller.session[:theme].nil? |
373 | end | 377 | end |
app/views/blocks/profile_info.rhtml
@@ -17,7 +17,9 @@ | @@ -17,7 +17,9 @@ | ||
17 | <ul class="profile-info-data"> | 17 | <ul class="profile-info-data"> |
18 | <li><%= link_to __('Homepage'), block.owner.url, :class => 'url' %></li> | 18 | <li><%= link_to __('Homepage'), block.owner.url, :class => 'url' %></li> |
19 | <li><%= link_to _('View profile'), block.owner.public_profile_url %></li> | 19 | <li><%= link_to _('View profile'), block.owner.public_profile_url %></li> |
20 | - <li><%= link_to(_('Products/Services'), :controller => 'catalog', :profile => block.owner.identifier) if block.owner.enterprise? && !block.owner.environment.enabled?('disable_products_for_enterprises') %></li> | 20 | + <% if block.owner.enterprise? && !block.owner.environment.enabled?('disable_products_for_enterprises') %> |
21 | + <li><%= link_to(_('Products/Services'), :controller => 'catalog', :profile => block.owner.identifier) %></li> | ||
22 | + <% end %> | ||
21 | <% if !user.nil? and user.has_permission?('edit_profile', profile) %> | 23 | <% if !user.nil? and user.has_permission?('edit_profile', profile) %> |
22 | <li><%= link_to _('Control panel'), block.owner.admin_url %></li> | 24 | <li><%= link_to _('Control panel'), block.owner.admin_url %></li> |
23 | <% end %> | 25 | <% end %> |
app/views/layouts/application-ng.rhtml
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | <!--<meta http-equiv="refresh" content="1"/>--> | 6 | <!--<meta http-equiv="refresh" content="1"/>--> |
7 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | 7 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
8 | <meta name="description" content="<%= @environment.name %>" /> | 8 | <meta name="description" content="<%= @environment.name %>" /> |
9 | - <link rel="shortcut icon" href="<%= '/designs/themes/' + current_theme + '/imgs/favicon.ico' %>" type="image/x-icon" /> | 9 | + <link rel="shortcut icon" href="<%= '/designs/themes/' + current_theme + '/favicon.ico' %>" type="image/x-icon" /> |
10 | <%= noosfero_javascript %> | 10 | <%= noosfero_javascript %> |
11 | <%= import_blocks_stylesheets %> | 11 | <%= import_blocks_stylesheets %> |
12 | <%= import_controller_stylesheets %> | 12 | <%= import_controller_stylesheets %> |
@@ -96,8 +96,7 @@ | @@ -96,8 +96,7 @@ | ||
96 | '/assets/people', :id=>'people' %></li> | 96 | '/assets/people', :id=>'people' %></li> |
97 | <li><%= link_to '<span class="icon-menu-community">' + _('Communities') + '</span>', | 97 | <li><%= link_to '<span class="icon-menu-community">' + _('Communities') + '</span>', |
98 | '/assets/communities', :id=>'communities' %></li> | 98 | '/assets/communities', :id=>'communities' %></li> |
99 | - <li><%= link_to '<span class="icon-menu-events">' + 'Agenda Livre' + '</span>', | ||
100 | - '/assets/events', :id=>'events' %></li> | 99 | + <%= theme_extra_navigation %> |
101 | </ul> | 100 | </ul> |
102 | <div id="navigation-end"></div> | 101 | <div id="navigation-end"></div> |
103 | </div><!-- end id="navigation" --> | 102 | </div><!-- end id="navigation" --> |
app/views/layouts/application.rhtml
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
6 | <meta name="description" content="<%= @environment.name %>" /> | 6 | <meta name="description" content="<%= @environment.name %>" /> |
7 | <meta name="keywords" content="Noosfero, Community, Open Source" /> | 7 | <meta name="keywords" content="Noosfero, Community, Open Source" /> |
8 | - <link rel="shortcut icon" href="<%= '/designs/themes/' + current_theme + '/images/favicon.ico' %>" type="image/x-icon" /> | 8 | + <link rel="shortcut icon" href="<%= '/designs/themes/' + current_theme + '/favicon.ico' %>" type="image/x-icon" /> |
9 | <!-- ok --><%= meta_tags_for_article(@page) %> | 9 | <!-- ok --><%= meta_tags_for_article(@page) %> |
10 | 10 | ||
11 | <%= noosfero_javascript %> | 11 | <%= noosfero_javascript %> |
public/500.html
@@ -4,7 +4,8 @@ | @@ -4,7 +4,8 @@ | ||
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
5 | <meta http-equiv="refresh" content="60"/> | 5 | <meta http-equiv="refresh" content="60"/> |
6 | <title>Technical problems</title> | 6 | <title>Technical problems</title> |
7 | - <link rel="stylesheet" type="text/css" href="/designs/themes/default/stylesheets/errors.css"/> | 7 | + <link rel="stylesheet" type="text/css" href="/designs/themes/default/errors.css"/> |
8 | + <link rel="shortcut icon" href='/designs/themes/default/favicon.ico' type="image/x-icon" /> | ||
8 | <script type='text/javascript' src='/javascripts/prototype.js'></script> | 9 | <script type='text/javascript' src='/javascripts/prototype.js'></script> |
9 | <script type='text/javascript' src='/javascripts/errors.js'></script> | 10 | <script type='text/javascript' src='/javascripts/errors.js'></script> |
10 | </head> | 11 | </head> |
public/500.html.erb
@@ -4,7 +4,8 @@ | @@ -4,7 +4,8 @@ | ||
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
5 | <meta http-equiv="refresh" content="60"/> | 5 | <meta http-equiv="refresh" content="60"/> |
6 | <title>Technical problems</title> | 6 | <title>Technical problems</title> |
7 | - <link rel="stylesheet" type="text/css" href="/designs/themes/default/stylesheets/errors.css"/> | 7 | + <link rel="stylesheet" type="text/css" href="/designs/themes/default/errors.css"/> |
8 | + <link rel="shortcut icon" href='/designs/themes/default/favicon.ico' type="image/x-icon" /> | ||
8 | <script type='text/javascript' src='/javascripts/prototype.js'></script> | 9 | <script type='text/javascript' src='/javascripts/prototype.js'></script> |
9 | <script type='text/javascript' src='/javascripts/errors.js'></script> | 10 | <script type='text/javascript' src='/javascripts/errors.js'></script> |
10 | </head> | 11 | </head> |
public/503.html
@@ -4,7 +4,8 @@ | @@ -4,7 +4,8 @@ | ||
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
5 | <meta http-equiv="refresh" content="60"/> | 5 | <meta http-equiv="refresh" content="60"/> |
6 | <title>Noosfero - System Maintainance</title> | 6 | <title>Noosfero - System Maintainance</title> |
7 | - <link rel="stylesheet" type="text/css" href="/designs/themes/default/stylesheets/errors.css"/> | 7 | + <link rel="stylesheet" type="text/css" href="/designs/themes/default/errors.css"/> |
8 | + <link rel="shortcut icon" href='/designs/themes/default/favicon.ico' type="image/x-icon" /> | ||
8 | <script type='text/javascript' src='/javascripts/prototype.js'></script> | 9 | <script type='text/javascript' src='/javascripts/prototype.js'></script> |
9 | <script type='text/javascript' src='/javascripts/errors.js'></script> | 10 | <script type='text/javascript' src='/javascripts/errors.js'></script> |
10 | </head> | 11 | </head> |
public/503.html.erb
@@ -4,7 +4,8 @@ | @@ -4,7 +4,8 @@ | ||
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
5 | <meta http-equiv="refresh" content="60"/> | 5 | <meta http-equiv="refresh" content="60"/> |
6 | <title>Noosfero - System Maintainance</title> | 6 | <title>Noosfero - System Maintainance</title> |
7 | - <link rel="stylesheet" type="text/css" href="/designs/themes/default/stylesheets/errors.css"/> | 7 | + <link rel="stylesheet" type="text/css" href="/designs/themes/default/errors.css"/> |
8 | + <link rel="shortcut icon" href='/designs/themes/default/favicon.ico' type="image/x-icon" /> | ||
8 | <script type='text/javascript' src='/javascripts/prototype.js'></script> | 9 | <script type='text/javascript' src='/javascripts/prototype.js'></script> |
9 | <script type='text/javascript' src='/javascripts/errors.js'></script> | 10 | <script type='text/javascript' src='/javascripts/errors.js'></script> |
10 | </head> | 11 | </head> |
@@ -0,0 +1 @@ | @@ -0,0 +1 @@ | ||
1 | +@import url(../base/errors.css); |
No preview for this file type
public/designs/themes/noosfero/footer.rhtml
1 | -<p> <%= language_chooser %> </p> | ||
2 | -<%= footer %> | 1 | +<div id="footer-links"> |
2 | +</div><!-- end id="footer-links" --> | ||
3 | +<div id="copyright"> | ||
4 | + <p id='noosfero-license'> | ||
5 | + Powered by <a | ||
6 | + href="http://www.noosfero.org/" id='link-noosfero'>Noosfero</a>, licensed under | ||
7 | + <a href="http://www.gnu.org/licenses/agpl.html">GNU Affero General Public | ||
8 | + License</a>, version 3 or above. </p> | ||
9 | + <!-- Desenvolvido com | ||
10 | + <a href="http://noosfero.com.br" | ||
11 | + title="FLOSS for Social!">Noosfero</a--> | ||
12 | +</div><!-- end id="copyright" --> |
public/designs/themes/noosfero/images/favicon.ico
No preview for this file type
public/designs/themes/noosfero/images/logo-colivre-footer.gif
1.49 KB
12.5 KB
No preview for this file type
public/designs/themes/noosfero/stylesheets/common.css
@@ -1,83 +0,0 @@ | @@ -1,83 +0,0 @@ | ||
1 | -body.noosfero { | ||
2 | - background-position: 50% 25px; | ||
3 | - background-repeat: repeat-x; | ||
4 | -} | ||
5 | - | ||
6 | -#wrap { | ||
7 | - background-position: 50% 22px; | ||
8 | - background-repeat: repeat-x; | ||
9 | - border: 3px solid #888; | ||
10 | -} | ||
11 | - | ||
12 | -.box-3 { | ||
13 | - padding-top: 35px; | ||
14 | -} | ||
15 | - | ||
16 | -#path_category { | ||
17 | - position: absolute; | ||
18 | - top: 40px; | ||
19 | - left: 30px; | ||
20 | - font-weight: bold; | ||
21 | - z-index: 10; | ||
22 | -} | ||
23 | - | ||
24 | -a { color: #05B } | ||
25 | -a:visited { color: #68C } | ||
26 | -a:hover, a:active { color: #08F } | ||
27 | - | ||
28 | -hr { | ||
29 | - border: none; | ||
30 | - border-top: 2px dotted black; | ||
31 | -} | ||
32 | - | ||
33 | -#footer { | ||
34 | - margin: 0px; | ||
35 | - padding: 10px; | ||
36 | -} | ||
37 | - | ||
38 | -#footer a { | ||
39 | - border-bottom: 1px dotted #777; | ||
40 | -} | ||
41 | -#footer a:hover { | ||
42 | - border: 0px; | ||
43 | -} | ||
44 | - | ||
45 | -#footer a#footer-esq { | ||
46 | - padding: 5px 0px 5px 45px; | ||
47 | - float: left; | ||
48 | - text-align: left; | ||
49 | - border: none; | ||
50 | -} | ||
51 | - | ||
52 | -#footer a#footer-dir { | ||
53 | - padding: 5px 35px 5px 0px; | ||
54 | - float: right; | ||
55 | - text-align: right; | ||
56 | - border: none; | ||
57 | - opacity: 0.5; | ||
58 | -} | ||
59 | - | ||
60 | -#footer a#footer-esq:hover, | ||
61 | -#footer a#footer-dir:hover { | ||
62 | - opacity: 1; | ||
63 | -} | ||
64 | - | ||
65 | -/* * * category ajax selector * * */ | ||
66 | - | ||
67 | -#category-ajax-selector { | ||
68 | - border: none; | ||
69 | - background: #B8CFE7; | ||
70 | - -moz-border-radius: 10px; | ||
71 | -} | ||
72 | - | ||
73 | -#category-ajax-selector .box-title { | ||
74 | - border: 1px solid #B8CFE7; | ||
75 | - background: #B8CFE7; | ||
76 | - -moz-border-radius-topleft: 8px; | ||
77 | - -moz-border-radius-topright: 8px; | ||
78 | -} | ||
79 | - | ||
80 | -#category-ajax-selector .select-subcategory-link { | ||
81 | - border: 1px solid #729FCF; | ||
82 | - -moz-border-radius: 6px; | ||
83 | -} |
public/designs/themes/noosfero/stylesheets/errors.css
@@ -1,37 +0,0 @@ | @@ -1,37 +0,0 @@ | ||
1 | -body { | ||
2 | - font-family: sans-serif; | ||
3 | - margin: 0px; | ||
4 | - padding: 0% 0%; | ||
5 | - height: 100%; | ||
6 | -} | ||
7 | - | ||
8 | -#wrap { | ||
9 | - background: #CCC url(/503-small.jpg) 100% 100% no-repeat; | ||
10 | - position: absolute; | ||
11 | - top: 0px; | ||
12 | - bottom: 0px; | ||
13 | - left: 0px; | ||
14 | - right: 0px; | ||
15 | - padding: 1em 3em 1em 3em; | ||
16 | -} | ||
17 | - | ||
18 | -#languages { | ||
19 | - float: left; | ||
20 | - width: 40%; | ||
21 | - margin-top: 3em; | ||
22 | - border-top: 1px solid #aaa; | ||
23 | - font-size: smaller; | ||
24 | -} | ||
25 | - | ||
26 | -h1 { | ||
27 | - margin: 30px 0px 0px 0px; | ||
28 | - font-weight: bold; | ||
29 | - color: #555; | ||
30 | -} | ||
31 | - | ||
32 | -a, a:visited { | ||
33 | - color: #666; | ||
34 | -} | ||
35 | -a:hover { | ||
36 | - color: black; | ||
37 | -} |
public/designs/themes/noosfero/stylesheets/login-box.css
public/designs/themes/noosfero/stylesheets/menu.css
public/designs/themes/noosfero/theme.yml
public/designs/themes/noosfero/thumbnail.jpg
3.51 KB
public/stylesheets/blocks/profile-info-block.css
@@ -25,8 +25,12 @@ | @@ -25,8 +25,12 @@ | ||
25 | display: block; | 25 | display: block; |
26 | } | 26 | } |
27 | 27 | ||
28 | +.profile-info-block a { | ||
29 | + font-size: smaller; | ||
30 | +} | ||
31 | + | ||
28 | .profile-info-picture img { | 32 | .profile-info-picture img { |
29 | - border: 1px solid #204A87; | 33 | + border: none; |
30 | padding: 2px; | 34 | padding: 2px; |
31 | background: #FFF; | 35 | background: #FFF; |
32 | } | 36 | } |
@@ -111,6 +115,6 @@ | @@ -111,6 +115,6 @@ | ||
111 | #content .profile-info-block ul li { | 115 | #content .profile-info-block ul li { |
112 | list-style: none; | 116 | list-style: none; |
113 | list-style-image: none; | 117 | list-style-image: none; |
114 | - margin: 0px; | 118 | + margin: 0px 0px 5px 0px; |
115 | padding: 2px; | 119 | padding: 2px; |
116 | } | 120 | } |
public/stylesheets/lightbox.css
@@ -9,22 +9,19 @@ Modified : February 1, 2006 | @@ -9,22 +9,19 @@ Modified : February 1, 2006 | ||
9 | 9 | ||
10 | - - - - - - - - - - - - - - - - - - - - - */ | 10 | - - - - - - - - - - - - - - - - - - - - - */ |
11 | 11 | ||
12 | -#lightbox{ | ||
13 | - display: none; | ||
14 | - position: absolute; | ||
15 | - top: 50%; | ||
16 | - left: 50%; | ||
17 | - z-index: 300; | ||
18 | - width: 500px; | ||
19 | - margin: -200px 0 0 -250px; | ||
20 | - border: 10px solid #000; | ||
21 | - text-align: left; | 12 | +#lightbox { |
13 | + display: none; | ||
14 | + position: absolute; | ||
15 | + top: 150px; | ||
16 | + left: 50%; | ||
17 | + z-index: 300; | ||
18 | + width: 500px; | ||
19 | + margin-left: -265px; | ||
20 | + border: 1px solid #000; | ||
21 | + text-align: left; | ||
22 | padding: 1em; | 22 | padding: 1em; |
23 | background: #FFF; | 23 | background: #FFF; |
24 | } | 24 | } |
25 | -#lightbox[id]{ | ||
26 | - position:fixed; | ||
27 | -} | ||
28 | 25 | ||
29 | #overlay{ | 26 | #overlay{ |
30 | display:none; | 27 | display:none; |
@@ -35,9 +32,9 @@ Modified : February 1, 2006 | @@ -35,9 +32,9 @@ Modified : February 1, 2006 | ||
35 | height:100%; | 32 | height:100%; |
36 | z-index:200; | 33 | z-index:200; |
37 | background-color:#000; | 34 | background-color:#000; |
38 | - -moz-opacity: 0.5; | ||
39 | - opacity:.50; | ||
40 | - filter: alpha(opacity=50); | 35 | + -moz-opacity: 0.75; |
36 | + opacity:.75; | ||
37 | + filter: alpha(opacity=75); | ||
41 | } | 38 | } |
42 | #overlay[id]{ | 39 | #overlay[id]{ |
43 | position:fixed; | 40 | position:fixed; |
public/stylesheets/thickbox.css