pwnstyles_rails 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.14
1
+ 0.1.15
@@ -78,6 +78,15 @@ input[type=submit], input[type=button], button, a.button {
78
78
  from(darken($color-button-color, 1%)),
79
79
  to(lighten($color-button-color, 2%)));
80
80
  }
81
+
82
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
83
+ -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
84
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
85
+ &.emphasized {
86
+ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
87
+ -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
88
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
89
+ }
81
90
 
82
91
  img {
83
92
  -webkit-filter: grayscale(0.33);
@@ -96,15 +105,15 @@ input[type=submit], input[type=button], button, a.button {
96
105
  border-color: $color-button-active-border-color;
97
106
  }
98
107
 
99
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
100
108
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
101
109
  -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
110
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
102
111
  &.emphasized {
103
112
  text-shadow: 0 1px rgba(0, 0, 0, 0.3);
104
113
 
105
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
106
114
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
107
115
  -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
116
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
108
117
  }
109
118
 
110
119
  img {
@@ -1,11 +1,12 @@
1
1
  // Include in an ul or ol to make it a two-level menu.
2
- @mixin menu-list($hover-color: $menu-hover-color, $last-item-right: false) {
2
+ @mixin menu-list($hover-color, $hover-text-color, $border-color,
3
+ $last-item-right: false) {
3
4
  list-style: none;
4
5
 
5
6
  // Note: using nth-child(n) to get a more specific selector than the
6
7
  // one for striped background in generic/_lists.css.scss
7
8
  li:nth-child(n) {
8
- background-color: inherit;
9
+ background-color: inherit;
9
10
  }
10
11
 
11
12
  > li {
@@ -17,28 +18,39 @@
17
18
  > ol, > ul {
18
19
  display: none;
19
20
  background-color: inherit;
20
- border: 1px solid $hover-color;
21
+ border: 1px solid $border-color;
21
22
  position: absolute;
22
23
  z-index: 5;
24
+
25
+ -webkit-box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1);
26
+ -moz-box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1);
27
+ box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1);
23
28
  }
24
29
  }
25
30
  > li:hover {
26
- > a {
27
- background-color: $hover-color;
28
- }
29
31
  > ol, > ul {
30
32
  display: block;
31
33
  }
32
34
  }
35
+ li:hover > a {
36
+ background-color: $hover-color;
37
+ color: $hover-text-color;
38
+ img {
39
+ -webkit-filter: grayscale(0);
40
+ }
41
+ }
33
42
 
34
43
  a {
35
44
  display: block;
36
45
  padding: 0 0.5em;
37
46
  text-decoration: none;
38
47
  color: inherit;
48
+ img {
49
+ -webkit-filter: grayscale(0.33);
50
+ }
39
51
  }
40
- a:hover, a:active {
41
- background-color: $hover-color;
52
+ a:visited {
53
+ color: inherit;
42
54
  }
43
55
  li > img {
44
56
  display: block;
@@ -1,6 +1,6 @@
1
1
  header {
2
2
  background-color: $header-background-color;
3
- border-bottom: 1px solid $header-border-color;
3
+ border-bottom: 1px solid $header-border-color;
4
4
 
5
5
  hgroup {
6
6
  width: $page-width;
@@ -55,7 +55,10 @@ header {
55
55
  height: 100%;
56
56
  }
57
57
  nav > ol {
58
- @include menu-list($menu-hover-color, $last-item-right: true);
58
+ @include menu-list($hover-color: $header-menu-hover-color,
59
+ $hover-text-color: $header-menu-hover-text-color,
60
+ $border-color: $header-border-color,
61
+ $last-item-right: true);
59
62
  background-color: $header-background-color;
60
63
 
61
64
  font-size: $header-menu-font-size;
@@ -12,16 +12,21 @@ $main-color3: adjust-hue($main-color1, 360 / $colors) !default;
12
12
  $main-color4: adjust-hue($main-color1, 360 / $colors) !default;
13
13
  $main-color5: adjust-hue($main-color1, 360 / $colors) !default;
14
14
 
15
- // Modules.
15
+ // Header.
16
16
  $header-background-color: change-color($main-color1,
17
- $saturation: 66%, $lightness: 88%) !default;
17
+ $saturation: 10%, $lightness: 95%) !default;
18
18
  $header-border-color: change-color($main-color1,
19
- $saturation: 66%, $lightness: 76%) !default;
19
+ $saturation: 10%, $lightness: 76%) !default;
20
20
  $header-title-color: change-color($main-color1,
21
21
  $saturation: 100%, $lightness: 1%) !default;
22
22
  $header-text-color: change-color($main-color1,
23
- $saturation: 100%, $lightness: 20%) !default;
23
+ $saturation: 10%, $lightness: 21%) !default;
24
+ $header-menu-hover-color: change-color($main-color1,
25
+ $saturation: 10%, $lightness: 86%) !default;
26
+ $header-menu-hover-text-color: change-color($main-color1,
27
+ $saturation: 10%, $lightness: 0%) !default;
24
28
 
29
+ // Footer.
25
30
  $footer-border-color: change-color($main-color1,
26
31
  $saturation: 66%, $lightness: 76%) !default;
27
32
  $footer-text-color: change-color($main-color1,
@@ -79,13 +84,9 @@ $input-focus-border-color: change-color($input-base-color,
79
84
  $input-focus-shadow-color: change-color($input-base-color,
80
85
  $saturation: 66%, $lightness: 88%) !default;
81
86
 
82
- $menu-hover-color: change-color($main-color1, $saturation: 66%, $lightness: 76%)
83
- !default;
84
-
85
- $link-color: change-color($main-color1, $saturation: 66%, $lightness: 16%)
87
+ $link-color: change-color($main-color1, $saturation: 60%, $lightness: 40%)
86
88
  !default;
87
89
 
88
-
89
90
  // Text.
90
91
  $heading-main-color: change-color($main-color1, $saturation: 50%) !default;
91
92
  $h1-text-color: change-color($heading-main-color,
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "pwnstyles_rails"
8
- s.version = "0.1.14"
8
+ s.version = "0.1.15"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Victor Costan"]
12
- s.date = "2012-02-12"
12
+ s.date = "2012-02-13"
13
13
  s.description = "Included CSS was designed for reuse across pwnb.us apps."
14
14
  s.email = "victor@costan.us"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwnstyles_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
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-02-12 00:00:00.000000000 Z
12
+ date: 2012-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &19134820 !ruby/object:Gem::Requirement
16
+ requirement: &18328480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *19134820
24
+ version_requirements: *18328480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sass-rails
27
- requirement: &19133020 !ruby/object:Gem::Requirement
27
+ requirement: &18326000 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.2.4
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *19133020
35
+ version_requirements: *18326000
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: shoulda
38
- requirement: &19131300 !ruby/object:Gem::Requirement
38
+ requirement: &18324460 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *19131300
46
+ version_requirements: *18324460
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &19146340 !ruby/object:Gem::Requirement
49
+ requirement: &18322280 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *19146340
57
+ version_requirements: *18322280
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: jeweler
60
- requirement: &19145160 !ruby/object:Gem::Requirement
60
+ requirement: &18321000 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.8.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *19145160
68
+ version_requirements: *18321000
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rcov
71
- requirement: &19144240 !ruby/object:Gem::Requirement
71
+ requirement: &18336020 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *19144240
79
+ version_requirements: *18336020
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: simplecov
82
- requirement: &19143580 !ruby/object:Gem::Requirement
82
+ requirement: &18333800 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *19143580
90
+ version_requirements: *18333800
91
91
  description: Included CSS was designed for reuse across pwnb.us apps.
92
92
  email: victor@costan.us
93
93
  executables: []
@@ -153,7 +153,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  segments:
155
155
  - 0
156
- hash: 2047785638113036164
156
+ hash: -548712488570860705
157
157
  required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  none: false
159
159
  requirements: