uenf_layout 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. data/app/assets/images/a1.gif +0 -0
  2. data/app/assets/images/a16.gif +0 -0
  3. data/app/assets/images/a18.gif +0 -0
  4. data/app/assets/images/a22.gif +0 -0
  5. data/app/assets/images/a26.gif +0 -0
  6. data/app/assets/images/a33.gif +0 -0
  7. data/app/assets/images/a36.gif +0 -0
  8. data/app/assets/images/a38.gif +0 -0
  9. data/app/assets/images/a41.gif +0 -0
  10. data/app/assets/images/a47.gif +0 -0
  11. data/app/assets/images/a50.gif +0 -0
  12. data/app/assets/images/a8.gif +0 -0
  13. data/app/assets/images/abg.gif +0 -0
  14. data/app/assets/images/logo_uenf.gif +0 -0
  15. data/app/assets/images/logo_uenf_fundo.png +0 -0
  16. data/app/assets/images/logout.png +0 -0
  17. data/app/assets/images/rails.png +0 -0
  18. data/app/assets/images/rails_1.png +0 -0
  19. data/app/assets/images/rails_powered.gif +0 -0
  20. data/app/assets/images/spacer.gif +0 -0
  21. data/app/assets/images/splash.png +0 -0
  22. data/app/assets/images/upbg.gif +0 -0
  23. data/app/assets/javascripts/mascaras.js +46 -0
  24. data/app/assets/stylesheets/uenf_layout/address.css +22 -0
  25. data/app/assets/stylesheets/uenf_layout/cocoon.css +3 -0
  26. data/app/assets/stylesheets/uenf_layout/flash.css +9 -0
  27. data/app/assets/stylesheets/uenf_layout/form.css +19 -0
  28. data/app/assets/stylesheets/uenf_layout/formtastic_changes.css +7 -0
  29. data/app/assets/stylesheets/uenf_layout/login.css +33 -0
  30. data/app/assets/stylesheets/uenf_layout/menus.css +41 -0
  31. data/app/assets/stylesheets/uenf_layout/scaffolds.css.scss +28 -0
  32. data/app/assets/stylesheets/uenf_layout/table.css +16 -0
  33. data/app/assets/stylesheets/uenf_layout/terrafirma-adaptado.css.erb +329 -0
  34. data/app/assets/stylesheets/uenf_layout/user.css +14 -0
  35. data/app/assets/stylesheets/uenf_layout.css +3 -0
  36. data/app/views/layouts/_footer.html.erb +9 -0
  37. data/app/views/layouts/_header.html.haml +2 -0
  38. data/lib/uenf_layout.rb +16 -0
  39. metadata +99 -0
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,46 @@
1
+ function somenteNumeros(event)
2
+ {
3
+ return !(event.charCode >= 32 && (event.charCode < 48 || event.charCode > 57));
4
+ }
5
+
6
+ function mascaraData(elemento, event)
7
+ {
8
+ /* 8 = backspace; 9 = tab */
9
+ if (event.keyCode == 8 || event.keyCode == 9)
10
+ return true;
11
+
12
+ if (elemento.value.length >= 10)
13
+ return false;
14
+
15
+ if (elemento.value.length == 2)
16
+ {
17
+ elemento.value += '/' ;
18
+ return true;
19
+ }
20
+ else if (elemento.value.length == 5)
21
+ {
22
+ elemento.value += '/';
23
+ return true;
24
+ }
25
+
26
+ return somenteNumeros(event);
27
+ }
28
+
29
+ function mascaraHora(elemento, event)
30
+ {
31
+ /* 8 = backspace; 9 = tab */
32
+ if (event.keyCode == 8 || event.keyCode == 9)
33
+ return true;
34
+
35
+ if (elemento.value.length >= 5)
36
+ return false;
37
+
38
+ if (elemento.value.length == 2)
39
+ {
40
+ elemento.value += ':' ;
41
+ return true;
42
+ }
43
+
44
+ return somenteNumeros(event);
45
+ }
46
+
@@ -0,0 +1,22 @@
1
+ address {
2
+ font-style: normal;
3
+ }
4
+
5
+ address a {
6
+ color: #8C8C73;
7
+ }
8
+
9
+ #validation {
10
+ float: right;
11
+ list-style: none;
12
+ display: inline;
13
+ vertical-align: middle;
14
+ }
15
+
16
+ #validation img {
17
+ border: none;
18
+ }
19
+
20
+ #validation a:hover {
21
+ background-color: transparent;
22
+ }
@@ -0,0 +1,3 @@
1
+ .nested-fields {
2
+ margin-bottom: 15px;
3
+ }
@@ -0,0 +1,9 @@
1
+ #notice {
2
+ color: green;
3
+ font-weight: bold;
4
+ }
5
+
6
+ #alert {
7
+ color: red;
8
+ font-weight: bold;
9
+ }
@@ -0,0 +1,19 @@
1
+ fieldset {
2
+ padding: 10px;
3
+ margin-bottom: 15px;
4
+ border-width: 1px;
5
+ }
6
+
7
+ legend {
8
+ font-weight: bold;
9
+ }
10
+
11
+ .inline-errors {
12
+ color: red;
13
+ display: inline;
14
+ }
15
+
16
+ label {
17
+ float: left;
18
+ width: 15%;
19
+ }
@@ -0,0 +1,7 @@
1
+ form.formtastic fieldset ol li fieldset legend { margin-left: -6px;}
2
+
3
+ form.formtastic li { list-style: none }
4
+
5
+ form.formtastic label { color: #555 }
6
+
7
+ abbr[title="obrigatório"] { color: red }
@@ -0,0 +1,33 @@
1
+ #login_info {
2
+ border: 1px solid #AAAAAA;
3
+ padding: 5px;
4
+ margin-top: 15px;
5
+ background-color: #EEEEEE;
6
+ color: black;
7
+ clear: both;
8
+ }
9
+
10
+ .login_box {
11
+ float: right;
12
+ width: 295px;
13
+ height: 95px;
14
+ margin-right: 10px;
15
+ }
16
+
17
+ .login_box legend {
18
+ font-size: 1.4em;
19
+ }
20
+
21
+ #criar_conta_link {
22
+ color: green;
23
+ font-size: 3em;
24
+ font-weight: bold;
25
+ margin: 55px;
26
+ position: relative;
27
+ top: 20px;
28
+ }
29
+
30
+ .atencao {
31
+ color: red;
32
+ font-weight: bold;
33
+ }
@@ -0,0 +1,41 @@
1
+ #menu ul li {
2
+ position: relative;
3
+ }
4
+
5
+ #menu li ul {
6
+ margin: 0;
7
+ padding: 0;
8
+ list-style: none;
9
+ width: 150px;
10
+ border-bottom: 1px solid #ccc;
11
+ }
12
+
13
+ #menu li ul li {
14
+ margin: 0;
15
+ padding: 0;
16
+ }
17
+
18
+ #menu li ul {
19
+ position: absolute;
20
+ left: 3px;
21
+ top: 23px;
22
+ display: none;
23
+ z-index: 1;
24
+ }
25
+
26
+ #menu li ul li a {
27
+ display: block;
28
+ text-decoration: none;
29
+ color: #777;
30
+ background: #fff;
31
+ padding: 5px;
32
+ border: 1px solid #ccc;
33
+ border-bottom: 0;
34
+ margin: 0;
35
+ position: relative;
36
+ line-height: 18px;
37
+ }
38
+
39
+ #menu li:hover ul {
40
+ display: block;
41
+ }
@@ -0,0 +1,28 @@
1
+ body {
2
+ background-color: #fff;
3
+ color: #333;
4
+ font-family: verdana, arial, helvetica, sans-serif;
5
+ font-size: 13px;
6
+ line-height: 18px; }
7
+
8
+ p, ol, ul, td {
9
+ font-family: verdana, arial, helvetica, sans-serif;
10
+ font-size: 13px;
11
+ line-height: 18px; }
12
+
13
+ pre {
14
+ background-color: #eee;
15
+ padding: 10px;
16
+ font-size: 11px; }
17
+
18
+ a {
19
+ color: #000;
20
+ &:visited {
21
+ color: #666; }
22
+ &:hover {
23
+ color: #fff;
24
+ background-color: #000; } }
25
+
26
+ div {
27
+ &.field, &.actions {
28
+ margin-bottom: 10px; } }
@@ -0,0 +1,16 @@
1
+ table tbody tr:nth-child(odd), .impar {
2
+ background-color: #f3f3f3;
3
+ }
4
+
5
+ table {
6
+ border-spacing: 1px;
7
+ width: 100%;
8
+ }
9
+
10
+ th {
11
+ text-align: left;
12
+ }
13
+
14
+ td {
15
+ padding-right: 15px;
16
+ }
@@ -0,0 +1,329 @@
1
+ /*
2
+
3
+ terrafirma1.0 by nodethirtythree design
4
+ http://www.nodethirtythree.com
5
+
6
+ */
7
+
8
+ * {
9
+ padding: 0px;
10
+ margin: 0px;
11
+ }
12
+
13
+ body {
14
+ background: #F9F9F7 url('<%= asset_data_uri('a1.gif') %>') repeat-x;
15
+ font-size: 11px;
16
+ font-family: "trebuchet ms", helvetica, sans-serif;
17
+ color: #8C8C73;
18
+ line-height: 18px;
19
+ }
20
+
21
+ form { font-size: 1.2em }
22
+
23
+ a, a:visited {
24
+ color: #FF7800;
25
+ text-decoration: underline;
26
+ }
27
+
28
+
29
+ sup {
30
+ font-size: 0.5em;
31
+ }
32
+
33
+
34
+ p {
35
+ margin-bottom: 14px;
36
+ text-align: justify;
37
+ }
38
+
39
+ img.picA {
40
+ position: relative;
41
+ top: -2px;
42
+ background: url('<%= asset_data_uri('a47.gif') %>') no-repeat;
43
+ width: 76px;
44
+ height: 74px;
45
+ padding: 8px;
46
+ }
47
+
48
+ img.picB {
49
+ position: relative;
50
+ top: -2px;
51
+ background: url('<%= asset_data_uri('a26.gif') %>') no-repeat;
52
+ width: 146px;
53
+ height: 75px;
54
+ padding: 7px;
55
+ }
56
+
57
+ img.floatleft {
58
+ float: left;
59
+ margin: 0px 14px 3px 0px;
60
+ }
61
+
62
+
63
+ ul.linklist {
64
+ list-style: none;
65
+ }
66
+
67
+ ul.linklist li {
68
+ border-top: solid 1px #EEEEEE;
69
+ padding-top: 5px;
70
+ margin: 5px 0px 0px 0px;
71
+ }
72
+
73
+ ul.linklist li.first {
74
+ border-top: 0px;
75
+ margin-top: 0px;
76
+ padding-top: 0px;
77
+ }
78
+
79
+ #upbg {
80
+ position: absolute;
81
+ top: 0px;
82
+ left: 0px;
83
+ background: #fff url('<%= asset_data_uri('upbg.gif') %>') no-repeat;
84
+ width: 747px;
85
+ height: 264px;
86
+ z-index: 1;
87
+ }
88
+
89
+ #outer {
90
+ position: relative;
91
+ width: 747px;
92
+ margin: 0 auto;
93
+ background: #fff url('<%= asset_data_uri('abg.gif') %>') repeat-y;
94
+ }
95
+
96
+ #inner {
97
+ position: relative;
98
+ padding: 13px 30px 13px 30px;
99
+ z-index: 2;
100
+ }
101
+
102
+ #header {
103
+ position: absolute;
104
+ background: #FF7800 url('<%= asset_data_uri('logo_uenf_fundo.png') %>');
105
+ width: 212px;
106
+ height: 92px;
107
+ color: #fff;
108
+ padding-left: 8px;
109
+ }
110
+
111
+ #header span {
112
+ font-weight: normal;
113
+ }
114
+
115
+ #header h1 {
116
+ position: absolute;
117
+ font-size: 16px;
118
+ letter-spacing: -1px;
119
+ top: 43px;
120
+ height: 92px;
121
+ text-align: center;
122
+ width: 212px;
123
+ }
124
+
125
+ #header h2 {
126
+ margin-top: 76px;
127
+ font-size: 12px;
128
+ font-weight: normal;
129
+ color: #FCE2CA;
130
+
131
+ font-weight: bold;
132
+ text-align: center;
133
+ }
134
+
135
+ #header sup {
136
+ color: #FCE2CA;
137
+ }
138
+
139
+ #splash {
140
+ position: absolute;
141
+ right: 30px;
142
+ background: #EAEAE2 url('<%= asset_data_uri('splash.png') %>') no-repeat;
143
+ width: 458px;
144
+ height: 92px;
145
+ }
146
+
147
+ #menu {
148
+ position: relative;
149
+ background: #46461F url('<%= asset_data_uri('a16.gif') %>') repeat-x;
150
+ height: 67px;
151
+ padding: 0px 20px 0px 5px;
152
+ margin: 98px 0px 0px 0px;
153
+ }
154
+
155
+ #menu ul {
156
+ }
157
+
158
+ #menu ul li {
159
+ display: inline;
160
+ line-height: 52px;
161
+ padding-left: 3px;
162
+ }
163
+
164
+ #menu ul li.first {
165
+ border-left: 0px;
166
+ }
167
+
168
+ #menu ul li a {
169
+ background-color: transparent;
170
+ background-repeat: repeat-x;
171
+ padding: 8px 12px 8px 12px;
172
+ font-size: 12px;
173
+ color: #fff;
174
+ font-weight: bold;
175
+ }
176
+
177
+ #menu ul li a:hover
178
+ {
179
+ background: #fff url('<%= asset_data_uri('a18.gif') %>') repeat-x top;
180
+ color: #4A4A24;
181
+ text-decoration: none;
182
+ }
183
+
184
+ #date
185
+ {
186
+ position: absolute;
187
+ top: 0px;
188
+ line-height: 52px;
189
+ color: #BDBDA2;
190
+ right: 30px;
191
+ font-weight: bold;
192
+ font-size: 12px;
193
+ }
194
+
195
+ #date #usuario
196
+ {
197
+ color: white;
198
+ }
199
+
200
+ #secondarycontent
201
+ {
202
+ position: relative;
203
+ width: 180px;
204
+ float: right;
205
+ }
206
+
207
+ #secondarycontent h3
208
+ {
209
+ position: relative;
210
+ top: 4px;
211
+ font-size: 16px;
212
+ line-height: 25px;
213
+ color: #656551;
214
+ letter-spacing: -1px;
215
+ background: url('<%= asset_data_uri('a22.gif') %>') bottom repeat-x;
216
+ padding: 0px 0px 10px 10px;
217
+ margin-bottom: 20px;
218
+ }
219
+
220
+ #secondarycontent .content
221
+ {
222
+ padding: 0px 10px 0px 10px;
223
+ margin-bottom: 20px;
224
+ }
225
+
226
+ #primarycontent
227
+ {
228
+
229
+ width: 688px;
230
+
231
+ }
232
+
233
+ #primarycontent h3
234
+ {
235
+ position: relative;
236
+ top: 4px;
237
+ font-size: 18px;
238
+ line-height: 25px;
239
+ color: #656551;
240
+ letter-spacing: -1px;
241
+ background: url('<%= asset_data_uri('a22.gif') %>') bottom repeat-x;
242
+ padding: 0px 0px 10px 15px;
243
+ margin-bottom: 20px;
244
+ }
245
+
246
+ #primarycontent .content
247
+ {
248
+ padding: 0px 15px 0px 15px;
249
+ margin-bottom: 20px;
250
+ }
251
+
252
+ #primarycontent .post
253
+ {
254
+ margin-bottom: 30px;
255
+ }
256
+
257
+ #primarycontent .post .header
258
+ {
259
+ position: relative;
260
+ }
261
+
262
+ #primarycontent .post .date
263
+ {
264
+ position: absolute;
265
+ right: 15px;
266
+ top: 0px;
267
+ line-height: 35px;
268
+ color: #AFAFA4;
269
+ font-weight: bold;
270
+ }
271
+
272
+ #primarycontent .post .content
273
+ {
274
+ margin-bottom: 0px;
275
+ }
276
+
277
+ #primarycontent .post .footer
278
+ {
279
+ position: relative;
280
+ top: -10px;
281
+ background: url('<%= asset_data_uri('a33.gif') %>') repeat-x;
282
+ height: 64px;
283
+ }
284
+
285
+ #primarycontent .post .footer ul
286
+ {
287
+ list-style: none;
288
+ position: absolute;
289
+ right: 15px;
290
+ bottom: 15px;
291
+ }
292
+
293
+ #primarycontent .post .footer ul li
294
+ {
295
+ display: inline;
296
+ line-height: 14px;
297
+ padding-left: 17px;
298
+ margin-left: 25px;
299
+ background-repeat: no-repeat;
300
+ background-position: 0px 2px;
301
+ }
302
+
303
+ #primarycontent .post .footer ul li.printerfriendly
304
+ {
305
+ background-image: url('<%= asset_data_uri('a41.gif') %>');
306
+ }
307
+
308
+ #primarycontent .post .footer ul li.comments
309
+ {
310
+ background-image: url('<%= asset_data_uri('a36.gif') %>');
311
+ }
312
+
313
+ #primarycontent .post .footer ul li.readmore
314
+ {
315
+ background-image: url('<%= asset_data_uri('a38.gif') %>');
316
+ }
317
+
318
+ #rodape
319
+ {
320
+ position: relative;
321
+ clear: both;
322
+ height: 66px;
323
+ text-align: center;
324
+ line-height: 66px;
325
+ background-image: url('<%= asset_data_uri('a50.gif') %>');
326
+ color: #A8A88D;
327
+ font-style: normal;
328
+ line-height: 20px;
329
+ }
@@ -0,0 +1,14 @@
1
+ #date {
2
+ position: absolute;
3
+ top: 0px;
4
+ line-height: 52px;
5
+ color: #BDBDA2;
6
+ right: 30px;
7
+ font-weight: bold;
8
+ font-size: 12px;
9
+ }
10
+
11
+ #date #usuario {
12
+ color: white;
13
+ margin-right: 10px;
14
+ }
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require_tree './uenf_layout'
3
+ */
@@ -0,0 +1,9 @@
1
+ <address>
2
+ <% if defined? APP_VERSION %>
3
+ <%= UenfLayout.config.nome_sistema %>, versão <%= APP_VERSION %>.
4
+ <% end %>
5
+ <br>
6
+ <a href="http://www.uenf.br"><acronym title="Universidade Estadual do Norte Fluminense Darcy Ribeiro">UENF</acronym></a>/<acronym title="Diretoria de Informação e Comunicação">DIC</acronym>/<acronym title="Gerência de Informação">GINFO</acronym>/Desenvolvimento, 2012 -
7
+ Contatos do site: (22) 2739-7232, <a href="mailto:desenv@uenf.br">desenv@uenf.br</a><br/>
8
+ <small><a href="http://www.oswd.org/design/preview/id/3557">Design</a> by <a href="http://www.nodethirtythree.com/">Node Thirty Three</a></small>
9
+ </address>
@@ -0,0 +1,2 @@
1
+ %h1= UenfLayout.config.nome_sistema
2
+ %h2= UenfLayout.config.setor
@@ -0,0 +1,16 @@
1
+ module UenfLayout
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+
7
+ def self.config
8
+ @@config ||= UenfLayout::Configuration.new
9
+ yield @@config if block_given?
10
+ @@config
11
+ end
12
+
13
+ class Configuration
14
+ attr_accessor :nome_sistema, :setor
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,99 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: uenf_layout
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Rodrigo Manhães
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-07-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.0'
30
+ description: Layout dos sistemas UENF.
31
+ email: rmanhaes@gmail.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/uenf_layout.rb
37
+ - app/views/layouts/_footer.html.erb
38
+ - app/views/layouts/_header.html.haml
39
+ - app/assets/images/a41.gif
40
+ - app/assets/images/a1.gif
41
+ - app/assets/images/logo_uenf_fundo.png
42
+ - app/assets/images/a38.gif
43
+ - app/assets/images/a36.gif
44
+ - app/assets/images/a18.gif
45
+ - app/assets/images/spacer.gif
46
+ - app/assets/images/rails_powered.gif
47
+ - app/assets/images/a47.gif
48
+ - app/assets/images/a33.gif
49
+ - app/assets/images/logo_uenf.gif
50
+ - app/assets/images/splash.png
51
+ - app/assets/images/a22.gif
52
+ - app/assets/images/rails_1.png
53
+ - app/assets/images/abg.gif
54
+ - app/assets/images/a26.gif
55
+ - app/assets/images/rails.png
56
+ - app/assets/images/upbg.gif
57
+ - app/assets/images/logout.png
58
+ - app/assets/images/a16.gif
59
+ - app/assets/images/a50.gif
60
+ - app/assets/images/a8.gif
61
+ - app/assets/stylesheets/uenf_layout.css
62
+ - app/assets/stylesheets/uenf_layout/user.css
63
+ - app/assets/stylesheets/uenf_layout/formtastic_changes.css
64
+ - app/assets/stylesheets/uenf_layout/form.css
65
+ - app/assets/stylesheets/uenf_layout/flash.css
66
+ - app/assets/stylesheets/uenf_layout/scaffolds.css.scss
67
+ - app/assets/stylesheets/uenf_layout/login.css
68
+ - app/assets/stylesheets/uenf_layout/table.css
69
+ - app/assets/stylesheets/uenf_layout/cocoon.css
70
+ - app/assets/stylesheets/uenf_layout/terrafirma-adaptado.css.erb
71
+ - app/assets/stylesheets/uenf_layout/menus.css
72
+ - app/assets/stylesheets/uenf_layout/address.css
73
+ - app/assets/javascripts/mascaras.js
74
+ homepage:
75
+ licenses: []
76
+ post_install_message:
77
+ rdoc_options:
78
+ - --charset=UTF-8
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ! '>='
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ requirements: []
94
+ rubyforge_project:
95
+ rubygems_version: 1.8.23
96
+ signing_key:
97
+ specification_version: 3
98
+ summary: Layout dos sistemas UENF
99
+ test_files: []