nfg_ui 0.11.14 → 0.12.0

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.
Files changed (70) 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/_custom.scss +1 -1
  11. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_grid.scss +1 -1
  12. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_nav.scss +21 -16
  13. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_navbar.scss +69 -109
  14. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_activity_feed.scss +2 -2
  15. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_builder_layout.scss +10 -9
  16. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_gallery.scss +1 -1
  17. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/{_overlay_blocker.scss → _redacted_text.scss} +0 -17
  18. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_status_indicator.scss +2 -2
  19. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_tile.scss +1 -0
  20. data/app/assets/stylesheets/nfg_ui/network_for_good/core/_variables.scss +128 -109
  21. data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/nfg_theme/_badge.scss +2 -3
  22. data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/nfg_theme/_buttons.scss +10 -5
  23. data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/nfg_theme/_custom-forms.scss +9 -5
  24. data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/nfg_theme/_forms.scss +6 -2
  25. data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/nfg_theme/_nav.scss +6 -3
  26. data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/nfg_theme/custom/_nav_step.scss +1 -1
  27. data/app/assets/stylesheets/nfg_ui/network_for_good/core/entity_branding/plugins/_select2.scss +8 -11
  28. data/app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/_variables.scss +1 -1
  29. data/app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/nfg_theme/_custom.scss +2 -0
  30. data/app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/nfg_theme/_modal.scss +1 -1
  31. data/app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/nfg_theme/custom/_chat.scss +10 -0
  32. data/app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/nfg_theme/custom/_event_livestream.scss +24 -0
  33. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_alert.scss +15 -0
  34. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_badge.scss +15 -3
  35. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_button-group.scss +2 -1
  36. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_buttons.scss +38 -4
  37. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_card.scss +1 -1
  38. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_custom-forms.scss +17 -5
  39. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_custom.scss +2 -0
  40. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_dropdown.scss +14 -11
  41. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_forms.scss +14 -7
  42. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_modal.scss +3 -0
  43. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_nav.scss +14 -4
  44. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_tooltip.scss +2 -2
  45. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_type.scss +13 -9
  46. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_avatar.scss +11 -10
  47. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_chat.scss +39 -0
  48. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_device_preview.scss +1 -1
  49. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_icon.scss +2 -2
  50. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_illustration.scss +4 -3
  51. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_nav_step.scss +4 -3
  52. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_overlay_blocker.scss +17 -0
  53. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_slat.scss +5 -5
  54. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_social_share.scss +9 -8
  55. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_ticket.scss +2 -5
  56. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_tile.scss +10 -11
  57. data/app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_datetimepicker.scss +20 -23
  58. data/app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_select2.scss +38 -28
  59. data/app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_twitter_typeahead.scss +5 -7
  60. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_nav.scss +16 -3
  61. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_navbar.scss +6 -6
  62. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_event.scss +1 -1
  63. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_event_livestream.scss +40 -3
  64. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_everyday_default.scss +1 -1
  65. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_page_header.scss +4 -8
  66. data/lib/nfg_ui/components/patterns/page_header.rb +2 -2
  67. data/lib/nfg_ui/components/patterns/tile_header.rb +2 -2
  68. data/lib/nfg_ui/components/utilities/disable_withable.rb +1 -1
  69. data/lib/nfg_ui/version.rb +1 -1
  70. metadata +10 -6
@@ -1,6 +1,5 @@
1
1
  // Specific styles for entity branding
2
-
3
2
  .badge-primary {
4
- color: color-yiq($primary);
5
- background-color: $primary;
3
+ background: scale-color($primary, $lightness: 80%);
4
+ border-color: $primary;
6
5
  }
@@ -1,5 +1,4 @@
1
1
  // Specific styles for entity branding
2
-
3
2
  .btn-primary {
4
3
  color: color-yiq($primary);
5
4
  background-color: $primary;
@@ -9,23 +8,29 @@
9
8
  background-color: darken($primary, 10%);
10
9
  border-color: darken($primary, 10%);
11
10
  }
12
- &.disabled,
13
- &:disabled,
11
+ &:focus,
12
+ &.focus {
13
+ box-shadow: 0 0 0 $input-btn-focus-width transparentize($primary, 0.8);
14
+ }
14
15
  &:not(:disabled):not(.disabled):active,
15
16
  &:not(:disabled):not(.disabled).active,
16
17
  .show > &.dropdown-toggle {
17
18
  color: color-yiq($primary);
18
19
  background-color: $primary;
19
20
  border-color: $primary;
21
+ box-shadow: 0 0 0 $input-btn-focus-width transparentize($primary, 0.8);
22
+ &:focus { box-shadow: 0 0 0 $input-btn-focus-width transparentize($primary, 0.8); }
20
23
  }
21
24
  }
22
25
 
23
- .btn-outline-secondary {
26
+ .btn-secondary, .btn-outline-secondary {
24
27
  color: color-yiq($primary, $yiq-text-dark, $primary);
25
28
  &:hover { color: color-yiq($primary, $yiq-text-dark, $primary) !important; }
26
29
  &:not(:disabled):not(.disabled):active,
27
30
  &:not(:disabled):not(.disabled).active,
28
- .show > &.dropdown-toggle { color: color-yiq($primary, $yiq-text-dark, $primary) !important; }
31
+ .show > &.dropdown-toggle {
32
+ color: color-yiq($primary, $yiq-text-dark, $primary) !important;
33
+ }
29
34
  }
30
35
 
31
36
  .btn-link {
@@ -4,21 +4,25 @@
4
4
  .custom-control-input {
5
5
  &:checked {
6
6
  ~ .custom-control-label, ~ .custom-control-label::before { border-color: $primary; }
7
- ~ .custom-control-label::before { background-color: $primary; }
7
+ ~ .custom-control-label::before {
8
+ background-color: $primary;
9
+ box-shadow: 0 0 0 ($spacer * .125) transparentize($primary, 0.8);
10
+ }
8
11
  }
9
12
  &:not(:disabled):active ~ .custom-control-label::before {
10
13
  background-color: lighten($primary, 35%);
11
14
  border-color: lighten($primary, 35%);
12
15
  }
13
16
  }
17
+ &.custom-control-block {
18
+ .custom-control-input:checked ~ .custom-control-label { box-shadow: 0 0 0 ($spacer * .125) transparentize($primary, 0.8); }
19
+ }
14
20
  }
15
21
 
16
22
  .custom-select {
17
- color: color-yiq($primary, $yiq-text-dark, $primary);
18
- background-image: $custom-select-indicator;
19
- &:focus {
23
+ &:active, &:focus {
20
24
  border-color: $primary;
21
- &::-ms-value { color: $primary; }
25
+ box-shadow: 0 0 0 ($spacer * .125) transparentize($primary, 0.8);
22
26
  }
23
27
  }
24
28
 
@@ -1,6 +1,10 @@
1
1
  // Specific styles for entity branding
2
-
3
- .form-control:focus { border-color: $primary; }
2
+ .form-control {
3
+ &:focus {
4
+ border-color: $primary;
5
+ box-shadow: 0 0 0 ($spacer * .125) transparentize($primary, 0.8);
6
+ }
7
+ }
4
8
 
5
9
 
6
10
  // Styles needed to override :valid success styles provided by bootstrap... this is for server side forms only
@@ -1,14 +1,17 @@
1
1
  // Specific styles for entity branding
2
-
3
2
  .nav {
4
3
  &.flex-column {
5
4
  .nav-link {
6
- &.active { border-color: $primary; }
5
+ &:hover, &.active {
6
+ &:after { background: $primary; }
7
+ }
7
8
  }
8
9
  }
9
10
  }
10
11
  .nav-tabs {
11
12
  .nav-link {
12
- &:hover, &.active { border-color: $primary; }
13
+ &:hover, &.active {
14
+ &:after { background: $primary; }
15
+ }
13
16
  }
14
17
  }
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  .step-indicator {
17
- &::after { box-shadow: 0 0 0 ($spacer * .25) transparentize($primary, 0.5); }
17
+ &::after { box-shadow: 0 0 0 ($spacer * .25) transparentize($primary, 0.8); }
18
18
  }
19
19
  }
20
20
  }
@@ -1,16 +1,13 @@
1
1
  // Specific styles for entity branding
2
2
 
3
3
  .select2-container--default {
4
- .select2-selection--single {
5
- color: color-yiq($primary) !important;
6
- background-image: $custom-select-indicator;
7
- &,
8
- .select2-selection__placeholder,
9
- .select2-selection__choice__remove,
10
- .select2-selection__rendered,
11
- .select2-selection__rendered .select2-selection__choice { color: color-yiq($primary, $yiq-text-dark, $primary) !important; }
12
- }
13
4
  &.select2-container--focus .select2-selection--multiple,
14
- &.select2-container--open .select2-selection--single { border-color: $primary !important; }
15
- .select2-search--dropdown .select2-search__field:focus { border-color: $primary !important; }
5
+ &.select2-container--open .select2-selection--single {
6
+ border-color: $primary !important;
7
+ box-shadow: 0 0 0 ($spacer * .125) transparentize($primary, 0.8);
8
+ }
9
+ .select2-search--dropdown .select2-search__field:focus {
10
+ border-color: $primary !important;
11
+ box-shadow: 0 0 0 ($spacer * .125) transparentize($primary, 0.8);
12
+ }
16
13
  }
@@ -1,5 +1,5 @@
1
1
  // These variables are neeeded to ensure the grid and breakpoints work within the legacy_browser_support directory
2
- $spacer: 2.4rem;
2
+ $spacer: 3.2rem;
3
3
 
4
4
  $grid-breakpoints: (
5
5
  xs: 0,
@@ -1,5 +1,7 @@
1
1
  // Our custom styles
2
2
  @import 'custom/avatar';
3
+ @import 'custom/chat';
4
+ @import 'custom/event_livestream';
3
5
  @import 'custom/everyday_giving';
4
6
  @import 'custom/icon';
5
7
  @import 'custom/nav_step';
@@ -24,5 +24,5 @@
24
24
  .modal-footer {
25
25
  display: -ms-flexbox;
26
26
  -ms-flex-align: center;
27
- -ms-flex-pack: end;
27
+ -ms-flex-pack: start;
28
28
  }
@@ -0,0 +1,10 @@
1
+ // Chat functionality within FP admin and public (livestream event template)
2
+ .chat-container {
3
+ display: -ms-flexbox;
4
+ -ms-flex-align: end;
5
+ }
6
+ .chat-messages {
7
+ display: -ms-flexbox;
8
+ -ms-flex-direction: column;
9
+ -ms-flex-align: end;
10
+ }
@@ -0,0 +1,24 @@
1
+ // Styles specific to the event livestream
2
+ .event-sidebar {
3
+ @include media-breakpoint-up(lg) {
4
+ display: -ms-flexbox;
5
+ -ms-flex-direction: column;
6
+ }
7
+ .event-sidebar-section {
8
+ &.event-sidebar-section-scroll {
9
+ -ms-flex-positive: 1;
10
+ }
11
+ &.event-sidebar-section-container {
12
+ display: -ms-flexbox;
13
+ -ms-flex-direction: column;
14
+ -ms-flex-positive: 1;
15
+ }
16
+ }
17
+ }
18
+
19
+ // chat container and message specific styles
20
+ .event-sidebar-section-chat {
21
+ display: -ms-flexbox;
22
+ -ms-flex-align: end;
23
+ -ms-flex-positive: 1;
24
+ }
@@ -6,6 +6,12 @@
6
6
  &:hover, &:active { text-decoration: none; }
7
7
  }
8
8
  }
9
+
10
+ @each $color, $value in $theme-colors {
11
+ .alert-#{$color} {
12
+ background: scale-color($value, $lightness: 80%);
13
+ }
14
+ }
9
15
  .alert-success a:not(.btn) { color: $success !important; }
10
16
  .alert-info a:not(.btn) { color: $info !important; }
11
17
  .alert-warning a:not(.btn) { color: $warning !important; }
@@ -16,3 +22,12 @@
16
22
  .alert-light, .alert-dark {
17
23
  a:not(.btn) { color: inherit; }
18
24
  }
25
+
26
+ // Absolute Positioning Alerts
27
+ .alert[data-position-absolute='true'] {
28
+ position: absolute;
29
+ left: 50%;
30
+ transform: translateX(-50%);
31
+ z-index: $zindex-modal + 1;
32
+ box-shadow: $box-shadow-sm;
33
+ }
@@ -1,3 +1,15 @@
1
- // overrides color contrast settings
2
- .badge-secondary { color: $white !important; }
3
- .badge-warning { color: $white !important; }
1
+ .badge {
2
+ color: $body-color;
3
+ border: $border-width solid transparent;
4
+ }
5
+
6
+
7
+ // Colors
8
+ //
9
+ // Contextual variations (linked badges get darker on :hover).
10
+ @each $color, $value in $theme-colors {
11
+ .badge-#{$color} {
12
+ background: scale-color($value, $lightness: 80%);
13
+ border-color: $value;
14
+ }
15
+ }
@@ -3,7 +3,7 @@
3
3
  > .btn-primary:not(:first-child),
4
4
  > .btn-group:not(:first-child) > .btn-primary {
5
5
  margin-left: 0;
6
- border-left-color: rgba(0,0,0,.15);
6
+ border-left: $border-width solid transparentize($black, .8);
7
7
  }
8
8
  }
9
9
 
@@ -24,6 +24,7 @@
24
24
  // Buttons on quick add modal in DMS
25
25
  .btn-group-quick-add {
26
26
  .col-4 {
27
+ padding: 0;
27
28
  &:nth-child(1n) { border-left: $border-width solid $border-color; }
28
29
  @include media-breakpoint-down(sm) {
29
30
  &:first-child { border-left: none; }
@@ -1,9 +1,40 @@
1
+ // Sets box-shadow interaction to override bootstrap's defaults
2
+ @each $color, $value in $theme-colors {
3
+ .btn-#{$color}, .btn-outline-#{$color} {
4
+ &:focus,
5
+ &.focus {
6
+ @include box-shadow($btn-active-box-shadow, 0 0 0 $btn-focus-width transparentize($value, 0.8));
7
+ }
8
+ &:not(:disabled):not(.disabled):active,
9
+ &:not(:disabled):not(.disabled).active,
10
+ .show > &.dropdown-toggle {
11
+ @include box-shadow($btn-active-box-shadow, 0 0 0 $btn-focus-width transparentize($value, 0.8));
12
+ &:focus { @include box-shadow($btn-active-box-shadow, 0 0 0 $btn-focus-width transparentize($value, 0.8)); }
13
+ }
14
+ }
15
+ }
16
+
17
+
1
18
  // Custom secondary button usage
2
- .btn-outline-secondary {
19
+ [class*='btn-outline'], .btn-secondary {
20
+ padding-top: $input-btn-padding-y;
21
+ padding-bottom: $input-btn-padding-y;
22
+ border-width: $border-width;
23
+ box-shadow: transparentize($black, 0.9) 0px 1px 0px 0px;
24
+ &.btn-sm {
25
+ padding-top: $input-btn-padding-y-sm;
26
+ padding-bottom: $input-btn-padding-y-sm;
27
+ }
28
+ &.btn-lg {
29
+ padding-top: $input-btn-padding-y-lg;
30
+ padding-bottom: $input-btn-padding-y-lg;
31
+ }
32
+ }
33
+ .btn-secondary, .btn-outline-secondary {
3
34
  color: $primary;
4
35
  background-color: $white;
5
- border-color: $border-color;
6
- @include hover {
36
+ border: $border-width solid $border-color;
37
+ @include hover-focus {
7
38
  color: $body-color !important;
8
39
  background-color: $body-bg;
9
40
  }
@@ -14,7 +45,10 @@
14
45
  background-color: $body-bg;
15
46
  }
16
47
  }
17
- .btn-link { font-weight: $btn-font-weight; }
48
+ .btn-link {
49
+ font-weight: $btn-font-weight;
50
+ &:hover { text-decoration: underline; }
51
+ }
18
52
 
19
53
  // overrides color contrast settings
20
54
  .btn-warning { color: $white !important; }
@@ -16,7 +16,7 @@
16
16
  .card-img-overlay {
17
17
  top: auto; // makes the overlay gradient and container "stick" to bottom of parent container
18
18
  min-height: ($spacer * 2);
19
- @include gradient-y(transparentize($black, 1), transparentize($black, .5));
19
+ @include gradient-y(transparentize($gray-900, 1), transparentize($gray-900, .5));
20
20
  }
21
21
 
22
22
  .card-img { @include border-radius(0); }
@@ -7,10 +7,18 @@
7
7
  .custom-control-input {
8
8
  &:checked {
9
9
  ~ .custom-control-label,
10
- ~ .custom-control-label::before { border-color: $input-focus-border-color; }
10
+ ~ .custom-control-label::before {
11
+ border-color: $input-focus-border-color;
12
+ }
13
+ ~ .custom-control-label::before {
14
+ box-shadow: 0 0 0 ($spacer * .125) transparentize($primary, 0.8);
15
+ }
11
16
  }
12
17
  &:focus:not(:checked) ~ .custom-control-label::before { border-color: $input-border-color; }
13
18
  }
19
+ &.custom-control-block {
20
+ .custom-control-input:checked ~ .custom-control-label { box-shadow: 0 0 0 ($spacer * .125) transparentize($primary, 0.8); }
21
+ }
14
22
  + .custom-control:not(.custom-control-inline) { margin-top: ($spacer * .25); }
15
23
  }
16
24
  .custom-checkbox, .custom-radio { min-width: $custom-control-gutter + $custom-control-indicator-size; } // sets minimum width to have space even if custom-control-label isn't there
@@ -40,7 +48,7 @@
40
48
  // Tweak just a few things for radios.
41
49
 
42
50
  .custom-radio {
43
- .custom-control-label::after { background-size: 45% 45%; }
51
+ .custom-control-label::after { background-size: 50% 50%; }
44
52
  }
45
53
 
46
54
  // Select
@@ -53,9 +61,13 @@
53
61
  display: block;
54
62
  width: auto;
55
63
  max-width: 100%;
56
- font-weight: $btn-font-weight;
57
64
  cursor: pointer;
58
65
  box-shadow: none;
66
+ &:focus { border-color: $border-color; } // if focus has a color other than the original, it shows the new border color after user selects item in select
67
+ &:active, &:focus {
68
+ border-color: $input-focus-border-color;
69
+ box-shadow: 0 0 0 ($spacer * .125) transparentize($primary, 0.8); // adds box-shadow for active only
70
+ }
59
71
  }
60
72
 
61
73
  // File
@@ -80,7 +92,7 @@
80
92
  padding: 0;
81
93
  .custom-control-label {
82
94
  margin-bottom: 0;
83
- padding: ($spacer * 1.5) $spacer ($spacer * 2);
95
+ padding: $spacer $spacer ($spacer * 1.75);
84
96
  border: $border-width solid $border-color;
85
97
  border-radius: $border-radius;
86
98
  cursor: pointer;
@@ -123,7 +135,7 @@
123
135
  background-color: $body-bg;
124
136
  }
125
137
  &::after {
126
- top: 0;
138
+ top: 1px;
127
139
  background-color: $white;
128
140
  border: $border-width solid $border-color;
129
141
  border-radius: 50%;
@@ -1,11 +1,13 @@
1
1
  // Our custom styles
2
2
  @import 'custom/avatar';
3
+ @import 'custom/chat';
3
4
  @import 'custom/device_preview';
4
5
  @import 'custom/drawer';
5
6
  @import 'custom/icon';
6
7
  @import 'custom/illustration';
7
8
  @import 'custom/mobile';
8
9
  @import 'custom/nav_step';
10
+ @import 'custom/overlay_blocker';
9
11
  @import 'custom/redactor';
10
12
  @import 'custom/social_share';
11
13
  @import 'custom/skeleton';
@@ -1,37 +1,40 @@
1
1
  .dropdown-toggle::after { content: none; }
2
2
 
3
3
 
4
+ // The dropdown menu
5
+ .dropdown-menu { padding: $dropdown-padding-y $dropdown-padding-x; }
6
+
7
+
4
8
  // Links, buttons, and more within the dropdown menu
5
9
  .dropdown-item {
6
- + .dropdown-item { border-top: $border-width solid $border-color; }
10
+ border-radius: $dropdown-inner-border-radius;
7
11
  &.disabled, &:disabled {
8
- background-color: $body-bg;
12
+ color: $dropdown-link-disabled-color !important;
13
+ background-color: $input-disabled-bg;
9
14
  cursor: default;
10
15
  pointer-events: none;
11
16
  }
12
- &:not(.text-danger) { color: inherit !important; }
17
+ &:not(.text-danger):not(.disabled) { color: inherit !important; }
13
18
  }
14
19
 
15
-
16
20
  // Dropdown section headers
17
21
  .dropdown-header {
18
- padding-top: ($spacer * .5);
19
- padding-bottom: ($spacer * .5);
20
- + .dropdown-item { border-top: $border-width solid $border-color; }
22
+ padding-top: ($spacer * .25);
23
+ padding-bottom: ($spacer * .25);
24
+ font-size: $font-size-base;
21
25
  }
22
26
 
23
27
 
24
28
  // Sizing
25
- .dropdown-menu-md, .dropdown-menu-lg { min-width: ($spacer * 10); }
29
+ .dropdown-menu-md, .dropdown-menu-lg { min-width: ($spacer * 8); }
26
30
  .dropdown-menu-md {
27
- @include media-breakpoint-up(sm) { min-width: ($spacer * 12); }
31
+ @include media-breakpoint-up(sm) { min-width: ($spacer * 10); }
28
32
  }
29
33
  .dropdown-menu-lg {
30
- @include media-breakpoint-up(sm) { min-width: ($spacer * 24); }
34
+ @include media-breakpoint-up(sm) { min-width: ($spacer * 20); }
31
35
  }
32
36
 
33
37
 
34
-
35
38
  // Styles for wider "My Tools" dropdown in top nav
36
39
  #my_tools_dropdown {
37
40
  @include media-breakpoint-down(sm) { max-width: 100vw; }