tungsten 0.2.14 → 0.2.15
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/_cards.scss +2 -2
- data/app/assets/stylesheets/tungsten/components/_notices.scss +32 -1
- data/app/assets/stylesheets/tungsten/components/_tables.scss +15 -0
- data/app/helpers/tungsten/notice_helper.rb +10 -0
- data/lib/tungsten/version.rb +1 -1
- data/public/{code-0.2.14.js → code-0.2.15.js} +0 -0
- data/public/{code-0.2.14.js.gz → code-0.2.15.js.gz} +0 -0
- data/public/{tungsten-0.2.14.css → tungsten-0.2.15.css} +24 -4
- data/public/tungsten-0.2.15.css.gz +0 -0
- data/public/{tungsten-0.2.14.js → tungsten-0.2.15.js} +0 -0
- data/public/{tungsten-0.2.14.js.gz → tungsten-0.2.15.js.gz} +0 -0
- metadata +8 -8
- data/public/tungsten-0.2.14.css.gz +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f624e117cec414229064375607fe96ad49f39c97d34484bb45bbba100b9b2c76
|
4
|
+
data.tar.gz: 9afab5f602da7c618eb1ff2d3e329e7278b1f29b10ce216bab871d8335798a87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13b6f2e4444e849dd228f5f88a01722c93a74737c8bd2ac3dfb9ee580b23b86c0e265383760233a1aed5d16c4bbca8267a78386be459ee75c2df3471b4475df3
|
7
|
+
data.tar.gz: c248b92dd38943499461b04ca469ef7f204b88fe0102abd807dbe57b80e80ab0df63c76ebc5020dc2221240e5d49bef6ab6f681bdf8b66f6338121e1084dde9b
|
@@ -3,6 +3,14 @@
|
|
3
3
|
background: linear-gradient( lighten($bg, 2), darken($bg, 2));
|
4
4
|
border: 1px solid $border;
|
5
5
|
}
|
6
|
+
|
7
|
+
@mixin inline-notice-colors ($text, $bg, $border) {
|
8
|
+
color: $text;
|
9
|
+
background: $bg;
|
10
|
+
border: 1px solid $border;
|
11
|
+
// border-left: 10px solid $border;
|
12
|
+
}
|
13
|
+
|
6
14
|
.notice {
|
7
15
|
border-radius: $radius;
|
8
16
|
box-shadow: 0 3px 5px rgba($gray-11, .15);
|
@@ -32,7 +40,10 @@
|
|
32
40
|
|
33
41
|
@include notice-colors(currentColor, #fff, $gray-04);
|
34
42
|
|
35
|
-
&.warning,
|
43
|
+
&.warning,
|
44
|
+
&.error,
|
45
|
+
&.inline-notice,
|
46
|
+
&.inline-warning-notice {
|
36
47
|
a {
|
37
48
|
color: inherit;
|
38
49
|
font-weight: bold;
|
@@ -43,8 +54,28 @@
|
|
43
54
|
&.warning {
|
44
55
|
@include notice-colors(#80602A, #fff4ad, #E2C66D);
|
45
56
|
}
|
57
|
+
|
46
58
|
&.error {
|
47
59
|
@include notice-colors(#FFF, #F37B78, #AB5857);
|
48
60
|
text-shadow: rgba(#000, .2) 0 1px 1px;
|
49
61
|
}
|
62
|
+
|
63
|
+
&.inline-notice,
|
64
|
+
&.inline-warning-notice {
|
65
|
+
box-shadow: none;
|
66
|
+
font-size: 0.9em;
|
67
|
+
padding: ($card-padding / 2) $card-padding;
|
68
|
+
|
69
|
+
.notice-title {
|
70
|
+
font-size: 1.1em;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
&.inline-notice {
|
75
|
+
@include inline-notice-colors(darken($blue-02, 10), lighten($blue-01,32), lighten($blue-01, 20));
|
76
|
+
}
|
77
|
+
|
78
|
+
&.inline-warning-notice {
|
79
|
+
@include inline-notice-colors(darken(#d09802, 5), #fffbf1, lighten(#e2bb5a, 10));
|
80
|
+
}
|
50
81
|
}
|
@@ -171,3 +171,18 @@ th.sub-heading {
|
|
171
171
|
[data-toggle] {
|
172
172
|
cursor: pointer;
|
173
173
|
}
|
174
|
+
|
175
|
+
.toggle-nav + .card-well table{
|
176
|
+
margin-top: $card-padding;
|
177
|
+
margin-bottom: $card-padding;
|
178
|
+
background: $gray-02;
|
179
|
+
|
180
|
+
.table-drawer{
|
181
|
+
&-content{
|
182
|
+
padding: $card-padding;
|
183
|
+
}
|
184
|
+
&-handle {
|
185
|
+
background: $white;
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
@@ -5,6 +5,16 @@ module Tungsten
|
|
5
5
|
notice( title, options, &block )
|
6
6
|
end
|
7
7
|
|
8
|
+
def inline_notice( title=nil, options={}, &block )
|
9
|
+
options[:type] = :'inline-notice'
|
10
|
+
notice( title, options, &block )
|
11
|
+
end
|
12
|
+
|
13
|
+
def inline_warning_notice( title=nil, options={}, &block )
|
14
|
+
options[:type] = :'inline-warning-notice'
|
15
|
+
notice( title, options, &block )
|
16
|
+
end
|
17
|
+
|
8
18
|
def notice( title=nil, options={}, &block )
|
9
19
|
if title.is_a? Hash
|
10
20
|
options = title
|
data/lib/tungsten/version.rb
CHANGED
File without changes
|
Binary file
|
@@ -3215,6 +3215,15 @@ th.sub-heading {
|
|
3215
3215
|
[data-toggle] {
|
3216
3216
|
cursor: pointer; }
|
3217
3217
|
|
3218
|
+
.toggle-nav + .card-well table {
|
3219
|
+
margin-top: 20px;
|
3220
|
+
margin-bottom: 20px;
|
3221
|
+
background: #f5f7fa; }
|
3222
|
+
.toggle-nav + .card-well table .table-drawer-content {
|
3223
|
+
padding: 20px; }
|
3224
|
+
.toggle-nav + .card-well table .table-drawer-handle {
|
3225
|
+
background: #fff; }
|
3226
|
+
|
3218
3227
|
/* ========================================================================== *
|
3219
3228
|
* Buttons module
|
3220
3229
|
* -------------------------------------------------------------------------- */
|
@@ -3431,9 +3440,6 @@ th.sub-heading {
|
|
3431
3440
|
border-radius: 3px; }
|
3432
3441
|
.card-well .input-row:first-child {
|
3433
3442
|
margin-top: 15px; }
|
3434
|
-
.card-well table {
|
3435
|
-
margin-top: 0;
|
3436
|
-
margin-bottom: 0; }
|
3437
3443
|
.card-well table td {
|
3438
3444
|
background: none; }
|
3439
3445
|
.card-divider {
|
@@ -3542,7 +3548,7 @@ table.card {
|
|
3542
3548
|
.notice .dismiss-notice:hover {
|
3543
3549
|
opacity: 1;
|
3544
3550
|
color: inherit; }
|
3545
|
-
.notice.warning a, .notice.error a {
|
3551
|
+
.notice.warning a, .notice.error a, .notice.inline-notice a, .notice.inline-warning-notice a {
|
3546
3552
|
color: inherit;
|
3547
3553
|
font-weight: bold;
|
3548
3554
|
-webkit-text-decoration-color: currentColor;
|
@@ -3556,6 +3562,20 @@ table.card {
|
|
3556
3562
|
background: linear-gradient(#f48481, #f2726f);
|
3557
3563
|
border: 1px solid #AB5857;
|
3558
3564
|
text-shadow: rgba(0, 0, 0, 0.2) 0 1px 1px; }
|
3565
|
+
.notice.inline-notice, .notice.inline-warning-notice {
|
3566
|
+
box-shadow: none;
|
3567
|
+
font-size: 0.9em;
|
3568
|
+
padding: 10px 20px; }
|
3569
|
+
.notice.inline-notice .notice-title, .notice.inline-warning-notice .notice-title {
|
3570
|
+
font-size: 1.1em; }
|
3571
|
+
.notice.inline-notice {
|
3572
|
+
color: #297bdf;
|
3573
|
+
background: #f8fcff;
|
3574
|
+
border: 1px solid #bdddfd; }
|
3575
|
+
.notice.inline-warning-notice {
|
3576
|
+
color: #b78602;
|
3577
|
+
background: #fffbf1;
|
3578
|
+
border: 1px solid #eacd85; }
|
3559
3579
|
|
3560
3580
|
.flash-message {
|
3561
3581
|
display: none; }
|
Binary file
|
File without changes
|
Binary file
|
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.2.
|
4
|
+
version: 0.2.15
|
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: 2019-03-
|
12
|
+
date: 2019-03-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -317,12 +317,12 @@ files:
|
|
317
317
|
- lib/tungsten.rb
|
318
318
|
- lib/tungsten/helper.rb
|
319
319
|
- lib/tungsten/version.rb
|
320
|
-
- public/code-0.2.
|
321
|
-
- public/code-0.2.
|
322
|
-
- public/tungsten-0.2.
|
323
|
-
- public/tungsten-0.2.
|
324
|
-
- public/tungsten-0.2.
|
325
|
-
- public/tungsten-0.2.
|
320
|
+
- public/code-0.2.15.js
|
321
|
+
- public/code-0.2.15.js.gz
|
322
|
+
- public/tungsten-0.2.15.css
|
323
|
+
- public/tungsten-0.2.15.css.gz
|
324
|
+
- public/tungsten-0.2.15.js
|
325
|
+
- public/tungsten-0.2.15.js.gz
|
326
326
|
homepage:
|
327
327
|
licenses:
|
328
328
|
- MIT
|
Binary file
|