flexa_lib 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. data/lib/flexa_lib/version.rb +1 -1
  2. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  3. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  4. data/vendor/assets/javascripts/bootstrap-alert.js +94 -0
  5. data/vendor/assets/javascripts/bootstrap-button.js +98 -0
  6. data/vendor/assets/javascripts/bootstrap-carousel.js +157 -0
  7. data/vendor/assets/javascripts/bootstrap-collapse.js +136 -0
  8. data/vendor/assets/javascripts/bootstrap-dropdown.js +92 -0
  9. data/vendor/assets/javascripts/bootstrap-modal.js +210 -0
  10. data/vendor/assets/javascripts/bootstrap-popover.js +95 -0
  11. data/vendor/assets/javascripts/bootstrap-scrollspy.js +125 -0
  12. data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
  13. data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
  14. data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
  15. data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
  16. data/vendor/assets/javascripts/bootstrap.js +12 -0
  17. data/vendor/assets/javascripts/flexa-themejs.js +94 -0
  18. data/vendor/assets/javascripts/jquery.cookie.js +96 -0
  19. data/vendor/assets/javascripts/jquery.pjax.js +460 -0
  20. data/vendor/assets/javascripts/populate.js +272 -0
  21. data/vendor/assets/stylesheets/_bootstrap-responsive.scss +318 -0
  22. data/vendor/assets/stylesheets/_bootstrap.scss +63 -0
  23. data/vendor/assets/stylesheets/bootstrap/_accordion.scss +28 -0
  24. data/vendor/assets/stylesheets/bootstrap/_alerts.scss +62 -0
  25. data/vendor/assets/stylesheets/bootstrap/_breadcrumbs.scss +22 -0
  26. data/vendor/assets/stylesheets/bootstrap/_button-groups.scss +136 -0
  27. data/vendor/assets/stylesheets/bootstrap/_buttons.scss +163 -0
  28. data/vendor/assets/stylesheets/bootstrap/_carousel.scss +116 -0
  29. data/vendor/assets/stylesheets/bootstrap/_close.scss +18 -0
  30. data/vendor/assets/stylesheets/bootstrap/_code.scss +56 -0
  31. data/vendor/assets/stylesheets/bootstrap/_component-animations.scss +18 -0
  32. data/vendor/assets/stylesheets/bootstrap/_dropdowns.scss +126 -0
  33. data/vendor/assets/stylesheets/bootstrap/_forms.scss +463 -0
  34. data/vendor/assets/stylesheets/bootstrap/_grid.scss +8 -0
  35. data/vendor/assets/stylesheets/bootstrap/_hero-unit.scss +20 -0
  36. data/vendor/assets/stylesheets/bootstrap/_labels.scss +32 -0
  37. data/vendor/assets/stylesheets/bootstrap/_layouts.scss +17 -0
  38. data/vendor/assets/stylesheets/bootstrap/_mixins.scss +530 -0
  39. data/vendor/assets/stylesheets/bootstrap/_modals.scss +83 -0
  40. data/vendor/assets/stylesheets/bootstrap/_navbar.scss +288 -0
  41. data/vendor/assets/stylesheets/bootstrap/_navs.scss +329 -0
  42. data/vendor/assets/stylesheets/bootstrap/_pager.scss +30 -0
  43. data/vendor/assets/stylesheets/bootstrap/_pagination.scss +53 -0
  44. data/vendor/assets/stylesheets/bootstrap/_popovers.scss +49 -0
  45. data/vendor/assets/stylesheets/bootstrap/_progress-bars.scss +95 -0
  46. data/vendor/assets/stylesheets/bootstrap/_reset.scss +105 -0
  47. data/vendor/assets/stylesheets/bootstrap/_scaffolding.scss +29 -0
  48. data/vendor/assets/stylesheets/bootstrap/_sprites.scss +157 -0
  49. data/vendor/assets/stylesheets/bootstrap/_tables.scss +126 -0
  50. data/vendor/assets/stylesheets/bootstrap/_thumbnails.scss +35 -0
  51. data/vendor/assets/stylesheets/bootstrap/_tooltip.scss +35 -0
  52. data/vendor/assets/stylesheets/bootstrap/_type.scss +209 -0
  53. data/vendor/assets/stylesheets/bootstrap/_utilities.scss +23 -0
  54. data/vendor/assets/stylesheets/bootstrap/_variables.scss +103 -0
  55. data/vendor/assets/stylesheets/bootstrap/_wells.scss +17 -0
  56. data/vendor/assets/stylesheets/docs.css.scss +790 -0
  57. data/vendor/assets/stylesheets/flexa-theme.css.scss +32 -0
  58. data/vendor/assets/stylesheets/override.css.scss +77 -0
  59. metadata +60 -3
@@ -0,0 +1,62 @@
1
+ // ALERT STYLES
2
+ // ------------
3
+
4
+ // Base alert styles
5
+ .alert {
6
+ padding: 8px 35px 8px 14px;
7
+ margin-bottom: $baseLineHeight;
8
+ text-shadow: 0 1px 0 rgba(255,255,255,.5);
9
+ background-color: $warningBackground;
10
+ border: 1px solid $warningBorder;
11
+ @include border-radius(4px);
12
+ }
13
+ .alert, .alert-heading {
14
+ color: $warningText;
15
+ }
16
+
17
+ // Adjust close link position
18
+ .alert .close {
19
+ position: relative;
20
+ top: -2px;
21
+ right: -21px;
22
+ line-height: 18px;
23
+ }
24
+
25
+ // Alternate styles
26
+ // ----------------
27
+
28
+ .alert-success {
29
+ background-color: $successBackground;
30
+ border-color: $successBorder;
31
+ }
32
+ .alert-success, .alert-success .alert-heading {
33
+ color: $successText;
34
+ }
35
+ .alert-danger, .alert-error {
36
+ background-color: $errorBackground;
37
+ border-color: $errorBorder;
38
+ }
39
+ .alert-danger, .alert-error, .alert-danger .alert-heading, .alert-error .alert-heading {
40
+ color: $errorText;
41
+ }
42
+ .alert-info {
43
+ background-color: $infoBackground;
44
+ border-color: $infoBorder;
45
+ }
46
+ .alert-info, .alert-info .alert-heading {
47
+ color: $infoText;
48
+ }
49
+
50
+
51
+ // Block alerts
52
+ // ------------------------
53
+ .alert-block {
54
+ padding-top: 14px;
55
+ padding-bottom: 14px;
56
+ }
57
+ .alert-block > p, .alert-block > ul {
58
+ margin-bottom: 0;
59
+ }
60
+ .alert-block p + p {
61
+ margin-top: 5px;
62
+ }
@@ -0,0 +1,22 @@
1
+ // BREADCRUMBS
2
+ // -----------
3
+
4
+ .breadcrumb {
5
+ padding: 7px 14px;
6
+ margin: 0 0 $baseLineHeight;
7
+ @include gradient-vertical($white, #f5f5f5);
8
+ border: 1px solid #ddd;
9
+ @include border-radius(3px);
10
+ @include box-shadow(inset 0 1px 0 $white);
11
+ li {
12
+ display: inline-block;
13
+ text-shadow: 0 1px 0 $white;
14
+ }
15
+ .divider {
16
+ padding: 0 5px;
17
+ color: $grayLight;
18
+ }
19
+ .active a {
20
+ color: $grayDark;
21
+ }
22
+ }
@@ -0,0 +1,136 @@
1
+ // BUTTON GROUPS
2
+ // -------------
3
+
4
+
5
+ // Make the div behave like a button
6
+ .btn-group {
7
+ position: relative;
8
+ @include clearfix(); // clears the floated buttons
9
+ @include ie7-restore-left-whitespace();
10
+ }
11
+
12
+ // Space out series of button groups
13
+ .btn-group + .btn-group {
14
+ margin-left: 5px;
15
+ }
16
+
17
+ // Optional: Group multiple button groups together for a toolbar
18
+ .btn-toolbar {
19
+ margin-top: $baseLineHeight / 2;
20
+ margin-bottom: $baseLineHeight / 2;
21
+ .btn-group {
22
+ display: inline-block;
23
+ @include ie7-inline-block();
24
+ }
25
+ }
26
+
27
+ // Float them, remove border radius, then re-add to first and last elements
28
+ .btn-group .btn {
29
+ position: relative;
30
+ float: left;
31
+ margin-left: -1px;
32
+ @include border-radius(0);
33
+ }
34
+ // Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
35
+ .btn-group .btn:first-child {
36
+ margin-left: 0;
37
+ -webkit-border-top-left-radius: 4px;
38
+ -moz-border-radius-topleft: 4px;
39
+ border-top-left-radius: 4px;
40
+ -webkit-border-bottom-left-radius: 4px;
41
+ -moz-border-radius-bottomleft: 4px;
42
+ border-bottom-left-radius: 4px;
43
+ }
44
+ .btn-group .btn:last-child, .btn-group .dropdown-toggle {
45
+ -webkit-border-top-right-radius: 4px;
46
+ -moz-border-radius-topright: 4px;
47
+ border-top-right-radius: 4px;
48
+ -webkit-border-bottom-right-radius: 4px;
49
+ -moz-border-radius-bottomright: 4px;
50
+ border-bottom-right-radius: 4px;
51
+ }
52
+ // Reset corners for large buttons
53
+ .btn-group .btn.large:first-child {
54
+ margin-left: 0;
55
+ -webkit-border-top-left-radius: 6px;
56
+ -moz-border-radius-topleft: 6px;
57
+ border-top-left-radius: 6px;
58
+ -webkit-border-bottom-left-radius: 6px;
59
+ -moz-border-radius-bottomleft: 6px;
60
+ border-bottom-left-radius: 6px;
61
+ }
62
+ .btn-group .btn.large:last-child, .btn-group .large.dropdown-toggle {
63
+ -webkit-border-top-right-radius: 6px;
64
+ -moz-border-radius-topright: 6px;
65
+ border-top-right-radius: 6px;
66
+ -webkit-border-bottom-right-radius: 6px;
67
+ -moz-border-radius-bottomright: 6px;
68
+ border-bottom-right-radius: 6px;
69
+ }
70
+
71
+ // On hover/focus/active, bring the proper btn to front
72
+ .btn-group .btn:hover, .btn-group .btn:focus, .btn-group .btn:active, .btn-group .btn.active {
73
+ z-index: 2;
74
+ }
75
+
76
+ // On active and open, don't show outline
77
+ .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle {
78
+ outline: 0;
79
+ }
80
+
81
+
82
+
83
+ // Split button dropdowns
84
+ // ----------------------
85
+
86
+ // Give the line between buttons some depth
87
+ .btn-group .dropdown-toggle {
88
+ padding-left: 8px;
89
+ padding-right: 8px;
90
+ $shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
91
+ @include box-shadow($shadow);
92
+ *padding-top: 5px;
93
+ *padding-bottom: 5px;
94
+ }
95
+
96
+ .btn-group.open {
97
+ // IE7's z-index only goes to the nearest positioned ancestor, which would
98
+ // make the menu appear below buttons that appeared later on the page
99
+ *z-index: $zindexDropdown;
100
+
101
+ // Reposition menu on open and round all corners
102
+ .dropdown-menu {
103
+ display: block;
104
+ margin-top: 1px;
105
+ @include border-radius(5px);
106
+ }
107
+
108
+ .dropdown-toggle {
109
+ background-image: none;
110
+ $shadow: inset 0 1px 6px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
111
+ @include box-shadow($shadow);
112
+ }
113
+ }
114
+
115
+ // Reposition the caret
116
+ .btn .caret {
117
+ margin-top: 7px;
118
+ margin-left: 0;
119
+ }
120
+ .btn:hover .caret, .open.btn-group .caret {
121
+ @include opacity(1);
122
+ }
123
+
124
+
125
+ // Account for other colors
126
+ .btn-primary, .btn-danger, .btn-info, .btn-success, .btn-inverse {
127
+ .caret {
128
+ border-top-color: $white;
129
+ @include opacity(0.75);
130
+ }
131
+ }
132
+
133
+ // Small button dropdowns
134
+ .btn-small .caret {
135
+ margin-top: 4px;
136
+ }
@@ -0,0 +1,163 @@
1
+ // BUTTON STYLES
2
+ // -------------
3
+
4
+
5
+ // Base styles
6
+ // --------------------------------------------------
7
+
8
+ // Core
9
+ .btn {
10
+ display: inline-block;
11
+ padding: 4px 10px 4px;
12
+ margin-bottom: 0; // For input.btn
13
+ font-size: $baseFontSize;
14
+ line-height: $baseLineHeight;
15
+ color: $grayDark;
16
+ text-align: center;
17
+ text-shadow: 0 1px 1px rgba(255,255,255,.75);
18
+ vertical-align: middle;
19
+ @include buttonBackground($white, darken($white, 10%));
20
+ border: 1px solid #ccc;
21
+ border-bottom-color: #bbb;
22
+ @include border-radius(4px);
23
+ $shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
24
+ @include box-shadow($shadow);
25
+ cursor: pointer;
26
+
27
+ // Give IE7 some love
28
+ @include reset-filter();
29
+ @include ie7-restore-left-whitespace();
30
+ }
31
+
32
+ // Hover state
33
+ .btn:hover {
34
+ color: $grayDark;
35
+ text-decoration: none;
36
+ background-color: darken($white, 10%);
37
+ background-position: 0 -15px;
38
+
39
+ // transition is only when going to hover, otherwise the background
40
+ // behind the gradient (there for IE<=9 fallback) gets mismatched
41
+ @include transition(background-position .1s linear);
42
+ }
43
+
44
+ // Focus state for keyboard and accessibility
45
+ .btn:focus {
46
+ @include tab-focus();
47
+ }
48
+
49
+ // Active state
50
+ .btn.active, .btn:active {
51
+ background-image: none;
52
+ $shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
53
+ @include box-shadow($shadow);
54
+ background-color: darken($white, 10%);
55
+ background-color: darken($white, 15%) \9;
56
+ outline: 0;
57
+ }
58
+
59
+ // Disabled state
60
+ .btn.disabled, .btn[disabled] {
61
+ cursor: default;
62
+ background-image: none;
63
+ background-color: darken($white, 10%);
64
+ @include opacity(0.65);
65
+ @include box-shadow(none);
66
+ }
67
+
68
+
69
+ // Button Sizes
70
+ // --------------------------------------------------
71
+
72
+ // Large
73
+ .btn-large {
74
+ padding: 9px 14px;
75
+ font-size: $baseFontSize + 2px;
76
+ line-height: normal;
77
+ @include border-radius(5px);
78
+ }
79
+ .btn-large [class^="icon-"] {
80
+ margin-top: 1px;
81
+ }
82
+
83
+ // Small
84
+ .btn-small {
85
+ padding: 5px 9px;
86
+ font-size: $baseFontSize - 2px;
87
+ line-height: $baseLineHeight - 2px;
88
+ }
89
+ .btn-small [class^="icon-"] {
90
+ margin-top: -1px;
91
+ }
92
+
93
+ // Mini
94
+ .btn-mini {
95
+ padding: 2px 6px;
96
+ font-size: $baseFontSize - 2px;
97
+ line-height: $baseLineHeight - 4px;
98
+ }
99
+
100
+
101
+ // Alternate buttons
102
+ // --------------------------------------------------
103
+
104
+ // Set text color
105
+ // -------------------------
106
+ .btn-primary, .btn-primary:hover, .btn-warning, .btn-warning:hover, .btn-danger, .btn-danger:hover, .btn-success, .btn-success:hover, .btn-info, .btn-info:hover, .btn-inverse, .btn-inverse:hover {
107
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
108
+ color: $white;
109
+ }
110
+ // Provide *some* extra contrast for those who can get it
111
+ .btn-primary.active, .btn-warning.active, .btn-danger.active, .btn-success.active, .btn-info.active, .btn-inverse.active {
112
+ color: rgba(255,255,255,.75);
113
+ }
114
+
115
+ // Set the backgrounds
116
+ // -------------------------
117
+ .btn-primary {
118
+ @include buttonBackground($primaryButtonBackground, adjust-hue($primaryButtonBackground, 20));
119
+ }
120
+ // Warning appears are orange
121
+ .btn-warning {
122
+ @include buttonBackground(lighten($orange, 15%), $orange);
123
+ }
124
+ // Danger and error appear as red
125
+ .btn-danger {
126
+ @include buttonBackground(#ee5f5b, #bd362f);
127
+ }
128
+ // Success appears as green
129
+ .btn-success {
130
+ @include buttonBackground(#62c462, #51a351);
131
+ }
132
+ // Info appears as a neutral blue
133
+ .btn-info {
134
+ @include buttonBackground(#5bc0de, #2f96b4);
135
+ }
136
+ .btn-inverse {
137
+ @include buttonBackground(#454545, #262626);
138
+ }
139
+
140
+
141
+ // Cross-browser Jank
142
+ // --------------------------------------------------
143
+
144
+ button.btn, input[type="submit"].btn {
145
+
146
+ // Firefox 3.6 only I believe
147
+ &::-moz-focus-inner {
148
+ padding: 0;
149
+ border: 0;
150
+ }
151
+
152
+ // IE7 has some default padding on button controls
153
+ *padding-top: 2px;
154
+ *padding-bottom: 2px;
155
+ &.large {
156
+ *padding-top: 7px;
157
+ *padding-bottom: 7px;
158
+ }
159
+ &.small {
160
+ *padding-top: 3px;
161
+ *padding-bottom: 3px;
162
+ }
163
+ }
@@ -0,0 +1,116 @@
1
+ // CAROUSEL
2
+ // --------
3
+
4
+ .carousel {
5
+ position: relative;
6
+ margin-bottom: $baseLineHeight;
7
+ line-height: 1;
8
+ }
9
+
10
+ .carousel-inner {
11
+ overflow: hidden;
12
+ width: 100%;
13
+ position: relative;
14
+ }
15
+
16
+ .carousel {
17
+
18
+ .item {
19
+ display: none;
20
+ position: relative;
21
+ @include transition(.6s ease-in-out left);
22
+ }
23
+
24
+ // Account for jankitude on images
25
+ .item > img {
26
+ display: block;
27
+ line-height: 1;
28
+ }
29
+
30
+ .active, .next, .prev { display: block; }
31
+
32
+ .active {
33
+ left: 0;
34
+ }
35
+
36
+ .next, .prev {
37
+ position: absolute;
38
+ top: 0;
39
+ width: 100%;
40
+ }
41
+
42
+ .next {
43
+ left: 100%;
44
+ }
45
+ .prev {
46
+ left: -100%;
47
+ }
48
+ .next.left, .prev.right {
49
+ left: 0;
50
+ }
51
+
52
+ .active.left {
53
+ left: -100%;
54
+ }
55
+ .active.right {
56
+ left: 100%;
57
+ }
58
+
59
+ }
60
+
61
+ // Left/right controls for nav
62
+ // ---------------------------
63
+
64
+ .carousel-control {
65
+ position: absolute;
66
+ top: 40%;
67
+ left: 15px;
68
+ width: 40px;
69
+ height: 40px;
70
+ margin-top: -20px;
71
+ font-size: 60px;
72
+ font-weight: 100;
73
+ line-height: 30px;
74
+ color: $white;
75
+ text-align: center;
76
+ background: $grayDarker;
77
+ border: 3px solid $white;
78
+ @include border-radius(23px);
79
+ @include opacity(0.5);
80
+
81
+ // we can't have this transition here
82
+ // because webkit cancels the carousel
83
+ // animation if you trip this while
84
+ // in the middle of another animation
85
+ // ;_;
86
+ // @include transition(opacity .2s linear);
87
+
88
+ // Reposition the right one
89
+ &.right {
90
+ left: auto;
91
+ right: 15px;
92
+ }
93
+
94
+ // Hover state
95
+ &:hover {
96
+ color: $white;
97
+ text-decoration: none;
98
+ @include opacity(0.9);
99
+ }
100
+ }
101
+
102
+ // Caption for text below images
103
+ // -----------------------------
104
+
105
+ .carousel-caption {
106
+ position: absolute;
107
+ left: 0;
108
+ right: 0;
109
+ bottom: 0;
110
+ padding: 10px 15px 5px;
111
+ background: $grayDark;
112
+ background: rgba(0,0,0,.75);
113
+ }
114
+ .carousel-caption h4, .carousel-caption p {
115
+ color: $white;
116
+ }
@@ -0,0 +1,18 @@
1
+ // CLOSE ICONS
2
+ // -----------
3
+
4
+ .close {
5
+ float: right;
6
+ font-size: 20px;
7
+ font-weight: bold;
8
+ line-height: $baseLineHeight;
9
+ color: $black;
10
+ text-shadow: 0 1px 0 rgba(255,255,255,1);
11
+ @include opacity(0.2);
12
+ &:hover {
13
+ color: $black;
14
+ text-decoration: none;
15
+ @include opacity(0.4);
16
+ cursor: pointer;
17
+ }
18
+ }
@@ -0,0 +1,56 @@
1
+ // Code.css.scss
2
+ // Code typography styles for the <code> and <pre> elements
3
+ // --------------------------------------------------------
4
+
5
+ // Inline and block code styles
6
+ code, pre {
7
+ padding: 0 3px 2px;
8
+ @include font-family-monospace();
9
+ font-size: $baseFontSize - 1;
10
+ color: $grayDark;
11
+ @include border-radius(3px);
12
+ }
13
+
14
+ // Inline code
15
+ code {
16
+ padding: 3px 4px;
17
+ color: #d14;
18
+ background-color: #f7f7f9;
19
+ border: 1px solid #e1e1e8;
20
+ }
21
+
22
+ // Blocks of code
23
+ pre {
24
+ display: block;
25
+ padding: ($baseLineHeight - 1) / 2;
26
+ margin: 0 0 $baseLineHeight / 2;
27
+ font-size: 12px;
28
+ line-height: $baseLineHeight;
29
+ background-color: #f5f5f5;
30
+ border: 1px solid #ccc; // fallback for IE7-8
31
+ border: 1px solid rgba(0,0,0,.15);
32
+ @include border-radius(4px);
33
+ white-space: pre;
34
+ white-space: pre-wrap;
35
+ word-break: break-all;
36
+ word-wrap: break-word;
37
+
38
+ // Make prettyprint styles more spaced out for readability
39
+ &.prettyprint {
40
+ margin-bottom: $baseLineHeight;
41
+ }
42
+
43
+ // Account for some code outputs that place code tags in pre tags
44
+ code {
45
+ padding: 0;
46
+ color: inherit;
47
+ background-color: transparent;
48
+ border: 0;
49
+ }
50
+ }
51
+
52
+ // Enable scrollable blocks of code
53
+ .pre-scrollable {
54
+ max-height: 340px;
55
+ overflow-y: scroll;
56
+ }
@@ -0,0 +1,18 @@
1
+ // COMPONENT ANIMATIONS
2
+ // --------------------
3
+
4
+ .fade {
5
+ @include transition(opacity .15s linear);
6
+ opacity: 0;
7
+ &.in {
8
+ opacity: 1;
9
+ }
10
+ }
11
+
12
+ .collapse {
13
+ @include transition(height .35s ease);
14
+ position:relative;
15
+ overflow:hidden;
16
+ height: 0;
17
+ &.in { height: auto; }
18
+ }
@@ -0,0 +1,126 @@
1
+ // DROPDOWN MENUS
2
+ // --------------
3
+
4
+ // Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
5
+ .dropdown {
6
+ position: relative;
7
+ }
8
+ .dropdown-toggle {
9
+ // The caret makes the toggle a bit too tall in IE7
10
+ *margin-bottom: -3px;
11
+ }
12
+ .dropdown-toggle:active, .open .dropdown-toggle {
13
+ outline: 0;
14
+ }
15
+ // Dropdown arrow/caret
16
+ .caret {
17
+ display: inline-block;
18
+ width: 0;
19
+ height: 0;
20
+ text-indent: -99999px;
21
+ // IE7 won't do the border trick if there's a text indent, but it doesn't
22
+ // do the content that text-indent is hiding, either, so we're ok.
23
+ *text-indent: 0;
24
+ vertical-align: top;
25
+ border-left: 4px solid transparent;
26
+ border-right: 4px solid transparent;
27
+ border-top: 4px solid $black;
28
+ @include opacity(0.3);
29
+ content: "\2193";
30
+ }
31
+ .dropdown .caret {
32
+ margin-top: 8px;
33
+ margin-left: 2px;
34
+ }
35
+ .dropdown:hover .caret, .open.dropdown .caret {
36
+ @include opacity(1);
37
+ }
38
+ // The dropdown menu (ul)
39
+ .dropdown-menu {
40
+ position: absolute;
41
+ top: 100%;
42
+ left: 0;
43
+ z-index: $zindexDropdown;
44
+ float: left;
45
+ display: none; // none by default, but block on "open" of the menu
46
+ min-width: 160px;
47
+ _width: 160px;
48
+ padding: 4px 0;
49
+ margin: 0; // override default ul
50
+ list-style: none;
51
+ background-color: $white;
52
+ border-color: #ccc;
53
+ border-color: rgba(0,0,0,.2);
54
+ border-style: solid;
55
+ border-width: 1px;
56
+ @include border-radius(0 0 5px 5px);
57
+ @include box-shadow(0 5px 10px rgba(0,0,0,.2));
58
+ -webkit-background-clip: padding-box;
59
+ -moz-background-clip: padding;
60
+ background-clip: padding-box;
61
+ *border-right-width: 2px;
62
+ *border-bottom-width: 2px;
63
+
64
+ // Allow for dropdowns to go bottom up (aka, dropup-menu)
65
+ &.bottom-up {
66
+ top: auto;
67
+ bottom: 100%;
68
+ margin-bottom: 2px;
69
+ }
70
+
71
+ // Dividers (basically an hr) within the dropdown
72
+ .divider {
73
+ height: 1px;
74
+ margin: 5px 1px;
75
+ overflow: hidden;
76
+ background-color: #e5e5e5;
77
+ border-bottom: 1px solid $white;
78
+
79
+ // IE7 needs a set width since we gave a height. Restricting just
80
+ // to IE7 to keep the 1px left/right space in other browsers.
81
+ // It is unclear where IE is getting the extra space that we need
82
+ // to negative-margin away, but so it goes.
83
+ *width: 100%;
84
+ *margin: -5px 0 5px;
85
+ }
86
+
87
+ // Links within the dropdown menu
88
+ a {
89
+ display: block;
90
+ padding: 3px 15px;
91
+ clear: both;
92
+ font-weight: normal;
93
+ line-height: $baseLineHeight;
94
+ color: $gray;
95
+ white-space: nowrap;
96
+ }
97
+ }
98
+
99
+ // Hover state
100
+ .dropdown-menu li > a:hover, .dropdown-menu .active > a, .dropdown-menu .active > a:hover {
101
+ color: $white;
102
+ text-decoration: none;
103
+ background-color: $linkColor;
104
+ }
105
+
106
+ // Open state for the dropdown
107
+ .dropdown.open {
108
+ // IE7's z-index only goes to the nearest positioned ancestor, which would
109
+ // make the menu appear below buttons that appeared later on the page
110
+ *z-index: $zindexDropdown;
111
+
112
+ .dropdown-toggle {
113
+ color: $white;
114
+ background: #ccc;
115
+ background: rgba(0,0,0,.3);
116
+ }
117
+ .dropdown-menu {
118
+ display: block;
119
+ }
120
+ }
121
+
122
+ // Typeahead
123
+ .typeahead {
124
+ margin-top: 2px; // give it some space to breathe
125
+ @include border-radius(4px);
126
+ }