tungsten 0.1.38 → 0.1.39

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: 0c889a46504f589e687415ee49b95ca18e3e9857
4
- data.tar.gz: 316da603cd1381f54aa9c260a144fbebdd0b4c45
3
+ metadata.gz: c59c5d4f0bd8ea5882328580bdddf35537449c87
4
+ data.tar.gz: 03ee459a81633755b7dfbc7b3ea48788aef51b1d
5
5
  SHA512:
6
- metadata.gz: 154479d81b243fcedeb2b37c092fe60dd4332dae7015a2e50a3c3b7023fb1d36acd01b29a67e5a08b91d4d8089aaa25311d86e2ea0fbe1f4839cd7607df25023
7
- data.tar.gz: c1b98c8d4b3389de5f31c6f4ca5232f42b3880f976840539098ae0ae43157e4cd1ba66c656b23107d922b816030d31a8ba6f815efd47398f1a51b0ab64cfa895
6
+ metadata.gz: 68a0015da4574e953430b1509f34e17662873dfe7e9dd297559473b3425942ac1d0ff4f224db5abe8cd118b7176e2d04a99dbb8afd9984b97e53ad3c9a93030c
7
+ data.tar.gz: 26d904dbb793641fecb70b9793d2bd79b4506814de1ea856dbd1510d7493bc9632dcdd46d2902e14a74d88cabb11678d6c88a11b3aca97ef44620d7603640331
@@ -15,13 +15,14 @@
15
15
  flex-direction: column;
16
16
  position: relative;
17
17
  padding: $card-padding;
18
+ transition: opacity .2s, transform .2s;
18
19
  @include collapse-bottom;
20
+ @include collapse-top;
19
21
 
20
22
  // Card actions panel
21
23
  &-actions {
22
24
  display: flex;
23
25
  align-items: baseline;
24
- margin-bottom: $card-padding;
25
26
  flex-direction: row-reverse;
26
27
 
27
28
  &.centered {
@@ -62,8 +63,9 @@
62
63
  margin-bottom: 0;
63
64
  }
64
65
 
65
- &-header { margin-bottom: $vertical-margin; }
66
- &-footer { margin-top: $vertical-margin; }
66
+ &-content {
67
+ &:first-child *:first-child { margin-top: 0; }
68
+ }
67
69
 
68
70
  &-header,
69
71
  &-footer {
@@ -104,11 +106,11 @@
104
106
  box-shadow: 0 1px rgba($gray-11, .1) inset;
105
107
  background-clip: padding-box;
106
108
 
107
- #{$block-elements} {
108
- margin-bottom: 0;
109
- }
109
+ > * { margin: 0; }
110
110
  }
111
111
 
112
+ // Keep footer (or form if it wraps the footer)
113
+ // nestled up against the card edges
112
114
  & > &-footer:last-child,
113
115
  & > *:last-child > &-footer:last-child,
114
116
  & > *:last-child > *:last-child > &-footer:last-child {
@@ -119,3 +121,29 @@
119
121
  table.card {
120
122
  display: table;
121
123
  }
124
+
125
+ .card-section {
126
+ transition: max-height .4s $timing;
127
+
128
+ &.visible {
129
+ max-height: 240vh;
130
+
131
+ .card {
132
+ opacity: 1;
133
+ transform: scale(1);
134
+ }
135
+ }
136
+
137
+ &.hidden {
138
+ max-height: 0;
139
+ transition-duration: .3s;
140
+ transition-timing-function: $timing;
141
+ display: initial;
142
+
143
+ .card {
144
+ opacity: 0;
145
+ transform: scale(0.99);
146
+ transition-delay: .1s, .1s;
147
+ }
148
+ }
149
+ }
@@ -105,17 +105,16 @@ th.sub-heading {
105
105
 
106
106
 
107
107
  .table-drawer-handle {
108
-
109
108
  .drawer-indicator button {
110
109
  transition: transform .2s;
111
110
  }
112
111
 
113
112
  td {
114
113
  transition: background-position .35s ease-out;
115
- background-image: linear-gradient(#fff, mix(#fff, $blue-01, 88%));
114
+ background-image: linear-gradient(#fff, #fff, mix(#fff, $blue-01, 88%));
116
115
  background-position: left top;
117
116
  background-repeat: no-repeat;
118
- background-size: 100% 250%;
117
+ background-size: 100% 400%;
119
118
  }
120
119
 
121
120
  &.toggle-handle:hover {
@@ -157,6 +156,7 @@ th.sub-heading {
157
156
  }
158
157
 
159
158
  .table-drawer {
159
+
160
160
  td {
161
161
  padding: 0;
162
162
  border-top: none !important;
@@ -166,6 +166,8 @@ th.sub-heading {
166
166
  }
167
167
 
168
168
  &-content-wrapper {
169
+ @include collapse-top;
170
+ @include collapse-bottom;
169
171
  overflow: hidden;
170
172
  transition: max-height .4s $timing;
171
173
  box-shadow: 0 1px 0 0 $gray-04 inset;
@@ -175,9 +177,6 @@ th.sub-heading {
175
177
  transition: opacity .2s, transform .2s;
176
178
  transition-delay: .16s, .2s;
177
179
  padding: 8px;
178
- >:last-child {
179
- margin-bottom: 0;
180
- }
181
180
  }
182
181
  }
183
182
 
@@ -4,7 +4,6 @@
4
4
  position: relative;
5
5
  z-index: 1;
6
6
  margin-bottom: -35px;
7
- margin-top: 20px;
8
7
 
9
8
  &-label {
10
9
  box-shadow: $input-shadow;
@@ -2,6 +2,7 @@
2
2
  background-color: $gray-10;
3
3
  color: $white;
4
4
  display: flex;
5
+ width: 100%;
5
6
  align-items: center;
6
7
  padding: $content-padding * .5 $content-padding;
7
8
 
@@ -2,6 +2,13 @@
2
2
  * Globals module
3
3
  * -------------------------------------------------------------------------- */
4
4
 
5
+ /* ===================================== *
6
+ * Responsive Sizes
7
+ * ------------------------------------- */
8
+
9
+ $medium-width: 600px;
10
+ $large-width: 1000px;
11
+
5
12
  /* ===================================== *
6
13
  * Fonts
7
14
  * ------------------------------------- */
@@ -103,6 +110,13 @@ $header-height: 84px;
103
110
  }
104
111
  }
105
112
 
113
+ .collapse, .collpase-top {
114
+ @include collapse-top;
115
+ }
116
+ .collapse, .collpase-bottom {
117
+ @include collapse-bottom;
118
+ }
119
+
106
120
  // Modules with max-width and padding
107
121
  @mixin padded-module($width: 1100px, $padding: null, $nested: true) {
108
122
  padding-left: calc(50vw - #{$width / 2});
@@ -94,8 +94,15 @@ form [class*='columns'] {
94
94
  display: flex;
95
95
 
96
96
  // Add gutter between top level elements
97
- > * ~ * {
98
- margin-left: 8px;
97
+ &:not(.no-gutter) {
98
+ > * ~ * {
99
+ margin-left: 8px;
100
+ }
101
+ }
102
+ &.medium-gutter {
103
+ > * ~ * {
104
+ margin-left: $card-padding;
105
+ }
99
106
  }
100
107
  }
101
108
 
@@ -29,8 +29,9 @@ body {
29
29
 
30
30
  main {
31
31
  display: flex;
32
- flex-direction: column;
33
- flex: 1;
32
+ flex-flow: row wrap;
33
+ align-items: stretch;
34
+ justify-content: space-around;
34
35
  }
35
36
 
36
37
  body,
@@ -42,9 +43,9 @@ textarea {
42
43
  @mixin block-margin ($margin: $vertical-margin) {
43
44
  margin-top: $margin;
44
45
  margin-bottom: $margin;
45
- &:first-child {
46
- margin-top: 0;
47
- }
46
+ //&:first-child {
47
+ //margin-top: 0;
48
+ //}
48
49
  }
49
50
 
50
51
  #{$block-elements} {
@@ -56,6 +57,14 @@ textarea {
56
57
  * ------------------------------------- */
57
58
 
58
59
  .application-content {
59
- padding: $content-padding;
60
+ max-width: 1280px;
61
+ flex: 1 1 auto;
62
+
63
+ @include at-least($medium-width) {
64
+ padding: 0 15px 80px;
65
+ }
66
+ @include at-least($large-width) {
67
+ padding: 10px 30px 80px;
68
+ }
60
69
  }
61
70
 
@@ -2,34 +2,59 @@
2
2
  * Navigation module
3
3
  * -------------------------------------------------------------------------- */
4
4
 
5
- .horizontal-nav {
5
+ .horizontal-nav, .vertical-nav {
6
6
  display: flex;
7
- flex-flow: row wrap;
8
7
  position: relative;
9
- background: $white;
10
- box-shadow:
11
- 0 -1px rgba($gray-11, .1) inset,
12
- 0 0 0 1px rgba($gray-11, .05) inset,
13
- 0 1px 3px -1px rgba($gray-11, .1);
8
+ //background: $white;
9
+ //box-shadow:
10
+ //0 -1px rgba($gray-11, .1) inset,
11
+ //0 0 0 1px rgba($gray-11, .05) inset,
12
+ //0 1px 3px -1px rgba($gray-11, .1);
14
13
 
15
14
  a {
16
15
  padding: 9px 12px;
17
16
  text-decoration: none;
18
- transition: background $duration;
17
+ transition: background-position .4s ease-out;
18
+ background-image: linear-gradient(to right, $gray-02, $gray-02, #fff, #fff);
19
+ background-position: left top;
20
+ background-size: 400% 100%;
19
21
 
20
22
  @include normal {
21
- color: $blue-03;
22
- background: transparent;
23
+ color: $gray-09;
23
24
  }
24
25
 
25
- &.active {
26
- color: $blue-03;
27
- background: rgba($blue-03, .1);
26
+ &.here {
27
+ color: $gray-10;
28
+ background-position: right top;
28
29
  }
29
30
 
30
31
  @include active {
31
- color: $blue-03;
32
- background: rgba($blue-03, .1);
32
+ color: $gray-10;
33
+ background-position: right top;
33
34
  }
34
35
  }
35
- }
36
+ }
37
+
38
+ .horizontal-nav {
39
+ flex-flow: row wrap;
40
+ }
41
+
42
+ .vertical-nav {
43
+ flex-flow: column;
44
+ border-right: 1px solid $gray-04;
45
+ a {
46
+ border-bottom: 1px solid $gray-04;
47
+ }
48
+ }
49
+
50
+ .card-nav {
51
+ background: $gray-01;
52
+ border-top-left-radius: 5px;
53
+ margin: -$card-padding { right: $card-padding; }
54
+ a:first-child {
55
+ border-top-left-radius: $radius - 1;
56
+ }
57
+ a:last-child {
58
+ border-bottom-left-radius: $radius - 1;
59
+ }
60
+ }
@@ -3,26 +3,32 @@
3
3
  * -------------------------------------------------------------------------- */
4
4
 
5
5
  .app-section {
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ padding-bottom: $card-padding;
6
9
 
7
- &-header,
8
- &-footer {
9
- display: flex;
10
- align-items: baseline;
11
-
12
- .section-actions {
13
- margin-bottom: 0;
14
- margin-left: auto;
15
- }
10
+ ~ .app-section {
11
+ border-top: 1px solid $gray-04;
12
+ padding-top: $card-padding;
16
13
  }
17
14
 
18
15
  &-header {
19
- justify-content: space-between;
20
- // @include block-margin;
16
+ flex: 1 0 240px;
17
+ padding: 0 $card-padding 0;
21
18
  }
22
19
 
23
20
  &-heading {
24
- font-size: 20px;
25
- margin: 0;
21
+ font-size: 18px;
22
+ @include at-least($medium-width) {
23
+ padding: $card-padding 0 0;
24
+ }
25
+ }
26
+
27
+ &-content {
28
+ flex: 2 1 500px;
29
+ @include at-least($large-width) {
30
+ padding: 0 $card-padding 0;
31
+ }
26
32
  }
27
33
 
28
34
  &.narrow {
@@ -1,6 +1,6 @@
1
1
  .input-row {
2
- @include block-margin;
3
2
  display: flex;
3
+ margin-bottom: $vertical-margin;
4
4
 
5
5
  // Input wrappers should be large as possible
6
6
  .input-wrapper { flex-grow: 1; }
@@ -11,8 +11,7 @@
11
11
  }
12
12
 
13
13
  // For some reason buttons are 2px too tall
14
- > .button-wrapper button {
15
- margin: { top: 1px; }
16
- height: 41px;
14
+ > .button-wrapper {
15
+ align-self: center;
17
16
  }
18
17
  }
@@ -13,14 +13,17 @@ module Tungsten
13
13
  end
14
14
 
15
15
  def display( body )
16
- content_tag( :section, @options ) do
16
+
17
+ content_tag( :section, id: @options.delete(:id), class: "card-section #{"hidden" if @options.delete(:hidden)}".strip ) do
17
18
  @options[:class] = "card #{@options[:class]}".strip
18
- concat header( @title ) if @title
19
- if first_header = body.scan(/\A<header.+?header>/m).first
20
- concat first_header.html_safe
21
- body = body.sub(first_header, '').html_safe
19
+ content_tag( :div, @options ) do
20
+ concat header( @title ) if @title
21
+ if first_header = body.scan(/\A<header.+?header>/m).first
22
+ concat first_header.html_safe
23
+ body = body.sub(first_header, '').html_safe
24
+ end
25
+ concat content_tag(:div, class: 'card-content') { body }
22
26
  end
23
- concat content_tag(:div, class: 'card-content') { body }
24
27
  end
25
28
  end
26
29
 
@@ -48,7 +51,7 @@ module Tungsten
48
51
 
49
52
  content_tag( :footer, options ) {
50
53
  concat content_tag( :p, text ) unless text.nil?
51
- concat capture(&block).html_safe
54
+ concat capture(&block).html_safe if block_given?
52
55
  }
53
56
  end
54
57
 
@@ -9,7 +9,7 @@ module Tungsten
9
9
 
10
10
  def display( body )
11
11
  content_tag( :section, @options ) do
12
- @options[:class] = "app-section #{@options[:class]}".strip
12
+ @options[:class] = "app-section #{@options[:class]} #{"hidden" if @options.delete(:hidden)}".strip
13
13
  concat header( @title ) if @title
14
14
  concat body
15
15
  end
@@ -20,25 +20,13 @@ module Tungsten
20
20
 
21
21
  content_tag( :header, options ) {
22
22
  concat content_tag( :h2, text, class: 'app-section-heading' ) if text
23
- concat capture(&block).html_safe if block_given?
23
+ concat content_tag( :div, class: 'app-section-heading-description', &block) if block_given?
24
24
  }
25
25
  end
26
26
 
27
- def footer( text = nil, options = {}, &block )
28
- options[:class] = "app-section-footer #{options[:class]}".strip
29
-
30
- content_tag( :footer, options ) {
31
- concat content_tag( :p, text ) unless text.nil?
32
- concat capture(&block).html_safe
33
- }
34
- end
35
-
36
- def actions( options={}, &block )
37
- options[:class] = "app-section-actions #{options[:class]}".strip
38
-
39
- content_tag( :nav, options, &block )
27
+ def content( options={}, &block )
28
+ content_tag( :div, class: 'app-section-content', &block )
40
29
  end
41
-
42
30
  end
43
31
  end
44
32
  end
@@ -1,3 +1,3 @@
1
1
  module Tungsten
2
- VERSION = "0.1.38"
2
+ VERSION = "0.1.39"
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.38.map.json
92
+ //# sourceMappingURL=/assets/tungsten/code-0.1.39.map.json
@@ -230,6 +230,9 @@
230
230
  /* ========================================================================== *
231
231
  * Globals module
232
232
  * -------------------------------------------------------------------------- */
233
+ /* ===================================== *
234
+ * Responsive Sizes
235
+ * ------------------------------------- */
233
236
  /* ===================================== *
234
237
  * Fonts
235
238
  * ------------------------------------- */
@@ -245,6 +248,12 @@
245
248
  /* ===================================== *
246
249
  * Layout
247
250
  * ------------------------------------- */
251
+ .collapse > *:first-child, .collapse > *:first-child > *:first-child, .collapse > *:first-child > *:first-child > *:first-child, .collpase-top > *:first-child, .collpase-top > *:first-child > *:first-child, .collpase-top > *:first-child > *:first-child > *:first-child {
252
+ margin-top: 0; }
253
+
254
+ .collapse > *:last-child, .collapse > *:last-child > *:last-child, .collapse > *:last-child > *:last-child > *:last-child, .collpase-bottom > *:last-child, .collpase-bottom > *:last-child > *:last-child, .collpase-bottom > *:last-child > *:last-child > *:last-child {
255
+ margin-bottom: 0; }
256
+
248
257
  /* ===================================== *
249
258
  * Context
250
259
  * ------------------------------------- */
@@ -420,8 +429,10 @@ form [class*='columns'] {
420
429
  display: -webkit-box;
421
430
  display: -ms-flexbox;
422
431
  display: flex; }
423
- .flex-row > * ~ * {
432
+ .flex-row:not(.no-gutter) > * ~ * {
424
433
  margin-left: 8px; }
434
+ .flex-row.medium-gutter > * ~ * {
435
+ margin-left: 20px; }
425
436
 
426
437
  .one-of-eight, .eight-columns > * {
427
438
  -webkit-box-flex: 0;
@@ -677,13 +688,15 @@ main {
677
688
  display: -webkit-box;
678
689
  display: -ms-flexbox;
679
690
  display: flex;
680
- -webkit-box-orient: vertical;
691
+ -webkit-box-orient: horizontal;
681
692
  -webkit-box-direction: normal;
682
- -ms-flex-direction: column;
683
- flex-direction: column;
684
- -webkit-box-flex: 1;
685
- -ms-flex: 1;
686
- flex: 1; }
693
+ -ms-flex-flow: row wrap;
694
+ flex-flow: row wrap;
695
+ -webkit-box-align: stretch;
696
+ -ms-flex-align: stretch;
697
+ align-items: stretch;
698
+ -ms-flex-pack: distribute;
699
+ justify-content: space-around; }
687
700
 
688
701
  body, input, textarea {
689
702
  color: #0f212e; }
@@ -691,14 +704,21 @@ body, input, textarea {
691
704
  p, ul, ol, h1, h2, h3, h4, h5, h6, pre, table, .card {
692
705
  margin-top: 20px;
693
706
  margin-bottom: 20px; }
694
- p:first-child, ul:first-child, ol:first-child, h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child, pre:first-child, table:first-child, .card:first-child {
695
- margin-top: 0; }
696
707
 
697
708
  /* ===================================== *
698
709
  * Application
699
710
  * ------------------------------------- */
700
711
  .application-content {
701
- padding: 30px; }
712
+ max-width: 1280px;
713
+ -webkit-box-flex: 1;
714
+ -ms-flex: 1 1 auto;
715
+ flex: 1 1 auto; }
716
+ @media all and (min-width: 600px) {
717
+ .application-content {
718
+ padding: 0 15px 80px; } }
719
+ @media all and (min-width: 1000px) {
720
+ .application-content {
721
+ padding: 10px 30px 80px; } }
702
722
 
703
723
  /* ========================================================================== *
704
724
  * Text module
@@ -866,23 +886,33 @@ pre {
866
886
  /* ========================================================================== *
867
887
  * Sections module
868
888
  * -------------------------------------------------------------------------- */
869
- .app-section-header, .app-section-footer {
889
+ .app-section {
870
890
  display: -webkit-box;
871
891
  display: -ms-flexbox;
872
892
  display: flex;
873
- -webkit-box-align: baseline;
874
- -ms-flex-align: baseline;
875
- align-items: baseline; }
876
- .app-section-header .section-actions, .app-section-footer .section-actions {
877
- margin-bottom: 0;
878
- margin-left: auto; }
893
+ -ms-flex-wrap: wrap;
894
+ flex-wrap: wrap;
895
+ padding-bottom: 20px; }
896
+ .app-section ~ .app-section {
897
+ border-top: 1px solid #dfe3e6;
898
+ padding-top: 20px; }
879
899
  .app-section-header {
880
- -webkit-box-pack: justify;
881
- -ms-flex-pack: justify;
882
- justify-content: space-between; }
900
+ -webkit-box-flex: 1;
901
+ -ms-flex: 1 0 240px;
902
+ flex: 1 0 240px;
903
+ padding: 0 20px 0; }
883
904
  .app-section-heading {
884
- font-size: 20px;
885
- margin: 0; }
905
+ font-size: 18px; }
906
+ @media all and (min-width: 600px) {
907
+ .app-section-heading {
908
+ padding: 20px 0 0; } }
909
+ .app-section-content {
910
+ -webkit-box-flex: 2;
911
+ -ms-flex: 2 1 500px;
912
+ flex: 2 1 500px; }
913
+ @media all and (min-width: 1000px) {
914
+ .app-section-content {
915
+ padding: 0 20px 0; } }
886
916
  .app-section.narrow {
887
917
  max-width: 600px;
888
918
  margin-left: auto;
@@ -891,31 +921,53 @@ pre {
891
921
  /* ========================================================================== *
892
922
  * Navigation module
893
923
  * -------------------------------------------------------------------------- */
894
- .horizontal-nav {
924
+ .horizontal-nav, .vertical-nav {
895
925
  display: -webkit-box;
896
926
  display: -ms-flexbox;
897
927
  display: flex;
928
+ position: relative; }
929
+ .horizontal-nav a, .vertical-nav a {
930
+ padding: 9px 12px;
931
+ text-decoration: none;
932
+ -webkit-transition: background-position .4s ease-out;
933
+ transition: background-position .4s ease-out;
934
+ background-image: -webkit-linear-gradient(left, #f5f7fa, #f5f7fa, #fff, #fff);
935
+ background-image: linear-gradient(to right, #f5f7fa, #f5f7fa, #fff, #fff);
936
+ background-position: left top;
937
+ background-size: 400% 100%; }
938
+ .horizontal-nav a, .horizontal-nav a:visited, .vertical-nav a, .vertical-nav a:visited {
939
+ color: #5a6872; }
940
+ .horizontal-nav a.here, .vertical-nav a.here {
941
+ color: #152934;
942
+ background-position: right top; }
943
+ .horizontal-nav a:hover, .horizontal-nav a:focus, .horizontal-nav a:active, .vertical-nav a:hover, .vertical-nav a:focus, .vertical-nav a:active {
944
+ color: #152934;
945
+ background-position: right top; }
946
+
947
+ .horizontal-nav {
898
948
  -webkit-box-orient: horizontal;
899
949
  -webkit-box-direction: normal;
900
950
  -ms-flex-flow: row wrap;
901
- flex-flow: row wrap;
902
- position: relative;
903
- background: #fff;
904
- box-shadow: 0 -1px rgba(15, 33, 46, 0.1) inset, 0 0 0 1px rgba(15, 33, 46, 0.05) inset, 0 1px 3px -1px rgba(15, 33, 46, 0.1); }
905
- .horizontal-nav a {
906
- padding: 9px 12px;
907
- text-decoration: none;
908
- -webkit-transition: background 0.25s;
909
- transition: background 0.25s; }
910
- .horizontal-nav a, .horizontal-nav a:visited {
911
- color: #0094fd;
912
- background: transparent; }
913
- .horizontal-nav a.active {
914
- color: #0094fd;
915
- background: rgba(0, 148, 253, 0.1); }
916
- .horizontal-nav a:hover, .horizontal-nav a:focus, .horizontal-nav a:active {
917
- color: #0094fd;
918
- background: rgba(0, 148, 253, 0.1); }
951
+ flex-flow: row wrap; }
952
+
953
+ .vertical-nav {
954
+ -webkit-box-orient: vertical;
955
+ -webkit-box-direction: normal;
956
+ -ms-flex-flow: column;
957
+ flex-flow: column;
958
+ border-right: 1px solid #dfe3e6; }
959
+ .vertical-nav a {
960
+ border-bottom: 1px solid #dfe3e6; }
961
+
962
+ .card-nav {
963
+ background: #f7fafb;
964
+ border-top-left-radius: 5px;
965
+ margin: -20px;
966
+ margin-right: 20px; }
967
+ .card-nav a:first-child {
968
+ border-top-left-radius: 2px; }
969
+ .card-nav a:last-child {
970
+ border-bottom-left-radius: 2px; }
919
971
 
920
972
  .application-banner {
921
973
  background-color: #152934;
@@ -923,6 +975,7 @@ pre {
923
975
  display: -webkit-box;
924
976
  display: -ms-flexbox;
925
977
  display: flex;
978
+ width: 100%;
926
979
  -webkit-box-align: center;
927
980
  -ms-flex-align: center;
928
981
  align-items: center;
@@ -2616,22 +2669,20 @@ input::-moz-focus-inner {
2616
2669
  box-shadow: #1f8bf8 0 0 0 1px; }
2617
2670
 
2618
2671
  .input-row {
2619
- margin-top: 20px;
2620
- margin-bottom: 20px;
2621
2672
  display: -webkit-box;
2622
2673
  display: -ms-flexbox;
2623
- display: flex; }
2624
- .input-row:first-child {
2625
- margin-top: 0; }
2674
+ display: flex;
2675
+ margin-bottom: 20px; }
2626
2676
  .input-row .input-wrapper {
2627
2677
  -webkit-box-flex: 1;
2628
2678
  -ms-flex-positive: 1;
2629
2679
  flex-grow: 1; }
2630
2680
  .input-row > * ~ * {
2631
2681
  margin-left: 8px; }
2632
- .input-row > .button-wrapper button {
2633
- margin-top: 1px;
2634
- height: 41px; }
2682
+ .input-row > .button-wrapper {
2683
+ -ms-flex-item-align: center;
2684
+ -ms-grid-row-align: center;
2685
+ align-self: center; }
2635
2686
 
2636
2687
  /* ========================================================================== *
2637
2688
  * Tables module
@@ -2703,11 +2754,11 @@ th.sub-heading {
2703
2754
  .table-drawer-handle td {
2704
2755
  -webkit-transition: background-position .35s ease-out;
2705
2756
  transition: background-position .35s ease-out;
2706
- background-image: -webkit-linear-gradient(#fff, #ebf5fe);
2707
- background-image: linear-gradient(#fff, #ebf5fe);
2757
+ background-image: -webkit-linear-gradient(#fff, #fff, #ebf5fe);
2758
+ background-image: linear-gradient(#fff, #fff, #ebf5fe);
2708
2759
  background-position: left top;
2709
2760
  background-repeat: no-repeat;
2710
- background-size: 100% 250%; }
2761
+ background-size: 100% 400%; }
2711
2762
  .table-drawer-handle.toggle-handle:hover .drawer-indicator button {
2712
2763
  color: #0094fd; }
2713
2764
  .table-drawer-handle.toggle-handle:hover td {
@@ -2746,6 +2797,10 @@ th.sub-heading {
2746
2797
  -webkit-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
2747
2798
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
2748
2799
  box-shadow: 0 1px 0 0 #dfe3e6 inset; }
2800
+ .table-drawer-content-wrapper > *:first-child, .table-drawer-content-wrapper > *:first-child > *:first-child, .table-drawer-content-wrapper > *:first-child > *:first-child > *:first-child {
2801
+ margin-top: 0; }
2802
+ .table-drawer-content-wrapper > *:last-child, .table-drawer-content-wrapper > *:last-child > *:last-child, .table-drawer-content-wrapper > *:last-child > *:last-child > *:last-child {
2803
+ margin-bottom: 0; }
2749
2804
  .table-drawer-content {
2750
2805
  -webkit-transition: opacity .2s, -webkit-transform .2s;
2751
2806
  transition: opacity .2s, -webkit-transform .2s;
@@ -2754,8 +2809,6 @@ th.sub-heading {
2754
2809
  -webkit-transition-delay: .16s, .2s;
2755
2810
  transition-delay: .16s, .2s;
2756
2811
  padding: 8px; }
2757
- .table-drawer-content > :last-child {
2758
- margin-bottom: 0; }
2759
2812
 
2760
2813
  .rotate-icon svg {
2761
2814
  -webkit-transform: rotate(180deg);
@@ -2938,9 +2991,15 @@ th.sub-heading {
2938
2991
  -ms-flex-direction: column;
2939
2992
  flex-direction: column;
2940
2993
  position: relative;
2941
- padding: 20px; }
2994
+ padding: 20px;
2995
+ -webkit-transition: opacity .2s, -webkit-transform .2s;
2996
+ transition: opacity .2s, -webkit-transform .2s;
2997
+ transition: opacity .2s, transform .2s;
2998
+ transition: opacity .2s, transform .2s, -webkit-transform .2s; }
2942
2999
  .card > *:last-child, .card > *:last-child > *:last-child, .card > *:last-child > *:last-child > *:last-child {
2943
3000
  margin-bottom: 0; }
3001
+ .card > *:first-child, .card > *:first-child > *:first-child, .card > *:first-child > *:first-child > *:first-child {
3002
+ margin-top: 0; }
2944
3003
  .card-actions {
2945
3004
  display: -webkit-box;
2946
3005
  display: -ms-flexbox;
@@ -2948,7 +3007,6 @@ th.sub-heading {
2948
3007
  -webkit-box-align: baseline;
2949
3008
  -ms-flex-align: baseline;
2950
3009
  align-items: baseline;
2951
- margin-bottom: 20px;
2952
3010
  -webkit-box-orient: horizontal;
2953
3011
  -webkit-box-direction: reverse;
2954
3012
  -ms-flex-direction: row-reverse;
@@ -2987,10 +3045,8 @@ th.sub-heading {
2987
3045
  -ms-flex-align: top;
2988
3046
  align-items: top;
2989
3047
  margin-bottom: 0; }
2990
- .card-header {
2991
- margin-bottom: 20px; }
2992
- .card-footer {
2993
- margin-top: 20px; }
3048
+ .card-content:first-child *:first-child {
3049
+ margin-top: 0; }
2994
3050
  .card-header, .card-footer {
2995
3051
  display: -webkit-box;
2996
3052
  display: -ms-flexbox;
@@ -3010,8 +3066,6 @@ th.sub-heading {
3010
3066
  background: rgba(180, 193, 210, 0.05);
3011
3067
  box-shadow: 0 0 0 1px rgba(15, 33, 46, 0.05) inset, 0 1px 1px 0 rgba(15, 33, 46, 0.1) inset;
3012
3068
  border-radius: 3px; }
3013
- .card-well:first-child {
3014
- margin-top: 0; }
3015
3069
  .card-footer {
3016
3070
  display: -webkit-box;
3017
3071
  display: -ms-flexbox;
@@ -3027,14 +3081,37 @@ th.sub-heading {
3027
3081
  background-clip: padding-box; }
3028
3082
  .card-footer > *:last-child, .card-footer > *:last-child > *:last-child, .card-footer > *:last-child > *:last-child > *:last-child {
3029
3083
  margin-bottom: 0; }
3030
- .card-footer p, .card-footer ul, .card-footer ol, .card-footer h1, .card-footer h2, .card-footer h3, .card-footer h4, .card-footer h5, .card-footer h6, .card-footer pre, .card-footer table, .card-footer .card {
3031
- margin-bottom: 0; }
3084
+ .card-footer > * {
3085
+ margin: 0; }
3032
3086
  .card > .card-footer:last-child, .card > *:last-child > .card-footer:last-child, .card > *:last-child > *:last-child > .card-footer:last-child {
3033
3087
  margin: auto -20px -20px -20px; }
3034
3088
 
3035
3089
  table.card {
3036
3090
  display: table; }
3037
3091
 
3092
+ .card-section {
3093
+ -webkit-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
3094
+ transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
3095
+ .card-section.visible {
3096
+ max-height: 240vh; }
3097
+ .card-section.visible .card {
3098
+ opacity: 1;
3099
+ -webkit-transform: scale(1);
3100
+ transform: scale(1); }
3101
+ .card-section.hidden {
3102
+ max-height: 0;
3103
+ -webkit-transition-duration: .3s;
3104
+ transition-duration: .3s;
3105
+ -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3106
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3107
+ display: initial; }
3108
+ .card-section.hidden .card {
3109
+ opacity: 0;
3110
+ -webkit-transform: scale(0.99);
3111
+ transform: scale(0.99);
3112
+ -webkit-transition-delay: .1s, .1s;
3113
+ transition-delay: .1s, .1s; }
3114
+
3038
3115
  .has-tooltip:focus, .has-tooltip:hover {
3039
3116
  position: relative;
3040
3117
  z-index: 1; }
@@ -3095,15 +3172,11 @@ table.card {
3095
3172
  background: -webkit-linear-gradient(top, white, #fafafa);
3096
3173
  background: linear-gradient(top, white, #fafafa);
3097
3174
  border: 1px solid #dfe3e6; }
3098
- .notice:first-child {
3099
- margin-top: 0; }
3100
3175
  .notice .notice-header {
3101
3176
  position: relative; }
3102
3177
  .notice .notice-title, .notice p {
3103
3178
  margin-top: 10px;
3104
3179
  margin-bottom: 10px; }
3105
- .notice .notice-title:first-child, .notice p:first-child {
3106
- margin-top: 0; }
3107
3180
  .notice .dismiss-notice {
3108
3181
  padding: 0;
3109
3182
  position: absolute;
@@ -3259,8 +3332,7 @@ table.card {
3259
3332
  justify-content: center;
3260
3333
  position: relative;
3261
3334
  z-index: 1;
3262
- margin-bottom: -35px;
3263
- margin-top: 20px; }
3335
+ margin-bottom: -35px; }
3264
3336
  .toggle-nav-label {
3265
3337
  box-shadow: 0 0 0 1px rgba(15, 33, 46, 0.2) inset, 0 0 0 transparent;
3266
3338
  -webkit-box-flex: 0;
@@ -3345,8 +3417,6 @@ table.card {
3345
3417
  padding: 2px;
3346
3418
  border-radius: 20px;
3347
3419
  box-shadow: 0 0 0 1px rgba(15, 33, 46, 0.2) inset, 0 0 0 transparent; }
3348
- .progress-bar:first-child {
3349
- margin-top: 0; }
3350
3420
 
3351
3421
  .progress-bar-fill {
3352
3422
  background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.6));
@@ -3406,8 +3476,6 @@ table.card {
3406
3476
  .half-margin {
3407
3477
  margin-top: 10px;
3408
3478
  margin-bottom: 10px; }
3409
- .half-margin:first-child {
3410
- margin-top: 0; }
3411
3479
 
3412
3480
  .flush-margin {
3413
3481
  margin-bottom: 0; }
Binary file
@@ -96,4 +96,4 @@ function request(e,n,t){return"function"==typeof t?new e("GET",n).end(t):2==argu
96
96
  });
97
97
 
98
98
 
99
- //# sourceMappingURL=/assets/tungsten/tungsten-0.1.38.map.json
99
+ //# sourceMappingURL=/assets/tungsten/tungsten-0.1.39.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.38
4
+ version: 0.1.39
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-10-05 00:00:00.000000000 Z
12
+ date: 2017-10-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -283,14 +283,14 @@ files:
283
283
  - lib/tungsten.rb
284
284
  - lib/tungsten/helper.rb
285
285
  - lib/tungsten/version.rb
286
- - public/code-0.1.38.js
287
- - public/code-0.1.38.js.gz
288
- - public/code-0.1.38.map.json
289
- - public/tungsten-0.1.38.css
290
- - public/tungsten-0.1.38.css.gz
291
- - public/tungsten-0.1.38.js
292
- - public/tungsten-0.1.38.js.gz
293
- - public/tungsten-0.1.38.map.json
286
+ - public/code-0.1.39.js
287
+ - public/code-0.1.39.js.gz
288
+ - public/code-0.1.39.map.json
289
+ - public/tungsten-0.1.39.css
290
+ - public/tungsten-0.1.39.css.gz
291
+ - public/tungsten-0.1.39.js
292
+ - public/tungsten-0.1.39.js.gz
293
+ - public/tungsten-0.1.39.map.json
294
294
  homepage:
295
295
  licenses:
296
296
  - MIT
Binary file