flipper-ui 0.12.2 → 0.13.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/docs/ui/README.md +21 -3
  3. data/docs/ui/images/configured-ui.png +0 -0
  4. data/docs/ui/images/environment-banner.png +0 -0
  5. data/docs/ui/images/feature.png +0 -0
  6. data/docs/ui/images/features.png +0 -0
  7. data/lib/flipper/ui/assets/javascripts/application.coffee +3 -0
  8. data/lib/flipper/ui/assets/stylesheets/.DS_Store +0 -0
  9. data/lib/flipper/ui/assets/stylesheets/application.scss +9 -48
  10. data/lib/flipper/ui/assets/stylesheets/bootstrap/_alert.scss +51 -0
  11. data/lib/flipper/ui/assets/stylesheets/bootstrap/_badge.scss +47 -0
  12. data/lib/flipper/ui/assets/stylesheets/bootstrap/_breadcrumb.scss +38 -0
  13. data/lib/flipper/ui/assets/stylesheets/bootstrap/_button-group.scss +166 -0
  14. data/lib/flipper/ui/assets/stylesheets/bootstrap/_buttons.scss +78 -95
  15. data/lib/flipper/ui/assets/stylesheets/bootstrap/_card.scss +270 -0
  16. data/lib/flipper/ui/assets/stylesheets/bootstrap/_carousel.scss +122 -200
  17. data/lib/flipper/ui/assets/stylesheets/bootstrap/_close.scss +12 -14
  18. data/lib/flipper/ui/assets/stylesheets/bootstrap/_code.scss +15 -28
  19. data/lib/flipper/ui/assets/stylesheets/bootstrap/_custom-forms.scss +297 -0
  20. data/lib/flipper/ui/assets/stylesheets/bootstrap/_dropdown.scss +131 -0
  21. data/lib/flipper/ui/assets/stylesheets/bootstrap/_forms.scss +210 -455
  22. data/lib/flipper/ui/assets/stylesheets/bootstrap/_functions.scss +86 -0
  23. data/lib/flipper/ui/assets/stylesheets/bootstrap/_grid.scss +29 -61
  24. data/lib/flipper/ui/assets/stylesheets/bootstrap/_images.scss +42 -0
  25. data/lib/flipper/ui/assets/stylesheets/bootstrap/_input-group.scss +159 -0
  26. data/lib/flipper/ui/assets/stylesheets/bootstrap/_jumbotron.scss +8 -42
  27. data/lib/flipper/ui/assets/stylesheets/bootstrap/_list-group.scss +64 -73
  28. data/lib/flipper/ui/assets/stylesheets/bootstrap/_media.scss +3 -56
  29. data/lib/flipper/ui/assets/stylesheets/bootstrap/_mixins.scss +21 -18
  30. data/lib/flipper/ui/assets/stylesheets/bootstrap/_modal.scss +168 -0
  31. data/lib/flipper/ui/assets/stylesheets/bootstrap/_nav.scss +118 -0
  32. data/lib/flipper/ui/assets/stylesheets/bootstrap/_navbar.scss +203 -554
  33. data/lib/flipper/ui/assets/stylesheets/bootstrap/_pagination.scss +58 -69
  34. data/lib/flipper/ui/assets/stylesheets/bootstrap/_popover.scss +183 -0
  35. data/lib/flipper/ui/assets/stylesheets/bootstrap/_print.scss +71 -54
  36. data/lib/flipper/ui/assets/stylesheets/bootstrap/_progress.scss +33 -0
  37. data/lib/flipper/ui/assets/stylesheets/bootstrap/_reboot.scss +482 -0
  38. data/lib/flipper/ui/assets/stylesheets/bootstrap/_root.scss +19 -0
  39. data/lib/flipper/ui/assets/stylesheets/bootstrap/_tables.scss +109 -163
  40. data/lib/flipper/ui/assets/stylesheets/bootstrap/_tooltip.scss +97 -84
  41. data/lib/flipper/ui/assets/stylesheets/bootstrap/_transitions.scss +36 -0
  42. data/lib/flipper/ui/assets/stylesheets/bootstrap/_type.scss +66 -239
  43. data/lib/flipper/ui/assets/stylesheets/bootstrap/_utilities.scss +14 -55
  44. data/lib/flipper/ui/assets/stylesheets/bootstrap/_variables.scss +726 -698
  45. data/lib/flipper/ui/assets/stylesheets/bootstrap/bootstrap-grid.scss +32 -0
  46. data/lib/flipper/ui/assets/stylesheets/bootstrap/bootstrap-reboot.scss +12 -0
  47. data/lib/flipper/ui/assets/stylesheets/bootstrap/bootstrap.scss +42 -0
  48. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_alert.scss +13 -0
  49. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_background-variant.scss +14 -4
  50. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_badge.scss +12 -0
  51. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_border-radius.scss +25 -8
  52. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +5 -0
  53. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +123 -0
  54. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_buttons.scss +89 -32
  55. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_caret.scss +65 -0
  56. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_clearfix.scss +3 -18
  57. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_float.scss +11 -0
  58. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_forms.scss +115 -66
  59. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_gradients.scss +14 -27
  60. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +52 -66
  61. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_grid.scss +37 -107
  62. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_hover.scss +39 -0
  63. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_image.scss +18 -15
  64. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_list-group.scss +10 -20
  65. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_lists.scss +7 -0
  66. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +3 -3
  67. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_navbar-align.scss +10 -0
  68. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_pagination.scss +10 -11
  69. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_reset-text.scss +17 -0
  70. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_resize.scss +1 -1
  71. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +35 -0
  72. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_size.scss +1 -5
  73. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_table-row.scss +16 -14
  74. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +7 -4
  75. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_text-hide.scss +9 -0
  76. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/{_text-overflow.scss → _text-truncate.scss} +2 -2
  77. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_transition.scss +9 -0
  78. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_visibility.scss +7 -0
  79. data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_align.scss +8 -0
  80. data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_background.scss +19 -0
  81. data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_borders.scss +59 -0
  82. data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_clearfix.scss +3 -0
  83. data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_display.scss +38 -0
  84. data/lib/flipper/ui/assets/stylesheets/bootstrap/{_responsive-embed.scss → utilities/_embed.scss} +26 -9
  85. data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_flex.scss +46 -0
  86. data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_float.scss +9 -0
  87. data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_position.scss +36 -0
  88. data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +11 -0
  89. data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_sizing.scss +12 -0
  90. data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_spacing.scss +51 -0
  91. data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_text.scss +52 -0
  92. data/lib/flipper/ui/assets/stylesheets/bootstrap/utilities/_visibility.scss +11 -0
  93. data/lib/flipper/ui/configuration.rb +24 -0
  94. data/lib/flipper/ui/decorators/feature.rb +3 -3
  95. data/lib/flipper/ui/public/css/application.css +6237 -2339
  96. data/lib/flipper/ui/public/js/application.js +3 -2
  97. data/lib/flipper/ui/views/add_actor.erb +7 -9
  98. data/lib/flipper/ui/views/add_feature.erb +8 -10
  99. data/lib/flipper/ui/views/add_group.erb +7 -9
  100. data/lib/flipper/ui/views/feature.erb +181 -141
  101. data/lib/flipper/ui/views/feature_creation_disabled.erb +1 -1
  102. data/lib/flipper/ui/views/feature_removal_disabled.erb +1 -1
  103. data/lib/flipper/ui/views/features.erb +12 -15
  104. data/lib/flipper/ui/views/layout.erb +25 -15
  105. data/lib/flipper/version.rb +1 -1
  106. data/spec/flipper/ui/actions/actors_gate_spec.rb +2 -1
  107. data/spec/flipper/ui/actions/add_feature_spec.rb +2 -1
  108. data/spec/flipper/ui/actions/groups_gate_spec.rb +2 -1
  109. data/spec/flipper/ui/configuration_spec.rb +27 -0
  110. data/spec/flipper/ui_spec.rb +24 -0
  111. metadata +58 -64
  112. data/lib/flipper/ui/assets/stylesheets/_bootstrap-compass.scss +0 -9
  113. data/lib/flipper/ui/assets/stylesheets/_bootstrap-mincer.scss +0 -19
  114. data/lib/flipper/ui/assets/stylesheets/_bootstrap-sprockets.scss +0 -9
  115. data/lib/flipper/ui/assets/stylesheets/_bootstrap.scss +0 -50
  116. data/lib/flipper/ui/assets/stylesheets/bootstrap/_alerts.scss +0 -73
  117. data/lib/flipper/ui/assets/stylesheets/bootstrap/_badges.scss +0 -68
  118. data/lib/flipper/ui/assets/stylesheets/bootstrap/_breadcrumbs.scss +0 -26
  119. data/lib/flipper/ui/assets/stylesheets/bootstrap/_button-groups.scss +0 -243
  120. data/lib/flipper/ui/assets/stylesheets/bootstrap/_component-animations.scss +0 -37
  121. data/lib/flipper/ui/assets/stylesheets/bootstrap/_dropdowns.scss +0 -214
  122. data/lib/flipper/ui/assets/stylesheets/bootstrap/_glyphicons.scss +0 -305
  123. data/lib/flipper/ui/assets/stylesheets/bootstrap/_input-groups.scss +0 -166
  124. data/lib/flipper/ui/assets/stylesheets/bootstrap/_labels.scss +0 -66
  125. data/lib/flipper/ui/assets/stylesheets/bootstrap/_modals.scss +0 -150
  126. data/lib/flipper/ui/assets/stylesheets/bootstrap/_navs.scss +0 -242
  127. data/lib/flipper/ui/assets/stylesheets/bootstrap/_normalize.scss +0 -427
  128. data/lib/flipper/ui/assets/stylesheets/bootstrap/_pager.scss +0 -54
  129. data/lib/flipper/ui/assets/stylesheets/bootstrap/_panels.scss +0 -265
  130. data/lib/flipper/ui/assets/stylesheets/bootstrap/_popovers.scss +0 -135
  131. data/lib/flipper/ui/assets/stylesheets/bootstrap/_progress-bars.scss +0 -87
  132. data/lib/flipper/ui/assets/stylesheets/bootstrap/_responsive-utilities.scss +0 -177
  133. data/lib/flipper/ui/assets/stylesheets/bootstrap/_scaffolding.scss +0 -162
  134. data/lib/flipper/ui/assets/stylesheets/bootstrap/_theme.scss +0 -273
  135. data/lib/flipper/ui/assets/stylesheets/bootstrap/_thumbnails.scss +0 -38
  136. data/lib/flipper/ui/assets/stylesheets/bootstrap/_wells.scss +0 -29
  137. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_alerts.scss +0 -14
  138. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_center-block.scss +0 -7
  139. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_hide-text.scss +0 -21
  140. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_labels.scss +0 -12
  141. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +0 -9
  142. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_opacity.scss +0 -8
  143. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_panels.scss +0 -24
  144. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +0 -10
  145. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +0 -8
  146. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +0 -21
  147. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +0 -9
  148. data/lib/flipper/ui/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +0 -222
  149. data/lib/flipper/ui/public/css/primer.css +0 -1
  150. data/lib/flipper/ui/public/css/primer/primer.css +0 -1933
  151. data/lib/flipper/ui/public/css/scss/primer.css +0 -1933
  152. data/lib/flipper/ui/public/js/bootstrap-sprockets.js +0 -12
  153. data/lib/flipper/ui/public/js/bootstrap.js +0 -2317
  154. data/lib/flipper/ui/public/js/bootstrap.min.js +0 -7
  155. data/lib/flipper/ui/public/js/bootstrap/affix.js +0 -162
  156. data/lib/flipper/ui/public/js/bootstrap/alert.js +0 -94
  157. data/lib/flipper/ui/public/js/bootstrap/button.js +0 -116
  158. data/lib/flipper/ui/public/js/bootstrap/carousel.js +0 -237
  159. data/lib/flipper/ui/public/js/bootstrap/collapse.js +0 -211
  160. data/lib/flipper/ui/public/js/bootstrap/dropdown.js +0 -161
  161. data/lib/flipper/ui/public/js/bootstrap/modal.js +0 -339
  162. data/lib/flipper/ui/public/js/bootstrap/popover.js +0 -108
  163. data/lib/flipper/ui/public/js/bootstrap/scrollspy.js +0 -172
  164. data/lib/flipper/ui/public/js/bootstrap/tab.js +0 -153
  165. data/lib/flipper/ui/public/js/bootstrap/tooltip.js +0 -476
  166. data/lib/flipper/ui/public/js/bootstrap/transition.js +0 -59
@@ -1,177 +0,0 @@
1
- //
2
- // Responsive: Utility classes
3
- // --------------------------------------------------
4
-
5
-
6
- // IE10 in Windows (Phone) 8
7
- //
8
- // Support for responsive views via media queries is kind of borked in IE10, for
9
- // Surface/desktop in split view and for Windows Phone 8. This particular fix
10
- // must be accompanied by a snippet of JavaScript to sniff the user agent and
11
- // apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at
12
- // our Getting Started page for more information on this bug.
13
- //
14
- // For more information, see the following:
15
- //
16
- // Issue: https://github.com/twbs/bootstrap/issues/10497
17
- // Docs: http://getbootstrap.com/getting-started/#support-ie10-width
18
- // Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/
19
- // Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
20
-
21
- @-ms-viewport {
22
- width: device-width;
23
- }
24
-
25
-
26
- // Visibility utilities
27
- // Note: Deprecated .visible-xs, .visible-sm, .visible-md, and .visible-lg as of v3.2.0
28
-
29
- @include responsive-invisibility('.visible-xs');
30
- @include responsive-invisibility('.visible-sm');
31
- @include responsive-invisibility('.visible-md');
32
- @include responsive-invisibility('.visible-lg');
33
-
34
- .visible-xs-block,
35
- .visible-xs-inline,
36
- .visible-xs-inline-block,
37
- .visible-sm-block,
38
- .visible-sm-inline,
39
- .visible-sm-inline-block,
40
- .visible-md-block,
41
- .visible-md-inline,
42
- .visible-md-inline-block,
43
- .visible-lg-block,
44
- .visible-lg-inline,
45
- .visible-lg-inline-block {
46
- display: none !important;
47
- }
48
-
49
- @media (max-width: $screen-xs-max) {
50
- @include responsive-visibility('.visible-xs');
51
- }
52
- .visible-xs-block {
53
- @media (max-width: $screen-xs-max) {
54
- display: block !important;
55
- }
56
- }
57
- .visible-xs-inline {
58
- @media (max-width: $screen-xs-max) {
59
- display: inline !important;
60
- }
61
- }
62
- .visible-xs-inline-block {
63
- @media (max-width: $screen-xs-max) {
64
- display: inline-block !important;
65
- }
66
- }
67
-
68
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
69
- @include responsive-visibility('.visible-sm');
70
- }
71
- .visible-sm-block {
72
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
73
- display: block !important;
74
- }
75
- }
76
- .visible-sm-inline {
77
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
78
- display: inline !important;
79
- }
80
- }
81
- .visible-sm-inline-block {
82
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
83
- display: inline-block !important;
84
- }
85
- }
86
-
87
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
88
- @include responsive-visibility('.visible-md');
89
- }
90
- .visible-md-block {
91
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
92
- display: block !important;
93
- }
94
- }
95
- .visible-md-inline {
96
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
97
- display: inline !important;
98
- }
99
- }
100
- .visible-md-inline-block {
101
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
102
- display: inline-block !important;
103
- }
104
- }
105
-
106
- @media (min-width: $screen-lg-min) {
107
- @include responsive-visibility('.visible-lg');
108
- }
109
- .visible-lg-block {
110
- @media (min-width: $screen-lg-min) {
111
- display: block !important;
112
- }
113
- }
114
- .visible-lg-inline {
115
- @media (min-width: $screen-lg-min) {
116
- display: inline !important;
117
- }
118
- }
119
- .visible-lg-inline-block {
120
- @media (min-width: $screen-lg-min) {
121
- display: inline-block !important;
122
- }
123
- }
124
-
125
- @media (max-width: $screen-xs-max) {
126
- @include responsive-invisibility('.hidden-xs');
127
- }
128
-
129
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
130
- @include responsive-invisibility('.hidden-sm');
131
- }
132
-
133
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
134
- @include responsive-invisibility('.hidden-md');
135
- }
136
-
137
- @media (min-width: $screen-lg-min) {
138
- @include responsive-invisibility('.hidden-lg');
139
- }
140
-
141
-
142
- // Print utilities
143
- //
144
- // Media queries are placed on the inside to be mixin-friendly.
145
-
146
- // Note: Deprecated .visible-print as of v3.2.0
147
-
148
- @include responsive-invisibility('.visible-print');
149
-
150
- @media print {
151
- @include responsive-visibility('.visible-print');
152
- }
153
- .visible-print-block {
154
- display: none !important;
155
-
156
- @media print {
157
- display: block !important;
158
- }
159
- }
160
- .visible-print-inline {
161
- display: none !important;
162
-
163
- @media print {
164
- display: inline !important;
165
- }
166
- }
167
- .visible-print-inline-block {
168
- display: none !important;
169
-
170
- @media print {
171
- display: inline-block !important;
172
- }
173
- }
174
-
175
- @media print {
176
- @include responsive-invisibility('.hidden-print');
177
- }
@@ -1,162 +0,0 @@
1
- //
2
- // Scaffolding
3
- // --------------------------------------------------
4
-
5
-
6
- // Reset the box-sizing
7
- //
8
- // Heads up! This reset may cause conflicts with some third-party widgets.
9
- // For recommendations on resolving such conflicts, see
10
- // http://getbootstrap.com/getting-started/#third-box-sizing
11
- * {
12
- @include box-sizing(border-box);
13
- }
14
- *:before,
15
- *:after {
16
- @include box-sizing(border-box);
17
- }
18
-
19
-
20
- // Body reset
21
-
22
- html {
23
- font-size: 10px;
24
- -webkit-tap-highlight-color: rgba(0,0,0,0);
25
- }
26
-
27
- body {
28
- font-family: $font-family-base;
29
- font-size: $font-size-base;
30
- line-height: $line-height-base;
31
- color: $text-color;
32
- background-color: $body-bg;
33
- }
34
-
35
- // Reset fonts for relevant elements
36
- input,
37
- button,
38
- select,
39
- textarea {
40
- font-family: inherit;
41
- font-size: inherit;
42
- line-height: inherit;
43
- }
44
-
45
-
46
- // Links
47
-
48
- a {
49
- color: $link-color;
50
- text-decoration: none;
51
-
52
- &:hover,
53
- &:focus {
54
- color: $link-hover-color;
55
- text-decoration: $link-hover-decoration;
56
- }
57
-
58
- &:focus {
59
- @include tab-focus;
60
- }
61
- }
62
-
63
-
64
- // Figures
65
- //
66
- // We reset this here because previously Normalize had no `figure` margins. This
67
- // ensures we don't break anyone's use of the element.
68
-
69
- figure {
70
- margin: 0;
71
- }
72
-
73
-
74
- // Images
75
-
76
- img {
77
- vertical-align: middle;
78
- }
79
-
80
- // Responsive images (ensure images don't scale beyond their parents)
81
- .img-responsive {
82
- @include img-responsive;
83
- }
84
-
85
- // Rounded corners
86
- .img-rounded {
87
- border-radius: $border-radius-large;
88
- }
89
-
90
- // Image thumbnails
91
- //
92
- // Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.
93
- .img-thumbnail {
94
- padding: $thumbnail-padding;
95
- line-height: $line-height-base;
96
- background-color: $thumbnail-bg;
97
- border: 1px solid $thumbnail-border;
98
- border-radius: $thumbnail-border-radius;
99
- @include transition(all .2s ease-in-out);
100
-
101
- // Keep them at most 100% wide
102
- @include img-responsive(inline-block);
103
- }
104
-
105
- // Perfect circle
106
- .img-circle {
107
- border-radius: 50%; // set radius in percents
108
- }
109
-
110
-
111
- // Horizontal rules
112
-
113
- hr {
114
- margin-top: $line-height-computed;
115
- margin-bottom: $line-height-computed;
116
- border: 0;
117
- border-top: 1px solid $hr-border;
118
- }
119
-
120
-
121
- // Only display content to screen readers
122
- //
123
- // See: http://a11yproject.com/posts/how-to-hide-content/
124
-
125
- .sr-only {
126
- position: absolute;
127
- width: 1px;
128
- height: 1px;
129
- margin: -1px;
130
- padding: 0;
131
- overflow: hidden;
132
- clip: rect(0,0,0,0);
133
- border: 0;
134
- }
135
-
136
- // Use in conjunction with .sr-only to only display content when it's focused.
137
- // Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
138
- // Credit: HTML5 Boilerplate
139
-
140
- .sr-only-focusable {
141
- &:active,
142
- &:focus {
143
- position: static;
144
- width: auto;
145
- height: auto;
146
- margin: 0;
147
- overflow: visible;
148
- clip: auto;
149
- }
150
- }
151
-
152
-
153
- // iOS "clickable elements" fix for role="button"
154
- //
155
- // Fixes "clickability" issue (and more generally, the firing of events such as focus as well)
156
- // for traditionally non-focusable elements with role="button"
157
- // see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
158
- // Upstream patch for normalize.css submitted: https://github.com/necolas/normalize.css/pull/379 - remove this fix once that is merged
159
-
160
- [role="button"] {
161
- cursor: pointer;
162
- }
@@ -1,273 +0,0 @@
1
-
2
- //
3
- // Load core variables and mixins
4
- // --------------------------------------------------
5
-
6
- @import "variables";
7
- @import "mixins";
8
-
9
-
10
- //
11
- // Buttons
12
- // --------------------------------------------------
13
-
14
- // Common styles
15
- .btn-default,
16
- .btn-primary,
17
- .btn-success,
18
- .btn-info,
19
- .btn-warning,
20
- .btn-danger {
21
- text-shadow: 0 -1px 0 rgba(0,0,0,.2);
22
- $shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);
23
- @include box-shadow($shadow);
24
-
25
- // Reset the shadow
26
- &:active,
27
- &.active {
28
- @include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
29
- }
30
-
31
- .badge {
32
- text-shadow: none;
33
- }
34
- }
35
-
36
- // Mixin for generating new styles
37
- @mixin btn-styles($btn-color: #555) {
38
- @include gradient-vertical($start-color: $btn-color, $end-color: darken($btn-color, 12%));
39
- @include reset-filter; // Disable gradients for IE9 because filter bleeds through rounded corners; see https://github.com/twbs/bootstrap/issues/10620
40
- background-repeat: repeat-x;
41
- border-color: darken($btn-color, 14%);
42
-
43
- &:hover,
44
- &:focus {
45
- background-color: darken($btn-color, 12%);
46
- background-position: 0 -15px;
47
- }
48
-
49
- &:active,
50
- &.active {
51
- background-color: darken($btn-color, 12%);
52
- border-color: darken($btn-color, 14%);
53
- }
54
-
55
- &.disabled,
56
- &:disabled,
57
- &[disabled] {
58
- background-color: darken($btn-color, 12%);
59
- background-image: none;
60
- }
61
- }
62
-
63
- // Common styles
64
- .btn {
65
- // Remove the gradient for the pressed/active state
66
- &:active,
67
- &.active {
68
- background-image: none;
69
- }
70
- }
71
-
72
- // Apply the mixin to the buttons
73
- .btn-default { @include btn-styles($btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }
74
- .btn-primary { @include btn-styles($btn-primary-bg); }
75
- .btn-success { @include btn-styles($btn-success-bg); }
76
- .btn-info { @include btn-styles($btn-info-bg); }
77
- .btn-warning { @include btn-styles($btn-warning-bg); }
78
- .btn-danger { @include btn-styles($btn-danger-bg); }
79
-
80
-
81
- //
82
- // Images
83
- // --------------------------------------------------
84
-
85
- .thumbnail,
86
- .img-thumbnail {
87
- @include box-shadow(0 1px 2px rgba(0,0,0,.075));
88
- }
89
-
90
-
91
- //
92
- // Dropdowns
93
- // --------------------------------------------------
94
-
95
- .dropdown-menu > li > a:hover,
96
- .dropdown-menu > li > a:focus {
97
- @include gradient-vertical($start-color: $dropdown-link-hover-bg, $end-color: darken($dropdown-link-hover-bg, 5%));
98
- background-color: darken($dropdown-link-hover-bg, 5%);
99
- }
100
- .dropdown-menu > .active > a,
101
- .dropdown-menu > .active > a:hover,
102
- .dropdown-menu > .active > a:focus {
103
- @include gradient-vertical($start-color: $dropdown-link-active-bg, $end-color: darken($dropdown-link-active-bg, 5%));
104
- background-color: darken($dropdown-link-active-bg, 5%);
105
- }
106
-
107
-
108
- //
109
- // Navbar
110
- // --------------------------------------------------
111
-
112
- // Default navbar
113
- .navbar-default {
114
- @include gradient-vertical($start-color: lighten($navbar-default-bg, 10%), $end-color: $navbar-default-bg);
115
- @include reset-filter; // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
116
- border-radius: $navbar-border-radius;
117
- $shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
118
- @include box-shadow($shadow);
119
-
120
- .navbar-nav > .open > a,
121
- .navbar-nav > .active > a {
122
- @include gradient-vertical($start-color: darken($navbar-default-link-active-bg, 5%), $end-color: darken($navbar-default-link-active-bg, 2%));
123
- @include box-shadow(inset 0 3px 9px rgba(0,0,0,.075));
124
- }
125
- }
126
- .navbar-brand,
127
- .navbar-nav > li > a {
128
- text-shadow: 0 1px 0 rgba(255,255,255,.25);
129
- }
130
-
131
- // Inverted navbar
132
- .navbar-inverse {
133
- @include gradient-vertical($start-color: lighten($navbar-inverse-bg, 10%), $end-color: $navbar-inverse-bg);
134
- @include reset-filter; // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered; see https://github.com/twbs/bootstrap/issues/10257
135
-
136
- .navbar-nav > .open > a,
137
- .navbar-nav > .active > a {
138
- @include gradient-vertical($start-color: $navbar-inverse-link-active-bg, $end-color: lighten($navbar-inverse-link-active-bg, 2.5%));
139
- @include box-shadow(inset 0 3px 9px rgba(0,0,0,.25));
140
- }
141
-
142
- .navbar-brand,
143
- .navbar-nav > li > a {
144
- text-shadow: 0 -1px 0 rgba(0,0,0,.25);
145
- }
146
- }
147
-
148
- // Undo rounded corners in static and fixed navbars
149
- .navbar-static-top,
150
- .navbar-fixed-top,
151
- .navbar-fixed-bottom {
152
- border-radius: 0;
153
- }
154
-
155
- // Fix active state of dropdown items in collapsed mode
156
- @media (max-width: $grid-float-breakpoint-max) {
157
- .navbar .navbar-nav .open .dropdown-menu > .active > a {
158
- &,
159
- &:hover,
160
- &:focus {
161
- color: #fff;
162
- @include gradient-vertical($start-color: $dropdown-link-active-bg, $end-color: darken($dropdown-link-active-bg, 5%));
163
- }
164
- }
165
- }
166
-
167
-
168
- //
169
- // Alerts
170
- // --------------------------------------------------
171
-
172
- // Common styles
173
- .alert {
174
- text-shadow: 0 1px 0 rgba(255,255,255,.2);
175
- $shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);
176
- @include box-shadow($shadow);
177
- }
178
-
179
- // Mixin for generating new styles
180
- @mixin alert-styles($color) {
181
- @include gradient-vertical($start-color: $color, $end-color: darken($color, 7.5%));
182
- border-color: darken($color, 15%);
183
- }
184
-
185
- // Apply the mixin to the alerts
186
- .alert-success { @include alert-styles($alert-success-bg); }
187
- .alert-info { @include alert-styles($alert-info-bg); }
188
- .alert-warning { @include alert-styles($alert-warning-bg); }
189
- .alert-danger { @include alert-styles($alert-danger-bg); }
190
-
191
-
192
- //
193
- // Progress bars
194
- // --------------------------------------------------
195
-
196
- // Give the progress background some depth
197
- .progress {
198
- @include gradient-vertical($start-color: darken($progress-bg, 4%), $end-color: $progress-bg)
199
- }
200
-
201
- // Mixin for generating new styles
202
- @mixin progress-bar-styles($color) {
203
- @include gradient-vertical($start-color: $color, $end-color: darken($color, 10%));
204
- }
205
-
206
- // Apply the mixin to the progress bars
207
- .progress-bar { @include progress-bar-styles($progress-bar-bg); }
208
- .progress-bar-success { @include progress-bar-styles($progress-bar-success-bg); }
209
- .progress-bar-info { @include progress-bar-styles($progress-bar-info-bg); }
210
- .progress-bar-warning { @include progress-bar-styles($progress-bar-warning-bg); }
211
- .progress-bar-danger { @include progress-bar-styles($progress-bar-danger-bg); }
212
-
213
- // Reset the striped class because our mixins don't do multiple gradients and
214
- // the above custom styles override the new `.progress-bar-striped` in v3.2.0.
215
- .progress-bar-striped {
216
- @include gradient-striped;
217
- }
218
-
219
-
220
- //
221
- // List groups
222
- // --------------------------------------------------
223
-
224
- .list-group {
225
- border-radius: $border-radius-base;
226
- @include box-shadow(0 1px 2px rgba(0,0,0,.075));
227
- }
228
- .list-group-item.active,
229
- .list-group-item.active:hover,
230
- .list-group-item.active:focus {
231
- text-shadow: 0 -1px 0 darken($list-group-active-bg, 10%);
232
- @include gradient-vertical($start-color: $list-group-active-bg, $end-color: darken($list-group-active-bg, 7.5%));
233
- border-color: darken($list-group-active-border, 7.5%);
234
-
235
- .badge {
236
- text-shadow: none;
237
- }
238
- }
239
-
240
-
241
- //
242
- // Panels
243
- // --------------------------------------------------
244
-
245
- // Common styles
246
- .panel {
247
- @include box-shadow(0 1px 2px rgba(0,0,0,.05));
248
- }
249
-
250
- // Mixin for generating new styles
251
- @mixin panel-heading-styles($color) {
252
- @include gradient-vertical($start-color: $color, $end-color: darken($color, 5%));
253
- }
254
-
255
- // Apply the mixin to the panel headings only
256
- .panel-default > .panel-heading { @include panel-heading-styles($panel-default-heading-bg); }
257
- .panel-primary > .panel-heading { @include panel-heading-styles($panel-primary-heading-bg); }
258
- .panel-success > .panel-heading { @include panel-heading-styles($panel-success-heading-bg); }
259
- .panel-info > .panel-heading { @include panel-heading-styles($panel-info-heading-bg); }
260
- .panel-warning > .panel-heading { @include panel-heading-styles($panel-warning-heading-bg); }
261
- .panel-danger > .panel-heading { @include panel-heading-styles($panel-danger-heading-bg); }
262
-
263
-
264
- //
265
- // Wells
266
- // --------------------------------------------------
267
-
268
- .well {
269
- @include gradient-vertical($start-color: darken($well-bg, 5%), $end-color: $well-bg);
270
- border-color: darken($well-bg, 10%);
271
- $shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
272
- @include box-shadow($shadow);
273
- }