pwnstyles_rails 0.1.20 → 0.1.21

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,12 +1,12 @@
1
1
  source :rubygems
2
2
 
3
- gem 'rails', '>= 3.2.0'
4
- gem 'sass-rails', '>= 3.2.4'
3
+ gem 'rails', '>= 3.2.3'
4
+ gem 'sass-rails', '>= 3.2.5'
5
5
 
6
6
  group :development do
7
7
  gem 'shoulda', '>= 0'
8
- gem 'bundler', '~> 1.0.0'
9
- gem 'jeweler', '>= 1.8.0'
8
+ gem 'bundler', '>= 1.1.0'
9
+ gem 'jeweler', '>= 1.8.3'
10
10
  gem 'rcov', '>= 0', :platform => :mri_18
11
11
  gem 'simplecov', '>= 0', :platform => :mri_19
12
12
  end
data/Gemfile.lock CHANGED
@@ -1,31 +1,31 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- actionmailer (3.2.1)
5
- actionpack (= 3.2.1)
6
- mail (~> 2.4.0)
7
- actionpack (3.2.1)
8
- activemodel (= 3.2.1)
9
- activesupport (= 3.2.1)
4
+ actionmailer (3.2.3)
5
+ actionpack (= 3.2.3)
6
+ mail (~> 2.4.4)
7
+ actionpack (3.2.3)
8
+ activemodel (= 3.2.3)
9
+ activesupport (= 3.2.3)
10
10
  builder (~> 3.0.0)
11
11
  erubis (~> 2.7.0)
12
12
  journey (~> 1.0.1)
13
13
  rack (~> 1.4.0)
14
- rack-cache (~> 1.1)
14
+ rack-cache (~> 1.2)
15
15
  rack-test (~> 0.6.1)
16
16
  sprockets (~> 2.1.2)
17
- activemodel (3.2.1)
18
- activesupport (= 3.2.1)
17
+ activemodel (3.2.3)
18
+ activesupport (= 3.2.3)
19
19
  builder (~> 3.0.0)
20
- activerecord (3.2.1)
21
- activemodel (= 3.2.1)
22
- activesupport (= 3.2.1)
23
- arel (~> 3.0.0)
20
+ activerecord (3.2.3)
21
+ activemodel (= 3.2.3)
22
+ activesupport (= 3.2.3)
23
+ arel (~> 3.0.2)
24
24
  tzinfo (~> 0.3.29)
25
- activeresource (3.2.1)
26
- activemodel (= 3.2.1)
27
- activesupport (= 3.2.1)
28
- activesupport (3.2.1)
25
+ activeresource (3.2.3)
26
+ activemodel (= 3.2.3)
27
+ activesupport (= 3.2.3)
28
+ activesupport (3.2.3)
29
29
  i18n (~> 0.6)
30
30
  multi_json (~> 1.0)
31
31
  arel (3.0.2)
@@ -41,31 +41,31 @@ GEM
41
41
  rdoc
42
42
  journey (1.0.3)
43
43
  json (1.6.5)
44
- mail (2.4.1)
44
+ mail (2.4.4)
45
45
  i18n (>= 0.4.0)
46
46
  mime-types (~> 1.16)
47
47
  treetop (~> 1.4.8)
48
- mime-types (1.17.2)
48
+ mime-types (1.18)
49
49
  multi_json (1.1.0)
50
50
  polyglot (0.3.3)
51
51
  rack (1.4.1)
52
- rack-cache (1.1)
52
+ rack-cache (1.2)
53
53
  rack (>= 0.4)
54
54
  rack-ssl (1.3.2)
55
55
  rack
56
56
  rack-test (0.6.1)
57
57
  rack (>= 1.0)
58
- rails (3.2.1)
59
- actionmailer (= 3.2.1)
60
- actionpack (= 3.2.1)
61
- activerecord (= 3.2.1)
62
- activeresource (= 3.2.1)
63
- activesupport (= 3.2.1)
58
+ rails (3.2.3)
59
+ actionmailer (= 3.2.3)
60
+ actionpack (= 3.2.3)
61
+ activerecord (= 3.2.3)
62
+ activeresource (= 3.2.3)
63
+ activesupport (= 3.2.3)
64
64
  bundler (~> 1.0)
65
- railties (= 3.2.1)
66
- railties (3.2.1)
67
- actionpack (= 3.2.1)
68
- activesupport (= 3.2.1)
65
+ railties (= 3.2.3)
66
+ railties (3.2.3)
67
+ actionpack (= 3.2.3)
68
+ activesupport (= 3.2.3)
69
69
  rack-ssl (~> 1.3.2)
70
70
  rake (>= 0.8.7)
71
71
  rdoc (~> 3.4)
@@ -75,7 +75,7 @@ GEM
75
75
  rdoc (3.12)
76
76
  json (~> 1.4)
77
77
  sass (3.1.15)
78
- sass-rails (3.2.4)
78
+ sass-rails (3.2.5)
79
79
  railties (~> 3.2.0)
80
80
  sass (>= 3.1.10)
81
81
  tilt (~> 1.3)
@@ -93,16 +93,16 @@ GEM
93
93
  treetop (1.4.10)
94
94
  polyglot
95
95
  polyglot (>= 0.3.1)
96
- tzinfo (0.3.31)
96
+ tzinfo (0.3.33)
97
97
 
98
98
  PLATFORMS
99
99
  ruby
100
100
 
101
101
  DEPENDENCIES
102
- bundler (~> 1.0.0)
103
- jeweler (>= 1.8.0)
104
- rails (>= 3.2.0)
102
+ bundler (>= 1.1.0)
103
+ jeweler (>= 1.8.3)
104
+ rails (>= 3.2.3)
105
105
  rcov
106
- sass-rails (>= 3.2.4)
106
+ sass-rails (>= 3.2.5)
107
107
  shoulda
108
108
  simplecov
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.20
1
+ 0.1.21
@@ -0,0 +1,4 @@
1
+ @import 'pwnplus/hacks.css.scss';
2
+ @import 'pwnplus/buttons.css.scss';
3
+ @import 'pwnplus/form_fields.css.scss';
4
+ @import 'pwnplus/menu_bar.css.scss';
@@ -1,3 +1,5 @@
1
+ @import 'pwnplus.css.scss';
2
+
1
3
  @import 'vars/color_scheme.css.scss';
2
4
  @import 'vars/fonts.css.scss';
3
5
  @import 'vars/layout_sizes.css.scss';
@@ -9,8 +11,6 @@
9
11
  @import 'generic/images.css.scss';
10
12
  @import 'generic/inputs.css.scss';
11
13
  @import 'generic/links.css.scss';
12
- @import 'generic/lists.css.scss';
13
- @import 'generic/menu.css.scss';
14
14
  @import 'generic/pwnfx.css.scss';
15
15
  @import 'generic/tables.css.scss';
16
16
  @import 'generic/text.css.scss';
@@ -1,128 +1,7 @@
1
1
  input[type=submit], input[type=button], button, a.button {
2
- display: inline-block;
2
+ @include pwnplus-subdued-button($button-base-color);
3
3
 
4
- margin: 0;
5
- padding: 0.1em 1ex;
6
- border: 1px solid $button-border-color;
7
4
  &.emphasized {
8
- border-color: $color-button-border-color;
9
- }
10
-
11
- -moz-border-radius: 2px;
12
- -webkit-border-radius: 2px;
13
- border-radius: 2px;
14
-
15
- color: $button-text-color;
16
- &.emphasized {
17
- color: $color-button-text-color;
18
- text-shadow: 0 1px rgba(0, 0, 0, 0.1);
19
- }
20
- font-size: 1.21em;
21
- line-height: 1.35em;
22
- text-decoration: none;
23
- text-overflow: ellipsis;
24
-
25
- background-color: $button-color;
26
- background: -webkit-gradient(linear, 0% 40%, 0% 70%,
27
- from(darken($button-color, 1%)), to(lighten($button-color, 1%)));
28
- background: -moz-gradient(linear, 0% 40%, 0% 70%,
29
- from(darken($button-color, 1%)), to(lighten($button-color, 1%)));
30
- &.emphasized {
31
- background-color: $color-button-color;
32
- background: -webkit-gradient(linear, 0% 40%, 0% 70%,
33
- from(darken($color-button-color, 1%)),
34
- to(lighten($color-button-color, 1%)));
35
- background: -moz-gradient(linear, 0% 40%, 0% 70%,
36
- from(darken($color-button-color, 1%)),
37
- to(lighten($color-button-color, 1%)));
38
- }
39
-
40
- -webkit-transition: all .218s;
41
- -moz-transition: all .218s;
42
- transition: all .218s;
43
-
44
- img {
45
- -webkit-filter: grayscale(0.66);
46
- }
47
- &.emphasized {
48
- img {
49
- -webkit-filter: brightness(-0.2);
50
- }
51
- }
52
-
53
- &:visited {
54
- color: $button-text-color;
55
- &.emphasized {
56
- color: $color-button-text-color;
57
- }
58
- }
59
-
60
- &:hover {
61
- color: $button-hover-text-color;
62
- border-color: $button-hover-border-color;
63
- &.emphasized {
64
- color: $color-button-hover-text-color;
65
- border-color: $color-button-hover-border-color;
66
- text-shadow: 0 1px rgba(0, 0, 0, 0.3);
67
- }
68
-
69
- background: -webkit-gradient(linear, 0% 40%, 0% 70%,
70
- from(darken($button-color, 1%)), to(lighten($button-color, 2%)));
71
- background: -moz-gradient(linear, 0% 40%, 0% 70%,
72
- from(darken($button-color, 1%)), to(lighten($button-color, 2%)));
73
- &.emphasized {
74
- background: -webkit-gradient(linear, 0% 40%, 0% 70%,
75
- from(darken($color-button-color, 1%)),
76
- to(lighten($color-button-color, 2%)));
77
- background: -moz-gradient(linear, 0% 40%, 0% 70%,
78
- from(darken($color-button-color, 1%)),
79
- to(lighten($color-button-color, 2%)));
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
- }
90
-
91
- img {
92
- -webkit-filter: grayscale(0.33);
93
- }
94
- &.emphasized {
95
- img {
96
- -webkit-filter: brightness(-0.1);
97
- }
98
- }
99
- }
100
- &:active {
101
- color: $button-active-text-color;
102
- border-color: $button-active-border-color;
103
- &.emphasized {
104
- color: $color-button-active-text-color;
105
- border-color: $color-button-active-border-color;
106
- }
107
-
108
- -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
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);
111
- &.emphasized {
112
- text-shadow: 0 1px rgba(0, 0, 0, 0.3);
113
-
114
- -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
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);
117
- }
118
-
119
- img {
120
- -webkit-filter: grayscale(0);
121
- }
122
- &.emphasized {
123
- img {
124
- -webkit-filter: brightness(0);
125
- }
126
- }
5
+ @include pwnplus-emphasized-button($color-button-base-color);
127
6
  }
128
7
  }
@@ -23,7 +23,7 @@ body {
23
23
  -webkit-box-flex: 1;
24
24
  box-flex: 1;
25
25
  }
26
- header, footer {
26
+ #header, #footer {
27
27
  -moz-box-flex: 0;
28
28
  -webkit-box-flex: 0;
29
29
  box-flex: 0;
@@ -1,42 +1,47 @@
1
- footer {
1
+ #footer {
2
2
  margin: 0;
3
3
  border-top: 6px solid $footer-border-color;
4
4
 
5
5
  color: $footer-text-color;
6
6
  font-size: 11pt;
7
- }
8
- footer nav {
9
- margin: 0 auto;
10
- padding: 5px 8px 0 8px;
11
- width: $page-width;
12
- }
13
- footer p {
14
- margin: 0;
15
- }
16
- footer p.copyright img {
17
- float: left;
18
- margin-right: 5px;
19
- }
20
- footer p.copyright {
21
- line-height: 16px;
22
- }
23
- footer p.design {
24
- font-size: 9pt;
25
- display: block;
26
- padding: 36px 0 4px 0;
27
- text-align: center;
28
- }
29
- footer a {
30
- color: $footer-text-color;
31
- }
32
- footer nav ul {
33
- margin: 0;
34
- padding: 0 0 8px 0;
35
- }
36
- footer nav ul li {
37
- display: inline-block;
38
- }
39
- footer nav ul a {
40
- display: inline-block;
41
- padding: 5px;
7
+
8
+ nav {
9
+ margin: 0 auto;
10
+ padding: 5px 8px 0 8px;
11
+ width: $page-width;
12
+ ul {
13
+ margin: 0;
14
+ padding: 0 0 8px 0;
15
+ li {
16
+ display: inline-block;
17
+ }
18
+ a {
19
+ display: inline-block;
20
+ padding: 5px;
21
+ }
22
+ }
23
+ }
24
+
25
+ p {
26
+ margin: 0;
27
+ }
28
+
29
+ p.copyright {
30
+ line-height: 16px;
31
+ img {
32
+ float: left;
33
+ margin-right: 5px;
34
+ }
35
+ }
36
+
37
+ p.design {
38
+ font-size: 9pt;
39
+ display: block;
40
+ padding: 36px 0 4px 0;
41
+ text-align: center;
42
+ }
43
+
44
+ a {
45
+ color: $footer-text-color;
46
+ }
42
47
  }
@@ -1,75 +1,59 @@
1
- header {
1
+ #header {
2
2
  background-color: $header-background-color;
3
3
  border-bottom: 1px solid $header-border-color;
4
-
5
- hgroup {
4
+
5
+ #main-menu {
6
6
  width: $page-width;
7
- height: $header-height;
8
- margin: 0 auto;
9
- position: relative;
7
+ margin: 0 auto;
10
8
 
11
9
  color: $header-text-color;
12
10
  font-family: $heading-font;
13
- font-weight: bold;
11
+ vertical-align: baseline;
12
+
13
+ > ol {
14
+ @include pwnplus-menu-bar(
15
+ $bar-color: $header-background-color,
16
+ $text-color: $header-text-color,
17
+ $border-color: $header-border-color,
18
+ $hover-bar-color: $header-menu-hover-color,
19
+ $hover-text-color: $header-menu-hover-text-color,
20
+ $last-item-right: true
21
+ );
22
+
23
+ font-size: $header-menu-font-size;
24
+
25
+ > li > a:after {
26
+ content: "\FEFF";
27
+ display: inline-block;
28
+ font-size: ($header-height - 4px);
29
+ line-height: $header-height;
30
+ width: 0px;
31
+ }
32
+ }
14
33
  }
15
34
 
16
35
  h1 {
17
36
  display: inline-block;
18
- overflow: hidden;
19
37
  margin: 0;
38
+ padding: 0;
20
39
 
21
40
  font-size: ($header-height - 4px);
22
41
  line-height: $header-height;
23
42
  font-variant: small-caps;
24
43
  color: $header-title-color;
25
-
26
- vertical-align: top;
27
44
 
28
45
  img {
29
- display: block;
30
- padding: 2px 0;
31
- float: left;
46
+ display: inline-block;
47
+ margin: auto 0;
32
48
  }
33
49
 
34
50
  span {
35
- display: block;
36
- padding-right: 0.5em;
37
- float: left;
38
- height: 100%;
51
+ line-height: $header-height;
39
52
  }
40
53
 
41
54
  // Padding between the image and the title.
42
55
  img + span {
43
- padding-left: 0.5em;
44
- }
45
-
46
- a, a:visited, a:hover, a:active {
47
- color: inherit;
48
- text-decoration: none;
56
+ padding-left: 0.2em;
49
57
  }
50
58
  }
51
-
52
- nav {
53
- display: inline-block;
54
- font-weight: normal;
55
- height: 100%;
56
- }
57
- nav > ol {
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);
62
- background-color: $header-background-color;
63
-
64
- font-size: $header-menu-font-size;
65
- line-height: $header-menu-line-height;
66
- height: 100%;
67
- > li > a {
68
- padding-top: $header-height - $header-menu-line-height;
69
- height: $header-menu-line-height;
70
- }
71
- }
72
- nav a img {
73
- vertical-align: baseline;
74
- }
75
59
  }
@@ -0,0 +1,136 @@
1
+ // Low-level function for a Google Plus-style button.
2
+ @mixin pwnplus-button(
3
+ $color,
4
+ $border-color,
5
+ $text-color,
6
+ $hover-text-color: $text-color,
7
+ $hover-border-color: $border-color,
8
+ $active-text-color: $text-color,
9
+ $active-border-color: $hover-border-color,
10
+ $subdued: true
11
+ ) {
12
+ display: inline-block;
13
+
14
+ margin: 0;
15
+ padding: 0.1em 1ex;
16
+ border: 1px solid $border-color;
17
+
18
+ -moz-border-radius: 2px;
19
+ -webkit-border-radius: 2px;
20
+ border-radius: 2px;
21
+
22
+ color: $text-color;
23
+ @if not $subdued {
24
+ text-shadow: 0 1px rgba(0, 0, 0, 0.1);
25
+ }
26
+ font-size: 1.21em;
27
+ line-height: 1.35em;
28
+ text-decoration: none;
29
+ text-overflow: ellipsis;
30
+
31
+ background-color: $color;
32
+ background: -webkit-gradient(linear, 0% 40%, 0% 70%,
33
+ from(darken($color, 1%)), to(lighten($color, 1%)));
34
+ background: -moz-gradient(linear, 0% 40%, 0% 70%,
35
+ from(darken($color, 1%)), to(lighten($color, 1%)));
36
+
37
+ -webkit-transition: all .218s;
38
+ -moz-transition: all .218s;
39
+ transition: all .218s;
40
+
41
+ @if $subdued {
42
+ img {
43
+ -webkit-filter: grayscale(0.66);
44
+ }
45
+ }
46
+ @if not $subdued {
47
+ img {
48
+ -webkit-filter: brightness(-0.2);
49
+ }
50
+ }
51
+
52
+ &:visited {
53
+ color: $text-color;
54
+ }
55
+
56
+ &:hover {
57
+ color: $hover-text-color;
58
+ border-color: $hover-border-color;
59
+ @if not $subdued {
60
+ text-shadow: 0 1px rgba(0, 0, 0, 0.3);
61
+ }
62
+
63
+ background: -webkit-gradient(linear, 0% 40%, 0% 70%,
64
+ from(darken($color, 1%)), to(lighten($color, 2%)));
65
+ background: -moz-gradient(linear, 0% 40%, 0% 70%,
66
+ from(darken($color, 1%)), to(lighten($color, 2%)));
67
+
68
+ @if $subdued {
69
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
70
+ -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
71
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
72
+
73
+ img {
74
+ -webkit-filter: grayscale(0.33);
75
+ }
76
+ }
77
+ @if not $subdued {
78
+ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
79
+ -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
80
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
81
+
82
+ img {
83
+ -webkit-filter: brightness(-0.1);
84
+ }
85
+ }
86
+ }
87
+ &:active {
88
+ color: $active-text-color;
89
+ border-color: $active-border-color;
90
+
91
+ @if $subdued {
92
+ -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
93
+ -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
94
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
95
+
96
+ img {
97
+ -webkit-filter: grayscale(0);
98
+ }
99
+ }
100
+ @if not $subdued {
101
+ text-shadow: 0 1px rgba(0, 0, 0, 0.3);
102
+
103
+ -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
104
+ -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
105
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
106
+
107
+ img {
108
+ -webkit-filter: brightness(0);
109
+ }
110
+ }
111
+ }
112
+ }
113
+
114
+ // Handy mixin for a gray-ish Google Plus-like button.
115
+ @mixin pwnplus-subdued-button($main-color) {
116
+ @include pwnplus-button(
117
+ $color: change-color($main-color, $saturation: 5%, $lightness: 95%),
118
+ $text-color: change-color($main-color, $saturation: 5%, $lightness: 43%),
119
+ $border-color: change-color($main-color, $saturation: 5%, $lightness: 86%),
120
+ $hover-border-color: change-color($main-color, $saturation: 5%,
121
+ $lightness: 78%),
122
+ $subdued: true
123
+ );
124
+ }
125
+
126
+ // Handy mixin for a colored Google Plus-like button.
127
+ @mixin pwnplus-emphasized-button($main-color) {
128
+ @include pwnplus-button(
129
+ $color: change-color($main-color, $saturation: 100%, $lightness: 36%),
130
+ $text-color: change-color($main-color, $saturation: 0%, $lightness: 100%),
131
+ $border-color: change-color($main-color, $saturation: 57%, $lightness: 32%),
132
+ $hover-border-color: change-color($main-color, $saturation: 100%,
133
+ $lightness: 22%),
134
+ $subdued: false
135
+ );
136
+ }