titon-toolkit 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b31d77f519e8a690bd84d4e42505c452fdfba5c
4
- data.tar.gz: 079156933036f477f9aa43acb5724d2803110df6
3
+ metadata.gz: 306698615fac936feca0bf97213f505b6c8d69db
4
+ data.tar.gz: 1b6240d7d164515365db51b76e137582eb5cf286
5
5
  SHA512:
6
- metadata.gz: 1887713bb8b73c1ff86ebe94d66dfad40cc63593ad22b129ff6548b75073764dc456ff730749f6d020158bfa25871914c7398b5b0ceccb149880bc09c9598742
7
- data.tar.gz: b21232ebd7f16f53e97e27bc34740b69e99edb525ec0a9f73cdf405222cb130a3a6fdf47abcd9d4e58556edeffdd64fec5f1504ac9608e8e2a8b1059c9fc05ed
6
+ metadata.gz: aa8a7e923724a74b1ce8c477f017445d7aa3e347bcd771108bbb0991d0ac0481a0436a1988837b9521db233e4890f8d39bd6d4e23dc477ec2fe367988206cc3e
7
+ data.tar.gz: 1376453c8f6a1b51737e438b67fbebcac4be0ca2901a52081fbe0738068048ec4a66f12c85f834140542ba6467bc1245821a9c9bf5101a6981b9003b8051bc01
data/changelog.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  Older versions can be found in the documentation changelogs.
4
4
 
5
+ ## 2.1.2 ##
6
+ * Updated NPM packages and improved Gulp workflow
7
+ * Components
8
+ * Grid
9
+ * Fixed an issue where `.end` capping would not work correctly on collapsed columns
10
+ * Modal, OffCanvas, Showcase
11
+ * Fixed an issue where `stopScroll` would not work on mobile devices
12
+
5
13
  ## 2.1.1 ##
6
14
  * Components
7
15
  * Grid
data/readme.md CHANGED
@@ -6,7 +6,7 @@
6
6
  \/_/ \/_____/ \/_____/ \/_____/ \/_/\/_/ \/_/ \/_/
7
7
  ```
8
8
 
9
- # Titon Toolkit v2.1.1 #
9
+ # Titon Toolkit v2.1.2 #
10
10
  [![Project Titon](https://img.shields.io/badge/project-titon-82667d.svg?style=flat)](http://titon.io)
11
11
  [![Build Status](https://img.shields.io/travis/titon/toolkit.svg?style=flat)](https://travis-ci.org/titon/toolkit)
12
12
  [![NPM Version](https://img.shields.io/npm/v/titon-toolkit.svg?style=flat)](https://npmjs.com/package/titon-toolkit)
data/scss/normalize.scss CHANGED
@@ -37,7 +37,6 @@ figcaption,
37
37
  figure,
38
38
  footer,
39
39
  header,
40
- hgroup,
41
40
  main,
42
41
  menu,
43
42
  nav,
@@ -24,6 +24,17 @@ $modules-exported: () !global;
24
24
  $modules-excluded: ();
25
25
  }
26
26
 
27
+ //-------------------- Text Direction --------------------//
28
+
29
+ $text-direction: ltr !default;
30
+ $align-direction: left;
31
+ $align-opposite-direction: right;
32
+
33
+ @if ($text-direction == rtl) {
34
+ $align-direction: right;
35
+ $align-opposite-direction: left;
36
+ }
37
+
27
38
  //-------------------- Colors --------------------//
28
39
 
29
40
  $gray-lightest: #fbfbfb !default;
@@ -47,17 +58,6 @@ $default-transition: .3s !default;
47
58
  $bem-element-separator: "-" !default;
48
59
  $bem-modifier-separator: "--" !default;
49
60
 
50
- //-------------------- Text Direction --------------------//
51
-
52
- $text-direction: ltr !default;
53
- $align-direction: left;
54
- $align-opposite-direction: right;
55
-
56
- @if ($text-direction == rtl) {
57
- $align-direction: right;
58
- $align-opposite-direction: left;
59
- }
60
-
61
61
  //-------------------- Spacing --------------------//
62
62
 
63
63
  $padding: .75rem !default;
@@ -30,7 +30,6 @@ bdo[dir="rtl"] { direction: rtl; unicode-bidi: bidi-override; }
30
30
  // Display
31
31
  .shown { display: block; }
32
32
  .hidden { display: none; }
33
- .no-scroll { overflow: hidden !important; }
34
33
  .no-transition { transition: none !important; }
35
34
 
36
35
  .fluid {
@@ -61,6 +60,15 @@ bdo[dir="rtl"] { direction: rtl; unicode-bidi: bidi-override; }
61
60
  }
62
61
  }
63
62
 
63
+ // Disable Scrolling
64
+ .no-scroll { overflow: hidden !important; }
65
+
66
+ // #111 - https://github.com/titon/toolkit/issues/111
67
+ // Mobile devices require a fixed positioning for this to work correctly.
68
+ // This is a janky hack but there's really no better solution, as we don't want to use JS.
69
+ // Furthermore, this will cause the page to jump to the top, no fix for that either.
70
+ .touch body.no-scroll { position: fixed; }
71
+
64
72
  // Layout
65
73
  .vertical-center {
66
74
  position: absolute;
@@ -106,7 +114,7 @@ bdo[dir="rtl"] { direction: rtl; unicode-bidi: bidi-override; }
106
114
 
107
115
  // Bullets
108
116
  .bullets {
109
- @include reset-list();
117
+ @include reset-list;
110
118
  line-height: 100%;
111
119
 
112
120
  li {
@@ -8,7 +8,7 @@
8
8
 
9
9
  @include export("blackout") {
10
10
  #{$blackout-class} {
11
- @include full-screen();
11
+ @include full-screen;
12
12
  z-index: $blackout-zindex;
13
13
  opacity: 0;
14
14
  visibility: hidden;
@@ -11,7 +11,7 @@
11
11
  var,
12
12
  kbd,
13
13
  pre {
14
- font: normal .8rem/115% Consolas, Monaco, 'Andale Mono', monospace;
14
+ font: normal .8rem/115% Consolas, Monaco, "Andale Mono", monospace;
15
15
  }
16
16
 
17
17
  code,
@@ -8,7 +8,7 @@
8
8
 
9
9
  @include export("flex") {
10
10
  #{$flex-class-region} {
11
- @include flex-region();
11
+ @include flex-region;
12
12
 
13
13
  // Alignment
14
14
  &.flow-top,
@@ -26,8 +26,8 @@
26
26
  }
27
27
 
28
28
  #{$flex-class-block} {
29
- @include flex-block();
30
- @include flex-block-order();
29
+ @include flex-block;
30
+ @include flex-block-order;
31
31
 
32
32
  // Override parent alignment
33
33
  &.self-top,
@@ -104,7 +104,7 @@
104
104
  // Wrap blocks onto the next line instead of trying to squish into 1 line
105
105
  @if index($flex-modifiers, "wrap") {
106
106
  #{$flex-class-modifier-wrap} {
107
- @include flex-region-wrap();
107
+ @include flex-region-wrap;
108
108
  }
109
109
  }
110
110
  }
@@ -9,12 +9,12 @@
9
9
  @include export("grid") {
10
10
  // Row wrapper
11
11
  #{$grid-class} {
12
- @include grid-row();
12
+ @include grid-row;
13
13
  }
14
14
 
15
15
  // These should be the same for all sizes
16
16
  #{$grid-class-column}[class*="span-"] {
17
- @include grid-column();
17
+ @include grid-column;
18
18
  }
19
19
 
20
20
  // Global Push and pull classes
@@ -48,10 +48,4 @@
48
48
  }
49
49
  }
50
50
  }
51
-
52
- // End capping
53
- #{$grid-class-column}#{$grid-class-end} {
54
- margin-#{$align-opposite-direction}: 0 !important;
55
- float: $align-opposite-direction !important;
56
- }
57
51
  }
@@ -8,7 +8,7 @@
8
8
 
9
9
  @include export("modal") {
10
10
  #{$modal-class} {
11
- @include full-screen();
11
+ @include full-screen;
12
12
  opacity: 0;
13
13
  visibility: hidden;
14
14
  z-index: $modal-zindex;
@@ -30,7 +30,7 @@
30
30
  }
31
31
  }
32
32
 
33
- @include is-small() {
33
+ @include is-small {
34
34
  width: 70px;
35
35
 
36
36
  #{$switch-class-bar} {
@@ -47,7 +47,7 @@
47
47
  }
48
48
  }
49
49
 
50
- @include is-large() {
50
+ @include is-large {
51
51
  width: 130px;
52
52
 
53
53
  #{$switch-class-bar} {
@@ -26,4 +26,13 @@
26
26
  margin-#{$align-direction}: gutter($width, $gutter);
27
27
  }
28
28
  }
29
+
30
+ // End capping
31
+ &#{$grid-class-end} {
32
+ @if $gutter {
33
+ margin-#{$align-opposite-direction}: 0 !important;
34
+ }
35
+
36
+ float: $align-opposite-direction !important;
37
+ }
29
38
  }
@@ -99,7 +99,7 @@
99
99
 
100
100
  // Within 2 ranges
101
101
  @mixin in-range($range) {
102
- @if type-of($range) != 'list' {
102
+ @if type-of($range) != "list" {
103
103
  @warn "in-range() requires a list with a min and max value";
104
104
  }
105
105
 
@@ -151,4 +151,4 @@
151
151
  @include in-range($breakpoint-range-xsmall) {
152
152
  @content;
153
153
  }
154
- }
154
+ }
@@ -8,14 +8,14 @@
8
8
  @function to-pixel($from) {
9
9
  $from-unit: unit($from);
10
10
 
11
- @if $from-unit == 'px' {
11
+ @if $from-unit == "px" {
12
12
  @return $from;
13
13
 
14
- } @else if $from-unit == '%' or $from-unit == 'em' or $from-unit == 'rem' {
14
+ } @else if $from-unit == "%" or $from-unit == "em" or $from-unit == "rem" {
15
15
  @return (strip-unit($from) * $base-size);
16
16
 
17
17
  } @else {
18
- @warn 'Unknown pixel conversion unit type.';
18
+ @warn "Unknown pixel conversion unit type.";
19
19
  }
20
20
 
21
21
  @return $from;
@@ -25,14 +25,14 @@
25
25
  @function to-percent($from) {
26
26
  $from-unit: unit($from);
27
27
 
28
- @if $from-unit == '%' {
28
+ @if $from-unit == "%" {
29
29
  @return $from;
30
30
 
31
- } @else if $from-unit == 'px' or $from-unit == 'em' or $from-unit == 'rem' {
31
+ } @else if $from-unit == "px" or $from-unit == "em" or $from-unit == "rem" {
32
32
  @return percentage((to-pixel($from) / $base-size) / 100);
33
33
 
34
34
  } @else {
35
- @warn 'Unknown percentage conversion unit type.';
35
+ @warn "Unknown percentage conversion unit type.";
36
36
  }
37
37
 
38
38
  @return $from;
@@ -42,14 +42,14 @@
42
42
  @function to-rem($from) {
43
43
  $from-unit: unit($from);
44
44
 
45
- @if $from-unit == 'rem' {
45
+ @if $from-unit == "rem" {
46
46
  @return $from;
47
47
 
48
- } @else if $from-unit == 'px' or $from-unit == '%' or $from-unit == 'em' {
48
+ } @else if $from-unit == "px" or $from-unit == "%" or $from-unit == "em" {
49
49
  @return (to-pixel($from) / $base-size) * 1rem;
50
50
 
51
51
  } @else {
52
- @warn 'Unknown rem conversion unit type.';
52
+ @warn "Unknown rem conversion unit type.";
53
53
  }
54
54
 
55
55
  @return $from;
@@ -59,15 +59,15 @@
59
59
  @function to-em($from) {
60
60
  $from-unit: unit($from);
61
61
 
62
- @if $from-unit == 'em' {
62
+ @if $from-unit == "em" {
63
63
  @return $from;
64
64
 
65
- } @else if $from-unit == 'px' or $from-unit == '%' or $from-unit == 'rem' {
65
+ } @else if $from-unit == "px" or $from-unit == "%" or $from-unit == "rem" {
66
66
  @return (to-pixel($from) / $base-size) * 1em;
67
67
 
68
68
  } @else {
69
- @warn 'Unknown em conversion unit type.';
69
+ @warn "Unknown em conversion unit type.";
70
70
  }
71
71
 
72
72
  @return $from;
73
- }
73
+ }
data/version.md CHANGED
@@ -1 +1 @@
1
- 2.1.1
1
+ 2.1.2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: titon-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Project Titon
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-17 00:00:00.000000000 Z
12
+ date: 2015-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.4.1
124
+ rubygems_version: 2.4.5
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Provides Titon Toolkit Sass files for use in projects.