tungsten 0.1.54 → 0.1.55

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: 395efb7d7c4f47261f1427a44a84fffe51b71d8d
4
- data.tar.gz: ece1c6868e510172ab88015c3d2ef6d04c7dee9c
3
+ metadata.gz: a05121ce32ce9611cda2455c96b4e4a27850b3bf
4
+ data.tar.gz: 5a448f87d48b99e3ba884a30d77ed192b33b0753
5
5
  SHA512:
6
- metadata.gz: c636f777e60abd3fbfaccdae8164f332eb2136368af9077d9b1442de3d5b46c9a104cff80cd55ff630b450a63f0181a935ea7aa1b90ebf4789901453aa139fc8
7
- data.tar.gz: 1519e212244375e13bbe2635ef06c524cc6b8806df44fa3330c261c6997f9ee9c89332bac0e787c9d7a7be5e59ebc30184d762dc70d45a4f9c10d16c860960db
6
+ metadata.gz: 9e228e9ae87ca0d4516368f34ca4f7d00d190407b78eec63c21ec24afe4a0e0b0703b894e5c85f2627d63ea379b5464917a4fa163baa563760c6efaed977ae05
7
+ data.tar.gz: bb0eec52af055dd8192e6822882e33056bbf9c6160d2d28c0b825dd665df71755e7f80d0f2e2b96e8e27decaf6562c3e5160a590f5b0e3527cc19f31092579e0
@@ -23,6 +23,7 @@
23
23
  }
24
24
  }
25
25
 
26
+
26
27
  // Magic Number: Push absolute positioned copy-button
27
28
  // down to account for label on top
28
29
  .standard-label + .button-wrapper .copy-button {
@@ -30,6 +31,12 @@
30
31
  }
31
32
  }
32
33
 
34
+ .shell-text .copy-button {
35
+ &, &:hover, &:active, &:focus {
36
+ background: linear-gradient( 60deg, rgba($shell-bg, 0), $shell-bg 30%)
37
+ }
38
+ }
39
+
33
40
  .copy-button {
34
41
  &.copied {
35
42
  svg { fill: $green-02; }
@@ -18,3 +18,6 @@
18
18
  background: linear-gradient(135deg, #{$start}, #{$end}) left top/100% 100% no-repeat;
19
19
  }
20
20
  }
21
+
22
+ $shell-bg: $gray-02;
23
+ $shell-text: $gray-09;
@@ -200,7 +200,8 @@ pre {
200
200
  white-space: pre-wrap;
201
201
  border-radius: $radius;
202
202
  padding: 1px 1px;
203
- background: $gray-03;
203
+ background: $shell-bg;
204
+ color: $shell-text;
204
205
  //box-shadow: 0 0 0 1px silver inset;
205
206
  }
206
207
 
@@ -82,6 +82,15 @@ textarea,
82
82
  }
83
83
  }
84
84
 
85
+ .shell-text {
86
+ textarea,
87
+ #{$text-inputs} {
88
+ font-family: $mono-font;
89
+ background-color: $shell-bg;
90
+ color: $shell-text;
91
+ }
92
+ }
93
+
85
94
  .input-wrapper {
86
95
  position: relative;
87
96
  display: inline;
@@ -360,6 +360,7 @@ module Tungsten
360
360
 
361
361
  def input_tag(type, name, value, options=nil, &block)
362
362
  type.to_sym! if type.is_a?( String )
363
+ input_wrapper_options = { class: 'input-wrapper' }
363
364
 
364
365
  if value.is_a? Hash
365
366
  options = value
@@ -398,6 +399,10 @@ module Tungsten
398
399
 
399
400
  options[:class] = "#{options[:class]} #{copy_class}".strip if copy_class
400
401
 
402
+ if options.delete(:shell_text)
403
+ input_wrapper_options[:class] += ' shell-text'
404
+ end
405
+
401
406
  tag = base_tag(name, value, options, type, &block)
402
407
 
403
408
  label = content_tag(:label, label_options) {
@@ -407,7 +412,7 @@ module Tungsten
407
412
  concat tag
408
413
  concat placeholder
409
414
  else
410
- concat content_tag(:span, class: 'input-wrapper') {
415
+ concat content_tag(:span, input_wrapper_options) {
411
416
  concat tag
412
417
  concat placeholder
413
418
  }
@@ -433,7 +438,8 @@ module Tungsten
433
438
  }
434
439
 
435
440
  if copy
436
- content_tag(:span, class: 'copy-input input-wrapper') {
441
+ input_wrapper_options[:class] += " copy-input"
442
+ content_tag(:span, input_wrapper_options) {
437
443
  concat label
438
444
  concat copy
439
445
  }
@@ -1,3 +1,3 @@
1
1
  module Tungsten
2
- VERSION = "0.1.54"
2
+ VERSION = "0.1.55"
3
3
  end
@@ -92,4 +92,4 @@ function move(o){document.documentElement.scrollTop=o,document.body.parentNode.s
92
92
  });
93
93
 
94
94
 
95
- //# sourceMappingURL=/assets/tungsten/code-0.1.54.map.json
95
+ //# sourceMappingURL=/assets/tungsten/code-0.1.55.map.json
@@ -1060,7 +1060,8 @@ pre {
1060
1060
  white-space: pre-wrap;
1061
1061
  border-radius: 3px;
1062
1062
  padding: 1px 1px;
1063
- background: #f0f3f6; }
1063
+ background: #f5f7fa;
1064
+ color: #5a6872; }
1064
1065
 
1065
1066
  /* ===================================== *
1066
1067
  * Text alignment
@@ -2124,6 +2125,11 @@ select::-moz-focus-inner, textarea::-moz-focus-inner, textarea::-moz-focus-inner
2124
2125
  border: none;
2125
2126
  padding: 0; }
2126
2127
 
2128
+ .shell-text textarea, .shell-text textarea, .shell-text input[type=url], .shell-text input[type=tel], .shell-text input[type=text], .shell-text input[type=email], .shell-text input[type=number], .shell-text input[type=password], .shell-text input[type=search] {
2129
+ font-family: "Roboto Mono", Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
2130
+ background-color: #f5f7fa;
2131
+ color: #5a6872; }
2132
+
2127
2133
  .input-wrapper {
2128
2134
  position: relative;
2129
2135
  display: inline; }
@@ -3549,6 +3555,10 @@ table.card {
3549
3555
  .copy-input .standard-label + .button-wrapper .copy-button {
3550
3556
  top: 1.75em; }
3551
3557
 
3558
+ .shell-text .copy-button, .shell-text .copy-button:hover, .shell-text .copy-button:active, .shell-text .copy-button:focus {
3559
+ background: -webkit-linear-gradient(30deg, rgba(245, 247, 250, 0), #f5f7fa 30%);
3560
+ background: linear-gradient(60deg, rgba(245, 247, 250, 0), #f5f7fa 30%); }
3561
+
3552
3562
  .copy-button.copied svg {
3553
3563
  fill: #5aa700; }
3554
3564
 
Binary file
@@ -100,4 +100,4 @@ function request(e,n,t){return"function"==typeof t?new e("GET",n).end(t):2==argu
100
100
  });
101
101
 
102
102
 
103
- //# sourceMappingURL=/assets/tungsten/tungsten-0.1.54.map.json
103
+ //# sourceMappingURL=/assets/tungsten/tungsten-0.1.55.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.54
4
+ version: 0.1.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
@@ -305,14 +305,14 @@ files:
305
305
  - lib/tungsten.rb
306
306
  - lib/tungsten/helper.rb
307
307
  - lib/tungsten/version.rb
308
- - public/code-0.1.54.js
309
- - public/code-0.1.54.js.gz
310
- - public/code-0.1.54.map.json
311
- - public/tungsten-0.1.54.css
312
- - public/tungsten-0.1.54.css.gz
313
- - public/tungsten-0.1.54.js
314
- - public/tungsten-0.1.54.js.gz
315
- - public/tungsten-0.1.54.map.json
308
+ - public/code-0.1.55.js
309
+ - public/code-0.1.55.js.gz
310
+ - public/code-0.1.55.map.json
311
+ - public/tungsten-0.1.55.css
312
+ - public/tungsten-0.1.55.css.gz
313
+ - public/tungsten-0.1.55.js
314
+ - public/tungsten-0.1.55.js.gz
315
+ - public/tungsten-0.1.55.map.json
316
316
  homepage:
317
317
  licenses:
318
318
  - MIT
Binary file