nfg_ui 0.11.18 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/color_variations/nfg_theme/_badge.scss +2 -2
  3. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/color_variations/nfg_theme/_buttons.scss +24 -1
  4. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/color_variations/nfg_theme/_custom-forms.scss +8 -2
  5. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/color_variations/nfg_theme/_forms.scss +4 -1
  6. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/color_variations/nfg_theme/_nav.scss +6 -2
  7. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/color_variations/nfg_theme/custom/_nav_step.scss +2 -2
  8. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/color_variations/plugins/_select2.scss +8 -30
  9. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/{_backgrounds.scss → _background.scss} +6 -0
  10. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_grid.scss +1 -1
  11. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_nav.scss +21 -16
  12. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_navbar.scss +69 -109
  13. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_activity_feed.scss +2 -2
  14. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_builder_layout.scss +10 -9
  15. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_gallery.scss +1 -1
  16. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_status_indicator.scss +2 -2
  17. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_tile.scss +1 -0
  18. data/app/assets/stylesheets/nfg_ui/network_for_good/core/_variables.scss +128 -109
  19. data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/nfg_theme/_badge.scss +2 -3
  20. data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/nfg_theme/_buttons.scss +10 -5
  21. data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/nfg_theme/_custom-forms.scss +9 -5
  22. data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/nfg_theme/_forms.scss +6 -2
  23. data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/nfg_theme/_nav.scss +6 -3
  24. data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/nfg_theme/custom/_nav_step.scss +1 -1
  25. data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/plugins/_select2.scss +8 -11
  26. data/app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/_variables.scss +1 -1
  27. data/app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/nfg_theme/_modal.scss +1 -1
  28. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_alert.scss +6 -0
  29. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_badge.scss +15 -3
  30. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_button-group.scss +2 -1
  31. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_buttons.scss +38 -4
  32. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_card.scss +1 -1
  33. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_custom-forms.scss +17 -5
  34. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_dropdown.scss +14 -11
  35. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_forms.scss +14 -7
  36. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_modal.scss +3 -0
  37. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_nav.scss +14 -4
  38. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_tooltip.scss +2 -2
  39. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_type.scss +13 -9
  40. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_avatar.scss +9 -8
  41. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_device_preview.scss +1 -1
  42. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_icon.scss +2 -2
  43. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_illustration.scss +4 -3
  44. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_nav_step.scss +4 -3
  45. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_slat.scss +5 -5
  46. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_social_share.scss +9 -8
  47. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_ticket.scss +2 -5
  48. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_tile.scss +10 -11
  49. data/app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_datetimepicker.scss +20 -23
  50. data/app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_select2.scss +38 -28
  51. data/app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_twitter_typeahead.scss +5 -7
  52. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_nav.scss +16 -3
  53. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_navbar.scss +6 -6
  54. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_event.scss +1 -1
  55. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_everyday_default.scss +1 -1
  56. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_page_header.scss +4 -8
  57. data/lib/nfg_ui/components/patterns/page_header.rb +2 -2
  58. data/lib/nfg_ui/components/patterns/tile_header.rb +2 -2
  59. data/lib/nfg_ui/components/utilities/disable_withable.rb +1 -1
  60. data/lib/nfg_ui/version.rb +1 -1
  61. metadata +3 -3
@@ -18,11 +18,10 @@ body.modal-open {
18
18
 
19
19
 
20
20
  .select2-container--default {
21
- &.select2-container--focus .select2-selection--multiple { border-color: $primary; }
22
- &.select2-container--open {
23
- .select2-selection--single {
24
- border-color: $custom-select-focus-border-color !important;
25
- }
21
+ &.select2-container--focus .select2-selection--multiple,
22
+ &.select2-container--open .select2-selection--single {
23
+ border-color: $custom-select-focus-border-color;
24
+ box-shadow: 0 0 0 ($spacer * .125) transparentize($primary, 0.8);
26
25
  }
27
26
 
28
27
  //** Single select option
@@ -31,25 +30,23 @@ body.modal-open {
31
30
  width: 100%;
32
31
  height: $custom-select-height !important;
33
32
  padding: $custom-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding) $custom-select-padding-y $custom-select-padding-x !important;
34
- font-weight: $btn-font-weight;
33
+ // font-weight: $btn-font-weight;
35
34
  line-height: $custom-select-line-height;
36
35
  color: $custom-select-color;
37
36
  vertical-align: middle;
38
37
  background: $custom-select-bg $custom-select-indicator no-repeat right $custom-select-padding-x center;
39
38
  background-size: $custom-select-bg-size;
40
- border: $custom-select-border-width solid $custom-select-border-color !important;
39
+ border: $custom-select-border-width solid $custom-select-border-color;
41
40
  border-radius: $border-radius;
42
41
  outline: none;
43
42
  cursor: pointer;
44
43
  transition: $transition-base;
45
44
  .select2-selection__rendered {
46
45
  padding: 0 !important;
47
- color: $primary !important;
48
- line-height: $spacer !important;
46
+ line-height: ($spacer * .75) !important;
49
47
  height: $custom-select-height !important;
50
48
  transition: $transition-base;
51
49
  }
52
- .select2-selection__placeholder { color: $primary; }
53
50
  .select2-selection__arrow { display: none; }
54
51
  }
55
52
 
@@ -83,14 +80,13 @@ body.modal-open {
83
80
  font-weight: $badge-font-weight;
84
81
  font-size: $font-size-sm;
85
82
  line-height: 1;
86
- color: $primary;
87
83
  background-color: $white;
88
84
  border: $border-width solid $border-color;
89
85
  border-radius: $border-radius;
90
86
  transition: $transition-base;
91
87
  &:hover, &:active {
92
88
  color: $body-color;
93
- background-color: theme-color("light");
89
+ background-color: $dropdown-link-active-bg;
94
90
  }
95
91
  + li { margin-top: 0; }
96
92
  }
@@ -103,6 +99,7 @@ body.modal-open {
103
99
 
104
100
  //** Dropdown styles
105
101
  .select2-dropdown {
102
+ padding: $dropdown-padding-y $dropdown-padding-x;
106
103
  font-size: $font-size-base;
107
104
  color: $body-color;
108
105
  text-align: left;
@@ -110,11 +107,11 @@ body.modal-open {
110
107
  background-color: $dropdown-bg;
111
108
  background-clip: padding-box;
112
109
  border: $dropdown-border-width solid $dropdown-border-color;
113
- @include border-radius($dropdown-border-radius);
114
- @include box-shadow($dropdown-box-shadow);
110
+ border-radius: $dropdown-border-radius;
111
+ box-shadow: $dropdown-box-shadow;
115
112
  }
116
113
  .select2-search--dropdown {
117
- padding: ($spacer * .5);
114
+ padding: ($spacer * .25);
118
115
  .select2-search__field {
119
116
  display: block;
120
117
  width: 100%;
@@ -143,22 +140,22 @@ body.modal-open {
143
140
  white-space: normal; // breaks long text
144
141
  background-color: transparent; // For `<button>`s
145
142
  border: 0; // For `<button>`s
146
- border-top: $border-width solid $border-color;
147
143
  z-index: 1;
144
+ border-radius: $dropdown-inner-border-radius;
148
145
  transition: $transition-base;
149
146
  &.select2-results__option--highlighted, &.select2-results__option--highlighted[aria-selected] {
150
147
  color: $body-color;
151
- background-color: transparent;
148
+ background-color: $dropdown-link-active-bg;
152
149
  &:hover, &:active {
153
150
  color: $body-color;
154
- background-color: theme-color("light");
151
+ background-color: $dropdown-link-active-bg;
155
152
  }
156
153
  }
157
154
  &[aria-disabled="true"],
158
155
  &[aria-selected='true'] {
159
156
  padding-right: ($spacer * 2);
160
157
  color: $body-color !important;
161
- background-color: transparent !important;
158
+ background-color: $dropdown-link-active-bg !important;
162
159
  cursor: default;
163
160
  &:after {
164
161
  position: absolute;
@@ -169,7 +166,7 @@ body.modal-open {
169
166
  font-family: "FontAwesome";
170
167
  font-size: $font-size-base;
171
168
  line-height: 1.5;
172
- color: theme-color("success");
169
+ color: $success;
173
170
  text-align: center;
174
171
  content: '\f00c';
175
172
  z-index: 5;
@@ -177,17 +174,30 @@ body.modal-open {
177
174
  }
178
175
  &.loading-results {
179
176
  padding-right: 0;
177
+ padding-left: ($spacer * 1.5);
180
178
  color: $text-muted !important;
181
- font-weight: $font-weight-bold;
182
- text-transform: uppercase;
183
- &:after { display: none; }
179
+ &:after {
180
+ position: absolute;
181
+ top: ($spacer * .5);
182
+ left: ($spacer * .25);
183
+ right: auto;
184
+ width: 36px;
185
+ height: 100%;
186
+ font-family: "FontAwesome";
187
+ font-size: $font-size-base;
188
+ line-height: 1.5;
189
+ color: $text-muted;
190
+ text-align: center;
191
+ content: '\f110';
192
+ z-index: 5;
193
+ }
184
194
  }
185
195
  }
186
196
  .select2-results__group {
187
- padding: ($spacer * .5);
188
- font-weight: $headings-font-weight;
197
+ padding-top: ($spacer * .25);
198
+ padding-bottom: ($spacer * .25);
189
199
  font-size: $font-size-base;
190
- line-height: 1.3;
200
+ color: $dropdown-header-color;
191
201
  }
192
202
  }
193
203
 
@@ -195,8 +205,8 @@ body.modal-open {
195
205
  // Error handling
196
206
  .has-danger {
197
207
  .select2-selection {
198
- border-color: theme-color("danger");
199
- color: theme-color("danger");
208
+ border-color: $danger;
209
+ color: $danger;
200
210
  }
201
211
  }
202
212
 
@@ -9,23 +9,21 @@
9
9
  }
10
10
  .tt-hint { color: $text-muted; }
11
11
  .tt-menu {
12
- margin-top: 2px;
13
- padding: ($spacer * .25) 0;
12
+ margin-top: $dropdown-spacer;
13
+ padding: $dropdown-padding-y $dropdown-padding-x;
14
14
  width: 100%;
15
15
  max-width: 100%;
16
16
  max-height: 350px;
17
- font-size: $font-size-sm;
18
17
  background-color: $dropdown-bg;
19
18
  background-clip: padding-box;
20
- border: $dropdown-border-width solid $dropdown-border-color;
21
- @include border-radius($border-radius);
22
- @include box-shadow(0 0 5px transparentize($black, 0.7));
19
+ border-radius: $dropdown-border-radius;
20
+ box-shadow: $dropdown-box-shadow;
23
21
  overflow-y: auto;
24
22
  }
25
23
  .tt-suggestion {
26
24
  padding: ($spacer * .5);
27
25
  line-height: 1;
28
- + .tt-suggestion { border-top: $dropdown-border-width solid $dropdown-border-color; }
26
+ border-radius: $dropdown-inner-border-radius;
29
27
  }
30
28
  .tt-selectable { cursor: pointer; }
31
29
  .tt-suggestion.tt-cursor, .tt-selectable:hover {
@@ -4,12 +4,25 @@
4
4
  .nav-link {
5
5
  position: relative;
6
6
  color: $text-muted;
7
- border-left: 4px solid transparent;
7
+ &:after {
8
+ position: absolute;
9
+ top: 0;
10
+ left: 0;
11
+ bottom: 0;
12
+ width: $nav-tabs-border-width;
13
+ border-radius: ($nav-tabs-border-width / 2);
14
+ background: transparent;
15
+ transition: $btn-transition;
16
+ content: '';
17
+ }
8
18
  &.active {
9
19
  color: $nav-tabs-link-active-color !important;
10
- border-color: $nav-tabs-link-hover-border-color;
20
+ &:after { background: $nav-tabs-link-hover-border-color; }
21
+ }
22
+ @include hover-focus {
23
+ color: $nav-tabs-link-active-color !important;
24
+ &:after { background: $nav-tabs-link-hover-border-color; }
11
25
  }
12
- @include hover-focus { color: $nav-tabs-link-active-color !important; }
13
26
  }
14
27
  }
15
28
  }
@@ -1,18 +1,18 @@
1
1
  // Styles specific for the new user navbar on everyday_story and everyday_classic_style layouts
2
2
 
3
- $navbar-logo-height: (($spacer * 4.5) - $spacer);
3
+ $navbar-logo-height: ($spacer * 2.5);
4
4
 
5
5
  .navbar-brand {
6
6
  margin-right: 0;
7
- padding: ($spacer * .5) 0;
8
- max-width: ($spacer * 8);
7
+ padding: 0;
8
+ max-width: ($spacer * 6);
9
9
  height: $navbar-logo-height;
10
10
  white-space: normal !important;
11
- @include media-breakpoint-up(lg) { max-width: ($spacer * 12); }
11
+ @include media-breakpoint-up(lg) { max-width: ($spacer * 9); }
12
12
  img {
13
- max-width: ($spacer * 8);
13
+ max-width: ($spacer * 6);
14
14
  max-height: $navbar-logo-height;
15
- @include media-breakpoint-up(lg) { max-width: ($spacer * 12); }
15
+ @include media-breakpoint-up(lg) { max-width: ($spacer * 9); }
16
16
  }
17
17
  }
18
18
  .navbar-text {
@@ -11,7 +11,7 @@
11
11
  bottom: 0;
12
12
  left: 0;
13
13
  z-index: 0;
14
- background-color: transparentize($black, 0.7);
14
+ background-color: transparentize($black, 0.8);
15
15
  content: '';
16
16
  }
17
17
  @include media-breakpoint-down(md) {
@@ -25,7 +25,7 @@
25
25
  }
26
26
  .progress-stats {
27
27
  position: absolute;
28
- top: ($spacer * .25);
28
+ top: ($spacer * .125);
29
29
  left: $grid-gutter-width / 2;
30
30
  width: 100%;
31
31
  z-index: 1;
@@ -1,5 +1,5 @@
1
- $page-header-height: ($spacer * 4.5);
2
- $page-header-height-admin: ($spacer * 6.5);
1
+ $page-header-height: ($spacer * 3.5); // 11.2rem
2
+ $page-header-height-admin: ($spacer * 5); // 16rem
3
3
 
4
4
  // Page header specific styles
5
5
  .page-header {
@@ -22,13 +22,9 @@ $page-header-height-admin: ($spacer * 6.5);
22
22
  // Moving .page-content container down with padding when page-header exists but ONLY on larger screens
23
23
  .page-header {
24
24
  + .page-content {
25
- @include media-breakpoint-up(lg) {
26
- padding-top: $page-header-height;
27
- }
25
+ @include media-breakpoint-up(lg) { padding-top: $page-header-height; }
28
26
  }
29
27
  body.admin & + .page-content { // this renders as body.admin .page-header + .page-content specifying when the view is in admin status
30
- @include media-breakpoint-up(lg) {
31
- padding-top: $page-header-height-admin;
32
- }
28
+ @include media-breakpoint-up(lg) { padding-top: $page-header-height-admin; }
33
29
  }
34
30
  }
@@ -56,12 +56,12 @@ module NfgUi
56
56
  NfgUi::Components::Patterns::Media.new({}, view_context).render do
57
57
  capture do
58
58
  concat(NfgUi::Components::Elements::MediaObject.new({}, view_context).render {
59
- content_tag(:div, class: 'mr-2 h2') do
59
+ content_tag(:div, class: 'mt-lg-1 mr-2 h3') do
60
60
  NfgUi::Components::Foundations::Icon.new({ traits: [resource_theme_icon], class: "text-#{resource_theme_color} mr-0" }, view_context).render
61
61
  end
62
62
  })
63
63
  concat(NfgUi::Components::Elements::MediaBody.new({}, view_context).render {
64
- content_tag(:h2) do
64
+ content_tag(:h1) do
65
65
  if subtitle
66
66
  concat(content_tag(:span, title, class: 'mr-2'))
67
67
  concat(content_tag(:small, subtitle, class: 'text-muted'))
@@ -20,7 +20,7 @@ module NfgUi
20
20
  concat(NfgUi::Components::Elements::Button.new({ traits: [:link, :block], collapse: collapse, class: 'no-link-color p-0 m-0' }, view_context).render {
21
21
  content_tag(:div, class: 'row align-items-center') do
22
22
  concat(content_tag(:div, class: 'col-10 text-left') {
23
- NfgUi::Components::Foundations::Typeface.new({ title: title, class: 'text-uppercase', icon: icon }, view_context).render
23
+ NfgUi::Components::Foundations::Typeface.new({ heading: title, icon: icon, class: 'h4' }, view_context).render
24
24
  })
25
25
  concat(content_tag(:div, class: 'col-2 text-right') {
26
26
  NfgUi::Components::Foundations::Icon.new({ traits: ['caret-down fw'], tooltip: 'Show / hide additional information' }, view_context).render
@@ -28,7 +28,7 @@ module NfgUi
28
28
  end
29
29
  })
30
30
  elsif title
31
- concat(NfgUi::Components::Foundations::Typeface.new({ title: title, class: 'text-uppercase', icon: icon }, view_context).render)
31
+ concat(NfgUi::Components::Foundations::Typeface.new({ heading: title, icon: icon, class: 'h4' }, view_context).render)
32
32
  end
33
33
 
34
34
  concat((block_given? ? yield : body))
@@ -14,7 +14,7 @@ module NfgUi
14
14
  private
15
15
 
16
16
  def default_disable_with
17
- @default_disable_with ||= view_context.ui.nfg(:icon, :loader, text: 'Saving...')
17
+ @default_disable_with ||= view_context.ui.nfg(:icon, :loader, text: 'Saving')
18
18
  end
19
19
 
20
20
  def non_html_attribute_options
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NfgUi
4
- VERSION = '0.11.18'
4
+ VERSION = '0.12.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nfg_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.18
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Roehm
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-05-21 00:00:00.000000000 Z
12
+ date: 2021-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bootstrap
@@ -412,7 +412,7 @@ files:
412
412
  - app/assets/stylesheets/nfg_ui/network_for_good/admin/color_variations/nfg_theme/custom/_nav_step.scss
413
413
  - app/assets/stylesheets/nfg_ui/network_for_good/admin/color_variations/plugins/_datetimepicker.scss
414
414
  - app/assets/stylesheets/nfg_ui/network_for_good/admin/color_variations/plugins/_select2.scss
415
- - app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_backgrounds.scss
415
+ - app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_background.scss
416
416
  - app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_custom.scss
417
417
  - app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_grid.scss
418
418
  - app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_media.scss