empresaula-assets 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,8 +2,13 @@
2
2
  @import empresaula/typography
3
3
  @import empresaula/buttons
4
4
  @import empresaula/forms
5
+ @import empresaula/tables
6
+ @import empresaula/menu
5
7
 
6
8
  +empresaula-typography
7
9
 
8
10
  form
9
11
  +empresaula-form
12
+
13
+ table
14
+ +empresaula-table
@@ -1,25 +1,29 @@
1
- @import "compass/css3/border-radius"
2
- @import "compass/css3/box-shadow"
3
- @import "compass/css3/text-shadow"
1
+ @import compass/css3/border-radius
2
+ @import compass/css3/box-shadow
3
+ @import compass/css3/text-shadow
4
+ @import compass/css3/images
4
5
 
5
- @mixin big-button($color: $dark-gray)
6
+ $default-button-color: darken($light-gray, 2%)
6
7
 
8
+ @mixin button($color: $default-button-color)
7
9
  display: inline-block
8
10
  text-decoration: none
9
- padding: 8px 20px
10
11
  background: $color
12
+
13
+ $top-color: lighten($color, 2%)
14
+ $bottom-color: darken($color, 2%)
15
+ +background-image(linear-gradient(top, $top-color, $bottom-color))
11
16
  cursor: pointer
12
17
 
13
- font-weight: bold
18
+ padding: 2px 6px
14
19
 
15
- @if lightness($color) > 50
20
+ @if saturation($color) < 60
16
21
  +single-text-shadow(lighten($color, 20%), 0px, 1px, 0px)
17
22
  color: $font-color
18
23
  @else
19
24
  +single-text-shadow(darken($color, 30%), 0px, -1px, 0px)
20
25
  color: #fff
21
26
 
22
- text-transform: uppercase
23
27
 
24
28
  +border-radius(3px)
25
29
 
@@ -27,8 +31,24 @@
27
31
  top: 1px solid lighten($color, 15%)
28
32
  bottom: 1px solid darken($color, 10%)
29
33
  &:hover
30
- background: lighten($color, 5%)
34
+ $hover-color: lighten($color, 5%)
35
+ background: $hover-color
36
+ $top-color: lighten($hover-color, 2%)
37
+ $bottom-color: darken($hover-color, 2%)
38
+ +background-image(linear-gradient(top, $top-color, $bottom-color))
31
39
  &:active
40
+ $active-color: $color
41
+ background: $active-color
42
+ $top-color: lighten($active-color, 2%)
43
+ $bottom-color: darken($active-color, 2%)
44
+ +background-image(linear-gradient(top, $top-color, $bottom-color))
32
45
  border: 1px solid darken($color, 15%)
33
- +single-box-shadow(rgba(0,0,0,0.3), 0px, 0px, 5px, 0px, inset)
34
- margin-right: 15px
46
+ +single-box-shadow(rgba(0,0,0,0.2), 0px, 1px, 3px, 0px, inset)
47
+
48
+ margin: 3px
49
+ font-weight: bold
50
+
51
+ @mixin big-button($color: $default-button-color)
52
+ +button($color)
53
+ padding: 8px 20px
54
+ text-transform: uppercase
@@ -0,0 +1,39 @@
1
+ @import "compass/utilities/general/clearfix"
2
+ @import "compass/typography/lists/horizontal-list"
3
+ @import "compass/css3/transition"
4
+
5
+ @mixin menu
6
+ background-color: $light-gray
7
+ +pie-clearfix
8
+ text-align: left
9
+ padding: 0px
10
+ margin: 0px
11
+
12
+ li
13
+ float: left
14
+
15
+ a
16
+ margin-right: 5px
17
+ float: left
18
+ text-decoration: none
19
+ font-weight: normal
20
+ +single-text-shadow(lighten($light-gray, 20%), 0px, 1px, 0px)
21
+ line-height: 55px
22
+ height: 50px
23
+ border-bottom: 5px solid transparent
24
+ color: $font-color
25
+ padding: 0px 10px
26
+ +single-transition(border-color, 0.6s)
27
+ font-size: 1.1em
28
+
29
+ li.selected a, a.selected
30
+ color: $light-red
31
+
32
+ a:hover, li.selected a, a.selected
33
+ border-color: $light-red
34
+ +single-text-shadow(lighten($light-red, 50%), 0px, 1px, 0px)
35
+ +single-transition(border-color, 0.4s)
36
+
37
+ a:active
38
+ padding-top: 1px
39
+ height: 49px
@@ -0,0 +1,24 @@
1
+ @import compass/css3/text-shadow
2
+ @import empresaula/buttons
3
+
4
+ $blueprint-table-header-color: $light-red
5
+ $blueprint-table-stripe-color: lighten($light-gray, 5%)
6
+
7
+ @mixin empresaula-table
8
+ @extend .striped
9
+ thead
10
+ th
11
+ font-weight: bold
12
+ color: #fff
13
+ $shadow-color: darken($blueprint-table-header-color, 25%)
14
+ +single-text-shadow($shadow-color, 0px, -1px, 0px)
15
+ td, th
16
+ padding: 5px 10px
17
+ tbody
18
+ background-color: #fff
19
+ td.options
20
+ white-space: nowrap
21
+ a
22
+ +button
23
+ &.delete
24
+ +button($light-red)
@@ -1,5 +1,5 @@
1
1
  module Empresaula
2
2
  module Assets
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: empresaula-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-27 00:00:00.000000000 Z
12
+ date: 2012-03-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &2152435960 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,15 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
24
+ version_requirements: *2152435960
30
25
  - !ruby/object:Gem::Dependency
31
26
  name: compass-rails
32
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &2152435020 !ruby/object:Gem::Requirement
33
28
  none: false
34
29
  requirements:
35
30
  - - ! '>='
@@ -37,15 +32,10 @@ dependencies:
37
32
  version: '0'
38
33
  type: :runtime
39
34
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
35
+ version_requirements: *2152435020
46
36
  - !ruby/object:Gem::Dependency
47
37
  name: jquery-rails
48
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &2152281000 !ruby/object:Gem::Requirement
49
39
  none: false
50
40
  requirements:
51
41
  - - ! '>='
@@ -53,15 +43,10 @@ dependencies:
53
43
  version: '0'
54
44
  type: :runtime
55
45
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
46
+ version_requirements: *2152281000
62
47
  - !ruby/object:Gem::Dependency
63
48
  name: rails
64
- requirement: !ruby/object:Gem::Requirement
49
+ requirement: &2152280180 !ruby/object:Gem::Requirement
65
50
  none: false
66
51
  requirements:
67
52
  - - ! '>='
@@ -69,12 +54,7 @@ dependencies:
69
54
  version: '0'
70
55
  type: :development
71
56
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
57
+ version_requirements: *2152280180
78
58
  description: Assets needed to build empresaula third-party apps
79
59
  email:
80
60
  - josepjaume@gmail.com
@@ -100,6 +80,8 @@ files:
100
80
  - app/assets/stylesheets/empresaula/_buttons.sass
101
81
  - app/assets/stylesheets/empresaula/_fonts.sass
102
82
  - app/assets/stylesheets/empresaula/_forms.sass
83
+ - app/assets/stylesheets/empresaula/_menu.sass
84
+ - app/assets/stylesheets/empresaula/_tables.sass
103
85
  - app/assets/stylesheets/empresaula/_typography.sass
104
86
  - app/assets/stylesheets/empresaula/_variables.sass
105
87
  - app/helpers/empresaula_helper.rb
@@ -120,15 +102,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
102
  - - ! '>='
121
103
  - !ruby/object:Gem::Version
122
104
  version: '0'
105
+ segments:
106
+ - 0
107
+ hash: 1444738267087633156
123
108
  required_rubygems_version: !ruby/object:Gem::Requirement
124
109
  none: false
125
110
  requirements:
126
111
  - - ! '>='
127
112
  - !ruby/object:Gem::Version
128
113
  version: '0'
114
+ segments:
115
+ - 0
116
+ hash: 1444738267087633156
129
117
  requirements: []
130
118
  rubyforge_project: empresaula-assets
131
- rubygems_version: 1.8.21
119
+ rubygems_version: 1.8.15
132
120
  signing_key:
133
121
  specification_version: 3
134
122
  summary: Assets needed to build empresaula third-party apps