nfg_ui 0.10.14 → 0.10.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/application.scss +9 -23
  3. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_badge.scss +0 -0
  4. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_buttons.scss +0 -0
  5. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_custom-forms.scss +0 -0
  6. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_custom.scss +0 -0
  7. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_forms.scss +0 -0
  8. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/color_variations/nfg_theme/_nav.scss +18 -0
  9. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_pagination.scss +0 -0
  10. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_progress.scss +0 -0
  11. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_reboot.scss +0 -0
  12. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_type.scss +0 -0
  13. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_utilities.scss +0 -0
  14. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/custom/_icons.scss +0 -0
  15. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/custom/_nav_step.scss +0 -0
  16. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations}/plugins/_datetimepicker.scss +0 -0
  17. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations}/plugins/_select2.scss +0 -0
  18. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_custom.scss +1 -9
  19. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_nav.scss +0 -38
  20. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_tile.scss +2 -61
  21. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_video_countdown.scss +47 -0
  22. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/_variables.scss +24 -26
  23. data/app/assets/stylesheets/nfg_ui/network_for_good/core/application.scss +24 -0
  24. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/application.scss +4 -4
  25. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_badge.scss +0 -0
  26. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_buttons.scss +2 -2
  27. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_custom-forms.scss +0 -0
  28. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_custom.scss +0 -0
  29. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_forms.scss +0 -0
  30. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_functions.scss +0 -0
  31. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_nav.scss +2 -4
  32. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_navbar.scss +0 -0
  33. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_reboot.scss +0 -0
  34. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_type.scss +0 -0
  35. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_utilities.scss +0 -0
  36. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/custom/_everyday_default.scss +0 -0
  37. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/custom/_nav_step.scss +0 -0
  38. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/plugins/_datetimepicker.scss +0 -0
  39. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/plugins/_select2.scss +0 -0
  40. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/_variables.scss +0 -0
  41. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/application.scss +0 -0
  42. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_breadcrumb.scss +0 -0
  43. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_button-group.scss +0 -0
  44. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_card.scss +0 -0
  45. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_carousel.scss +0 -0
  46. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_custom-forms.scss +0 -0
  47. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_custom.scss +1 -0
  48. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_forms.scss +0 -0
  49. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_grid.scss +0 -0
  50. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_input-group.scss +0 -0
  51. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_list-group.scss +0 -0
  52. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_media.scss +0 -0
  53. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_mixins.scss +0 -0
  54. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_modal.scss +0 -0
  55. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_nav.scss +0 -0
  56. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_navbar.scss +0 -0
  57. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_pagination.scss +0 -0
  58. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_progress.scss +0 -0
  59. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_utilities.scss +0 -0
  60. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/custom/_avatar.scss +0 -0
  61. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/custom/_everyday_giving.scss +0 -0
  62. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/custom/_nav_step.scss +0 -0
  63. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/custom/_slat.scss +0 -0
  64. data/app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/nfg_theme/custom/_video_countdown.scss +5 -0
  65. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/mixins/_breakpoints.scss +0 -0
  66. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/mixins/_grid-framework.scss +0 -0
  67. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/mixins/_grid.scss +0 -0
  68. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/utilities/_display.scss +0 -0
  69. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/utilities/_flex.scss +0 -0
  70. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/plugins/_sticky_div.scss +0 -0
  71. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_alert.scss +0 -0
  72. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_button-group.scss +0 -0
  73. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_buttons.scss +1 -1
  74. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_card.scss +3 -5
  75. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_custom-forms.scss +0 -0
  76. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_custom.scss +11 -0
  77. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_dropdown.scss +0 -0
  78. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_forms.scss +0 -0
  79. data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_nav.scss +26 -0
  80. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/nfg_theme/_progress.scss +0 -0
  81. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_reboot.scss +0 -0
  82. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_tooltip.scss +0 -0
  83. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_type.scss +0 -0
  84. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_avatar.scss +0 -0
  85. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_device_preview.scss +0 -0
  86. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_illustration.scss +0 -0
  87. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_mobile.scss +0 -0
  88. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_nav_step.scss +0 -0
  89. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_redactor.scss +0 -0
  90. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_slat.scss +0 -0
  91. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/nfg_theme/custom/_social_share.scss +2 -0
  92. data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_ticket.scss +0 -0
  93. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/nfg_theme/custom/_tile.scss +1 -2
  94. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/plugins/_datepicker.scss +0 -0
  95. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/plugins/_datetimepicker.scss +0 -0
  96. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/plugins/_intercom.scss +0 -0
  97. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/plugins/_select2.scss +0 -0
  98. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/plugins/_sticky_div.scss +0 -0
  99. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/plugins/_turbolinks.scss +0 -0
  100. data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/plugins/_twitter_typeahead.scss +0 -0
  101. data/app/assets/stylesheets/nfg_ui/network_for_good/public/application.scss +3 -20
  102. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_custom.scss +1 -8
  103. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_nav.scss +3 -38
  104. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/{custom/_user_navbar.scss → _navbar.scss} +2 -2
  105. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_background_variations.scss +1 -0
  106. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/{_event.scss → custom/_event.scss} +0 -0
  107. data/lib/nfg_ui/version.rb +1 -1
  108. metadata +102 -116
  109. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/_variables.scss +0 -1125
  110. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_progress.scss +0 -3
  111. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/color_variations/_nav.scss +0 -9
  112. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/color_variations/_plugins.scss +0 -3
  113. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_social_share.scss +0 -44
  114. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_alert.scss +0 -2
  115. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_button-group.scss +0 -22
  116. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_buttons.scss +0 -17
  117. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_card.scss +0 -6
  118. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_custom-forms.scss +0 -156
  119. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_dropdown.scss +0 -1
  120. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_forms.scss +0 -85
  121. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_reboot.scss +0 -34
  122. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_tooltip.scss +0 -5
  123. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_type.scss +0 -81
  124. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_avatar.scss +0 -54
  125. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_illustration.scss +0 -7
  126. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_nav_step.scss +0 -111
  127. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_slat.scss +0 -110
  128. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_ticket.scss +0 -12
@@ -1,3 +0,0 @@
1
- // Sizing options
2
- .progress-sm { height: ($spacer * .5); }
3
- .progress-lg { height: ($spacer * 1.5); }
@@ -1,9 +0,0 @@
1
- @each $color, $value in $colors {
2
- .#{$color} {
3
- .nav-tabs {
4
- .nav-link {
5
- &:hover, &.active { border-color: $value; }
6
- }
7
- }
8
- }
9
- }
@@ -1,3 +0,0 @@
1
- // Our plugin styles
2
- @import 'plugins/datetimepicker';
3
- @import 'plugins/select2';
@@ -1,44 +0,0 @@
1
- // Helper colors used for social media links, text, and backgrounds
2
-
3
- $facebook: #3b5998 !default;
4
- $twitter: #1da1f2 !default;
5
- $linkedin: #0077b5 !default;
6
- $google-plus: #dd4b39 !default;
7
-
8
- $social-media-colors: () !default;
9
- // stylelint-disable-next-line scss/dollar-variable-default
10
- $social-media-colors: map-merge(
11
- (
12
- "facebook": $facebook,
13
- "twitter": $twitter,
14
- "linkedin": $linkedin,
15
- "google-plus": $google-plus
16
- ),
17
- $social-media-colors
18
- );
19
-
20
-
21
- // Buttons
22
- @each $color, $value in $social-media-colors {
23
- .btn-#{$color} {
24
- @include button-variant($value, $value);
25
- }
26
- }
27
-
28
- @each $color, $value in $social-media-colors {
29
- .btn-outline-#{$color} {
30
- @include button-outline-variant($value);
31
- }
32
- }
33
-
34
-
35
- // Text
36
- @each $color, $value in $social-media-colors {
37
- @include text-emphasis-variant(".text-#{$color}", $value);
38
- }
39
-
40
-
41
- // Backgrounds
42
- @each $color, $value in $social-media-colors {
43
- @include bg-variant(".bg-#{$color}", $value);
44
- }
@@ -1,2 +0,0 @@
1
- // Custom type color
2
- .alert { color: $body-color; }
@@ -1,22 +0,0 @@
1
- // Add visual separator for btn-primary buttons that are in a button group
2
- .btn-group {
3
- > .btn-primary:not(:first-child),
4
- > .btn-group:not(:first-child) > .btn-primary {
5
- margin-left: 0;
6
- border-left-color: rgba(0,0,0,.15);
7
- }
8
- }
9
-
10
- .btn-group-vertical {
11
- > .btn { width: auto; }
12
-
13
- > .btn:not(:first-child),
14
- > .btn-group:not(:first-child) { margin-top: 0; }
15
-
16
- // Reset rounded corners
17
- > .btn:not(:last-child):not(.dropdown-toggle),
18
- > .btn-group:not(:last-child) > .btn { @include border-bottom-radius($btn-border-radius); }
19
-
20
- > .btn:not(:first-child),
21
- > .btn-group:not(:first-child) > .btn { @include border-top-radius($btn-border-radius); }
22
- }
@@ -1,17 +0,0 @@
1
- // Custom secondary button usage
2
- .btn-outline-secondary {
3
- color: $primary;
4
- background-color: $white;
5
- border-color: $border-color;
6
- &:hover {
7
- color: $primary;
8
- background-color: $body-bg;
9
- }
10
- &:not(:disabled):not(.disabled):active,
11
- &:not(:disabled):not(.disabled).active,
12
- .show > &.dropdown-toggle {
13
- color: $primary;
14
- background-color: $body-bg;
15
- }
16
- }
17
- .btn-link { font-weight: $btn-font-weight; }
@@ -1,6 +0,0 @@
1
- //
2
- // Base styles
3
- //
4
- .card { box-shadow: $box-shadow-sm; }
5
-
6
- .card-title { margin-bottom: ($card-spacer-y * .5); }
@@ -1,156 +0,0 @@
1
- // Checkboxes and radios
2
- //
3
- // Base class takes care of all the key behavioral aspects.
4
-
5
- .custom-control {
6
- .custom-control-input {
7
- &:checked {
8
- ~ .custom-control-label,
9
- ~ .custom-control-label::before { border-color: $input-focus-border-color; }
10
- }
11
- &:focus:not(:checked) ~ .custom-control-label::before { border-color: $input-border-color; }
12
- }
13
- }
14
-
15
- // Custom control indicators
16
- //
17
- // Build the custom controls out of pseudo-elements.
18
-
19
- .custom-control-label {
20
- font-weight: $font-weight-normal;
21
-
22
- // Background-color and icon
23
- &::before, &::after { top: .3rem; }
24
- &::before { border: $border-width solid $border-color; }
25
- &::after { cursor: pointer; }
26
- }
27
-
28
- // Radios
29
- //
30
- // Tweak just a few things for radios.
31
-
32
- .custom-radio {
33
- .custom-control-label::after { background-size: 45% 45%; }
34
- }
35
-
36
- // Select
37
- //
38
- // Replaces the browser default select with a custom one, mostly pulled from
39
- // https://primer.github.io/.
40
- //
41
-
42
- .custom-select {
43
- font-weight: $btn-font-weight;
44
- cursor: pointer;
45
- box-shadow: none;
46
- }
47
-
48
- // File
49
- //
50
- // Custom file input.
51
-
52
- .custom-file-label {
53
- font-weight: $font-weight-normal;
54
- cursor: pointer;
55
- border-radius: 0 $btn-border-radius $btn-border-radius 0;
56
- overflow: hidden;
57
- &::after {
58
- font-weight: $btn-font-weight;
59
- border-radius: 0 $btn-border-radius $btn-border-radius 0;
60
- }
61
- }
62
-
63
-
64
- // Block
65
- //
66
- // Custom control block (ex: for images)
67
- .custom-control-block {
68
- padding: 0;
69
- .custom-control-label {
70
- margin-bottom: 0;
71
- padding: ($spacer * 1.5) $spacer ($spacer * 2);
72
- border: $border-width solid $border-color;
73
- border-radius: $border-radius;
74
- cursor: pointer;
75
- transition: $transition-base;
76
- &:hover { border-color: $gray-600; }
77
- &::before, &::after {
78
- top: auto;
79
- left: 50%;
80
- bottom: ($spacer * .5);
81
- margin-left: -9px;
82
- }
83
- }
84
- }
85
-
86
- // Without radio or checkbox indicator
87
- .custom-control-block:not(.custom-radio):not(.custom-checkbox) {
88
- .custom-control-label {
89
- padding: ($spacer * .5);
90
- &::before, &::after { display: none; }
91
- }
92
- }
93
-
94
- // switches
95
- //
96
- // Tweak a few things for switches
97
-
98
- .custom-switch {
99
- .custom-control-label {
100
- &::before {
101
- padding-left: 28px;
102
- font-size: 12px;
103
- line-height: 16px;
104
- color: $text-muted;
105
- font-family: "FontAwesome";
106
- content: "\f00d";
107
- background-color: $body-bg;
108
- }
109
- &::after {
110
- top: 0;
111
- left: -($custom-switch-width + $custom-control-gutter);
112
- background-color: $white;
113
- border: $border-width solid $border-color;
114
- border-radius: 50%;
115
- @include transition(transform .15s ease-in-out, $custom-forms-transition);
116
- }
117
- }
118
-
119
- .custom-control-input:checked ~ .custom-control-label {
120
- &::after {
121
- border-color: $input-focus-border-color;
122
- transform: translateX($custom-switch-width - $custom-switch-indicator-size);
123
- }
124
- &::before {
125
- content: "";
126
- background-repeat: no-repeat;
127
- background-size: 30%;
128
- background-position: 6px 1px;
129
- background-image: $custom-checkbox-indicator-icon-checked;
130
- background-color: $custom-control-indicator-checked-bg;
131
- border-color: $input-focus-border-color;
132
- }
133
- }
134
- }
135
-
136
-
137
- // Styles needed to override :valid success styles provided by bootstrap... this is for server side forms only
138
- .custom-control-input {
139
- .was-validated &:valid {
140
- ~ .custom-control-label {
141
- color: inherit;
142
- &::before { background-color: inherit; }
143
- }
144
- &:checked {
145
- ~ .custom-control-label::before {
146
- background-color: $custom-control-indicator-checked-bg;
147
- }
148
- }
149
- }
150
- }
151
-
152
- .custom-file-input {
153
- .was-validated &:valid {
154
- ~ .custom-file-label { border-color: $custom-file-border-color; }
155
- }
156
- }
@@ -1 +0,0 @@
1
- .dropdown-toggle::after { content: none; }
@@ -1,85 +0,0 @@
1
- // Required styles
2
- label {
3
- font-weight: $font-weight-bold;
4
- &.required {
5
- padding-left: ($spacer * .5);
6
- &::before{
7
- content: '*';
8
- color: theme-color("danger");
9
- margin-left: -($spacer * .5);
10
- padding-right: ($spacer * .25);
11
- }
12
- }
13
- }
14
-
15
- textarea.form-control { min-height: ($spacer * 6); }
16
-
17
- // Form groups
18
- //
19
- // Designed to help with the organization and spacing of vertical forms. For
20
- // horizontal forms, use the predefined grid classes.
21
-
22
- .form-text {
23
- font-size: $font-size-sm;
24
- line-height: 1.3;
25
- }
26
-
27
- // Checkboxes and radios
28
- //
29
- // Indent the labels to position radios/checkboxes as hanging controls.
30
-
31
- .form-check-label { font-weight: $font-weight-normal; }
32
- .form-check-inline { display: inline-block; } // override inline-flex display for better line-height
33
-
34
-
35
- // Form validation
36
- //
37
- // Provide feedback to users when form field values are valid or invalid. Works
38
- // primarily for client-side validation via scoped `:invalid` and `:valid`
39
- // pseudo-classes but also includes `.is-invalid` and `.is-valid` classes for
40
- // server side validation.
41
-
42
- .valid-feedback,
43
- .invalid-feedback {
44
- line-height: 1.3;
45
- }
46
- .valid-tooltip,
47
- .invalid-tooltip {
48
- padding: $tooltip-padding-y $tooltip-padding-x;
49
- font-size: $tooltip-font-size;
50
- font-weight: $font-weight-bold;
51
- line-height: 1.3;
52
- border-radius: $tooltip-border-radius;
53
- }
54
-
55
-
56
- // Inline checkbox/radio validation is a sibling of the form element instead of a child
57
- .form-group {
58
- &.is-valid, &.is-invalid {
59
- .form-check, .custom-control {
60
- ~ .valid-feedback, ~ .invalid-feedback { display: block; }
61
- }
62
- }
63
- }
64
-
65
-
66
- // Sometimes rails likes to say a form control is valid even when it isn't... this helps ensure that
67
- // When simple_form (accurately) detects an error on the field...
68
- // that the invalid version wins ... avoiding false readings
69
- .is-invalid { border-color: $form-feedback-invalid-color !important; }
70
-
71
-
72
- // Styles needed to override :valid success styles provided by bootstrap... this is for server side forms only
73
- .form-control,
74
- .custom-select {
75
- .was-validated &:valid {
76
- border-color: $input-border-color;
77
- &:focus { border-color: $input-focus-border-color; }
78
- }
79
- }
80
-
81
- .form-check-input {
82
- .was-validated &:valid {
83
- ~ .form-check-label { color: inherit; }
84
- }
85
- }
@@ -1,34 +0,0 @@
1
- html {
2
- height: 100%;
3
- font-size: 62.5%;
4
- }
5
- body {
6
- -ms-overflow-style: scrollbar !important;
7
- font-smooth: always;
8
- -webkit-font-smoothing: antialiased;
9
- -moz-font-smoothing: antialiased;
10
- font-smoothing: antialiased;
11
- text-rendering: optimizeLegibility;
12
- font-size: $font-size-base;
13
- @include media-breakpoint-down(md) {
14
- overflow-x: hidden;
15
- -webkit-overflow-scrolling: auto;
16
- }
17
- }
18
-
19
- div { position: relative; } // setting this as a base to avoid improper absolute positioning elements
20
-
21
- ol,
22
- ul,
23
- dl {
24
- margin-bottom: $paragraph-margin-bottom;
25
- }
26
-
27
- img { max-width: 100%; }
28
-
29
- // Ensure that .disabled and [disabled] really aren't clickable
30
- .disabled:not([data-toggle='tooltip']),
31
- [disabled] {
32
- pointer-events: none !important;
33
- cursor: not-allowed !important;
34
- }
@@ -1,5 +0,0 @@
1
- // Setting line-height
2
- .tooltip {
3
- font-weight: $font-weight-bold;
4
- line-height: 1.3;
5
- }
@@ -1,81 +0,0 @@
1
- //
2
- // Headings
3
- //
4
- h1, .h1 { line-height: 1; }
5
- h2, .h2 { line-height: 1.15; }
6
- h3, .h3 { line-height: 1.1; }
7
- h4, .h4 { line-height: 1; }
8
- h5, .h5 { line-height: 1.2; }
9
- h6, .h6 { line-height: 1.5; }
10
-
11
- // Type display classes
12
- .display-4 {
13
- line-height: 1.3;
14
- color: $text-muted;
15
- }
16
-
17
-
18
- //
19
- // Misc
20
- //
21
- .font-size-base { font-size: $font-size-base !important; }
22
- .font-size-sm {
23
- font-size: $font-size-sm !important;
24
- line-height: 1.3;
25
- }
26
- .font-size-lg { font-size: $font-size-lg !important; }
27
- .line-height-sm { line-height: $line-height-sm; }
28
- .line-height { line-height: 1.5; }
29
- .line-height-lg { line-height: $line-height-lg; }
30
-
31
- strong, .strong, b, .b { font-weight: $font-weight-bold; }
32
-
33
- a.no-link-color {
34
- &, &:visited { color: $body-color !important; }
35
-
36
- &:hover, &:active, &:focus {
37
- color: $primary !important;
38
- text-decoration: none;
39
- }
40
- }
41
-
42
- // Contextual colors
43
- @each $color, $value in $colors {
44
- @include text-emphasis-variant(".text-#{$color}", $value);
45
- }
46
-
47
-
48
- // Adds a background divider to word
49
- .text-divider {
50
- position: relative;
51
- &:after {
52
- position: absolute;
53
- top: 50%;
54
- left: 0;
55
- width: 100%;
56
- height: 0;
57
- border-top: $border-width solid $border-color;
58
- content: '';
59
- z-index: 0;
60
- }
61
- .text-center, .btn-center { z-index: 10; }
62
- .text-center {
63
- position: relative;
64
- text-align: center;
65
- line-height: 1;
66
- span {
67
- display: inline-block;
68
- padding: ($spacer * .25) ($spacer * .5);
69
- background-color: $white;
70
- }
71
- }
72
- .btn-center {
73
- position: absolute;
74
- top: -18px;
75
- left: 50%;
76
- .btn {
77
- position: relative;
78
- left: -50%;
79
- }
80
- }
81
- }