mumuki-styles 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +117 -0
  3. data/Rakefile +2 -0
  4. data/app/assets/fonts/FontAwesome.otf +0 -0
  5. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
  6. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +288 -0
  7. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  8. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
  9. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
  10. data/app/assets/fonts/dev-awesome/svg/colored/bash.svg +58 -0
  11. data/app/assets/fonts/dev-awesome/svg/colored/c.svg +82 -0
  12. data/app/assets/fonts/dev-awesome/svg/colored/code.svg +57 -0
  13. data/app/assets/fonts/dev-awesome/svg/colored/cpp.svg +67 -0
  14. data/app/assets/fonts/dev-awesome/svg/colored/css.svg +112 -0
  15. data/app/assets/fonts/dev-awesome/svg/colored/elixir.svg +86 -0
  16. data/app/assets/fonts/dev-awesome/svg/colored/gobstones.svg +3287 -0
  17. data/app/assets/fonts/dev-awesome/svg/colored/haskell.svg +76 -0
  18. data/app/assets/fonts/dev-awesome/svg/colored/html.svg +112 -0
  19. data/app/assets/fonts/dev-awesome/svg/colored/java.svg +85 -0
  20. data/app/assets/fonts/dev-awesome/svg/colored/javascript.svg +65 -0
  21. data/app/assets/fonts/dev-awesome/svg/colored/mongodb.svg +255 -0
  22. data/app/assets/fonts/dev-awesome/svg/colored/mumuki-circle.svg +132 -0
  23. data/app/assets/fonts/dev-awesome/svg/colored/mumuki.svg +78 -0
  24. data/app/assets/fonts/dev-awesome/svg/colored/prolog.svg +296 -0
  25. data/app/assets/fonts/dev-awesome/svg/colored/python.svg +61 -0
  26. data/app/assets/fonts/dev-awesome/svg/colored/qsim.svg +110 -0
  27. data/app/assets/fonts/dev-awesome/svg/colored/ruby.svg +105 -0
  28. data/app/assets/fonts/dev-awesome/svg/colored/sql.svg +124 -0
  29. data/app/assets/fonts/dev-awesome/svg/colored/text.svg +57 -0
  30. data/app/assets/fonts/dev-awesome/svg/colored/wollok.svg +83 -0
  31. data/app/assets/fonts/dev-awesome-hinted.ttf +0 -0
  32. data/app/assets/fonts/dev-awesome.eot +0 -0
  33. data/app/assets/fonts/dev-awesome.svg +139 -0
  34. data/app/assets/fonts/dev-awesome.ttf +0 -0
  35. data/app/assets/fonts/dev-awesome.woff +0 -0
  36. data/app/assets/fonts/dev-awesome.woff2 +0 -0
  37. data/app/assets/fonts/fontawesome-webfont.eot +0 -0
  38. data/app/assets/fonts/fontawesome-webfont.svg +2671 -0
  39. data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
  40. data/app/assets/fonts/fontawesome-webfont.woff +0 -0
  41. data/app/assets/fonts/fontawesome-webfont.woff2 +0 -0
  42. data/app/assets/javascripts/mumuki-styles.js +12767 -0
  43. data/app/assets/stylesheets/_broken.scss +8 -0
  44. data/app/assets/stylesheets/_browser.scss +45 -0
  45. data/app/assets/stylesheets/_colors.scss +54 -0
  46. data/app/assets/stylesheets/_fonts.scss +9 -0
  47. data/app/assets/stylesheets/_footer.scss +18 -0
  48. data/app/assets/stylesheets/_hovers.scss +15 -0
  49. data/app/assets/stylesheets/_mixines.scss +6 -0
  50. data/app/assets/stylesheets/_modules.scss +8 -0
  51. data/app/assets/stylesheets/_mu-file-browser.scss +97 -0
  52. data/app/assets/stylesheets/_navbar.scss +99 -0
  53. data/app/assets/stylesheets/_styles.scss +14 -0
  54. data/app/assets/stylesheets/_vendor.scss +7 -0
  55. data/app/assets/stylesheets/bootswatch/_bootswatch.scss +330 -0
  56. data/app/assets/stylesheets/bootswatch/_variables.scss +870 -0
  57. data/app/assets/stylesheets/modules/_breadcrumb.scss +16 -0
  58. data/app/assets/stylesheets/modules/_callout.scss +40 -0
  59. data/app/assets/stylesheets/modules/_checkbox.scss +65 -0
  60. data/app/assets/stylesheets/modules/_conversation.scss +213 -0
  61. data/app/assets/stylesheets/modules/_follow_us.scss +16 -0
  62. data/app/assets/stylesheets/modules/_highlight.scss +99 -0
  63. data/app/assets/stylesheets/modules/_new_message.scss +42 -0
  64. data/app/assets/stylesheets/modules/_notification.scss +15 -0
  65. data/app/assets/stylesheets/mumuki-styles.css +9526 -0
  66. data/app/assets/stylesheets/mumuki-styles.scss +11 -0
  67. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.scss +245 -0
  68. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/demo/bootstrap.scss +3 -0
  69. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/demo/build.scss +6 -0
  70. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/_bootstrap-compass.scss +9 -0
  71. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/_bootstrap-mincer.scss +19 -0
  72. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/_bootstrap-sprockets.scss +9 -0
  73. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/_bootstrap.scss +56 -0
  74. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_alerts.scss +73 -0
  75. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss +68 -0
  76. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_breadcrumbs.scss +28 -0
  77. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_button-groups.scss +244 -0
  78. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_buttons.scss +168 -0
  79. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_carousel.scss +270 -0
  80. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_close.scss +36 -0
  81. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_code.scss +69 -0
  82. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_component-animations.scss +37 -0
  83. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_dropdowns.scss +216 -0
  84. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_forms.scss +617 -0
  85. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_glyphicons.scss +307 -0
  86. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_grid.scss +84 -0
  87. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_input-groups.scss +171 -0
  88. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_jumbotron.scss +54 -0
  89. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_labels.scss +66 -0
  90. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_list-group.scss +130 -0
  91. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_media.scss +66 -0
  92. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_mixins.scss +40 -0
  93. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_modals.scss +150 -0
  94. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_navbar.scss +662 -0
  95. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_navs.scss +242 -0
  96. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_normalize.scss +424 -0
  97. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_pager.scss +54 -0
  98. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_pagination.scss +89 -0
  99. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_panels.scss +271 -0
  100. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_popovers.scss +131 -0
  101. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_print.scss +101 -0
  102. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_progress-bars.scss +87 -0
  103. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_responsive-embed.scss +35 -0
  104. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_responsive-utilities.scss +179 -0
  105. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_scaffolding.scss +161 -0
  106. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_tables.scss +234 -0
  107. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_theme.scss +291 -0
  108. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_thumbnails.scss +38 -0
  109. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_tooltip.scss +101 -0
  110. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_type.scss +298 -0
  111. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_utilities.scss +55 -0
  112. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss +874 -0
  113. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_wells.scss +29 -0
  114. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_alerts.scss +14 -0
  115. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_background-variant.scss +12 -0
  116. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
  117. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_buttons.scss +65 -0
  118. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
  119. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
  120. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_forms.scss +88 -0
  121. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_gradients.scss +58 -0
  122. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
  123. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_grid.scss +122 -0
  124. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
  125. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_image.scss +33 -0
  126. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_labels.scss +12 -0
  127. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_list-group.scss +32 -0
  128. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
  129. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
  130. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_opacity.scss +8 -0
  131. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_pagination.scss +24 -0
  132. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_panels.scss +24 -0
  133. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
  134. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
  135. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_reset-text.scss +18 -0
  136. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
  137. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +21 -0
  138. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_size.scss +10 -0
  139. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
  140. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
  141. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +12 -0
  142. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
  143. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +222 -0
  144. data/app/assets/stylesheets/vendor/dev-awesome/dist/scss/_dev-awesome.scss +240 -0
  145. data/app/assets/stylesheets/vendor/font-awesome/scss/_animated.scss +34 -0
  146. data/app/assets/stylesheets/vendor/font-awesome/scss/_bordered-pulled.scss +25 -0
  147. data/app/assets/stylesheets/vendor/font-awesome/scss/_core.scss +12 -0
  148. data/app/assets/stylesheets/vendor/font-awesome/scss/_fixed-width.scss +6 -0
  149. data/app/assets/stylesheets/vendor/font-awesome/scss/_icons.scss +789 -0
  150. data/app/assets/stylesheets/vendor/font-awesome/scss/_larger.scss +13 -0
  151. data/app/assets/stylesheets/vendor/font-awesome/scss/_list.scss +19 -0
  152. data/app/assets/stylesheets/vendor/font-awesome/scss/_mixins.scss +60 -0
  153. data/app/assets/stylesheets/vendor/font-awesome/scss/_path.scss +15 -0
  154. data/app/assets/stylesheets/vendor/font-awesome/scss/_rotated-flipped.scss +20 -0
  155. data/app/assets/stylesheets/vendor/font-awesome/scss/_screen-reader.scss +5 -0
  156. data/app/assets/stylesheets/vendor/font-awesome/scss/_stacked.scss +20 -0
  157. data/app/assets/stylesheets/vendor/font-awesome/scss/_variables.scss +800 -0
  158. data/app/assets/stylesheets/vendor/font-awesome/scss/font-awesome.scss +18 -0
  159. data/lib/mumuki/styles/version.rb +5 -0
  160. data/lib/mumuki/styles.rb +8 -0
  161. metadata +231 -0
@@ -0,0 +1,69 @@
1
+ //
2
+ // Code (inline and block)
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Inline and block code styles
7
+ code,
8
+ kbd,
9
+ pre,
10
+ samp {
11
+ font-family: $font-family-monospace;
12
+ }
13
+
14
+ // Inline code
15
+ code {
16
+ padding: 2px 4px;
17
+ font-size: 90%;
18
+ color: $code-color;
19
+ background-color: $code-bg;
20
+ border-radius: $border-radius-base;
21
+ }
22
+
23
+ // User input typically entered via keyboard
24
+ kbd {
25
+ padding: 2px 4px;
26
+ font-size: 90%;
27
+ color: $kbd-color;
28
+ background-color: $kbd-bg;
29
+ border-radius: $border-radius-small;
30
+ box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
31
+
32
+ kbd {
33
+ padding: 0;
34
+ font-size: 100%;
35
+ font-weight: bold;
36
+ box-shadow: none;
37
+ }
38
+ }
39
+
40
+ // Blocks of code
41
+ pre {
42
+ display: block;
43
+ padding: (($line-height-computed - 1) / 2);
44
+ margin: 0 0 ($line-height-computed / 2);
45
+ font-size: ($font-size-base - 1); // 14px to 13px
46
+ line-height: $line-height-base;
47
+ word-break: break-all;
48
+ word-wrap: break-word;
49
+ color: $pre-color;
50
+ background-color: $pre-bg;
51
+ border: 1px solid $pre-border-color;
52
+ border-radius: $border-radius-base;
53
+
54
+ // Account for some code outputs that place code tags in pre tags
55
+ code {
56
+ padding: 0;
57
+ font-size: inherit;
58
+ color: inherit;
59
+ white-space: pre-wrap;
60
+ background-color: transparent;
61
+ border-radius: 0;
62
+ }
63
+ }
64
+
65
+ // Enable scrollable blocks of code
66
+ .pre-scrollable {
67
+ max-height: $pre-scrollable-max-height;
68
+ overflow-y: scroll;
69
+ }
@@ -0,0 +1,37 @@
1
+ //
2
+ // Component animations
3
+ // --------------------------------------------------
4
+
5
+ // Heads up!
6
+ //
7
+ // We don't use the `.opacity()` mixin here since it causes a bug with text
8
+ // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.
9
+
10
+ .fade {
11
+ opacity: 0;
12
+ @include transition(opacity .15s linear);
13
+ &.in {
14
+ opacity: 1;
15
+ }
16
+ }
17
+
18
+ .collapse {
19
+ display: none;
20
+
21
+ &.in { display: block; }
22
+ // [converter] extracted tr&.in to tr.collapse.in
23
+ // [converter] extracted tbody&.in to tbody.collapse.in
24
+ }
25
+
26
+ tr.collapse.in { display: table-row; }
27
+
28
+ tbody.collapse.in { display: table-row-group; }
29
+
30
+ .collapsing {
31
+ position: relative;
32
+ height: 0;
33
+ overflow: hidden;
34
+ @include transition-property(height, visibility);
35
+ @include transition-duration(.35s);
36
+ @include transition-timing-function(ease);
37
+ }
@@ -0,0 +1,216 @@
1
+ //
2
+ // Dropdown menus
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Dropdown arrow/caret
7
+ .caret {
8
+ display: inline-block;
9
+ width: 0;
10
+ height: 0;
11
+ margin-left: 2px;
12
+ vertical-align: middle;
13
+ border-top: $caret-width-base dashed;
14
+ border-top: $caret-width-base solid \9; // IE8
15
+ border-right: $caret-width-base solid transparent;
16
+ border-left: $caret-width-base solid transparent;
17
+ }
18
+
19
+ // The dropdown wrapper (div)
20
+ .dropup,
21
+ .dropdown {
22
+ position: relative;
23
+ }
24
+
25
+ // Prevent the focus on the dropdown toggle when closing dropdowns
26
+ .dropdown-toggle:focus {
27
+ outline: 0;
28
+ }
29
+
30
+ // The dropdown menu (ul)
31
+ .dropdown-menu {
32
+ position: absolute;
33
+ top: 100%;
34
+ left: 0;
35
+ z-index: $zindex-dropdown;
36
+ display: none; // none by default, but block on "open" of the menu
37
+ float: left;
38
+ min-width: 160px;
39
+ padding: 5px 0;
40
+ margin: 2px 0 0; // override default ul
41
+ list-style: none;
42
+ font-size: $font-size-base;
43
+ text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
44
+ background-color: $dropdown-bg;
45
+ border: 1px solid $dropdown-fallback-border; // IE8 fallback
46
+ border: 1px solid $dropdown-border;
47
+ border-radius: $border-radius-base;
48
+ @include box-shadow(0 6px 12px rgba(0,0,0,.175));
49
+ background-clip: padding-box;
50
+
51
+ // Aligns the dropdown menu to right
52
+ //
53
+ // Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`
54
+ &.pull-right {
55
+ right: 0;
56
+ left: auto;
57
+ }
58
+
59
+ // Dividers (basically an hr) within the dropdown
60
+ .divider {
61
+ @include nav-divider($dropdown-divider-bg);
62
+ }
63
+
64
+ // Links within the dropdown menu
65
+ > li > a {
66
+ display: block;
67
+ padding: 3px 20px;
68
+ clear: both;
69
+ font-weight: normal;
70
+ line-height: $line-height-base;
71
+ color: $dropdown-link-color;
72
+ white-space: nowrap; // prevent links from randomly breaking onto new lines
73
+ }
74
+ }
75
+
76
+ // Hover/Focus state
77
+ .dropdown-menu > li > a {
78
+ &:hover,
79
+ &:focus {
80
+ text-decoration: none;
81
+ color: $dropdown-link-hover-color;
82
+ background-color: $dropdown-link-hover-bg;
83
+ }
84
+ }
85
+
86
+ // Active state
87
+ .dropdown-menu > .active > a {
88
+ &,
89
+ &:hover,
90
+ &:focus {
91
+ color: $dropdown-link-active-color;
92
+ text-decoration: none;
93
+ outline: 0;
94
+ background-color: $dropdown-link-active-bg;
95
+ }
96
+ }
97
+
98
+ // Disabled state
99
+ //
100
+ // Gray out text and ensure the hover/focus state remains gray
101
+
102
+ .dropdown-menu > .disabled > a {
103
+ &,
104
+ &:hover,
105
+ &:focus {
106
+ color: $dropdown-link-disabled-color;
107
+ }
108
+
109
+ // Nuke hover/focus effects
110
+ &:hover,
111
+ &:focus {
112
+ text-decoration: none;
113
+ background-color: transparent;
114
+ background-image: none; // Remove CSS gradient
115
+ @include reset-filter;
116
+ cursor: $cursor-disabled;
117
+ }
118
+ }
119
+
120
+ // Open state for the dropdown
121
+ .open {
122
+ // Show the menu
123
+ > .dropdown-menu {
124
+ display: block;
125
+ }
126
+
127
+ // Remove the outline when :focus is triggered
128
+ > a {
129
+ outline: 0;
130
+ }
131
+ }
132
+
133
+ // Menu positioning
134
+ //
135
+ // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
136
+ // menu with the parent.
137
+ .dropdown-menu-right {
138
+ left: auto; // Reset the default from `.dropdown-menu`
139
+ right: 0;
140
+ }
141
+ // With v3, we enabled auto-flipping if you have a dropdown within a right
142
+ // aligned nav component. To enable the undoing of that, we provide an override
143
+ // to restore the default dropdown menu alignment.
144
+ //
145
+ // This is only for left-aligning a dropdown menu within a `.navbar-right` or
146
+ // `.pull-right` nav component.
147
+ .dropdown-menu-left {
148
+ left: 0;
149
+ right: auto;
150
+ }
151
+
152
+ // Dropdown section headers
153
+ .dropdown-header {
154
+ display: block;
155
+ padding: 3px 20px;
156
+ font-size: $font-size-small;
157
+ line-height: $line-height-base;
158
+ color: $dropdown-header-color;
159
+ white-space: nowrap; // as with > li > a
160
+ }
161
+
162
+ // Backdrop to catch body clicks on mobile, etc.
163
+ .dropdown-backdrop {
164
+ position: fixed;
165
+ left: 0;
166
+ right: 0;
167
+ bottom: 0;
168
+ top: 0;
169
+ z-index: ($zindex-dropdown - 10);
170
+ }
171
+
172
+ // Right aligned dropdowns
173
+ .pull-right > .dropdown-menu {
174
+ right: 0;
175
+ left: auto;
176
+ }
177
+
178
+ // Allow for dropdowns to go bottom up (aka, dropup-menu)
179
+ //
180
+ // Just add .dropup after the standard .dropdown class and you're set, bro.
181
+ // TODO: abstract this so that the navbar fixed styles are not placed here?
182
+
183
+ .dropup,
184
+ .navbar-fixed-bottom .dropdown {
185
+ // Reverse the caret
186
+ .caret {
187
+ border-top: 0;
188
+ border-bottom: $caret-width-base dashed;
189
+ border-bottom: $caret-width-base solid \9; // IE8
190
+ content: "";
191
+ }
192
+ // Different positioning for bottom up menu
193
+ .dropdown-menu {
194
+ top: auto;
195
+ bottom: 100%;
196
+ margin-bottom: 2px;
197
+ }
198
+ }
199
+
200
+
201
+ // Component alignment
202
+ //
203
+ // Reiterate per navbar.less and the modified component alignment there.
204
+
205
+ @media (min-width: $grid-float-breakpoint) {
206
+ .navbar-right {
207
+ .dropdown-menu {
208
+ right: 0; left: auto;
209
+ }
210
+ // Necessary for overrides of the default right aligned menu.
211
+ // Will remove come v4 in all likelihood.
212
+ .dropdown-menu-left {
213
+ left: 0; right: auto;
214
+ }
215
+ }
216
+ }