yakstrap 0.0.3 → 0.0.5

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.
@@ -1,11 +1,11 @@
1
1
  $gutter-width: 0.01;
2
2
 
3
- @mixin columns($column-span: 1) {
3
+ @function columnwidth($column-span: 1) {
4
4
  $columns: 12 / $column-span;
5
5
  $total-gutter: $gutter-width * (13);
6
6
  $column-span-width: (1 - $total-gutter) / $columns + ($column-span - 1) * $gutter-width;
7
7
 
8
- width: percentage( $column-span-width );
8
+ @return percentage( $column-span-width );
9
9
  }
10
10
 
11
11
  .container{
@@ -27,9 +27,6 @@ $gutter-width: 0.01;
27
27
  @media (min-width: 1080px){
28
28
  max-width: 1080px;
29
29
  }
30
- @media (min-width: 1260px){
31
- max-width: 1260px;
32
- }
33
30
  }
34
31
 
35
32
  // row is not required, but it includes clearfix to hopefully clear up some issues
@@ -46,7 +43,16 @@ $gutter-width: 0.01;
46
43
  }
47
44
  @media (min-width: 481px){
48
45
  float: left;
49
- @include columns($i);
46
+ width: columnwidth($i);
47
+ }
48
+ }
49
+ }
50
+
51
+ @for $j from 1 through 12{
52
+ .offset#{$j}{
53
+ margin-left: columnwidth($j) + percentage($gutter-width);
54
+ @media (max-width: 480px){
55
+ margin-left: 0px;
50
56
  }
51
57
  }
52
58
  }
@@ -0,0 +1,61 @@
1
+ $gutter-width: 0.01;
2
+
3
+ @function columnwidth($column-span: 1) {
4
+ $columns: 12 / $column-span;
5
+ $total-gutter: $gutter-width * (13);
6
+ $column-span-width: (1 - $total-gutter) / $columns + ($column-span - 1) * $gutter-width;
7
+
8
+ @return percentage( $column-span-width );
9
+ }
10
+
11
+ .container{
12
+ margin: 0px auto;
13
+ @include clearfix();
14
+
15
+ @media (min-width: 480px){
16
+ max-width: 480px;
17
+ }
18
+ @media (min-width: 640px){
19
+ max-width: 640px;
20
+ }
21
+ @media (min-width: 720px){
22
+ max-width: 720px;
23
+ }
24
+ @media (min-width: 960px){
25
+ max-width: 960px;
26
+ }
27
+ @media (min-width: 1080px){
28
+ max-width: 1080px;
29
+ }
30
+ @media (min-width: 1260px){
31
+ max-width: 1260px;
32
+ }
33
+ }
34
+
35
+ // row is not required, but it includes clearfix to hopefully clear up some issues
36
+ .row{
37
+ @include clearfix();
38
+ }
39
+
40
+ @for $i from 1 through 12{
41
+ .span#{$i}{
42
+ margin-left: percentage($gutter-width);
43
+ @media (max-width: 480px){
44
+ float: none;
45
+ display:block;
46
+ }
47
+ @media (min-width: 481px){
48
+ float: left;
49
+ width: columnwidth($i);
50
+ }
51
+ }
52
+ }
53
+
54
+ @for $j from 1 through 12{
55
+ .offset#{$j}{
56
+ margin-left: columnwidth($j) + percentage($gutter-width);
57
+ @media (max-width: 480px){
58
+ margin-left: 0px;
59
+ }
60
+ }
61
+ }
@@ -44,6 +44,10 @@ h1,h2,h3,h4,h5,h6{
44
44
  float: left;
45
45
  }
46
46
 
47
+ .center{
48
+ text-align: center;
49
+ }
50
+
47
51
  .relative{
48
52
  position: relative;
49
53
  }
@@ -96,12 +100,12 @@ hr{
96
100
  }
97
101
 
98
102
  td{
99
- border-top: 1px solid lighten($secondary, 20%);
103
+ border-top: 1px solid $black;
100
104
  padding: 5px 5px 5px 0px;
101
105
 
102
106
  }
103
107
  }
104
108
 
105
109
  td.expand{
106
- width: 100%;
110
+ width: 50%;
107
111
  }
@@ -44,6 +44,10 @@ h1,h2,h3,h4,h5,h6{
44
44
  float: left;
45
45
  }
46
46
 
47
+ .center{
48
+ text-align: center;
49
+ }
50
+
47
51
  .relative{
48
52
  position: relative;
49
53
  }
@@ -54,7 +58,8 @@ h1,h2,h3,h4,h5,h6{
54
58
 
55
59
  ul{
56
60
  &.compact{
57
-
61
+ margin: 0;
62
+ padding: 0;
58
63
  }
59
64
 
60
65
  &.unstyled{
@@ -95,12 +100,12 @@ hr{
95
100
  }
96
101
 
97
102
  td{
98
- border-top: 1px solid lighten($secondary, 20%);
103
+ border-top: 1px solid lighten($black, 20%);
99
104
  padding: 5px 5px 5px 0px;
100
105
 
101
106
  }
102
107
  }
103
108
 
104
109
  td.expand{
105
- width: 100%;
110
+ width: 50%;
106
111
  }
@@ -7,6 +7,7 @@ $header_font: 'Ubuntu';
7
7
 
8
8
  // Colors
9
9
  $white: #FDFDFD;
10
+ $black: #333;
10
11
 
11
12
  // http://colorschemedesigner.com/
12
13
  $primary: #2E3E46;
@@ -0,0 +1,33 @@
1
+
2
+ // Fonts
3
+ $font_include: 'http://fonts.googleapis.com/css?family=Ubuntu|Roboto';
4
+ $body_font: 'Roboto';
5
+ $header_font: 'Ubuntu';
6
+
7
+
8
+ // Colors
9
+ $white: #FDFDFD;
10
+
11
+ // http://colorschemedesigner.com/
12
+ $primary: #2E3E46;
13
+ $primary_font_color: $white;
14
+
15
+ $secondary: #544D3D;
16
+ $secondary_font_color: $white;
17
+
18
+ $tertiary: #C5EDB2;
19
+ $tertiary_font_color: #333;
20
+
21
+ // Red tone, used for alerts
22
+ $red: #A82117;
23
+ $red_font_color: $white;
24
+
25
+ // Green tone for successes
26
+ $green: #395939; // mid
27
+ $green_font_color: $white;
28
+
29
+ $yellow: #FEFEDE;
30
+ $yellow_font_color: #333;
31
+
32
+ $background: $white;
33
+ $background_font_color: #333;
@@ -1,3 +1,3 @@
1
1
  module Yakstrap
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Yakstrap
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yakstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-28 00:00:00.000000000 Z
12
+ date: 2013-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -91,6 +91,7 @@ files:
91
91
  - lib/yakstrap/version.rb
92
92
  - lib/yakstrap/version.rb~
93
93
  - app/assets/stylesheets/yakstrap/yakstrap.css.scss~
94
+ - app/assets/stylesheets/yakstrap/variables.css.scss~
94
95
  - app/assets/stylesheets/yakstrap/alert.css.scss
95
96
  - app/assets/stylesheets/yakstrap/variables.css.scss
96
97
  - app/assets/stylesheets/yakstrap/main.css.scss
@@ -99,6 +100,7 @@ files:
99
100
  - app/assets/stylesheets/yakstrap/container.css.scss
100
101
  - app/assets/stylesheets/yakstrap/form.css.scss
101
102
  - app/assets/stylesheets/yakstrap/tip.css.scss
103
+ - app/assets/stylesheets/yakstrap/container.css.scss~
102
104
  - app/assets/stylesheets/yakstrap/nav.css.scss
103
105
  - app/assets/stylesheets/yakstrap/button.css.scss~
104
106
  - app/assets/stylesheets/yakstrap/modal.css.scss