nfg_ui 0.10.13 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +40 -2
- data/Rakefile +28 -2
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/application.scss +9 -23
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_badge.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_buttons.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_custom-forms.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_custom.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_forms.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/color_variations/nfg_theme/_nav.scss +18 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_pagination.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_progress.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_reboot.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_type.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/_utilities.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/custom/_icons.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations/nfg_theme}/custom/_nav_step.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations}/plugins/_datetimepicker.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/{nfg_theme/color_variations → color_variations}/plugins/_select2.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_custom.scss +1 -9
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_nav.scss +0 -38
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_tile.scss +2 -61
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_video_countdown.scss +47 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/_variables.scss +35 -34
- data/app/assets/stylesheets/nfg_ui/network_for_good/core/application.scss +24 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/application.scss +4 -4
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_badge.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_buttons.scss +2 -2
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_custom-forms.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_custom.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_forms.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_functions.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_nav.scss +2 -4
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_navbar.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_reboot.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_type.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/_utilities.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/custom/_everyday_default.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/nfg_theme/custom/_nav_step.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/plugins/_datetimepicker.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/plugins/_select2.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/_variables.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/application.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_breadcrumb.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_button-group.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_card.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_carousel.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_custom-forms.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_custom.scss +1 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_forms.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_grid.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_input-group.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_list-group.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_media.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_mixins.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_modal.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_nav.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_navbar.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_pagination.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_progress.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/_utilities.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/custom/_avatar.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/custom/_everyday_giving.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/custom/_nav_step.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/nfg_theme/custom/_slat.scss +64 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/core/legacy_browser_support/nfg_theme/custom/_video_countdown.scss +5 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/mixins/_breakpoints.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/mixins/_grid-framework.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/mixins/_grid.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/utilities/_display.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/nfg_theme/utilities/_flex.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/legacy_browser_support/plugins/_sticky_div.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_alert.scss +6 -6
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_button-group.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_buttons.scss +1 -1
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_card.scss +3 -5
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_custom-forms.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_custom.scss +11 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_dropdown.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_forms.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/_nav.scss +26 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/nfg_theme/_progress.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_reboot.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_tooltip.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_type.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_avatar.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_device_preview.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_illustration.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_mobile.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_nav_step.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_redactor.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/core/nfg_theme/custom/_slat.scss +142 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/nfg_theme/custom/_social_share.scss +2 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_ticket.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/nfg_theme/custom/_tile.scss +1 -2
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/plugins/_datepicker.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/plugins/_datetimepicker.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/core/plugins/_intercom.scss +5 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/plugins/_select2.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/plugins/_sticky_div.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/plugins/_turbolinks.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/plugins/_twitter_typeahead.scss +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/application.scss +3 -20
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_custom.scss +1 -8
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_nav.scss +3 -38
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/{custom/_user_navbar.scss → _navbar.scss} +2 -2
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_background_variations.scss +1 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/{_event.scss → custom/_event.scss} +0 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_everyday_story.scss +1 -1
- data/lib/nfg_ui.rb +0 -1
- data/lib/nfg_ui/components/elements/avatar.rb +1 -1
- data/lib/nfg_ui/components/elements/slat_item.rb +13 -8
- data/lib/nfg_ui/components/patterns/slat_actions.rb +9 -35
- data/lib/nfg_ui/components/patterns/slats.rb +60 -0
- data/lib/nfg_ui/components/traits.rb +1 -0
- data/lib/nfg_ui/components/traits/slats.rb +26 -0
- data/lib/nfg_ui/version.rb +1 -1
- metadata +103 -117
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/_variables.scss +0 -1125
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_progress.scss +0 -3
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/color_variations/_nav.scss +0 -9
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/color_variations/_plugins.scss +0 -3
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_slat.scss +0 -112
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_social_share.scss +0 -44
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/custom/_slat.scss +0 -66
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_alert.scss +0 -2
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_button-group.scss +0 -22
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_buttons.scss +0 -17
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_card.scss +0 -6
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_custom-forms.scss +0 -156
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_dropdown.scss +0 -1
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_forms.scss +0 -85
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_reboot.scss +0 -34
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_tooltip.scss +0 -5
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_type.scss +0 -81
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_avatar.scss +0 -54
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_illustration.scss +0 -7
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_nav_step.scss +0 -111
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_slat.scss +0 -110
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_ticket.scss +0 -12
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/plugins/_intercom.scss +0 -7
- data/lib/nfg_ui/components/patterns/slat_list.rb +0 -18
@@ -0,0 +1,24 @@
|
|
1
|
+
//** CORE Styles **//
|
2
|
+
|
3
|
+
// App Vendors
|
4
|
+
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic,700);
|
5
|
+
@import 'font-awesome';
|
6
|
+
@import 'select2';
|
7
|
+
|
8
|
+
// Core Variables
|
9
|
+
@import 'variables';
|
10
|
+
|
11
|
+
// Bootstrap Vendor Base - placed after core variables in order to pull in our custom variables
|
12
|
+
@import 'bootstrap';
|
13
|
+
|
14
|
+
// NFG Theme
|
15
|
+
@import 'nfg_theme/*';
|
16
|
+
|
17
|
+
// Plugins
|
18
|
+
@import 'plugins/datepicker';
|
19
|
+
@import 'plugins/datetimepicker';
|
20
|
+
@import 'plugins/select2';
|
21
|
+
@import 'plugins/sticky_div';
|
22
|
+
|
23
|
+
// Legacy Browser Support
|
24
|
+
@import 'legacy_browser_support/application';
|
data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/entity_branding/application.scss
RENAMED
@@ -1,20 +1,20 @@
|
|
1
1
|
//** Entity Branding Styles **//
|
2
2
|
|
3
|
-
//
|
4
|
-
@import 'nfg_ui/network_for_good/
|
3
|
+
// Core Variables
|
4
|
+
@import 'nfg_ui/network_for_good/core/variables';
|
5
5
|
|
6
|
-
// NFG Theme
|
6
|
+
// NFG Theme - listed individually because we need functions and reboot first
|
7
7
|
@import 'nfg_theme/functions';
|
8
8
|
@import 'nfg_theme/reboot';
|
9
9
|
@import 'nfg_theme/badge';
|
10
10
|
@import 'nfg_theme/buttons';
|
11
11
|
@import 'nfg_theme/custom-forms';
|
12
|
+
@import 'nfg_theme/custom';
|
12
13
|
@import 'nfg_theme/forms';
|
13
14
|
@import 'nfg_theme/nav';
|
14
15
|
@import 'nfg_theme/navbar';
|
15
16
|
@import 'nfg_theme/type';
|
16
17
|
@import 'nfg_theme/utilities';
|
17
|
-
@import 'nfg_theme/custom';
|
18
18
|
|
19
19
|
// Plugins
|
20
20
|
@import 'plugins/datetimepicker';
|
File without changes
|
@@ -22,10 +22,10 @@
|
|
22
22
|
|
23
23
|
.btn-outline-secondary {
|
24
24
|
color: color-yiq($primary, $yiq-text-dark, $primary);
|
25
|
-
&:hover { color: color-yiq($primary, $yiq-text-dark, $primary); }
|
25
|
+
&:hover { color: color-yiq($primary, $yiq-text-dark, $primary) !important; }
|
26
26
|
&:not(:disabled):not(.disabled):active,
|
27
27
|
&:not(:disabled):not(.disabled).active,
|
28
|
-
.show > &.dropdown-toggle { color: color-yiq($primary, $yiq-text-dark, $primary); }
|
28
|
+
.show > &.dropdown-toggle { color: color-yiq($primary, $yiq-text-dark, $primary) !important; }
|
29
29
|
}
|
30
30
|
|
31
31
|
.btn-link {
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -3,14 +3,12 @@
|
|
3
3
|
.nav {
|
4
4
|
&.flex-column {
|
5
5
|
.nav-link {
|
6
|
-
&.active
|
6
|
+
&.active { border-color: $primary; }
|
7
7
|
}
|
8
8
|
}
|
9
9
|
}
|
10
10
|
.nav-tabs {
|
11
11
|
.nav-link {
|
12
|
-
&:hover, &.active {
|
13
|
-
&::after { background: $primary; }
|
14
|
-
}
|
12
|
+
&:hover, &.active { border-color: $primary; }
|
15
13
|
}
|
16
14
|
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,64 @@
|
|
1
|
+
// Slat and its child elements
|
2
|
+
.slat {
|
3
|
+
display: -ms-flexbox;
|
4
|
+
-ms-flex-direction: column;
|
5
|
+
-ms-flex-wrap: nowrap;
|
6
|
+
|
7
|
+
// Nowrap version -- used when the goal is to have all slat-item columns on the same line in smaller screens
|
8
|
+
&:not(.slats-nowrap) { // noting the :not() psuedo-class meaning all slats that don't have this class get these styles
|
9
|
+
.slat-body {
|
10
|
+
@include media-breakpoint-down(sm) { -ms-flex-direction: column; }
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
// Slat and its child elements
|
17
|
+
.slat {
|
18
|
+
display: -ms-flexbox;
|
19
|
+
-ms-flex-direction: row;
|
20
|
+
-ms-flex-wrap: wrap;
|
21
|
+
}
|
22
|
+
|
23
|
+
|
24
|
+
// Body Column
|
25
|
+
.slat-body {
|
26
|
+
display: -ms-flexbox;
|
27
|
+
-ms-flex-direction: row;
|
28
|
+
-ms-flex-wrap: wrap;
|
29
|
+
-ms-flex-positive: 1;
|
30
|
+
-ms-flex-negative: 0;
|
31
|
+
-ms-flex-preferred-size: 0;
|
32
|
+
}
|
33
|
+
|
34
|
+
|
35
|
+
// Item Column
|
36
|
+
.slat-item {
|
37
|
+
-ms-flex-positive: 1;
|
38
|
+
-ms-flex-negative: 0;
|
39
|
+
-ms-flex-preferred-size: 0;
|
40
|
+
&.slat-item-md { -ms-flex-positive: 2; }
|
41
|
+
&.slat-item-lg { -ms-flex-positive: 3; }
|
42
|
+
&.slat-item-xl { -ms-flex-positive: 4; }
|
43
|
+
}
|
44
|
+
|
45
|
+
|
46
|
+
// Action Column
|
47
|
+
.slat-actions {
|
48
|
+
-ms-flex-positive: 0;
|
49
|
+
-ms-flex-negative: 0;
|
50
|
+
-ms-flex-preferred-size: ($spacer * 2.5);
|
51
|
+
min-width: ($spacer * 2.5);
|
52
|
+
@include media-breakpoint-up(md) {
|
53
|
+
-ms-flex-preferred-size: ($spacer * 5.5);
|
54
|
+
min-width: ($spacer * 5.5);
|
55
|
+
}
|
56
|
+
.slat-actions-sm & { -ms-flex-preferred-size: ($spacer * 2.5); }
|
57
|
+
.slat-actions-lg & { -ms-flex-preferred-size: ($spacer * 5.5); }
|
58
|
+
}
|
59
|
+
|
60
|
+
|
61
|
+
// Slat header
|
62
|
+
.slat-header {
|
63
|
+
.slat-body { -ms-flex-align: center; }
|
64
|
+
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,18 +1,18 @@
|
|
1
1
|
// Custom type color
|
2
2
|
.alert {
|
3
3
|
color: $body-color;
|
4
|
-
a {
|
4
|
+
a:not(.btn) {
|
5
5
|
text-decoration: underline;
|
6
6
|
&:hover, &:active { text-decoration: none; }
|
7
7
|
}
|
8
8
|
}
|
9
|
-
.alert-success a { color: $success; }
|
10
|
-
.alert-info a { color: $info; }
|
11
|
-
.alert-warning a { color: $warning; }
|
9
|
+
.alert-success a:not(.btn) { color: $success; }
|
10
|
+
.alert-info a:not(.btn) { color: $info; }
|
11
|
+
.alert-warning a:not(.btn) { color: $warning; }
|
12
12
|
.alert-danger, .alert-error {
|
13
|
-
a { color: $danger; }
|
13
|
+
a:not(.btn) { color: $danger; }
|
14
14
|
}
|
15
15
|
.alert-gray, .alert-notice,
|
16
16
|
.alert-light, .alert-dark {
|
17
|
-
a { color: inherit; }
|
17
|
+
a:not(.btn) { color: inherit; }
|
18
18
|
}
|
data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_button-group.scss
RENAMED
File without changes
|
@@ -1,11 +1,9 @@
|
|
1
1
|
//
|
2
2
|
// Base styles
|
3
3
|
//
|
4
|
-
.card[href] {
|
5
|
-
|
6
|
-
|
7
|
-
&:hover { box-shadow: $box-shadow-sm; }
|
8
|
-
}
|
4
|
+
// .card[href] { box-shadow: none; }
|
5
|
+
.card-title { margin-bottom: ($card-spacer-y * .5); }
|
6
|
+
|
9
7
|
.card-subtitle { margin-top: 0; }
|
10
8
|
|
11
9
|
|
data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/_custom-forms.scss
RENAMED
File without changes
|
@@ -0,0 +1,11 @@
|
|
1
|
+
// Our custom styles
|
2
|
+
@import 'custom/avatar';
|
3
|
+
@import 'custom/device_preview';
|
4
|
+
@import 'custom/illustration';
|
5
|
+
@import 'custom/mobile';
|
6
|
+
@import 'custom/nav_step';
|
7
|
+
@import 'custom/redactor';
|
8
|
+
@import 'custom/social_share';
|
9
|
+
@import 'custom/slat';
|
10
|
+
@import 'custom/ticket';
|
11
|
+
@import 'custom/tile';
|
File without changes
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
//
|
2
|
+
// Tabs
|
3
|
+
//
|
4
|
+
.nav-tabs {
|
5
|
+
border-width: $border-width;
|
6
|
+
|
7
|
+
.nav-item {
|
8
|
+
margin-bottom: -$border-width;
|
9
|
+
font-weight: $font-weight-bold;
|
10
|
+
font-size: $font-size-base;
|
11
|
+
}
|
12
|
+
|
13
|
+
.nav-link {
|
14
|
+
color: $text-muted !important;
|
15
|
+
border: none;
|
16
|
+
border-bottom: $nav-tabs-border-width solid transparent;
|
17
|
+
@include hover-focus {
|
18
|
+
color: $nav-tabs-link-active-color !important;
|
19
|
+
border-color: $nav-tabs-link-hover-border-color;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
.nav-link.active,
|
23
|
+
.nav-item.show .nav-link {
|
24
|
+
color: $nav-tabs-link-active-color !important;
|
25
|
+
}
|
26
|
+
}
|
data/app/assets/stylesheets/nfg_ui/network_for_good/{public → core}/nfg_theme/_progress.scss
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_avatar.scss
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_mobile.scss
RENAMED
File without changes
|
data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_nav_step.scss
RENAMED
File without changes
|
data/app/assets/stylesheets/nfg_ui/network_for_good/{admin → core}/nfg_theme/custom/_redactor.scss
RENAMED
File without changes
|
@@ -0,0 +1,142 @@
|
|
1
|
+
$slat-actions-sm-width: 36px;
|
2
|
+
$slat-actions-lg-width: 108px;
|
3
|
+
|
4
|
+
|
5
|
+
// Slat list layout
|
6
|
+
.slats {
|
7
|
+
display: flex;
|
8
|
+
flex-flow: column nowrap;
|
9
|
+
|
10
|
+
// Nowrap version -- used when the goal is to have all slat-item columns on the same line in smaller screens
|
11
|
+
:not(.slats-nowrap) { // noting the :not() psuedo-class meaning all slats that don't have this class get these styles
|
12
|
+
.slat-body {
|
13
|
+
@include media-breakpoint-down(sm) { flex-direction: column; }
|
14
|
+
}
|
15
|
+
.slat-item + .slat-item {
|
16
|
+
@include media-breakpoint-down(sm) { margin-top: $spacer; }
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
// Slat and its child elements
|
23
|
+
.slat {
|
24
|
+
display: flex;
|
25
|
+
flex-flow: row wrap;
|
26
|
+
padding-top: $spacer;
|
27
|
+
padding-bottom: $spacer;
|
28
|
+
+ .slat { border-top: $border-width solid $border-color; }
|
29
|
+
|
30
|
+
// Sizing options
|
31
|
+
.slats-sm & {
|
32
|
+
padding-top: ($spacer * .5);
|
33
|
+
padding-bottom: ($spacer * .5);
|
34
|
+
}
|
35
|
+
.slats-lg & {
|
36
|
+
padding-top: ($spacer * 1.5);
|
37
|
+
padding-bottom: ($spacer * 1.5);
|
38
|
+
}
|
39
|
+
|
40
|
+
// Various states
|
41
|
+
&.ui-sortable-placeholder {
|
42
|
+
visibility: visible !important;
|
43
|
+
background: theme-color("light");
|
44
|
+
border: $border-width dashed $border-color;
|
45
|
+
+ .slat { border-top: none; }
|
46
|
+
+ &.ui-sortable-helper {
|
47
|
+
border-top-style: dashed;
|
48
|
+
+ &.slat { border-top: none; }
|
49
|
+
}
|
50
|
+
}
|
51
|
+
&.ui-sortable-helper {
|
52
|
+
border-top: none;
|
53
|
+
opacity: .5;
|
54
|
+
border-top: none;
|
55
|
+
+ &.ui-sortable-placeholder { border-top: $border-width dashed $border-color; }
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
|
60
|
+
// Body Column
|
61
|
+
.slat-body {
|
62
|
+
display: flex;
|
63
|
+
flex-direction: row;
|
64
|
+
flex-wrap: wrap;
|
65
|
+
flex: 1 0 0;
|
66
|
+
margin-right: -($grid-gutter-width * .5);
|
67
|
+
margin-left: -($grid-gutter-width * .5);
|
68
|
+
width: 100%;
|
69
|
+
|
70
|
+
// max-width needed for when text-truncate is on an element inside
|
71
|
+
@include media-breakpoint-down(sm) { max-width: calc(100% - #{$slat-actions-sm-width}); }
|
72
|
+
@include media-breakpoint-up(md) { max-width: calc(100% - #{$slat-actions-lg-width}); }
|
73
|
+
.slat-actions-sm & { max-width: calc(100% - #{$slat-actions-sm-width}); }
|
74
|
+
.slat-actions-lg & { max-width: calc(100% - #{$slat-actions-lg-width}); }
|
75
|
+
.slat-actions-none & { max-width: calc(100% + 24px); }
|
76
|
+
}
|
77
|
+
|
78
|
+
|
79
|
+
// Shared action and item column
|
80
|
+
.slat-item, .slat-actions {
|
81
|
+
padding-left: ($grid-gutter-width * .5);
|
82
|
+
min-width: 0px;
|
83
|
+
word-break: break-word;
|
84
|
+
white-space: normal;
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
// Item Column
|
89
|
+
.slat-item {
|
90
|
+
flex: 1 0 0;
|
91
|
+
padding-right: ($grid-gutter-width * .5);
|
92
|
+
width: 100%;
|
93
|
+
max-width: 100%;
|
94
|
+
&.slat-item-md { flex-grow: 2; }
|
95
|
+
&.slat-item-lg { flex-grow: 3; }
|
96
|
+
&.slat-item-xl { flex-grow: 4; }
|
97
|
+
}
|
98
|
+
|
99
|
+
|
100
|
+
// Action Column
|
101
|
+
.slat-actions {
|
102
|
+
flex-grow: 0;
|
103
|
+
flex-shrink: 0;
|
104
|
+
flex-basis: ($spacer * 2.5);
|
105
|
+
text-align: right;
|
106
|
+
@include media-breakpoint-up(md) { flex-basis: ($spacer * 5.5); }
|
107
|
+
.slat-actions-sm & { flex-basis: ($spacer * 2.5); }
|
108
|
+
.slat-actions-lg & { flex-basis: ($spacer * 5.5); }
|
109
|
+
}
|
110
|
+
|
111
|
+
|
112
|
+
// Action dropdown text (ex: "Actions") used for default action dropdown behavior
|
113
|
+
.slat-actions-text {
|
114
|
+
@include media-breakpoint-down(sm) { display: none; }
|
115
|
+
@include media-breakpoint-up(md) {
|
116
|
+
display: inline-block;
|
117
|
+
margin-right: ($spacer * .25);
|
118
|
+
}
|
119
|
+
.slat-actions-lg & { // always show text on :lg slat-actions
|
120
|
+
display: inline-block;
|
121
|
+
margin-right: ($spacer * .25);
|
122
|
+
}
|
123
|
+
.slat-actions-sm & { display: none; } // always hide text on :sm slat-actions
|
124
|
+
+ .fa.ml-1 { margin-left: 0 !important; } // hides default margin on icons in buttons on smaller device
|
125
|
+
}
|
126
|
+
|
127
|
+
|
128
|
+
// Slat header
|
129
|
+
.slat-header {
|
130
|
+
padding-bottom: ($spacer * .5);
|
131
|
+
border-bottom: $border-width solid $border-color;
|
132
|
+
.slat { padding: 0 !important; }
|
133
|
+
.slat-body { align-items: center; }
|
134
|
+
.slat-column-header { display: inline-block; }
|
135
|
+
|
136
|
+
}
|
137
|
+
|
138
|
+
|
139
|
+
// Slat column headers -- any .slat-column-header not in .slat-header displays none on larger devices
|
140
|
+
.slat-column-header {
|
141
|
+
@include media-breakpoint-up(md) { display: none; }
|
142
|
+
}
|