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
@@ -0,0 +1,36 @@
1
+ // stylelint-disable selector-no-qualifying-type
2
+
3
+ .fade {
4
+ opacity: 0;
5
+ @include transition($transition-fade);
6
+
7
+ &.show {
8
+ opacity: 1;
9
+ }
10
+ }
11
+
12
+ .collapse {
13
+ display: none;
14
+ &.show {
15
+ display: block;
16
+ }
17
+ }
18
+
19
+ tr {
20
+ &.collapse.show {
21
+ display: table-row;
22
+ }
23
+ }
24
+
25
+ tbody {
26
+ &.collapse.show {
27
+ display: table-row-group;
28
+ }
29
+ }
30
+
31
+ .collapsing {
32
+ position: relative;
33
+ height: 0;
34
+ overflow: hidden;
35
+ @include transition($transition-collapse);
36
+ }
@@ -1,298 +1,125 @@
1
- //
2
- // Typography
3
- // --------------------------------------------------
4
-
1
+ // stylelint-disable declaration-no-important, selector-list-comma-newline-after
5
2
 
3
+ //
6
4
  // Headings
7
- // -------------------------
5
+ //
8
6
 
9
7
  h1, h2, h3, h4, h5, h6,
10
8
  .h1, .h2, .h3, .h4, .h5, .h6 {
9
+ margin-bottom: $headings-margin-bottom;
11
10
  font-family: $headings-font-family;
12
11
  font-weight: $headings-font-weight;
13
12
  line-height: $headings-line-height;
14
13
  color: $headings-color;
15
-
16
- small,
17
- .small {
18
- font-weight: normal;
19
- line-height: 1;
20
- color: $headings-small-color;
21
- }
22
14
  }
23
15
 
24
- h1, .h1,
25
- h2, .h2,
26
- h3, .h3 {
27
- margin-top: $line-height-computed;
28
- margin-bottom: ($line-height-computed / 2);
16
+ h1, .h1 { font-size: $h1-font-size; }
17
+ h2, .h2 { font-size: $h2-font-size; }
18
+ h3, .h3 { font-size: $h3-font-size; }
19
+ h4, .h4 { font-size: $h4-font-size; }
20
+ h5, .h5 { font-size: $h5-font-size; }
21
+ h6, .h6 { font-size: $h6-font-size; }
29
22
 
30
- small,
31
- .small {
32
- font-size: 65%;
33
- }
23
+ .lead {
24
+ font-size: $lead-font-size;
25
+ font-weight: $lead-font-weight;
34
26
  }
35
- h4, .h4,
36
- h5, .h5,
37
- h6, .h6 {
38
- margin-top: ($line-height-computed / 2);
39
- margin-bottom: ($line-height-computed / 2);
40
27
 
41
- small,
42
- .small {
43
- font-size: 75%;
44
- }
28
+ // Type display classes
29
+ .display-1 {
30
+ font-size: $display1-size;
31
+ font-weight: $display1-weight;
32
+ line-height: $display-line-height;
45
33
  }
46
-
47
- h1, .h1 { font-size: $font-size-h1; }
48
- h2, .h2 { font-size: $font-size-h2; }
49
- h3, .h3 { font-size: $font-size-h3; }
50
- h4, .h4 { font-size: $font-size-h4; }
51
- h5, .h5 { font-size: $font-size-h5; }
52
- h6, .h6 { font-size: $font-size-h6; }
53
-
54
-
55
- // Body text
56
- // -------------------------
57
-
58
- p {
59
- margin: 0 0 ($line-height-computed / 2);
34
+ .display-2 {
35
+ font-size: $display2-size;
36
+ font-weight: $display2-weight;
37
+ line-height: $display-line-height;
38
+ }
39
+ .display-3 {
40
+ font-size: $display3-size;
41
+ font-weight: $display3-weight;
42
+ line-height: $display-line-height;
43
+ }
44
+ .display-4 {
45
+ font-size: $display4-size;
46
+ font-weight: $display4-weight;
47
+ line-height: $display-line-height;
60
48
  }
61
49
 
62
- .lead {
63
- margin-bottom: $line-height-computed;
64
- font-size: floor(($font-size-base * 1.15));
65
- font-weight: 300;
66
- line-height: 1.4;
67
50
 
68
- @media (min-width: $screen-sm-min) {
69
- font-size: ($font-size-base * 1.5);
70
- }
51
+ //
52
+ // Horizontal rules
53
+ //
54
+
55
+ hr {
56
+ margin-top: $hr-margin-y;
57
+ margin-bottom: $hr-margin-y;
58
+ border: 0;
59
+ border-top: $hr-border-width solid $hr-border-color;
71
60
  }
72
61
 
73
62
 
74
- // Emphasis & misc
75
- // -------------------------
63
+ //
64
+ // Emphasis
65
+ //
76
66
 
77
- // Ex: (12px small font / 14px base font) * 100% = about 85%
78
67
  small,
79
68
  .small {
80
- font-size: floor((100% * $font-size-small / $font-size-base));
69
+ font-size: $small-font-size;
70
+ font-weight: $font-weight-normal;
81
71
  }
82
72
 
83
73
  mark,
84
74
  .mark {
85
- background-color: $state-warning-bg;
86
- padding: .2em;
87
- }
88
-
89
- // Alignment
90
- .text-left { text-align: left; }
91
- .text-right { text-align: right; }
92
- .text-center { text-align: center; }
93
- .text-justify { text-align: justify; }
94
- .text-nowrap { white-space: nowrap; }
95
-
96
- // Transformation
97
- .text-lowercase { text-transform: lowercase; }
98
- .text-uppercase { text-transform: uppercase; }
99
- .text-capitalize { text-transform: capitalize; }
100
-
101
- // Contextual colors
102
- .text-muted {
103
- color: $text-muted;
104
- }
105
-
106
- @include text-emphasis-variant('.text-primary', $brand-primary);
107
-
108
- @include text-emphasis-variant('.text-success', $state-success-text);
109
-
110
- @include text-emphasis-variant('.text-info', $state-info-text);
111
-
112
- @include text-emphasis-variant('.text-warning', $state-warning-text);
113
-
114
- @include text-emphasis-variant('.text-danger', $state-danger-text);
115
-
116
- // Contextual backgrounds
117
- // For now we'll leave these alongside the text classes until v4 when we can
118
- // safely shift things around (per SemVer rules).
119
- .bg-primary {
120
- // Given the contrast here, this is the only class to have its color inverted
121
- // automatically.
122
- color: #fff;
123
- }
124
- @include bg-variant('.bg-primary', $brand-primary);
125
-
126
- @include bg-variant('.bg-success', $state-success-bg);
127
-
128
- @include bg-variant('.bg-info', $state-info-bg);
129
-
130
- @include bg-variant('.bg-warning', $state-warning-bg);
131
-
132
- @include bg-variant('.bg-danger', $state-danger-bg);
133
-
134
-
135
- // Page header
136
- // -------------------------
137
-
138
- .page-header {
139
- padding-bottom: (($line-height-computed / 2) - 1);
140
- margin: ($line-height-computed * 2) 0 $line-height-computed;
141
- border-bottom: 1px solid $page-header-border-color;
75
+ padding: $mark-padding;
76
+ background-color: $mark-bg;
142
77
  }
143
78
 
144
79
 
80
+ //
145
81
  // Lists
146
- // -------------------------
147
-
148
- // Unordered and Ordered lists
149
- ul,
150
- ol {
151
- margin-top: 0;
152
- margin-bottom: ($line-height-computed / 2);
153
- ul,
154
- ol {
155
- margin-bottom: 0;
156
- }
157
- }
158
-
159
- // List options
82
+ //
160
83
 
161
- // [converter] extracted from `.list-unstyled` for libsass compatibility
162
- @mixin list-unstyled {
163
- padding-left: 0;
164
- list-style: none;
165
- }
166
- // [converter] extracted as `@mixin list-unstyled` for libsass compatibility
167
84
  .list-unstyled {
168
85
  @include list-unstyled;
169
86
  }
170
87
 
171
-
172
88
  // Inline turns list items into inline-block
173
89
  .list-inline {
174
90
  @include list-unstyled;
175
- margin-left: -5px;
176
-
177
- > li {
178
- display: inline-block;
179
- padding-left: 5px;
180
- padding-right: 5px;
181
- }
182
91
  }
92
+ .list-inline-item {
93
+ display: inline-block;
183
94
 
184
- // Description Lists
185
- dl {
186
- margin-top: 0; // Remove browser default
187
- margin-bottom: $line-height-computed;
188
- }
189
- dt,
190
- dd {
191
- line-height: $line-height-base;
192
- }
193
- dt {
194
- font-weight: bold;
195
- }
196
- dd {
197
- margin-left: 0; // Undo browser default
198
- }
199
-
200
- // Horizontal description lists
201
- //
202
- // Defaults to being stacked without any of the below styles applied, until the
203
- // grid breakpoint is reached (default of ~768px).
204
-
205
- .dl-horizontal {
206
- dd {
207
- @include clearfix; // Clear the floated `dt` if an empty `dd` is present
208
- }
209
-
210
- @media (min-width: $grid-float-breakpoint) {
211
- dt {
212
- float: left;
213
- width: ($dl-horizontal-offset - 20);
214
- clear: left;
215
- text-align: right;
216
- @include text-overflow;
217
- }
218
- dd {
219
- margin-left: $dl-horizontal-offset;
220
- }
95
+ &:not(:last-child) {
96
+ margin-right: $list-inline-padding;
221
97
  }
222
98
  }
223
99
 
224
100
 
101
+ //
225
102
  // Misc
226
- // -------------------------
103
+ //
227
104
 
228
- // Abbreviations and acronyms
229
- abbr[title],
230
- // Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
231
- abbr[data-original-title] {
232
- cursor: help;
233
- border-bottom: 1px dotted $abbr-border-color;
234
- }
105
+ // Builds on `abbr`
235
106
  .initialism {
236
107
  font-size: 90%;
237
- @extend .text-uppercase;
108
+ text-transform: uppercase;
238
109
  }
239
110
 
240
111
  // Blockquotes
241
- blockquote {
242
- padding: ($line-height-computed / 2) $line-height-computed;
243
- margin: 0 0 $line-height-computed;
112
+ .blockquote {
113
+ margin-bottom: $spacer;
244
114
  font-size: $blockquote-font-size;
245
- border-left: 5px solid $blockquote-border-color;
246
-
247
- p,
248
- ul,
249
- ol {
250
- &:last-child {
251
- margin-bottom: 0;
252
- }
253
- }
254
-
255
- // Note: Deprecated small and .small as of v3.1.0
256
- // Context: https://github.com/twbs/bootstrap/issues/11660
257
- footer,
258
- small,
259
- .small {
260
- display: block;
261
- font-size: 80%; // back to default font-size
262
- line-height: $line-height-base;
263
- color: $blockquote-small-color;
264
-
265
- &:before {
266
- content: '\2014 \00A0'; // em dash, nbsp
267
- }
268
- }
269
115
  }
270
116
 
271
- // Opposite alignment of blockquote
272
- //
273
- // Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.
274
- .blockquote-reverse,
275
- blockquote.pull-right {
276
- padding-right: 15px;
277
- padding-left: 0;
278
- border-right: 5px solid $blockquote-border-color;
279
- border-left: 0;
280
- text-align: right;
117
+ .blockquote-footer {
118
+ display: block;
119
+ font-size: 80%; // back to default font-size
120
+ color: $blockquote-small-color;
281
121
 
282
- // Account for citation
283
- footer,
284
- small,
285
- .small {
286
- &:before { content: ''; }
287
- &:after {
288
- content: '\00A0 \2014'; // nbsp, em dash
289
- }
122
+ &::before {
123
+ content: "\2014 \00A0"; // em dash, nbsp
290
124
  }
291
125
  }
292
-
293
- // Addresses
294
- address {
295
- margin-bottom: $line-height-computed;
296
- font-style: normal;
297
- line-height: $line-height-base;
298
- }
@@ -1,55 +1,14 @@
1
- //
2
- // Utility classes
3
- // --------------------------------------------------
4
-
5
-
6
- // Floats
7
- // -------------------------
8
-
9
- .clearfix {
10
- @include clearfix;
11
- }
12
- .center-block {
13
- @include center-block;
14
- }
15
- .pull-right {
16
- float: right !important;
17
- }
18
- .pull-left {
19
- float: left !important;
20
- }
21
-
22
-
23
- // Toggling content
24
- // -------------------------
25
-
26
- // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
27
- .hide {
28
- display: none !important;
29
- }
30
- .show {
31
- display: block !important;
32
- }
33
- .invisible {
34
- visibility: hidden;
35
- }
36
- .text-hide {
37
- @include text-hide;
38
- }
39
-
40
-
41
- // Hide from screenreaders and browsers
42
- //
43
- // Credit: HTML5 Boilerplate
44
-
45
- .hidden {
46
- display: none !important;
47
- }
48
-
49
-
50
- // For Affix plugin
51
- // -------------------------
52
-
53
- .affix {
54
- position: fixed;
55
- }
1
+ @import "utilities/align";
2
+ @import "utilities/background";
3
+ @import "utilities/borders";
4
+ @import "utilities/clearfix";
5
+ @import "utilities/display";
6
+ @import "utilities/embed";
7
+ @import "utilities/flex";
8
+ @import "utilities/float";
9
+ @import "utilities/position";
10
+ @import "utilities/screenreaders";
11
+ @import "utilities/sizing";
12
+ @import "utilities/spacing";
13
+ @import "utilities/text";
14
+ @import "utilities/visibility";