nfg_ui 0.10.14 → 0.11.1.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 +24 -26
- 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 +0 -0
- 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/{public → core}/plugins/_intercom.scss +0 -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/lib/nfg_ui/components/patterns/slat_list.rb +0 -18
@@ -1,112 +0,0 @@
|
|
1
|
-
// Slat and its child elements
|
2
|
-
.slat {
|
3
|
-
display: flex;
|
4
|
-
flex-flow: row wrap;
|
5
|
-
}
|
6
|
-
|
7
|
-
|
8
|
-
// Body Column
|
9
|
-
.slat-body {
|
10
|
-
display: flex;
|
11
|
-
flex-flow: row wrap;
|
12
|
-
flex: 1 0 0;
|
13
|
-
margin-right: -($grid-gutter-width * .5);
|
14
|
-
margin-left: -($grid-gutter-width * .5);
|
15
|
-
width: 100%;
|
16
|
-
.slat-item {
|
17
|
-
flex: 1 0 0;
|
18
|
-
padding-right: ($grid-gutter-width * .5);
|
19
|
-
padding-left: ($grid-gutter-width * .5);
|
20
|
-
width: 100%;
|
21
|
-
max-width: 100%;
|
22
|
-
min-height: 1px;
|
23
|
-
&:first-child {
|
24
|
-
flex-grow: 2;
|
25
|
-
|
26
|
-
// Sizing options
|
27
|
-
&.slat-item-sm { flex-grow: 1; }
|
28
|
-
&.slat-item-lg { flex-grow: 6; }
|
29
|
-
}
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
|
34
|
-
// Action Column
|
35
|
-
.slat-actions {
|
36
|
-
padding-left: ($grid-gutter-width * .5);
|
37
|
-
flex: 0 0 ($spacer * 1.5);
|
38
|
-
width: auto;
|
39
|
-
max-width: none;
|
40
|
-
text-align: right;
|
41
|
-
@include media-breakpoint-up(sm) { flex-basis: ($spacer * 6); }
|
42
|
-
|
43
|
-
|
44
|
-
// Sizing options
|
45
|
-
&.slat-actions-sm { flex-basis: ($spacer * 1.5); }
|
46
|
-
&.slat-actions-lg { flex-basis: ($spacer * 12); }
|
47
|
-
}
|
48
|
-
|
49
|
-
|
50
|
-
// Slat header
|
51
|
-
.slat-header {
|
52
|
-
padding-bottom: ($spacer * .5);
|
53
|
-
.slat-body { align-items: center; }
|
54
|
-
}
|
55
|
-
|
56
|
-
|
57
|
-
// Slat list layout
|
58
|
-
.slat-list {
|
59
|
-
border-top: $border-width solid $border-color;
|
60
|
-
.slat {
|
61
|
-
padding-top: $spacer;
|
62
|
-
padding-bottom: $spacer;
|
63
|
-
+ .slat { border-top: $border-width solid $border-color; }
|
64
|
-
|
65
|
-
|
66
|
-
// Various states
|
67
|
-
&.ui-sortable-placeholder {
|
68
|
-
visibility: visible !important;
|
69
|
-
background: theme-color("light");
|
70
|
-
border: $border-width dashed $border-color;
|
71
|
-
+ .slat { border-top: none; }
|
72
|
-
+ &.ui-sortable-helper {
|
73
|
-
border-top-style: dashed;
|
74
|
-
+ &.slat { border-top: none; }
|
75
|
-
}
|
76
|
-
}
|
77
|
-
&.ui-sortable-helper {
|
78
|
-
border-top: none;
|
79
|
-
opacity: .5;
|
80
|
-
border-top: none;
|
81
|
-
+ &.ui-sortable-placeholder { border-top: $border-width dashed $border-color; }
|
82
|
-
}
|
83
|
-
}
|
84
|
-
|
85
|
-
|
86
|
-
// Sizing options
|
87
|
-
&.slat-list-sm {
|
88
|
-
.slat {
|
89
|
-
padding-top: ($spacer * .5);
|
90
|
-
padding-bottom: ($spacer * .5);
|
91
|
-
}
|
92
|
-
}
|
93
|
-
&.slat-list-lg {
|
94
|
-
.slat {
|
95
|
-
padding-top: ($spacer * 1.5);
|
96
|
-
padding-bottom: ($spacer * 1.5);
|
97
|
-
}
|
98
|
-
}
|
99
|
-
|
100
|
-
|
101
|
-
// Non-breaked version -- used when the goal is to have all slat-item columns on the same line in smaller screens
|
102
|
-
&:not(.slat-list-no-break) {
|
103
|
-
.slat-item {
|
104
|
-
&:first-child {
|
105
|
-
@include media-breakpoint-down(sm) {
|
106
|
-
flex-basis: 100%;
|
107
|
-
margin-bottom: $spacer;
|
108
|
-
}
|
109
|
-
}
|
110
|
-
}
|
111
|
-
}
|
112
|
-
}
|
data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_social_share.scss
DELETED
@@ -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,66 +0,0 @@
|
|
1
|
-
// Slat and its child elements
|
2
|
-
.slat {
|
3
|
-
display: -ms-flexbox;
|
4
|
-
-ms-flex-direction: row;
|
5
|
-
-ms-flex-wrap: wrap;
|
6
|
-
}
|
7
|
-
|
8
|
-
.slat-body {
|
9
|
-
display: -ms-flexbox;
|
10
|
-
-ms-flex-direction: row;
|
11
|
-
-ms-flex-wrap: wrap;
|
12
|
-
-ms-flex-positive: 1;
|
13
|
-
-ms-flex-negative: 0;
|
14
|
-
-ms-flex-preferred-size: 0;
|
15
|
-
|
16
|
-
.slat-item {
|
17
|
-
-ms-flex-positive: 1;
|
18
|
-
-ms-flex-negative: 0;
|
19
|
-
-ms-flex-preferred-size: 0;
|
20
|
-
&:first-child {
|
21
|
-
-ms-flex-positive: 2;
|
22
|
-
|
23
|
-
// Sizing options
|
24
|
-
&.slat-item-sm { -ms-flex-positive: 1; }
|
25
|
-
&.slat-item-lg { -ms-flex-positive: 6; }
|
26
|
-
}
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
.slat-actions {
|
31
|
-
-ms-flex-positive: 0;
|
32
|
-
-ms-flex-negative: 0;
|
33
|
-
-ms-flex-preferred-size: ($spacer * 1.5);
|
34
|
-
min-width: ($spacer * 1.5);
|
35
|
-
@include media-breakpoint-up(sm) {
|
36
|
-
-ms-flex-preferred-size: ($spacer * 6);
|
37
|
-
min-width: ($spacer * 6);
|
38
|
-
}
|
39
|
-
|
40
|
-
|
41
|
-
// Sizing options
|
42
|
-
&.slat-actions-sm { -ms-flex-preferred-size: ($spacer * 1.5); }
|
43
|
-
&.slat-actions-lg { -ms-flex-preferred-size: ($spacer * 12); }
|
44
|
-
}
|
45
|
-
|
46
|
-
|
47
|
-
// Slat header
|
48
|
-
.slat-header {
|
49
|
-
.slat-body { -ms-flex-align: center; }
|
50
|
-
}
|
51
|
-
|
52
|
-
|
53
|
-
// Slat list layout
|
54
|
-
.slat-list {
|
55
|
-
|
56
|
-
// Non-breaked version -- used when the goal is to have all slat-item columns on the same line in smaller screens
|
57
|
-
&:not(.slat-list-no-break) {
|
58
|
-
.slat-item {
|
59
|
-
&:first-child {
|
60
|
-
@include media-breakpoint-down(sm) {
|
61
|
-
-ms-flex-preferred-size: 100%;
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
65
|
-
}
|
66
|
-
}
|
@@ -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,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
|
-
}
|