tungsten 0.1.54 → 0.1.55
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.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/tungsten/components/_copy-input.scss +7 -0
- data/app/assets/stylesheets/tungsten/core/_colors.scss +3 -0
- data/app/assets/stylesheets/tungsten/core/_text.scss +2 -1
- data/app/assets/stylesheets/tungsten/form/_base.scss +9 -0
- data/app/helpers/tungsten/form_helper.rb +8 -2
- data/lib/tungsten/version.rb +1 -1
- data/public/{code-0.1.54.js → code-0.1.55.js} +1 -1
- data/public/{code-0.1.54.js.gz → code-0.1.55.js.gz} +0 -0
- data/public/{code-0.1.54.map.json → code-0.1.55.map.json} +0 -0
- data/public/{tungsten-0.1.54.css → tungsten-0.1.55.css} +11 -1
- data/public/tungsten-0.1.55.css.gz +0 -0
- data/public/{tungsten-0.1.54.js → tungsten-0.1.55.js} +1 -1
- data/public/{tungsten-0.1.54.js.gz → tungsten-0.1.55.js.gz} +0 -0
- data/public/{tungsten-0.1.54.map.json → tungsten-0.1.55.map.json} +0 -0
- metadata +9 -9
- data/public/tungsten-0.1.54.css.gz +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a05121ce32ce9611cda2455c96b4e4a27850b3bf
|
4
|
+
data.tar.gz: 5a448f87d48b99e3ba884a30d77ed192b33b0753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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; }
|
@@ -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,
|
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
|
-
|
441
|
+
input_wrapper_options[:class] += " copy-input"
|
442
|
+
content_tag(:span, input_wrapper_options) {
|
437
443
|
concat label
|
438
444
|
concat copy
|
439
445
|
}
|
data/lib/tungsten/version.rb
CHANGED
Binary file
|
File without changes
|
@@ -1060,7 +1060,8 @@ pre {
|
|
1060
1060
|
white-space: pre-wrap;
|
1061
1061
|
border-radius: 3px;
|
1062
1062
|
padding: 1px 1px;
|
1063
|
-
background: #
|
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
|
Binary file
|
File without changes
|
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.
|
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.
|
309
|
-
- public/code-0.1.
|
310
|
-
- public/code-0.1.
|
311
|
-
- public/tungsten-0.1.
|
312
|
-
- public/tungsten-0.1.
|
313
|
-
- public/tungsten-0.1.
|
314
|
-
- public/tungsten-0.1.
|
315
|
-
- public/tungsten-0.1.
|
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
|