on-standards-rails 1.5.1.1 → 2.0.0.pre.alpha
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 +7 -3
- data/lib/on-standards-rails.rb +0 -3
- data/lib/on/standards/rails/version.rb +1 -1
- data/on-standards-rails.gemspec +1 -4
- data/vendor/assets/javascripts/on-standards.js +17552 -18
- data/vendor/assets/stylesheets/on-standards.scss +67 -0
- data/vendor/assets/stylesheets/on-standards/_alert.scss +65 -0
- data/vendor/assets/stylesheets/on-standards/_animation.scss +27 -0
- data/vendor/assets/stylesheets/on-standards/_baseline.scss +351 -0
- data/vendor/assets/stylesheets/on-standards/_block-grid.scss +501 -0
- data/vendor/assets/stylesheets/on-standards/_breadcrumb.scss +23 -0
- data/vendor/assets/stylesheets/on-standards/_button-group.scss +293 -0
- data/vendor/assets/stylesheets/on-standards/_buttons.scss +241 -0
- data/vendor/assets/stylesheets/on-standards/_card.scss +292 -0
- data/vendor/assets/stylesheets/on-standards/_carousel.scss +252 -0
- data/vendor/assets/stylesheets/on-standards/_close.scss +27 -0
- data/vendor/assets/stylesheets/on-standards/_code.scss +58 -0
- data/vendor/assets/stylesheets/on-standards/_colors.scss +85 -0
- data/vendor/assets/stylesheets/on-standards/_custom-forms.scss +226 -0
- data/vendor/assets/stylesheets/on-standards/_dropdown.scss +193 -0
- data/vendor/assets/stylesheets/on-standards/_forms.scss +489 -0
- data/vendor/assets/stylesheets/on-standards/_functions.scss +19 -0
- data/vendor/assets/stylesheets/on-standards/_grid.scss +76 -0
- data/vendor/assets/stylesheets/on-standards/_images.scss +53 -0
- data/vendor/assets/stylesheets/on-standards/_input-group.scss +194 -0
- data/vendor/assets/stylesheets/on-standards/_jumbotron.scss +20 -0
- data/vendor/assets/stylesheets/on-standards/_list-group.scss +140 -0
- data/vendor/assets/stylesheets/on-standards/_media.scss +90 -0
- data/vendor/assets/stylesheets/on-standards/_mixins.scss +56 -0
- data/vendor/assets/stylesheets/on-standards/_modal.scss +143 -0
- data/vendor/assets/stylesheets/on-standards/_nav.scss +162 -0
- data/vendor/assets/stylesheets/on-standards/_navbar.scss +230 -0
- data/vendor/assets/stylesheets/on-standards/_normalize.scss +417 -0
- data/vendor/assets/stylesheets/on-standards/_off-canvas.scss +201 -0
- data/vendor/assets/stylesheets/on-standards/_pager.scss +57 -0
- data/vendor/assets/stylesheets/on-standards/_pagination.scss +73 -0
- data/vendor/assets/stylesheets/on-standards/_popover.scss +140 -0
- data/vendor/assets/stylesheets/on-standards/_print.scss +88 -0
- data/vendor/assets/stylesheets/on-standards/_progress.scss +156 -0
- data/vendor/assets/stylesheets/on-standards/_responsive-embed.scss +39 -0
- data/vendor/assets/stylesheets/on-standards/_tables.scss +193 -0
- data/vendor/assets/stylesheets/on-standards/_tags.scss +94 -0
- data/vendor/assets/stylesheets/on-standards/_tooltip.scss +85 -0
- data/vendor/assets/stylesheets/on-standards/_utilities-background.scss +19 -0
- data/vendor/assets/stylesheets/on-standards/_utilities-responsive.scss +49 -0
- data/vendor/assets/stylesheets/on-standards/_utilities-spacing.scss +39 -0
- data/vendor/assets/stylesheets/on-standards/_utilities.scss +93 -0
- data/vendor/assets/stylesheets/on-standards/_variables.scss +727 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_alert.scss +18 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_background-variant.scss +13 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_border-radius.scss +35 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_breakpoints.scss +86 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_buttons.scss +157 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_cards.scss +38 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_center-block.scss +7 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_clearfix.scss +7 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_forms.scss +89 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_gradients.scss +43 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_grid-framework.scss +44 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_grid.scss +75 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_hover.scss +59 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_image.scss +34 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_list-group.scss +30 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_lists.scss +7 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_modernizr.scss +11 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_nav-divider.scss +10 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_navbar-align.scss +9 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_pagination.scss +22 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_progress.scss +18 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_pulls.scss +6 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_reset-filter.scss +8 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_reset-text.scss +18 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_resize.scss +6 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_screen-reader.scss +32 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_size.scss +6 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_tab-focus.scss +5 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_table-row.scss +30 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_tag.scss +30 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_text-emphasis.scss +12 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_text-hide.scss +8 -0
- data/vendor/assets/stylesheets/on-standards/mixins/_text-truncate.scss +8 -0
- data/vendor/assets/stylesheets/on-standards/modules/_type.scss +171 -0
- metadata +83 -58
- data/vendor/assets/javascripts/on-standards/vendor/chosen.jquery.min.js +0 -2
- data/vendor/assets/javascripts/on-standards/vendor/jquery.tooltipster.min.js +0 -1
- data/vendor/assets/javascripts/on-standards/vendor/sweet-alert.min.js +0 -1
- data/vendor/assets/stylesheets/foundation_and_overrides.scss +0 -1450
- data/vendor/assets/stylesheets/on-overrides.sass +0 -0
- data/vendor/assets/stylesheets/on-standards.sass +0 -7
- data/vendor/assets/stylesheets/on-standards/church_to_church.sass +0 -1323
- data/vendor/assets/stylesheets/on-standards/vendor/chosen.min.css +0 -3
- data/vendor/assets/stylesheets/on-standards/vendor/sweet-alert.scss +0 -429
- data/vendor/assets/stylesheets/on-standards/vendor/tooltipster.css +0 -274
@@ -0,0 +1,27 @@
|
|
1
|
+
.close {
|
2
|
+
float: right;
|
3
|
+
font-size: ($font-size-base);
|
4
|
+
font-weight: $close-font-weight;
|
5
|
+
line-height: 1;
|
6
|
+
color: $close-color;
|
7
|
+
opacity: .5;
|
8
|
+
|
9
|
+
@include hover-focus {
|
10
|
+
// color: $close-color;
|
11
|
+
text-decoration: none;
|
12
|
+
cursor: pointer;
|
13
|
+
opacity: 1;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
// Additional properties for button version
|
18
|
+
// iOS requires the button element instead of an anchor tag.
|
19
|
+
// If you want the anchor version, it requires `href="#"`.
|
20
|
+
// See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
|
21
|
+
button.close {
|
22
|
+
padding: 0;
|
23
|
+
cursor: pointer;
|
24
|
+
background: transparent;
|
25
|
+
border: 0;
|
26
|
+
-webkit-appearance: none;
|
27
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
// Inline and block code styles
|
2
|
+
code,
|
3
|
+
kbd,
|
4
|
+
pre,
|
5
|
+
samp {
|
6
|
+
font-family: $font-family-monospace;
|
7
|
+
}
|
8
|
+
|
9
|
+
// Inline code
|
10
|
+
code {
|
11
|
+
padding: .2rem .4rem;
|
12
|
+
font-size: 90%;
|
13
|
+
color: $code-color;
|
14
|
+
background-color: $code-bg;
|
15
|
+
@include border-radius($border-radius);
|
16
|
+
}
|
17
|
+
|
18
|
+
// User input typically entered via keyboard
|
19
|
+
kbd {
|
20
|
+
padding: .2rem .4rem;
|
21
|
+
font-size: 90%;
|
22
|
+
color: $kbd-color;
|
23
|
+
background-color: $kbd-bg;
|
24
|
+
@include border-radius($border-radius-sm);
|
25
|
+
@include box-shadow(inset 0 -.1rem 0 rgba(0,0,0,.25));
|
26
|
+
|
27
|
+
kbd {
|
28
|
+
padding: 0;
|
29
|
+
font-size: 100%;
|
30
|
+
font-weight: $nested-kbd-font-weight;
|
31
|
+
@include box-shadow(none);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
// Blocks of code
|
36
|
+
pre {
|
37
|
+
display: block;
|
38
|
+
margin-top: 0;
|
39
|
+
margin-bottom: 1rem;
|
40
|
+
font-size: 90%;
|
41
|
+
line-height: $line-height;
|
42
|
+
color: $pre-color;
|
43
|
+
|
44
|
+
// Account for some code outputs that place code tags in pre tags
|
45
|
+
code {
|
46
|
+
padding: 0;
|
47
|
+
font-size: inherit;
|
48
|
+
color: inherit;
|
49
|
+
background-color: transparent;
|
50
|
+
border-radius: 0;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
// Enable scrollable blocks of code
|
55
|
+
.pre-scrollable {
|
56
|
+
max-height: $pre-scrollable-max-height;
|
57
|
+
overflow-y: scroll;
|
58
|
+
}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
// Mainfest for base colors
|
2
|
+
|
3
|
+
// Gray Spectrum
|
4
|
+
$white: #FFFFFF !default;
|
5
|
+
$gray-dark: #1E1F23 !default;
|
6
|
+
$gray: #404041 !default;
|
7
|
+
|
8
|
+
// Brand colors
|
9
|
+
$red: #D02F2F !default;
|
10
|
+
$green: #5DB239 !default;
|
11
|
+
$orange: #FF9000 !default;
|
12
|
+
$yellow: #FFCE00 !default;
|
13
|
+
$cyan: #2CCCC4 !default;
|
14
|
+
$purple: #B546EB !default;
|
15
|
+
$pink: #F464D7 !default;
|
16
|
+
$blue: #2993E5 !default;
|
17
|
+
|
18
|
+
// Tints and shades
|
19
|
+
$gray-90: tint($gray, 10%) !default;
|
20
|
+
$gray-80: tint($gray, 20%) !default;
|
21
|
+
$gray-70: tint($gray, 30%) !default;
|
22
|
+
$gray-60: tint($gray, 40%) !default;
|
23
|
+
$gray-50: tint($gray, 50%) !default;
|
24
|
+
$gray-40: tint($gray, 60%) !default;
|
25
|
+
$gray-30: tint($gray, 70%) !default;
|
26
|
+
$gray-20: tint($gray, 80%) !default;
|
27
|
+
$gray-10: tint($gray, 90%) !default;
|
28
|
+
$gray-5: tint($gray, 95%) !default;
|
29
|
+
|
30
|
+
$blue-190: shade($blue, 90%) !default;
|
31
|
+
$blue-180: shade($blue, 80%) !default;
|
32
|
+
$blue-170: shade($blue, 70%) !default;
|
33
|
+
$blue-160: shade($blue, 60%) !default;
|
34
|
+
$blue-150: shade($blue, 50%) !default;
|
35
|
+
$blue-140: shade($blue, 40%) !default;
|
36
|
+
$blue-130: shade($blue, 30%) !default;
|
37
|
+
$blue-120: shade($blue, 20%) !default;
|
38
|
+
$blue-110: shade($blue, 10%) !default;
|
39
|
+
$blue-90: tint($blue, 10%) !default;
|
40
|
+
$blue-80: tint($blue, 20%) !default;
|
41
|
+
$blue-70: tint($blue, 30%) !default;
|
42
|
+
$blue-60: tint($blue, 40%) !default;
|
43
|
+
$blue-50: tint($blue, 50%) !default;
|
44
|
+
$blue-40: tint($blue, 60%) !default;
|
45
|
+
$blue-30: tint($blue, 70%) !default;
|
46
|
+
$blue-20: tint($blue, 80%) !default;
|
47
|
+
$blue-10: tint($blue, 90%) !default;
|
48
|
+
|
49
|
+
$green-190: shade($green, 90%) !default;
|
50
|
+
$green-180: shade($green, 80%) !default;
|
51
|
+
$green-170: shade($green, 70%) !default;
|
52
|
+
$green-160: shade($green, 60%) !default;
|
53
|
+
$green-150: shade($green, 50%) !default;
|
54
|
+
$green-140: shade($green, 40%) !default;
|
55
|
+
$green-130: shade($green, 30%) !default;
|
56
|
+
$green-120: shade($green, 20%) !default;
|
57
|
+
$green-110: shade($green, 10%) !default;
|
58
|
+
$green-90: tint($green, 10%) !default;
|
59
|
+
$green-80: tint($green, 20%) !default;
|
60
|
+
$green-70: tint($green, 30%) !default;
|
61
|
+
$green-60: tint($green, 40%) !default;
|
62
|
+
$green-50: tint($green, 50%) !default;
|
63
|
+
$green-40: tint($green, 60%) !default;
|
64
|
+
$green-30: tint($green, 70%) !default;
|
65
|
+
$green-20: tint($green, 80%) !default;
|
66
|
+
$green-10: tint($green, 90%) !default;
|
67
|
+
|
68
|
+
$orange-190: shade($orange, 90%) !default;
|
69
|
+
$orange-180: shade($orange, 80%) !default;
|
70
|
+
$orange-170: shade($orange, 70%) !default;
|
71
|
+
$orange-160: shade($orange, 60%) !default;
|
72
|
+
$orange-150: shade($orange, 50%) !default;
|
73
|
+
$orange-140: shade($orange, 40%) !default;
|
74
|
+
$orange-130: shade($orange, 30%) !default;
|
75
|
+
$orange-120: shade($orange, 20%) !default;
|
76
|
+
$orange-110: shade($orange, 10%) !default;
|
77
|
+
$orange-90: tint($orange, 10%) !default;
|
78
|
+
$orange-80: tint($orange, 20%) !default;
|
79
|
+
$orange-70: tint($orange, 30%) !default;
|
80
|
+
$orange-60: tint($orange, 40%) !default;
|
81
|
+
$orange-50: tint($orange, 50%) !default;
|
82
|
+
$orange-40: tint($orange, 60%) !default;
|
83
|
+
$orange-30: tint($orange, 70%) !default;
|
84
|
+
$orange-20: tint($orange, 80%) !default;
|
85
|
+
$orange-10: tint($orange, 90%) !default;
|
@@ -0,0 +1,226 @@
|
|
1
|
+
// Embedded icons from Open Iconic.
|
2
|
+
// Released under MIT and copyright 2014 Waybury.
|
3
|
+
// http://useiconic.com/open
|
4
|
+
|
5
|
+
|
6
|
+
// Checkboxes and radios
|
7
|
+
//
|
8
|
+
// Base class takes care of all the key behavioral aspects.
|
9
|
+
|
10
|
+
.c-input {
|
11
|
+
position: relative;
|
12
|
+
display: inline;
|
13
|
+
padding-left: 1.5rem;
|
14
|
+
color: #555;
|
15
|
+
cursor: pointer;
|
16
|
+
|
17
|
+
> input {
|
18
|
+
position: absolute;
|
19
|
+
z-index: -1; // Put the input behind the label so it doesn't overlay text
|
20
|
+
opacity: 0;
|
21
|
+
|
22
|
+
&:checked ~ .c-indicator {
|
23
|
+
color: #fff;
|
24
|
+
background-color: #0074d9;
|
25
|
+
@include box-shadow(none);
|
26
|
+
}
|
27
|
+
|
28
|
+
&:focus ~ .c-indicator {
|
29
|
+
// the mixin is not used here to make sure there is feedback
|
30
|
+
box-shadow: 0 0 0 .075rem #fff, 0 0 0 .2rem #0074d9;
|
31
|
+
}
|
32
|
+
|
33
|
+
&:active ~ .c-indicator {
|
34
|
+
color: #fff;
|
35
|
+
background-color: #84c6ff;
|
36
|
+
@include box-shadow(none);
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
+ .c-input {
|
41
|
+
margin-left: 1rem;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
// Custom indicator
|
46
|
+
//
|
47
|
+
// Generates a shadow element to create our makeshift checkbox/radio background.
|
48
|
+
|
49
|
+
.c-indicator {
|
50
|
+
position: absolute;
|
51
|
+
top: 0;
|
52
|
+
left: 0;
|
53
|
+
display: block;
|
54
|
+
width: 1rem;
|
55
|
+
height: 1rem;
|
56
|
+
font-size: 65%;
|
57
|
+
line-height: 1rem;
|
58
|
+
color: #eee;
|
59
|
+
text-align: center;
|
60
|
+
user-select: none;
|
61
|
+
background-color: #eee;
|
62
|
+
background-repeat: no-repeat;
|
63
|
+
background-position: center center;
|
64
|
+
background-size: 50% 50%;
|
65
|
+
@include box-shadow(inset 0 .125rem .125rem rgba(0,0,0,.1));
|
66
|
+
}
|
67
|
+
|
68
|
+
// Checkboxes
|
69
|
+
//
|
70
|
+
// Tweak just a few things for checkboxes.
|
71
|
+
|
72
|
+
.c-checkbox {
|
73
|
+
.c-indicator {
|
74
|
+
border-radius: .25rem;
|
75
|
+
}
|
76
|
+
|
77
|
+
input:checked ~ .c-indicator {
|
78
|
+
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNy4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgOCA4IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4IDgiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHBhdGggZmlsbD0iI0ZGRkZGRiIgZD0iTTYuNCwxTDUuNywxLjdMMi45LDQuNUwyLjEsMy43TDEuNCwzTDAsNC40bDAuNywwLjdsMS41LDEuNWwwLjcsMC43bDAuNy0wLjdsMy41LTMuNWwwLjctMC43TDYuNCwxTDYuNCwxeiINCgkvPg0KPC9zdmc+DQo=);
|
79
|
+
}
|
80
|
+
|
81
|
+
input:indeterminate ~ .c-indicator {
|
82
|
+
background-color: #0074d9;
|
83
|
+
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNy4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iOHB4IiBoZWlnaHQ9IjhweCIgdmlld0JveD0iMCAwIDggOCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgOCA4IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik0wLDN2Mmg4VjNIMHoiLz4NCjwvc3ZnPg0K);
|
84
|
+
@include box-shadow(none);
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
// Radios
|
89
|
+
//
|
90
|
+
// Tweak just a few things for radios.
|
91
|
+
|
92
|
+
.c-radio {
|
93
|
+
.c-indicator {
|
94
|
+
border-radius: 50%;
|
95
|
+
}
|
96
|
+
|
97
|
+
input:checked ~ .c-indicator {
|
98
|
+
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNy4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgOCA4IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4IDgiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHBhdGggZmlsbD0iI0ZGRkZGRiIgZD0iTTQsMUMyLjMsMSwxLDIuMywxLDRzMS4zLDMsMywzczMtMS4zLDMtM1M1LjcsMSw0LDF6Ii8+DQo8L3N2Zz4NCg==);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
|
103
|
+
// Layout options
|
104
|
+
//
|
105
|
+
// By default radios and checkboxes are `inline-block` with no additional spacing
|
106
|
+
// set. Use these optional classes to tweak the layout.
|
107
|
+
|
108
|
+
.c-inputs-stacked {
|
109
|
+
.c-input {
|
110
|
+
display: inline;
|
111
|
+
|
112
|
+
&::after {
|
113
|
+
display: block;
|
114
|
+
margin-bottom: .25rem;
|
115
|
+
content: "";
|
116
|
+
}
|
117
|
+
|
118
|
+
+ .c-input {
|
119
|
+
margin-left: 0;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
|
125
|
+
// Select
|
126
|
+
//
|
127
|
+
// Replaces the browser default select with a custom one, mostly pulled from
|
128
|
+
// http://primercss.io.
|
129
|
+
//
|
130
|
+
// Includes IE9-specific hacks (noted by ` \9`).
|
131
|
+
|
132
|
+
.c-select {
|
133
|
+
display: inline-block;
|
134
|
+
max-width: 100%;
|
135
|
+
padding: .375rem 1.75rem .375rem .75rem;
|
136
|
+
padding-right: .75rem \9;
|
137
|
+
color: $input-color;
|
138
|
+
vertical-align: middle;
|
139
|
+
background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAUCAMAAACzvE1FAAAADFBMVEUzMzMzMzMzMzMzMzMKAG/3AAAAA3RSTlMAf4C/aSLHAAAAPElEQVR42q3NMQ4AIAgEQTn//2cLdRKppSGzBYwzVXvznNWs8C58CiussPJj8h6NwgorrKRdTvuV9v16Afn0AYFOB7aYAAAAAElFTkSuQmCC) no-repeat right .75rem center;
|
140
|
+
background-image: none \9;
|
141
|
+
background-size: 8px 10px;
|
142
|
+
border: $input-button-border-width solid $input-border-color;
|
143
|
+
// Use vendor prefixes as `appearance` isn't part of the CSS spec.
|
144
|
+
-moz-appearance: none;
|
145
|
+
-webkit-appearance: none;
|
146
|
+
|
147
|
+
&:focus {
|
148
|
+
border-color: #51a7e8;
|
149
|
+
outline: none;
|
150
|
+
@include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 5px rgba(81, 167, 232, 0.5));
|
151
|
+
}
|
152
|
+
|
153
|
+
// Hides the default caret in IE11
|
154
|
+
&::-ms-expand {
|
155
|
+
opacity: 0;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
.c-select-sm {
|
160
|
+
padding-top: 3px;
|
161
|
+
padding-bottom: 3px;
|
162
|
+
font-size: 12px;
|
163
|
+
|
164
|
+
&:not([multiple]) {
|
165
|
+
height: 26px;
|
166
|
+
min-height: 26px;
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
|
171
|
+
// File
|
172
|
+
//
|
173
|
+
// Custom file input.
|
174
|
+
|
175
|
+
.file {
|
176
|
+
position: relative;
|
177
|
+
display: inline-block;
|
178
|
+
height: 2.5rem;
|
179
|
+
cursor: pointer;
|
180
|
+
}
|
181
|
+
.file input {
|
182
|
+
min-width: 14rem;
|
183
|
+
margin: 0;
|
184
|
+
filter: alpha(opacity = 0);
|
185
|
+
opacity: 0;
|
186
|
+
}
|
187
|
+
.file-custom {
|
188
|
+
position: absolute;
|
189
|
+
top: 0;
|
190
|
+
right: 0;
|
191
|
+
left: 0;
|
192
|
+
z-index: 5;
|
193
|
+
height: 2.5rem;
|
194
|
+
padding: .5rem 1rem;
|
195
|
+
line-height: 1.5;
|
196
|
+
color: #555;
|
197
|
+
user-select: none;
|
198
|
+
background-color: #fff;
|
199
|
+
border: $input-button-border-width solid #ddd;
|
200
|
+
border-radius: .25rem;
|
201
|
+
@include box-shadow(inset 0 .2rem .4rem rgba(0,0,0,.05));
|
202
|
+
}
|
203
|
+
.file-custom::after {
|
204
|
+
content: "Choose file...";
|
205
|
+
}
|
206
|
+
.file-custom::before {
|
207
|
+
position: absolute;
|
208
|
+
top: -.075rem;
|
209
|
+
right: -.075rem;
|
210
|
+
bottom: -.075rem;
|
211
|
+
z-index: 6;
|
212
|
+
display: block;
|
213
|
+
height: 2.5rem;
|
214
|
+
padding: .5rem 1rem;
|
215
|
+
line-height: 1.5;
|
216
|
+
color: #555;
|
217
|
+
content: "Browse";
|
218
|
+
background-color: #eee;
|
219
|
+
border: $input-button-border-width solid #ddd;
|
220
|
+
border-radius: 0 .25rem .25rem 0;
|
221
|
+
}
|
222
|
+
|
223
|
+
// Focus state
|
224
|
+
.file input:focus ~ .file-custom {
|
225
|
+
@include box-shadow(0 0 0 .075rem #fff, 0 0 0 .2rem #0074d9);
|
226
|
+
}
|
@@ -0,0 +1,193 @@
|
|
1
|
+
// The dropdown wrapper (`<div>`)
|
2
|
+
.dropup,
|
3
|
+
.dropdown {
|
4
|
+
position: relative;
|
5
|
+
}
|
6
|
+
|
7
|
+
.dropdown-toggle {
|
8
|
+
// Generate the caret automatically
|
9
|
+
&::after {
|
10
|
+
display: inline-block;
|
11
|
+
width: 0;
|
12
|
+
height: 0;
|
13
|
+
margin-right: .25rem;
|
14
|
+
margin-left: .25rem;
|
15
|
+
vertical-align: middle;
|
16
|
+
content: "";
|
17
|
+
border-top: $caret-width solid;
|
18
|
+
border-right: $caret-width solid transparent;
|
19
|
+
border-left: $caret-width solid transparent;
|
20
|
+
}
|
21
|
+
|
22
|
+
// Prevent the focus on the dropdown toggle when closing dropdowns
|
23
|
+
&:focus {
|
24
|
+
outline: 0;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.dropup {
|
29
|
+
.dropdown-toggle {
|
30
|
+
&::after {
|
31
|
+
border-top: 0;
|
32
|
+
border-bottom: $caret-width solid;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
// The dropdown menu
|
38
|
+
.dropdown-menu {
|
39
|
+
position: absolute;
|
40
|
+
top: 100%;
|
41
|
+
left: 0;
|
42
|
+
z-index: $zindex-dropdown;
|
43
|
+
display: none; // none by default, but block on "open" of the menu
|
44
|
+
float: left;
|
45
|
+
min-width: 160px;
|
46
|
+
padding: 4px 0;
|
47
|
+
margin: 2px 0 0; // override default ul
|
48
|
+
font-size: $font-size-base;
|
49
|
+
color: $body-color;
|
50
|
+
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
|
51
|
+
list-style: none;
|
52
|
+
background-color: $dropdown-bg;
|
53
|
+
background-clip: padding-box;
|
54
|
+
border: $dropdown-border-width solid $dropdown-border-color;
|
55
|
+
@include border-radius($border-radius);
|
56
|
+
box-shadow: $box-shadow-1;
|
57
|
+
}
|
58
|
+
|
59
|
+
// Dividers (basically an `<hr>`) within the dropdown
|
60
|
+
.dropdown-divider {
|
61
|
+
@include nav-divider($dropdown-divider-bg);
|
62
|
+
}
|
63
|
+
|
64
|
+
// Links, buttons, and more within the dropdown menu
|
65
|
+
//
|
66
|
+
// `<button>`-specific styles are denoted with `// For <button>s`
|
67
|
+
.dropdown-item {
|
68
|
+
display: block;
|
69
|
+
width: 100%; // For `<button>`s
|
70
|
+
padding: 8px 16px;
|
71
|
+
clear: both;
|
72
|
+
font-weight: normal;
|
73
|
+
line-height: $line-height;
|
74
|
+
color: $dropdown-link-color;
|
75
|
+
text-align: inherit; // For `<button>`s
|
76
|
+
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
77
|
+
background: none; // For `<button>`s
|
78
|
+
border: 0; // For `<button>`s
|
79
|
+
|
80
|
+
@include hover-focus {
|
81
|
+
color: $dropdown-link-hover-color;
|
82
|
+
text-decoration: none;
|
83
|
+
background-color: $dropdown-link-hover-bg;
|
84
|
+
}
|
85
|
+
|
86
|
+
// Active state
|
87
|
+
&.active {
|
88
|
+
@include plain-hover-focus {
|
89
|
+
color: $dropdown-link-active-color;
|
90
|
+
text-decoration: none;
|
91
|
+
background-color: $dropdown-link-active-bg;
|
92
|
+
outline: 0;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
// Disabled state
|
97
|
+
//
|
98
|
+
// Gray out text and ensure the hover/focus state remains gray
|
99
|
+
&.disabled {
|
100
|
+
@include plain-hover-focus {
|
101
|
+
color: $dropdown-link-disabled-color;
|
102
|
+
}
|
103
|
+
|
104
|
+
// Nuke hover/focus effects
|
105
|
+
@include hover-focus {
|
106
|
+
text-decoration: none;
|
107
|
+
cursor: $cursor-disabled;
|
108
|
+
background-color: transparent;
|
109
|
+
background-image: none; // Remove CSS gradient
|
110
|
+
@include reset-filter();
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
// Open state for the dropdown
|
116
|
+
.open {
|
117
|
+
// Show the menu
|
118
|
+
> .dropdown-menu {
|
119
|
+
display: block;
|
120
|
+
}
|
121
|
+
|
122
|
+
// Remove the outline when :focus is triggered
|
123
|
+
> a {
|
124
|
+
outline: 0;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
// Menu positioning
|
129
|
+
//
|
130
|
+
// Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
|
131
|
+
// menu with the parent.
|
132
|
+
.dropdown-menu-right {
|
133
|
+
right: 0;
|
134
|
+
left: auto; // Reset the default from `.dropdown-menu`
|
135
|
+
}
|
136
|
+
// With v3, we enabled auto-flipping if you have a dropdown within a right
|
137
|
+
// aligned nav component. To enable the undoing of that, we provide an override
|
138
|
+
// to restore the default dropdown menu alignment.
|
139
|
+
//
|
140
|
+
// This is only for left-aligning a dropdown menu within a `.navbar-right` or
|
141
|
+
// `.pull-right` nav component.
|
142
|
+
.dropdown-menu-left {
|
143
|
+
right: auto;
|
144
|
+
left: 0;
|
145
|
+
}
|
146
|
+
|
147
|
+
// Dropdown section headers
|
148
|
+
.dropdown-header {
|
149
|
+
display: block;
|
150
|
+
padding: 3px 20px;
|
151
|
+
font-size: $font-size-sm;
|
152
|
+
line-height: $line-height;
|
153
|
+
color: $dropdown-header-color;
|
154
|
+
white-space: nowrap; // as with > li > a
|
155
|
+
}
|
156
|
+
|
157
|
+
// Backdrop to catch body clicks on mobile, etc.
|
158
|
+
.dropdown-backdrop {
|
159
|
+
position: fixed;
|
160
|
+
top: 0;
|
161
|
+
right: 0;
|
162
|
+
bottom: 0;
|
163
|
+
left: 0;
|
164
|
+
z-index: ($zindex-dropdown - 10);
|
165
|
+
}
|
166
|
+
|
167
|
+
// Right aligned dropdowns
|
168
|
+
.pull-right > .dropdown-menu {
|
169
|
+
right: 0;
|
170
|
+
left: auto;
|
171
|
+
}
|
172
|
+
|
173
|
+
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
174
|
+
//
|
175
|
+
// Just add .dropup after the standard .dropdown class and you're set.
|
176
|
+
// TODO: abstract this so that the navbar fixed styles are not placed here?
|
177
|
+
|
178
|
+
.dropup,
|
179
|
+
.navbar-fixed-bottom .dropdown {
|
180
|
+
// Reverse the caret
|
181
|
+
.caret {
|
182
|
+
content: "";
|
183
|
+
border-top: 0;
|
184
|
+
border-bottom: $caret-width solid;
|
185
|
+
}
|
186
|
+
|
187
|
+
// Different positioning for bottom up menu
|
188
|
+
.dropdown-menu {
|
189
|
+
top: auto;
|
190
|
+
bottom: 100%;
|
191
|
+
margin-bottom: 2px;
|
192
|
+
}
|
193
|
+
}
|