tungsten 0.1.5 → 0.1.6

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: f909f0937328ef9672199c895d0616a2260947f9
4
- data.tar.gz: 775474c2bb1a15328c9fcb4c0d82cc5e60d6fde1
3
+ metadata.gz: 754d0087329a54803363e3010c6c44627e3140a0
4
+ data.tar.gz: b92140a653ff73d04e74442d26a771d01d3f6392
5
5
  SHA512:
6
- metadata.gz: ece4c95ab1394b3dfff54e19514f92e48148e440b2d4db81d20f1ccb7ccaca658ef3dc62147338ecf0baf49e10ff481b933f873c070702a2fd9f6a3dbdf540e2
7
- data.tar.gz: 0a05cd1a62943c91ea59368940c5a2309e2a593ba9a4a0d983b4483c2776024a1a651be0de749ad65994d3be52926a1c869a70d800810ea8268e3ef027a1b486
6
+ metadata.gz: e29d2c63ec6cc1ca1d7255245c2f4869282d94eccc6f9dc7c9ee5c32fb46a7a9e1524264251e2d3e847f6f105d40b0aeeefc901335daaccd48696fb5c85e5571
7
+ data.tar.gz: ede5f894ca413649c27743b26755d8161f0c44946f19ffa5e05e6cc461222322f11342927c7d2ed3e7333901081cfde9b3aae029452c0d630ea452bee6a9df61
@@ -61,12 +61,12 @@
61
61
 
62
62
  &-heading {
63
63
  font-size: 16px;
64
+ align-items: top;
64
65
  }
65
66
 
66
67
  &-header,
67
68
  &-footer {
68
69
  display: flex;
69
- align-items: baseline;
70
70
 
71
71
  .card-actions {
72
72
  margin-bottom: 0;
@@ -78,6 +78,11 @@
78
78
  font-size: 12px;
79
79
  }
80
80
 
81
+ &-well {
82
+ padding: $card-padding;
83
+ margin: 10px 0;
84
+ }
85
+
81
86
  &-footer {
82
87
  display: flex;
83
88
  align-items: baseline;
@@ -41,6 +41,13 @@ $columns : 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight';
41
41
  flex-flow: row wrap;
42
42
  }
43
43
 
44
+ // Rows container
45
+ [class*='rows'] {
46
+ display: flex;
47
+ flex-flow: column;
48
+ align-items: flex-start;
49
+ }
50
+
44
51
  // Top-align columns in certain contexts
45
52
  form [class*='columns'] {
46
53
  align-items: flex-start;
@@ -192,6 +199,18 @@ form [class*='columns'] {
192
199
  * ------------------------------------- */
193
200
 
194
201
  .top-aligned {
202
+ align-items: top;
203
+ }
204
+
205
+ .bottom-aligned {
206
+ align-items: bottom;
207
+ }
208
+
209
+ .baseline-aligned {
210
+ align-items: baseline;
211
+ }
212
+
213
+ .start-aligned {
195
214
  align-items: flex-start;
196
215
  }
197
216
 
@@ -199,7 +218,7 @@ form [class*='columns'] {
199
218
  align-items: center;
200
219
  }
201
220
 
202
- .bottom-aligned {
221
+ .end-aligned {
203
222
  align-items: flex-end;
204
223
  }
205
224
 
@@ -227,4 +246,4 @@ form [class*='columns'] {
227
246
  @media (max-width: 950px) {
228
247
  flex: 0 1 100%;
229
248
  }
230
- }
249
+ }
@@ -46,6 +46,6 @@ textarea {
46
46
  * ------------------------------------- */
47
47
 
48
48
  .hidden {
49
- display: none;
49
+ display: none !important;
50
50
  visibility: hidden;
51
51
  }
@@ -107,7 +107,6 @@ input[type=range] {
107
107
  content: "";
108
108
  position: absolute;
109
109
  left: -15px; right: -15px; top: -15px; bottom: -15px;
110
-
111
110
  }
112
111
  &:active {
113
112
  background: $slider-active;//#409bd9;
@@ -129,7 +128,7 @@ input[type=range] {
129
128
  &:after {
130
129
  position: absolute;
131
130
  content: "";
132
- left: 4px; right: 4px; top: 6px;
131
+ left: 0px; right: 0px; top: 6px;
133
132
  height: 5px;
134
133
  background: $slider-track;
135
134
  z-index: -1;
@@ -199,7 +198,7 @@ input::-moz-focus-inner {
199
198
  width: 13px;
200
199
  height: 13px;
201
200
  top: -4px;
202
- left: -5px;
201
+ left: -6px;
203
202
  box-sizing: border-box;
204
203
  border-radius: 100%;
205
204
  }
@@ -217,12 +216,14 @@ input::-moz-focus-inner {
217
216
 
218
217
  .slider-fills {
219
218
  position: absolute;
220
- left: 9px;
219
+ left: 10px;
221
220
  right: 10px;
222
221
  top: 9px;
223
222
  height: 5px;
224
223
  z-index: 1;
225
224
  display: flex;
225
+ box-shadow: $slider-track-line 0 0 0 1px;
226
+ border-radius: 5px;
226
227
  }
227
228
 
228
229
  .slider-fill {
@@ -239,12 +240,12 @@ input::-moz-focus-inner {
239
240
  content: "";
240
241
  position: absolute;
241
242
  top: 0px; left: 0px; right: 0px; bottom: 0px;
242
- box-shadow: $slider-track-line 0 0 0 1px;
243
+ //box-shadow: $slider-track-line 0 0 0 1px;
243
244
  z-index: -1;
244
245
  }
245
246
 
246
247
  &:first-child {
247
- border-left: 1px solid $slider-track-line;
248
+ //border-left: 1px solid $slider-track-line;
248
249
  &, &:before {
249
250
  border-top-left-radius: 5px;
250
251
  border-bottom-left-radius: 5px;
@@ -21,6 +21,8 @@ module Tungsten
21
21
  type: options.delete(:type) || 'button'
22
22
  }
23
23
 
24
+ button_options[:href] = options[:href] if options[:href]
25
+
24
26
  text = capture(&block).html_safe if block_given?
25
27
 
26
28
  button = content_tag tag_name, button_options do
@@ -16,6 +16,11 @@ module Tungsten
16
16
  end
17
17
 
18
18
  def header( text = nil, options = {}, &block )
19
+ if text.is_a? Hash
20
+ options = text
21
+ text = nil
22
+ end
23
+
19
24
  options[:class] = "card-header #{options[:class]}".strip
20
25
 
21
26
  content_tag( :header, options ) {
@@ -25,6 +30,11 @@ module Tungsten
25
30
  end
26
31
 
27
32
  def footer( text = nil, options = {}, &block )
33
+ if text.is_a? Hash
34
+ options = text
35
+ text = nil
36
+ end
37
+
28
38
  options[:class] = "card-footer #{options[:class]}".strip
29
39
 
30
40
  content_tag( :footer, options ) {
@@ -34,6 +44,11 @@ module Tungsten
34
44
  end
35
45
 
36
46
  def description( text = nil, options = {}, &block )
47
+ if text.is_a? Hash
48
+ options = text
49
+ text = nil
50
+ end
51
+
37
52
  options[:class] = "card-description #{options[:class]}".strip
38
53
 
39
54
  content_tag( :p, options ) {
@@ -42,12 +57,18 @@ module Tungsten
42
57
  }
43
58
  end
44
59
 
45
- def actions( options={}, &block )
60
+ def actions( options={}, &block )
46
61
  options[:class] = "card-actions #{options[:class]}".strip
47
62
 
48
63
  content_tag( :nav, options, &block )
49
64
  end
50
65
 
66
+ def well( options={}, &block )
67
+ options[:class] = "card-well #{options[:class]}".strip
68
+
69
+ content_tag( :div, options, &block )
70
+ end
71
+
51
72
  end
52
73
  end
53
74
  end
@@ -1,3 +1,3 @@
1
1
  module Tungsten
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -89,4 +89,4 @@ function move(o){document.documentElement.scrollTop=o,document.body.parentNode.s
89
89
  });
90
90
 
91
91
 
92
- //# sourceMappingURL=/assets/tungsten/code-0.1.5.map.json
92
+ //# sourceMappingURL=/assets/tungsten/code-0.1.6.map.json
File without changes
@@ -262,6 +262,18 @@
262
262
  -ms-flex-flow: row wrap;
263
263
  flex-flow: row wrap; }
264
264
 
265
+ [class*='rows'] {
266
+ display: -webkit-box;
267
+ display: -ms-flexbox;
268
+ display: flex;
269
+ -webkit-box-orient: vertical;
270
+ -webkit-box-direction: normal;
271
+ -ms-flex-flow: column;
272
+ flex-flow: column;
273
+ -webkit-box-align: start;
274
+ -ms-flex-align: start;
275
+ align-items: flex-start; }
276
+
265
277
  form [class*='columns'] {
266
278
  -webkit-box-align: start;
267
279
  -ms-flex-align: start;
@@ -469,6 +481,21 @@ form [class*='columns'] {
469
481
  * Vertical alignment
470
482
  * ------------------------------------- */
471
483
  .top-aligned {
484
+ -webkit-box-align: top;
485
+ -ms-flex-align: top;
486
+ align-items: top; }
487
+
488
+ .bottom-aligned {
489
+ -webkit-box-align: bottom;
490
+ -ms-flex-align: bottom;
491
+ align-items: bottom; }
492
+
493
+ .baseline-aligned {
494
+ -webkit-box-align: baseline;
495
+ -ms-flex-align: baseline;
496
+ align-items: baseline; }
497
+
498
+ .start-aligned {
472
499
  -webkit-box-align: start;
473
500
  -ms-flex-align: start;
474
501
  align-items: flex-start; }
@@ -478,7 +505,7 @@ form [class*='columns'] {
478
505
  -ms-flex-align: center;
479
506
  align-items: center; }
480
507
 
481
- .bottom-aligned {
508
+ .end-aligned {
482
509
  -webkit-box-align: end;
483
510
  -ms-flex-align: end;
484
511
  align-items: flex-end; }
@@ -547,7 +574,7 @@ p, ul, ol, h1, h2, h3, h4, h5, h6, pre, table, .card {
547
574
  * Visibility
548
575
  * ------------------------------------- */
549
576
  .hidden {
550
- display: none;
577
+ display: none !important;
551
578
  visibility: hidden; }
552
579
 
553
580
  /* ========================================================================== *
@@ -919,19 +946,22 @@ table.filled th:last-child, table.filled td:last-child {
919
946
  right: 0;
920
947
  bottom: 0; }
921
948
  .card-heading {
922
- font-size: 16px; }
949
+ font-size: 16px;
950
+ -webkit-box-align: top;
951
+ -ms-flex-align: top;
952
+ align-items: top; }
923
953
  .card-header, .card-footer {
924
954
  display: -webkit-box;
925
955
  display: -ms-flexbox;
926
- display: flex;
927
- -webkit-box-align: baseline;
928
- -ms-flex-align: baseline;
929
- align-items: baseline; }
956
+ display: flex; }
930
957
  .card-header .card-actions, .card-footer .card-actions {
931
958
  margin-bottom: 0;
932
959
  margin-left: auto; }
933
960
  .card-description {
934
961
  font-size: 12px; }
962
+ .card-well {
963
+ padding: 20px;
964
+ margin: 10px 0; }
935
965
  .card-footer {
936
966
  display: -webkit-box;
937
967
  display: -ms-flexbox;
@@ -1696,8 +1726,8 @@ input[type=range]:focus::-ms-thumb {
1696
1726
  input[type=range]:after {
1697
1727
  position: absolute;
1698
1728
  content: "";
1699
- left: 4px;
1700
- right: 4px;
1729
+ left: 0px;
1730
+ right: 0px;
1701
1731
  top: 6px;
1702
1732
  height: 5px;
1703
1733
  background: #f5f7fa;
@@ -1710,8 +1740,8 @@ input[type=range]::-moz-slider-track {
1710
1740
  input[type=range]::-moz-slider-track:after {
1711
1741
  position: absolute;
1712
1742
  content: "";
1713
- left: 4px;
1714
- right: 4px;
1743
+ left: 0px;
1744
+ right: 0px;
1715
1745
  top: 6px;
1716
1746
  height: 5px;
1717
1747
  background: #f5f7fa;
@@ -1724,8 +1754,8 @@ input[type=range]::-ms-track {
1724
1754
  input[type=range]::-ms-track:after {
1725
1755
  position: absolute;
1726
1756
  content: "";
1727
- left: 4px;
1728
- right: 4px;
1757
+ left: 0px;
1758
+ right: 0px;
1729
1759
  top: 6px;
1730
1760
  height: 5px;
1731
1761
  background: #f5f7fa;
@@ -1799,7 +1829,7 @@ input::-moz-focus-inner {
1799
1829
  width: 13px;
1800
1830
  height: 13px;
1801
1831
  top: -4px;
1802
- left: -5px;
1832
+ left: -6px;
1803
1833
  box-sizing: border-box;
1804
1834
  border-radius: 100%; }
1805
1835
  .slider-segment-mark:before {
@@ -1813,14 +1843,16 @@ input::-moz-focus-inner {
1813
1843
 
1814
1844
  .slider-fills {
1815
1845
  position: absolute;
1816
- left: 9px;
1846
+ left: 10px;
1817
1847
  right: 10px;
1818
1848
  top: 9px;
1819
1849
  height: 5px;
1820
1850
  z-index: 1;
1821
1851
  display: -webkit-box;
1822
1852
  display: -ms-flexbox;
1823
- display: flex; }
1853
+ display: flex;
1854
+ box-shadow: rgba(15, 33, 46, 0.2) 0 0 0 1px;
1855
+ border-radius: 5px; }
1824
1856
 
1825
1857
  .slider-fill {
1826
1858
  -webkit-box-flex: 1;
@@ -1839,10 +1871,7 @@ input::-moz-focus-inner {
1839
1871
  left: 0px;
1840
1872
  right: 0px;
1841
1873
  bottom: 0px;
1842
- box-shadow: rgba(15, 33, 46, 0.2) 0 0 0 1px;
1843
1874
  z-index: -1; }
1844
- .slider-fill:first-child {
1845
- border-left: 1px solid rgba(15, 33, 46, 0.2); }
1846
1875
  .slider-fill:first-child, .slider-fill:first-child:before {
1847
1876
  border-top-left-radius: 5px;
1848
1877
  border-bottom-left-radius: 5px; }
Binary file
@@ -78,4 +78,4 @@ function request(e,n,t){return"function"==typeof t?new e("GET",n).end(t):2==argu
78
78
  });
79
79
 
80
80
 
81
- //# sourceMappingURL=/assets/tungsten/tungsten-0.1.5.map.json
81
+ //# sourceMappingURL=/assets/tungsten/tungsten-0.1.6.map.json
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tungsten
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-08-15 00:00:00.000000000 Z
12
+ date: 2017-08-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -198,14 +198,14 @@ files:
198
198
  - lib/tungsten.rb
199
199
  - lib/tungsten/helper.rb
200
200
  - lib/tungsten/version.rb
201
- - public/code-0.1.5.js
202
- - public/code-0.1.5.js.gz
203
- - public/code-0.1.5.map.json
204
- - public/tungsten-0.1.5.css
205
- - public/tungsten-0.1.5.css.gz
206
- - public/tungsten-0.1.5.js
207
- - public/tungsten-0.1.5.js.gz
208
- - public/tungsten-0.1.5.map.json
201
+ - public/code-0.1.6.js
202
+ - public/code-0.1.6.js.gz
203
+ - public/code-0.1.6.map.json
204
+ - public/tungsten-0.1.6.css
205
+ - public/tungsten-0.1.6.css.gz
206
+ - public/tungsten-0.1.6.js
207
+ - public/tungsten-0.1.6.js.gz
208
+ - public/tungsten-0.1.6.map.json
209
209
  homepage:
210
210
  licenses:
211
211
  - MIT
Binary file