concisecss 0.0.3 → 0.0.4

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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/javascripts/concisecss/close.js +4 -4
  4. data/app/assets/javascripts/concisecss/dropdown.js +30 -30
  5. data/app/assets/javascripts/concisecss/naver.js +348 -348
  6. data/app/assets/javascripts/concisecss/navigation.js +18 -18
  7. data/app/assets/javascripts/concisecss/non-responsive.js +46 -46
  8. data/app/assets/stylesheets/_defaults.scss +55 -58
  9. data/app/assets/stylesheets/base/_blockquotes.scss +32 -32
  10. data/app/assets/stylesheets/base/_container.scss +8 -8
  11. data/app/assets/stylesheets/base/_forms.scss +83 -81
  12. data/app/assets/stylesheets/base/_grid.scss +63 -59
  13. data/app/assets/stylesheets/base/_headings.scss +137 -134
  14. data/app/assets/stylesheets/base/_lists.scss +109 -109
  15. data/app/assets/stylesheets/base/_main.scss +28 -25
  16. data/app/assets/stylesheets/base/_selection.scss +18 -18
  17. data/app/assets/stylesheets/base/_tables.scss +78 -76
  18. data/app/assets/stylesheets/base/_type.scss +50 -50
  19. data/app/assets/stylesheets/concise.scss +7 -12
  20. data/app/assets/stylesheets/generic/_clearfix.scss +9 -9
  21. data/app/assets/stylesheets/generic/_conditional.scss +111 -107
  22. data/app/assets/stylesheets/generic/_helper.scss +81 -81
  23. data/app/assets/stylesheets/generic/_mixins.scss +73 -66
  24. data/app/assets/stylesheets/generic/_normalize.scss +189 -189
  25. data/app/assets/stylesheets/generic/_print.scss +105 -104
  26. data/app/assets/stylesheets/generic/_shared.scss +36 -32
  27. data/app/assets/stylesheets/objects/_badges.scss +43 -43
  28. data/app/assets/stylesheets/objects/_breadcrumbs.scss +30 -30
  29. data/app/assets/stylesheets/objects/_buttons.scss +264 -264
  30. data/app/assets/stylesheets/objects/_colors.scss +28 -25
  31. data/app/assets/stylesheets/objects/_dropdowns.scss +153 -153
  32. data/app/assets/stylesheets/objects/_groups.scss +82 -82
  33. data/app/assets/stylesheets/objects/_navigation.scss +330 -325
  34. data/app/assets/stylesheets/objects/_progress.scss +92 -88
  35. data/app/assets/stylesheets/objects/_wells.scss +93 -93
  36. data/lib/concisecss/concisecss_source.rb +1 -6
  37. data/lib/concisecss/version.rb +1 -1
  38. metadata +2 -3
  39. data/app/assets/stylesheets/generic/_debug.scss +0 -98
@@ -1,102 +1,106 @@
1
1
  @if $use-progress == true {
2
- //------------------------------------//
3
- // $PROGRESS
4
- //------------------------------------//
5
- .progress {
6
- background-color: #f9f9f9;
7
- color: #fff;
8
- @include font-size(11px, false);
9
- height: 12px;
10
- line-height: 1.182;
11
- margin: 6px 0;
12
- position: relative;
13
- text-align: center;
14
- width: 100%;
15
-
16
- @include vendor(box-shadow, inset 0 1px 1px rgba(100, 100, 100, 0.1));
17
-
18
- @include vendor(box-sizing, initial);
19
- }
2
+ //------------------------------------
3
+ // PROGRESS
4
+ //------------------------------------
5
+
6
+ // Thanks to Chris Coyier's article on
7
+ // CSS3 Progress Bars which helped me create
8
+ // these (http://css-tricks.com/css3-progress-bars/)
9
+ .progress {
10
+ background-color: #f9f9f9;
11
+ color: #fff;
12
+ @include font-size(11px, false);
13
+ height: 12px;
14
+ line-height: 1.182;
15
+ margin: 6px 0;
16
+ position: relative;
17
+ text-align: center;
18
+ width: 100%;
19
+
20
+ @include vendor(box-shadow, inset 0 1px 1px rgba(100, 100, 100, 0.1));
21
+
22
+ @include vendor(box-sizing, initial);
23
+ }
20
24
 
21
- .progress-small {
22
- @include font-size(9px, false);
23
- height: 6px;
24
- line-height: 0.875;
25
- }
25
+ .progress-small {
26
+ @include font-size(9px, false);
27
+ height: 6px;
28
+ line-height: 0.875;
29
+ }
26
30
 
27
- .progress-large {
28
- @include font-size($base-font-size, false);
29
- height: 25px;
30
- line-height: 1.7;
31
- }
31
+ .progress-large {
32
+ @include font-size($base-font-size, false);
33
+ height: 25px;
34
+ line-height: 1.7;
35
+ }
32
36
 
33
- .progress {
34
- > span {
35
- background-color: rgb(43, 194, 83);
36
- display: block;
37
- height: 100%;
38
- overflow: hidden;
39
- position: relative;
40
- width: auto;
41
- }
42
-
43
-
44
- // Rounded corners
45
- &.border-radius > span { border-radius: $border-radius; }
37
+ .progress {
38
+ > span {
39
+ background-color: rgb(43, 194, 83);
40
+ display: block;
41
+ height: 100%;
42
+ overflow: hidden;
43
+ position: relative;
44
+ width: auto;
45
+ }
46
+
47
+
48
+ // Rounded corners
49
+ &.border-radius > span { border-radius: $border-radius; }
50
+
51
+
52
+ // Stacked
53
+ &.progress-stacked {
54
+ > span {
55
+ display: inline-block;
56
+ float: left;
57
+ }
58
+
59
+ &.border-radius > span {
60
+ border-radius: 0px;
46
61
 
62
+ &:first-of-type { border-radius: $border-radius 0 0 $border-radius; }
47
63
 
48
- // Stacked
49
- &.progress-stacked {
50
- > span {
51
- display: inline-block;
52
- float: left;
53
- }
54
-
55
- &.border-radius > span {
56
- border-radius: 0px;
57
-
58
- &:first-of-type { border-radius: $border-radius 0 0 $border-radius; }
59
-
60
- &:last-of-type { border-radius: 0 $border-radius $border-radius 0; }
61
- }
62
- }
64
+ &:last-of-type { border-radius: 0 $border-radius $border-radius 0; }
65
+ }
63
66
  }
67
+ }
64
68
 
65
69
 
66
- // Striped
67
- .progress-striped {
68
- > span {
69
- &:after, > span {
70
- bottom: 0;
71
- content: "";
72
- left: 0;
73
- overflow: hidden;
74
- position: absolute;
75
- right: 0;
76
- top: 0;
77
- z-index: 1;
70
+ // Striped
71
+ .progress-striped {
72
+ > span {
73
+ &:after, > span {
74
+ bottom: 0;
75
+ content: "";
76
+ left: 0;
77
+ overflow: hidden;
78
+ position: absolute;
79
+ right: 0;
80
+ top: 0;
81
+ z-index: 1;
78
82
 
79
- @include vendor(background-size, 50px 50px);
80
-
81
- background-image:
82
- -webkit-gradient(linear, 0 0, 100% 100%, color-stop(0.25, rgba(255, 255, 255, 0.2)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.2)), color-stop(0.75, rgba(255, 255, 255, 0.2)), color-stop(0.75, transparent), to(transparent));
83
- background-image:
84
- -moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
85
- }
86
- }
87
-
83
+ @include vendor(background-size, 50px 50px);
88
84
 
89
- // Animated
90
- &.progress-animate > span {
91
- &:after, > span {
92
- @include vendor(animation, move 2s linear infinite);
93
- }
94
- }
85
+ background-image:
86
+ -webkit-gradient(linear, 0 0, 100% 100%, color-stop(0.25, rgba(255, 255, 255, 0.2)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.2)), color-stop(0.75, rgba(255, 255, 255, 0.2)), color-stop(0.75, transparent), to(transparent));
87
+ background-image:
88
+ -moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
89
+ }
95
90
  }
96
-
97
- @-webkit-keyframes move {
98
- 0% { background-position: 0 0; }
99
-
100
- 100% { background-position: 50px 50px; }
91
+
92
+
93
+ // Animated
94
+ &.progress-animate > span {
95
+ &:after, > span {
96
+ @include vendor(animation, move 2s linear infinite);
97
+ }
101
98
  }
99
+ }
100
+
101
+ @-webkit-keyframes move {
102
+ 0% { background-position: 0 0; }
103
+
104
+ 100% { background-position: 50px 50px; }
105
+ }
102
106
  }
@@ -1,103 +1,103 @@
1
1
  @if $use-wells == true {
2
- //------------------------------------//
3
- // $WELLS
4
- //------------------------------------//
5
- .well {
6
- background-color: #f9f9f9;
7
- border-color: #ededed;
8
- border-style: solid;
9
- border-width: 1px;
10
- margin-bottom: 24px;
11
- padding: 0px 15px;
12
-
13
- h1, h2, h3, h4, h5, h6,
14
- .h1, .h2, .h3, .h4, .h5, .h6,
15
- .giga, .mega, .kilo { color: inherit; }
16
-
17
- p { margin: 10px 0; }
18
-
19
- pre,
20
- .pre.well {
21
- @include font-size(14px);
22
- padding: 10px 15px;
23
- }
2
+ //------------------------------------
3
+ // WELLS
4
+ //------------------------------------
5
+ .well {
6
+ background-color: #f9f9f9;
7
+ border-color: #ededed;
8
+ border-style: solid;
9
+ border-width: 1px;
10
+ margin-bottom: 24px;
11
+ padding: 0px 15px;
12
+
13
+ h1, h2, h3, h4, h5, h6,
14
+ .h1, .h2, .h3, .h4, .h5, .h6,
15
+ .giga, .mega, .kilo { color: inherit; }
16
+
17
+ p { margin: 10px 0; }
18
+
19
+ pre,
20
+ .pre.well {
21
+ @include font-size(14px);
22
+ padding: 10px 15px;
24
23
  }
24
+ }
25
25
 
26
- .well {
27
- // Headings
28
- header {
29
- h1, h2, h3, h4, h5, h6,
30
- .h1, .h2, .h3, .h4, .h5, .h6,
31
- .giga, .mega, .kilo { margin: 20px 0 10px; }
32
-
33
- .label,
34
- .badge { margin-top: 10px; }
35
- }
36
-
37
-
38
- // Background colors
39
- &[class*='bg-'] { color: #fff; }
40
-
41
- &.bg-white { color: #666; }
42
-
43
- &.bg-black { border-color: #000; }
44
-
45
- &.bg-green { border-color: darken($bg-green, 15%); }
46
-
47
- &.bg-light-green {
48
- border-color: darken($bg-green, 15%);
49
- color: $color-green;
50
- }
51
-
52
- &.bg-blue { border-color: darken($bg-blue, 15%); }
53
-
54
- &.bg-light-blue {
55
- border-color: darken($bg-blue, 15%);
56
- color: $color-blue;
57
- }
58
-
59
- &.bg-yellow { border-color: darken($bg-yellow, 15%); }
60
-
61
- &.bg-light-yellow {
62
- border-color: darken($bg-yellow, 15%);
63
- color: $color-yellow;
64
- }
65
-
66
- &.bg-red { border-color: darken($bg-red, 15%); }
67
-
68
- &.bg-light-red {
69
- border-color: darken($bg-red, 15%);
70
- color: $color-red;
71
- }
26
+ .well {
27
+ // Headings
28
+ header {
29
+ h1, h2, h3, h4, h5, h6,
30
+ .h1, .h2, .h3, .h4, .h5, .h6,
31
+ .giga, .mega, .kilo { margin: 20px 0 10px; }
32
+
33
+ .label,
34
+ .badge { margin-top: 10px; }
72
35
  }
36
+
37
+
38
+ // Background colors
39
+ &[class*='bg-'] { color: #fff; }
40
+
41
+ &.bg-white { color: #666; }
42
+
43
+ &.bg-black { border-color: #000; }
44
+
45
+ &.bg-green { border-color: darken($bg-green, 15%); }
46
+
47
+ &.bg-light-green {
48
+ border-color: darken($bg-green, 15%);
49
+ color: $color-green;
50
+ }
51
+
52
+ &.bg-blue { border-color: darken($bg-blue, 15%); }
53
+
54
+ &.bg-light-blue {
55
+ border-color: darken($bg-blue, 15%);
56
+ color: $color-blue;
57
+ }
58
+
59
+ &.bg-yellow { border-color: darken($bg-yellow, 15%); }
60
+
61
+ &.bg-light-yellow {
62
+ border-color: darken($bg-yellow, 15%);
63
+ color: $color-yellow;
64
+ }
65
+
66
+ &.bg-red { border-color: darken($bg-red, 15%); }
67
+
68
+ &.bg-light-red {
69
+ border-color: darken($bg-red, 15%);
70
+ color: $color-red;
71
+ }
72
+ }
73
73
 
74
74
 
75
- // Close icon
76
- .close {
77
- color: #000;
78
- filter: alpha(opacity = 20);
79
- float: right;
80
- @include font-size(22px);
81
- font-weight: bold;
82
- opacity: .2;
83
-
84
- &:hover, &:focus {
85
- color: #000;
86
- cursor: pointer;
87
- filter: alpha(opacity = 50);
88
- opacity: .5;
89
- text-decoration: none;
90
-
91
- @include vendor(transition, all 0.2s linear);
92
- }
75
+ // Close icon
76
+ .close {
77
+ color: #000;
78
+ filter: alpha(opacity = 20);
79
+ float: right;
80
+ @include font-size(22px);
81
+ font-weight: bold;
82
+ opacity: .2;
83
+
84
+ &:hover, &:focus {
85
+ color: #000;
86
+ cursor: pointer;
87
+ filter: alpha(opacity = 50);
88
+ opacity: .5;
89
+ text-decoration: none;
90
+
91
+ @include vendor(transition, all 0.2s linear);
93
92
  }
93
+ }
94
94
 
95
- button.close {
96
- background: transparent;
97
- border: 0;
98
- cursor: pointer;
99
- padding: 0;
100
- }
95
+ button.close {
96
+ background: transparent;
97
+ border: 0;
98
+ cursor: pointer;
99
+ padding: 0;
100
+ }
101
101
 
102
- .well .close { margin-top: 6px; }
102
+ .well .close { margin-top: 6px; }
103
103
  }
@@ -24,7 +24,6 @@ class ConcisecssSource < Thor
24
24
  get "#{remote}/raw/#{tag}/scss/objects/_wells.scss", "stylesheets/objects/_wells.scss"
25
25
  get "#{remote}/raw/#{tag}/scss/generic/_clearfix.scss", "stylesheets/generic/_clearfix.scss"
26
26
  get "#{remote}/raw/#{tag}/scss/generic/_conditional.scss", "stylesheets/generic/_conditional.scss"
27
- get "#{remote}/raw/#{tag}/scss/generic/_debug.scss", "stylesheets/generic/_debug.scss"
28
27
  get "#{remote}/raw/#{tag}/scss/generic/_helper.scss", "stylesheets/generic/_helper.scss"
29
28
  get "#{remote}/raw/#{tag}/scss/generic/_mixins.scss", "stylesheets/generic/_mixins.scss"
30
29
  get "#{remote}/raw/#{tag}/scss/generic/_normalize.scss", "stylesheets/generic/_normalize.scss"
@@ -40,7 +39,6 @@ class ConcisecssSource < Thor
40
39
  get "#{remote}/raw/#{tag}/scss/base/_selection.scss", "stylesheets/base/_selection.scss"
41
40
  get "#{remote}/raw/#{tag}/scss/base/_tables.scss", "stylesheets/base/_tables.scss"
42
41
  get "#{remote}/raw/#{tag}/scss/base/_type.scss", "stylesheets/base/_type.scss"
43
-
44
42
  get "#{remote}/raw/#{tag}/js/non-responsive.js", "javascripts/concisecss/non-responsive.js"
45
43
  get "#{remote}/raw/#{tag}/js/navigation.js", "javascripts/concisecss/navigation.js"
46
44
  get "#{remote}/raw/#{tag}/js/naver.js", "javascripts/concisecss/naver.js"
@@ -48,8 +46,6 @@ class ConcisecssSource < Thor
48
46
  get "#{remote}/raw/#{tag}/js/close.js", "javascripts/concisecss/close.js"
49
47
  end
50
48
 
51
-
52
-
53
49
  private
54
50
 
55
51
  def fetch_tags
@@ -57,8 +53,6 @@ class ConcisecssSource < Thor
57
53
  response = JSON.parse(http.get("https://api.github.com/repos/ConciseCSS/concise.css/tags").body)
58
54
  response.map{|tag| tag["name"]}.sort
59
55
  end
60
-
61
-
62
56
  def select msg, elements
63
57
  elements.each_with_index do |element, index|
64
58
  say(block_given? ? yield(element, index + 1) : ("#{index + 1}. #{element.to_s}"))
@@ -67,6 +61,7 @@ class ConcisecssSource < Thor
67
61
  elements[result - 1]
68
62
  end
69
63
 
64
+ # Thanks to Rogeriolol. For task approach.
70
65
 
71
66
 
72
67
  end
@@ -1,3 +1,3 @@
1
1
  module Concisecss
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concisecss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Sigidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-20 00:00:00.000000000 Z
11
+ date: 2014-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -106,7 +106,6 @@ files:
106
106
  - app/assets/stylesheets/concise.scss
107
107
  - app/assets/stylesheets/generic/_clearfix.scss
108
108
  - app/assets/stylesheets/generic/_conditional.scss
109
- - app/assets/stylesheets/generic/_debug.scss
110
109
  - app/assets/stylesheets/generic/_helper.scss
111
110
  - app/assets/stylesheets/generic/_mixins.scss
112
111
  - app/assets/stylesheets/generic/_normalize.scss
@@ -1,98 +0,0 @@
1
- @if $debug-mode == true {
2
- //------------------------------------//
3
- // $DEBUG
4
- //------------------------------------//
5
- // Big thanks to Harry Roberts of CSS Wizardry for this great
6
- // tool. https://github.com/csswizardry/inuit.css/blob/master/_inuit.scss
7
-
8
- //
9
- // Enable this stylesheet to visually detect any improperly nested or
10
- // potentially invalid markup, or any potentially inaccessible code.
11
- //
12
- // Red == definite error
13
- // Yellow == double-check
14
- // None == should be fine
15
- //
16
- // Please note that this method of checking markup quality should not be relied
17
- // upon entirely. Validate your markup!
18
- //
19
-
20
-
21
- // Are there any empty elements in your page?
22
- :empty { outline: 5px solid yellow; }
23
-
24
-
25
- // Images require `alt` attributes, empty `alt`s are fine but should be
26
- // double-checked, no `alt` is bad and is flagged red.
27
- img { outline:5px solid red; }
28
-
29
- img[alt] { outline:none; }
30
-
31
- img[alt=""] { outline:5px solid yellow; }
32
-
33
-
34
- // Links sometimes, though not always, benefit from `title` attributes. Links
35
- // without are never invalid but it’s a good idea to check.
36
- a { outline:5px solid yellow; }
37
-
38
- a[title] { outline:none; }
39
-
40
-
41
- // Double-check any links whose `href` is something questionable.
42
- a[href="#"],
43
- a[href*="javascript"] { outline:5px solid yellow; }
44
-
45
-
46
- // The `target` attribute ain’t too nice...
47
- a[target] { outline:5px solid yellow; }
48
-
49
-
50
- // Ensure any lists only contain `li`s as children.
51
- ul,
52
- ol {
53
- > *:not(li) { outline:5px solid red; }
54
- }
55
-
56
-
57
- // It’s always nice to give `th`s `scope` attributes.
58
- th { outline:5px solid yellow; }
59
-
60
- th[scope] { outline:none; }
61
-
62
-
63
- // `tr`s as children of `table`s ain’t great, did you need a `thead`/`tbody`?
64
- table > tr { outline:5px solid yellow; }
65
-
66
-
67
- // `tfoot` needs to come *before* `tbody`.
68
- tbody + tfoot { outline:5px solid yellow; }
69
-
70
-
71
- // Forms require `action` attributes
72
- form { outline:5px solid red; }
73
-
74
- form[action] { outline:none; }
75
-
76
-
77
- // Various form-field types have required attributes. `input`s need `type`
78
- // attributes, `textarea`s need `rows` and `cols` attributes and submit buttons
79
- // need a `value` attribute.
80
- textarea,
81
- input { outline:5px solid red; }
82
-
83
- input[type] { outline:none; }
84
-
85
- textarea[rows][cols] { outline:none; }
86
-
87
- input[type=submit] { outline:5px solid red; }
88
-
89
- input[type=submit][value] { outline:none; }
90
-
91
-
92
- // Avoid inline styles where possible.
93
- [style] { outline:5px solid yellow; }
94
-
95
-
96
- // You should avoid using IDs for CSS, is this doing any styling?
97
- [id]{ outline:5px solid yellow; }
98
- }