meurio_ui 1.3.1 → 1.3.2.pre.foundation

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cd82839dd84b77fa2f2aafc4a55d68cf18fc4d0
4
- data.tar.gz: 5b600ad32a80e12b1b734d5d4fcd478cdde71fbb
3
+ metadata.gz: 0280b3833d128e1396e2600d5d3bfe5763e891a5
4
+ data.tar.gz: 372158b63c4891487d519cbe873c238543a8af15
5
5
  SHA512:
6
- metadata.gz: 03d170d23c6ac0d721c8868cc1d524f8133ca785e4013f006530215f80148a0a69840b8f914ebe26c4fc1fa5ef738cf0cd88b44c6b000bc15e106a81552f44e1
7
- data.tar.gz: 8b54d691eb42415be29168cbb69b70f5759e0b65aeb4f7cdf574bc6553c6158b494ac57881eadcf204fbb7c9de820971ccf69a2aafc7641705c6ca55448f2868
6
+ metadata.gz: 3f4c16bf06ab0958c76a599797a34e02c62c8776d87df262debf19af18e253ff2e858941f60d44d44e31f78f61cbce4e29ea01eb3a9f4c2bb50b90295f4a709d
7
+ data.tar.gz: 144fe7c1af876dcb909b8b971840fa1ede7441403ccf7424cbeb8867638779d42cebd7c0d73358341c648b37e7bb3e38ba2dde98c885e8978826b36698401f70
@@ -1,4 +1,8 @@
1
+ //= require foundation
2
+
1
3
  $(function(){
4
+ $(document).foundation();
5
+
2
6
  $('header.meurio_header .icon-arrow-box').click(function(e){ $('.other_apps').toggle(); e.stopPropagation(); return false; });
3
7
  $(document).click(function(){ $('.other_apps').hide(); });
4
8
 
@@ -1,4 +1,5 @@
1
1
  header.meurio_header
2
+ font-size: 14px
2
3
  .row
3
4
  overflow: visible
4
5
  .meurio_logo_and_user_menu
@@ -15,6 +16,7 @@ header.meurio_header
15
16
  padding: 7px 0
16
17
  line-height: 44px
17
18
  .current_user
19
+ line-height: 35px
18
20
  img
19
21
  width: 35px
20
22
  +border-radius(35px)
@@ -1,4 +1,13 @@
1
1
  @import meurio_ui/colors
2
+
3
+ $topbar-bg: $green
4
+ $topbar-height: 47px
5
+ $topbar-dropdown-bg: lighten($green, 25%)
6
+ $topbar-dropdown-link-bg: $green
7
+ $topbar-menu-link-color-toggled: lighten($green, 35%)
8
+ $topbar-menu-icon-color-toggled: lighten($green, 35%)
9
+
10
+ @import foundation
2
11
  @import meurio_ui/meurio_header
3
12
 
4
13
  [class^="icon-"], [class*=" icon-"]
@@ -14,3 +23,14 @@
14
23
  /* Better Font Rendering =========== */
15
24
  -webkit-font-smoothing: antialiased
16
25
  -moz-osx-font-smoothing: grayscale
26
+
27
+ li.has-dropdown
28
+ img
29
+ width: 25px
30
+ margin-right: 5px
31
+
32
+ .top-bar-section ul
33
+ background: lighten($green, 5%)
34
+ li
35
+ a
36
+ background: lighten($green, 5%)
@@ -1,51 +1,147 @@
1
- header.meurio_header
2
- .meurio_logo_and_user_menu
3
- .row
4
- .meurio_logo= link_to image_tag('meurio.png'), 'http://meurio.org.br/'
5
- - if @app == :pdp or @app == :mr20
6
- .user_menu
7
- - if current_user.present?
8
- .current_user
9
- = image_tag(current_user.avatar_url)
10
- = current_user.name
11
- = content_tag(:span, nil, class: 'icon-triangle-down') if @app == :pdp
12
- - if @app == :pdp
13
- .current_user_links
14
- = link_to('Minhas campanhas', user_campaigns_path(current_user))
15
- - if can?(:moderate, Campaign)
16
- = link_to 'Moderar campanhas', unmoderated_campaigns_path
17
- - if can?(:export, User)
18
- = link_to "Exportar todos os usuários", users_path(:format => :csv)
19
- - else
20
- = link_to 'Entrar', "http://accounts.meurio.org.br/?redirect_url=#{request.url}", class: :hollow_btn
21
- .clear
1
+ .contain-to-grid
2
+ nav.top-bar{data-topbar data-options="custom_back_text:false"}
3
+ ul.title-area
4
+ li.name
5
+ h1= link_to image_tag('meurio.png'), 'http://meurio.org.br/'
6
+ li.toggle-topbar.menu-icon
7
+ a href=""
8
+ span Menu
22
9
 
23
- .meurio_apps_and_application_menu
24
- .row
25
- .meurio_apps
26
- .current_app
27
- = link_to(root_path) do
28
- = image_tag("#{@app}.png")
29
- span= application_name(@app)
30
- span.icon-arrow-box
31
- .other_apps
32
- = link_to('http://meurio.org.br/', class: :meurio_app) do
33
- = image_tag('mr20.png')
34
- span= application_name(:mr20)
35
- = link_to('http://paneladepressao.meurio.org.br/', class: :meurio_app) do
10
+ section.top-bar-section
11
+ ul.right
12
+ li.has-dropdown
13
+ a href="#"
36
14
  = image_tag('pdp.png')
37
- span= application_name(:pdp)
38
- = link_to('http://imagine.meurio.org.br/', class: :meurio_app) do
39
- = image_tag('imagine.png')
40
- span= application_name(:imagine)
41
- = link_to('https://apoie.meurio.org.br/', class: :meurio_app) do
42
- = image_tag('apoie.png')
43
- span= application_name(:apoie)
44
- = link_to('http://deolho.meurio.org.br/', class: :meurio_app) do
45
- = image_tag('deolho.png')
46
- span= application_name(:deolho)
47
- = link_to('http://deguarda.meurio.org.br/', class: :meurio_app) do
48
- = image_tag("deguarda.png")
49
- span= application_name(:deguarda)
50
- .application_menu= yield :application_menu
51
- .clear
15
+ | Panela de Pressão
16
+ ul.dropdown
17
+ li
18
+ = link_to('http://meurio.org.br/') do
19
+ = image_tag('mr20.png')
20
+ = application_name(:mr20)
21
+ li
22
+ = link_to('http://paneladepressao.meurio.org.br/') do
23
+ = image_tag('pdp.png')
24
+ = application_name(:pdp)
25
+ li
26
+ = link_to('http://imagine.meurio.org.br/') do
27
+ = image_tag('imagine.png')
28
+ = application_name(:imagine)
29
+ li
30
+ = link_to('https://apoie.meurio.org.br/') do
31
+ = image_tag('apoie.png')
32
+ = application_name(:apoie)
33
+ li
34
+ = link_to('http://deolho.meurio.org.br/') do
35
+ = image_tag('deolho.png')
36
+ = application_name(:deolho)
37
+ li
38
+ = link_to('http://deguarda.meurio.org.br/') do
39
+ = image_tag("deguarda.png")
40
+ = application_name(:deguarda)
41
+ li.has-dropdown
42
+ a href="#" Nícolas Iensen
43
+ ul.dropdown
44
+ li
45
+ a href="#" Editar perfil
46
+ li
47
+ a href="#" Sair
48
+
49
+ /.contain-to-grid
50
+ / nav.top-bar{data-topbar}
51
+ / section.top-bar-section
52
+ / ul.left
53
+ / li.has-dropdown
54
+ / a href="#"
55
+ / = image_tag('pdp.png')
56
+ / | Panela de Pressão
57
+ / ul.dropdown
58
+ / li
59
+ / = link_to('http://meurio.org.br/') do
60
+ / = image_tag('mr20.png')
61
+ / = application_name(:mr20)
62
+ / li
63
+ / = link_to('http://paneladepressao.meurio.org.br/') do
64
+ / = image_tag('pdp.png')
65
+ / = application_name(:pdp)
66
+ / li
67
+ / = link_to('http://imagine.meurio.org.br/') do
68
+ / = image_tag('imagine.png')
69
+ / = application_name(:imagine)
70
+ / li
71
+ / = link_to('https://apoie.meurio.org.br/') do
72
+ / = image_tag('apoie.png')
73
+ / = application_name(:apoie)
74
+ / li
75
+ / = link_to('http://deolho.meurio.org.br/') do
76
+ / = image_tag('deolho.png')
77
+ / = application_name(:deolho)
78
+ / li
79
+ / = link_to('http://deguarda.meurio.org.br/') do
80
+ / = image_tag("deguarda.png")
81
+ / = application_name(:deguarda)
82
+
83
+ /nav.top-bar data-topbar=""
84
+ / ul.title-area
85
+ / li.name
86
+ / h1
87
+ / a href="#" My Site
88
+ / section.top-bar-section
89
+ / ul.right
90
+ / li.active
91
+ / a href="#" Right Nav Button Active
92
+ / li.has-dropdown
93
+ / a href="#" Right Button with Dropdown
94
+ / ul.dropdown
95
+ / li
96
+ / a href="#" First link in dropdown
97
+ / ul.left
98
+ / li
99
+ / a href="#" Left Nav Button
100
+
101
+ /header.meurio_header
102
+ / .meurio_logo_and_user_menu
103
+ / .row
104
+ / .meurio_logo= link_to image_tag('meurio.png'), 'http://meurio.org.br/'
105
+ / - if @app == :pdp or @app == :mr20
106
+ / .user_menu
107
+ / - if current_user.present?
108
+ / .current_user
109
+ / = image_tag(current_user.avatar_url)
110
+ / = current_user.name
111
+ / = content_tag(:span, nil, class: 'icon-triangle-down')
112
+ / .current_user_links
113
+ / = link_to "Editar perfil", "http://accounts.meurio.org.br/users/#{current_user.id}/edit"
114
+ / = yield :current_user_links
115
+ / - else
116
+ / = link_to 'Entrar', "http://accounts.meurio.org.br/?redirect_url=#{request.url}", class: :hollow_btn
117
+ / .clear
118
+ /
119
+ / .meurio_apps_and_application_menu
120
+ / .row
121
+ / .meurio_apps
122
+ / .current_app
123
+ / = link_to(root_path) do
124
+ / = image_tag("#{@app}.png")
125
+ / span= application_name(@app)
126
+ / span.icon-arrow-box
127
+ / .other_apps
128
+ / = link_to('http://meurio.org.br/', class: :meurio_app) do
129
+ / = image_tag('mr20.png')
130
+ / span= application_name(:mr20)
131
+ / = link_to('http://paneladepressao.meurio.org.br/', class: :meurio_app) do
132
+ / = image_tag('pdp.png')
133
+ / span= application_name(:pdp)
134
+ / = link_to('http://imagine.meurio.org.br/', class: :meurio_app) do
135
+ / = image_tag('imagine.png')
136
+ / span= application_name(:imagine)
137
+ / = link_to('https://apoie.meurio.org.br/', class: :meurio_app) do
138
+ / = image_tag('apoie.png')
139
+ / span= application_name(:apoie)
140
+ / = link_to('http://deolho.meurio.org.br/', class: :meurio_app) do
141
+ / = image_tag('deolho.png')
142
+ / span= application_name(:deolho)
143
+ / = link_to('http://deguarda.meurio.org.br/', class: :meurio_app) do
144
+ / = image_tag("deguarda.png")
145
+ / span= application_name(:deguarda)
146
+ / .application_menu= yield :application_menu
147
+ / .clear
@@ -1,5 +1,5 @@
1
1
  module MeurioUi
2
2
  module Rails
3
- VERSION = "1.3.1"
3
+ VERSION = "1.3.2-foundation"
4
4
  end
5
5
  end
data/lib/meurio_ui.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require "slim-rails"
2
+ require "zurb-foundation"
1
3
  require "meurio_ui/engine"
2
4
  require "meurio_ui/version"
3
5
  require "meurio_ui/railtie" if defined?(Rails)
data/meurio_ui.gemspec CHANGED
@@ -20,4 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
+ spec.add_runtime_dependency "zurb-foundation"
24
+ spec.add_runtime_dependency "slim-rails"
23
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meurio_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2.pre.foundation
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nícolas Iensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-26 00:00:00.000000000 Z
11
+ date: 2013-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,6 +38,34 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: zurb-foundation
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: slim-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
41
69
  description: Meu Rio UI is a Rails engine that provides user interface components
42
70
  like buttons, fields, icons, fonts, and more patterns for Meu Rio organization
43
71
  email:
@@ -84,9 +112,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
112
  version: '0'
85
113
  required_rubygems_version: !ruby/object:Gem::Requirement
86
114
  requirements:
87
- - - ">="
115
+ - - ">"
88
116
  - !ruby/object:Gem::Version
89
- version: '0'
117
+ version: 1.3.1
90
118
  requirements: []
91
119
  rubyforge_project:
92
120
  rubygems_version: 2.1.10