kanpachi 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/bower.json +1 -0
  4. data/kanpachi.gemspec +1 -1
  5. data/lib/kanpachi/doc/template/components/bootstrap/.bower.json +34 -0
  6. data/lib/kanpachi/doc/template/components/bootstrap/Gruntfile.js +421 -0
  7. data/lib/kanpachi/doc/template/components/bootstrap/LICENSE +21 -0
  8. data/lib/kanpachi/doc/template/components/bootstrap/README.md +173 -0
  9. data/lib/kanpachi/doc/template/components/bootstrap/bower.json +24 -0
  10. data/lib/kanpachi/doc/template/{source/stylesheets → components/bootstrap/dist/css}/bootstrap-theme.css +0 -0
  11. data/lib/kanpachi/doc/template/{source/stylesheets → components/bootstrap/dist/css}/bootstrap-theme.css.map +0 -0
  12. data/lib/kanpachi/doc/template/{source/stylesheets → components/bootstrap/dist/css}/bootstrap-theme.min.css +0 -0
  13. data/lib/kanpachi/doc/template/{source/stylesheets → components/bootstrap/dist/css}/bootstrap.css +0 -0
  14. data/lib/kanpachi/doc/template/{source/stylesheets → components/bootstrap/dist/css}/bootstrap.css.map +0 -0
  15. data/lib/kanpachi/doc/template/{source/stylesheets → components/bootstrap/dist/css}/bootstrap.min.css +0 -0
  16. data/lib/kanpachi/doc/template/components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  17. data/lib/kanpachi/doc/template/components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +229 -0
  18. data/lib/kanpachi/doc/template/components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  19. data/lib/kanpachi/doc/template/components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  20. data/lib/kanpachi/doc/template/{source/javascripts → components/bootstrap/dist/js}/bootstrap.js +0 -0
  21. data/lib/kanpachi/doc/template/{source/javascripts → components/bootstrap/dist/js}/bootstrap.min.js +0 -0
  22. data/lib/kanpachi/doc/template/components/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
  23. data/lib/kanpachi/doc/template/components/bootstrap/fonts/glyphicons-halflings-regular.svg +229 -0
  24. data/lib/kanpachi/doc/template/components/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
  25. data/lib/kanpachi/doc/template/components/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
  26. data/lib/kanpachi/doc/template/components/bootstrap/grunt/bs-glyphicons-data-generator.js +34 -0
  27. data/lib/kanpachi/doc/template/components/bootstrap/grunt/bs-lessdoc-parser.js +236 -0
  28. data/lib/kanpachi/doc/template/components/bootstrap/grunt/bs-raw-files-generator.js +31 -0
  29. data/lib/kanpachi/doc/template/components/bootstrap/grunt/shrinkwrap.js +28 -0
  30. data/lib/kanpachi/doc/template/components/bootstrap/js/affix.js +137 -0
  31. data/lib/kanpachi/doc/template/components/bootstrap/js/alert.js +88 -0
  32. data/lib/kanpachi/doc/template/components/bootstrap/js/button.js +107 -0
  33. data/lib/kanpachi/doc/template/components/bootstrap/js/carousel.js +205 -0
  34. data/lib/kanpachi/doc/template/components/bootstrap/js/collapse.js +170 -0
  35. data/lib/kanpachi/doc/template/components/bootstrap/js/dropdown.js +147 -0
  36. data/lib/kanpachi/doc/template/components/bootstrap/js/modal.js +243 -0
  37. data/lib/kanpachi/doc/template/components/bootstrap/js/popover.js +110 -0
  38. data/lib/kanpachi/doc/template/components/bootstrap/js/scrollspy.js +153 -0
  39. data/lib/kanpachi/doc/template/components/bootstrap/js/tab.js +125 -0
  40. data/lib/kanpachi/doc/template/components/bootstrap/js/tooltip.js +399 -0
  41. data/lib/kanpachi/doc/template/components/bootstrap/js/transition.js +48 -0
  42. data/lib/kanpachi/doc/template/components/bootstrap/less/alerts.less +67 -0
  43. data/lib/kanpachi/doc/template/components/bootstrap/less/badges.less +55 -0
  44. data/lib/kanpachi/doc/template/components/bootstrap/less/bootstrap.less +49 -0
  45. data/lib/kanpachi/doc/template/components/bootstrap/less/breadcrumbs.less +26 -0
  46. data/lib/kanpachi/doc/template/components/bootstrap/less/button-groups.less +226 -0
  47. data/lib/kanpachi/doc/template/components/bootstrap/less/buttons.less +159 -0
  48. data/lib/kanpachi/doc/template/components/bootstrap/less/carousel.less +232 -0
  49. data/lib/kanpachi/doc/template/components/bootstrap/less/close.less +33 -0
  50. data/lib/kanpachi/doc/template/components/bootstrap/less/code.less +63 -0
  51. data/lib/kanpachi/doc/template/components/bootstrap/less/component-animations.less +29 -0
  52. data/lib/kanpachi/doc/template/components/bootstrap/less/dropdowns.less +213 -0
  53. data/lib/kanpachi/doc/template/components/bootstrap/less/forms.less +438 -0
  54. data/lib/kanpachi/doc/template/components/bootstrap/less/glyphicons.less +233 -0
  55. data/lib/kanpachi/doc/template/components/bootstrap/less/grid.less +84 -0
  56. data/lib/kanpachi/doc/template/components/bootstrap/less/input-groups.less +162 -0
  57. data/lib/kanpachi/doc/template/components/bootstrap/less/jumbotron.less +44 -0
  58. data/lib/kanpachi/doc/template/components/bootstrap/less/labels.less +64 -0
  59. data/lib/kanpachi/doc/template/components/bootstrap/less/list-group.less +110 -0
  60. data/lib/kanpachi/doc/template/components/bootstrap/less/media.less +56 -0
  61. data/lib/kanpachi/doc/template/components/bootstrap/less/mixins.less +929 -0
  62. data/lib/kanpachi/doc/template/components/bootstrap/less/modals.less +139 -0
  63. data/lib/kanpachi/doc/template/components/bootstrap/less/navbar.less +616 -0
  64. data/lib/kanpachi/doc/template/components/bootstrap/less/navs.less +242 -0
  65. data/lib/kanpachi/doc/template/components/bootstrap/less/normalize.less +423 -0
  66. data/lib/kanpachi/doc/template/components/bootstrap/less/pager.less +55 -0
  67. data/lib/kanpachi/doc/template/components/bootstrap/less/pagination.less +88 -0
  68. data/lib/kanpachi/doc/template/components/bootstrap/less/panels.less +241 -0
  69. data/lib/kanpachi/doc/template/components/bootstrap/less/popovers.less +133 -0
  70. data/lib/kanpachi/doc/template/components/bootstrap/less/print.less +101 -0
  71. data/lib/kanpachi/doc/template/components/bootstrap/less/progress-bars.less +80 -0
  72. data/lib/kanpachi/doc/template/components/bootstrap/less/responsive-utilities.less +92 -0
  73. data/lib/kanpachi/doc/template/components/bootstrap/less/scaffolding.less +134 -0
  74. data/lib/kanpachi/doc/template/components/bootstrap/less/tables.less +233 -0
  75. data/lib/kanpachi/doc/template/components/bootstrap/less/theme.less +247 -0
  76. data/lib/kanpachi/doc/template/components/bootstrap/less/thumbnails.less +36 -0
  77. data/lib/kanpachi/doc/template/components/bootstrap/less/tooltip.less +95 -0
  78. data/lib/kanpachi/doc/template/components/bootstrap/less/type.less +293 -0
  79. data/lib/kanpachi/doc/template/components/bootstrap/less/utilities.less +56 -0
  80. data/lib/kanpachi/doc/template/components/bootstrap/less/variables.less +829 -0
  81. data/lib/kanpachi/doc/template/components/bootstrap/less/wells.less +29 -0
  82. data/lib/kanpachi/doc/template/components/bootstrap/package.json +70 -0
  83. data/lib/kanpachi/doc/template/components/bootstrap/test-infra/README.md +100 -0
  84. data/lib/kanpachi/doc/template/components/bootstrap/test-infra/npm-shrinkwrap.canonical.json +1 -0
  85. data/lib/kanpachi/doc/template/components/bootstrap/test-infra/requirements.txt +1 -0
  86. data/lib/kanpachi/doc/template/components/bootstrap/test-infra/s3_cache.py +107 -0
  87. data/lib/kanpachi/doc/template/components/bootstrap/test-infra/sauce_browsers.yml +83 -0
  88. data/lib/kanpachi/doc/template/components/bootstrap/test-infra/uncached-npm-install.sh +4 -0
  89. data/lib/kanpachi/doc/template/components/html5shiv/.bower.json +6 -7
  90. data/lib/kanpachi/doc/template/components/html5shiv/Gruntfile.js +61 -0
  91. data/lib/kanpachi/doc/template/components/html5shiv/bower.json +15 -0
  92. data/lib/kanpachi/doc/template/components/html5shiv/dist/html5shiv-printshiv.js +498 -10
  93. data/lib/kanpachi/doc/template/components/html5shiv/dist/html5shiv-printshiv.min.js +4 -0
  94. data/lib/kanpachi/doc/template/components/html5shiv/dist/html5shiv.js +300 -7
  95. data/lib/kanpachi/doc/template/components/html5shiv/dist/html5shiv.min.js +4 -0
  96. data/lib/kanpachi/doc/template/components/html5shiv/package.json +16 -0
  97. data/lib/kanpachi/doc/template/components/html5shiv/readme.md +3 -3
  98. data/lib/kanpachi/doc/template/source/javascripts/all.coffee +1 -1
  99. data/lib/kanpachi/doc/template/source/layouts/layout.slim +1 -1
  100. data/lib/kanpachi/response.rb +13 -5
  101. data/lib/kanpachi/version.rb +1 -1
  102. metadata +93 -12
@@ -0,0 +1,247 @@
1
+
2
+ //
3
+ // Load core variables and mixins
4
+ // --------------------------------------------------
5
+
6
+ @import "variables.less";
7
+ @import "mixins.less";
8
+
9
+
10
+
11
+ //
12
+ // Buttons
13
+ // --------------------------------------------------
14
+
15
+ // Common styles
16
+ .btn-default,
17
+ .btn-primary,
18
+ .btn-success,
19
+ .btn-info,
20
+ .btn-warning,
21
+ .btn-danger {
22
+ text-shadow: 0 -1px 0 rgba(0,0,0,.2);
23
+ @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);
24
+ .box-shadow(@shadow);
25
+
26
+ // Reset the shadow
27
+ &:active,
28
+ &.active {
29
+ .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
30
+ }
31
+ }
32
+
33
+ // Mixin for generating new styles
34
+ .btn-styles(@btn-color: #555) {
35
+ #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));
36
+ .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners
37
+ background-repeat: repeat-x;
38
+ border-color: darken(@btn-color, 14%);
39
+
40
+ &:hover,
41
+ &:focus {
42
+ background-color: darken(@btn-color, 12%);
43
+ background-position: 0 -15px;
44
+ }
45
+
46
+ &:active,
47
+ &.active {
48
+ background-color: darken(@btn-color, 12%);
49
+ border-color: darken(@btn-color, 14%);
50
+ }
51
+ }
52
+
53
+ // Common styles
54
+ .btn {
55
+ // Remove the gradient for the pressed/active state
56
+ &:active,
57
+ &.active {
58
+ background-image: none;
59
+ }
60
+ }
61
+
62
+ // Apply the mixin to the buttons
63
+ .btn-default { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }
64
+ .btn-primary { .btn-styles(@btn-primary-bg); }
65
+ .btn-success { .btn-styles(@btn-success-bg); }
66
+ .btn-info { .btn-styles(@btn-info-bg); }
67
+ .btn-warning { .btn-styles(@btn-warning-bg); }
68
+ .btn-danger { .btn-styles(@btn-danger-bg); }
69
+
70
+
71
+
72
+ //
73
+ // Images
74
+ // --------------------------------------------------
75
+
76
+ .thumbnail,
77
+ .img-thumbnail {
78
+ .box-shadow(0 1px 2px rgba(0,0,0,.075));
79
+ }
80
+
81
+
82
+
83
+ //
84
+ // Dropdowns
85
+ // --------------------------------------------------
86
+
87
+ .dropdown-menu > li > a:hover,
88
+ .dropdown-menu > li > a:focus {
89
+ #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%));
90
+ background-color: darken(@dropdown-link-hover-bg, 5%);
91
+ }
92
+ .dropdown-menu > .active > a,
93
+ .dropdown-menu > .active > a:hover,
94
+ .dropdown-menu > .active > a:focus {
95
+ #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));
96
+ background-color: darken(@dropdown-link-active-bg, 5%);
97
+ }
98
+
99
+
100
+
101
+ //
102
+ // Navbar
103
+ // --------------------------------------------------
104
+
105
+ // Default navbar
106
+ .navbar-default {
107
+ #gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg);
108
+ .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
109
+ border-radius: @navbar-border-radius;
110
+ @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
111
+ .box-shadow(@shadow);
112
+
113
+ .navbar-nav > .active > a {
114
+ #gradient > .vertical(@start-color: darken(@navbar-default-bg, 5%); @end-color: darken(@navbar-default-bg, 2%));
115
+ .box-shadow(inset 0 3px 9px rgba(0,0,0,.075));
116
+ }
117
+ }
118
+ .navbar-brand,
119
+ .navbar-nav > li > a {
120
+ text-shadow: 0 1px 0 rgba(255,255,255,.25);
121
+ }
122
+
123
+ // Inverted navbar
124
+ .navbar-inverse {
125
+ #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);
126
+ .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
127
+
128
+ .navbar-nav > .active > a {
129
+ #gradient > .vertical(@start-color: @navbar-inverse-bg; @end-color: lighten(@navbar-inverse-bg, 2.5%));
130
+ .box-shadow(inset 0 3px 9px rgba(0,0,0,.25));
131
+ }
132
+
133
+ .navbar-brand,
134
+ .navbar-nav > li > a {
135
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
136
+ }
137
+ }
138
+
139
+ // Undo rounded corners in static and fixed navbars
140
+ .navbar-static-top,
141
+ .navbar-fixed-top,
142
+ .navbar-fixed-bottom {
143
+ border-radius: 0;
144
+ }
145
+
146
+
147
+
148
+ //
149
+ // Alerts
150
+ // --------------------------------------------------
151
+
152
+ // Common styles
153
+ .alert {
154
+ text-shadow: 0 1px 0 rgba(255,255,255,.2);
155
+ @shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);
156
+ .box-shadow(@shadow);
157
+ }
158
+
159
+ // Mixin for generating new styles
160
+ .alert-styles(@color) {
161
+ #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 7.5%));
162
+ border-color: darken(@color, 15%);
163
+ }
164
+
165
+ // Apply the mixin to the alerts
166
+ .alert-success { .alert-styles(@alert-success-bg); }
167
+ .alert-info { .alert-styles(@alert-info-bg); }
168
+ .alert-warning { .alert-styles(@alert-warning-bg); }
169
+ .alert-danger { .alert-styles(@alert-danger-bg); }
170
+
171
+
172
+
173
+ //
174
+ // Progress bars
175
+ // --------------------------------------------------
176
+
177
+ // Give the progress background some depth
178
+ .progress {
179
+ #gradient > .vertical(@start-color: darken(@progress-bg, 4%); @end-color: @progress-bg)
180
+ }
181
+
182
+ // Mixin for generating new styles
183
+ .progress-bar-styles(@color) {
184
+ #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 10%));
185
+ }
186
+
187
+ // Apply the mixin to the progress bars
188
+ .progress-bar { .progress-bar-styles(@progress-bar-bg); }
189
+ .progress-bar-success { .progress-bar-styles(@progress-bar-success-bg); }
190
+ .progress-bar-info { .progress-bar-styles(@progress-bar-info-bg); }
191
+ .progress-bar-warning { .progress-bar-styles(@progress-bar-warning-bg); }
192
+ .progress-bar-danger { .progress-bar-styles(@progress-bar-danger-bg); }
193
+
194
+
195
+
196
+ //
197
+ // List groups
198
+ // --------------------------------------------------
199
+
200
+ .list-group {
201
+ border-radius: @border-radius-base;
202
+ .box-shadow(0 1px 2px rgba(0,0,0,.075));
203
+ }
204
+ .list-group-item.active,
205
+ .list-group-item.active:hover,
206
+ .list-group-item.active:focus {
207
+ text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%);
208
+ #gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%));
209
+ border-color: darken(@list-group-active-border, 7.5%);
210
+ }
211
+
212
+
213
+
214
+ //
215
+ // Panels
216
+ // --------------------------------------------------
217
+
218
+ // Common styles
219
+ .panel {
220
+ .box-shadow(0 1px 2px rgba(0,0,0,.05));
221
+ }
222
+
223
+ // Mixin for generating new styles
224
+ .panel-heading-styles(@color) {
225
+ #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 5%));
226
+ }
227
+
228
+ // Apply the mixin to the panel headings only
229
+ .panel-default > .panel-heading { .panel-heading-styles(@panel-default-heading-bg); }
230
+ .panel-primary > .panel-heading { .panel-heading-styles(@panel-primary-heading-bg); }
231
+ .panel-success > .panel-heading { .panel-heading-styles(@panel-success-heading-bg); }
232
+ .panel-info > .panel-heading { .panel-heading-styles(@panel-info-heading-bg); }
233
+ .panel-warning > .panel-heading { .panel-heading-styles(@panel-warning-heading-bg); }
234
+ .panel-danger > .panel-heading { .panel-heading-styles(@panel-danger-heading-bg); }
235
+
236
+
237
+
238
+ //
239
+ // Wells
240
+ // --------------------------------------------------
241
+
242
+ .well {
243
+ #gradient > .vertical(@start-color: darken(@well-bg, 5%); @end-color: @well-bg);
244
+ border-color: darken(@well-bg, 10%);
245
+ @shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
246
+ .box-shadow(@shadow);
247
+ }
@@ -0,0 +1,36 @@
1
+ //
2
+ // Thumbnails
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Mixin and adjust the regular image class
7
+ .thumbnail {
8
+ display: block;
9
+ padding: @thumbnail-padding;
10
+ margin-bottom: @line-height-computed;
11
+ line-height: @line-height-base;
12
+ background-color: @thumbnail-bg;
13
+ border: 1px solid @thumbnail-border;
14
+ border-radius: @thumbnail-border-radius;
15
+ .transition(all .2s ease-in-out);
16
+
17
+ > img,
18
+ a > img {
19
+ &:extend(.img-responsive);
20
+ margin-left: auto;
21
+ margin-right: auto;
22
+ }
23
+
24
+ // Add a hover state for linked versions only
25
+ a&:hover,
26
+ a&:focus,
27
+ a&.active {
28
+ border-color: @link-color;
29
+ }
30
+
31
+ // Image captions
32
+ .caption {
33
+ padding: @thumbnail-caption-padding;
34
+ color: @thumbnail-caption-color;
35
+ }
36
+ }
@@ -0,0 +1,95 @@
1
+ //
2
+ // Tooltips
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Base class
7
+ .tooltip {
8
+ position: absolute;
9
+ z-index: @zindex-tooltip;
10
+ display: block;
11
+ visibility: visible;
12
+ font-size: @font-size-small;
13
+ line-height: 1.4;
14
+ .opacity(0);
15
+
16
+ &.in { .opacity(@tooltip-opacity); }
17
+ &.top { margin-top: -3px; padding: @tooltip-arrow-width 0; }
18
+ &.right { margin-left: 3px; padding: 0 @tooltip-arrow-width; }
19
+ &.bottom { margin-top: 3px; padding: @tooltip-arrow-width 0; }
20
+ &.left { margin-left: -3px; padding: 0 @tooltip-arrow-width; }
21
+ }
22
+
23
+ // Wrapper for the tooltip content
24
+ .tooltip-inner {
25
+ max-width: @tooltip-max-width;
26
+ padding: 3px 8px;
27
+ color: @tooltip-color;
28
+ text-align: center;
29
+ text-decoration: none;
30
+ background-color: @tooltip-bg;
31
+ border-radius: @border-radius-base;
32
+ }
33
+
34
+ // Arrows
35
+ .tooltip-arrow {
36
+ position: absolute;
37
+ width: 0;
38
+ height: 0;
39
+ border-color: transparent;
40
+ border-style: solid;
41
+ }
42
+ .tooltip {
43
+ &.top .tooltip-arrow {
44
+ bottom: 0;
45
+ left: 50%;
46
+ margin-left: -@tooltip-arrow-width;
47
+ border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
48
+ border-top-color: @tooltip-arrow-color;
49
+ }
50
+ &.top-left .tooltip-arrow {
51
+ bottom: 0;
52
+ left: @tooltip-arrow-width;
53
+ border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
54
+ border-top-color: @tooltip-arrow-color;
55
+ }
56
+ &.top-right .tooltip-arrow {
57
+ bottom: 0;
58
+ right: @tooltip-arrow-width;
59
+ border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
60
+ border-top-color: @tooltip-arrow-color;
61
+ }
62
+ &.right .tooltip-arrow {
63
+ top: 50%;
64
+ left: 0;
65
+ margin-top: -@tooltip-arrow-width;
66
+ border-width: @tooltip-arrow-width @tooltip-arrow-width @tooltip-arrow-width 0;
67
+ border-right-color: @tooltip-arrow-color;
68
+ }
69
+ &.left .tooltip-arrow {
70
+ top: 50%;
71
+ right: 0;
72
+ margin-top: -@tooltip-arrow-width;
73
+ border-width: @tooltip-arrow-width 0 @tooltip-arrow-width @tooltip-arrow-width;
74
+ border-left-color: @tooltip-arrow-color;
75
+ }
76
+ &.bottom .tooltip-arrow {
77
+ top: 0;
78
+ left: 50%;
79
+ margin-left: -@tooltip-arrow-width;
80
+ border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
81
+ border-bottom-color: @tooltip-arrow-color;
82
+ }
83
+ &.bottom-left .tooltip-arrow {
84
+ top: 0;
85
+ left: @tooltip-arrow-width;
86
+ border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
87
+ border-bottom-color: @tooltip-arrow-color;
88
+ }
89
+ &.bottom-right .tooltip-arrow {
90
+ top: 0;
91
+ right: @tooltip-arrow-width;
92
+ border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
93
+ border-bottom-color: @tooltip-arrow-color;
94
+ }
95
+ }
@@ -0,0 +1,293 @@
1
+ //
2
+ // Typography
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Headings
7
+ // -------------------------
8
+
9
+ h1, h2, h3, h4, h5, h6,
10
+ .h1, .h2, .h3, .h4, .h5, .h6 {
11
+ font-family: @headings-font-family;
12
+ font-weight: @headings-font-weight;
13
+ line-height: @headings-line-height;
14
+ color: @headings-color;
15
+
16
+ small,
17
+ .small {
18
+ font-weight: normal;
19
+ line-height: 1;
20
+ color: @headings-small-color;
21
+ }
22
+ }
23
+
24
+ h1, .h1,
25
+ h2, .h2,
26
+ h3, .h3 {
27
+ margin-top: @line-height-computed;
28
+ margin-bottom: (@line-height-computed / 2);
29
+
30
+ small,
31
+ .small {
32
+ font-size: 65%;
33
+ }
34
+ }
35
+ h4, .h4,
36
+ h5, .h5,
37
+ h6, .h6 {
38
+ margin-top: (@line-height-computed / 2);
39
+ margin-bottom: (@line-height-computed / 2);
40
+
41
+ small,
42
+ .small {
43
+ font-size: 75%;
44
+ }
45
+ }
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);
60
+ }
61
+
62
+ .lead {
63
+ margin-bottom: @line-height-computed;
64
+ font-size: floor((@font-size-base * 1.15));
65
+ font-weight: 200;
66
+ line-height: 1.4;
67
+
68
+ @media (min-width: @screen-sm-min) {
69
+ font-size: (@font-size-base * 1.5);
70
+ }
71
+ }
72
+
73
+
74
+ // Emphasis & misc
75
+ // -------------------------
76
+
77
+ // Ex: 14px base font * 85% = about 12px
78
+ small,
79
+ .small { font-size: 85%; }
80
+
81
+ // Undo browser default styling
82
+ cite { font-style: normal; }
83
+
84
+ // Alignment
85
+ .text-left { text-align: left; }
86
+ .text-right { text-align: right; }
87
+ .text-center { text-align: center; }
88
+ .text-justify { text-align: justify; }
89
+
90
+ // Contextual colors
91
+ .text-muted {
92
+ color: @text-muted;
93
+ }
94
+ .text-primary {
95
+ .text-emphasis-variant(@brand-primary);
96
+ }
97
+ .text-success {
98
+ .text-emphasis-variant(@state-success-text);
99
+ }
100
+ .text-info {
101
+ .text-emphasis-variant(@state-info-text);
102
+ }
103
+ .text-warning {
104
+ .text-emphasis-variant(@state-warning-text);
105
+ }
106
+ .text-danger {
107
+ .text-emphasis-variant(@state-danger-text);
108
+ }
109
+
110
+ // Contextual backgrounds
111
+ // For now we'll leave these alongside the text classes until v4 when we can
112
+ // safely shift things around (per SemVer rules).
113
+ .bg-primary {
114
+ // Given the contrast here, this is the only class to have its color inverted
115
+ // automatically.
116
+ color: #fff;
117
+ .bg-variant(@brand-primary);
118
+ }
119
+ .bg-success {
120
+ .bg-variant(@state-success-bg);
121
+ }
122
+ .bg-info {
123
+ .bg-variant(@state-info-bg);
124
+ }
125
+ .bg-warning {
126
+ .bg-variant(@state-warning-bg);
127
+ }
128
+ .bg-danger {
129
+ .bg-variant(@state-danger-bg);
130
+ }
131
+
132
+
133
+ // Page header
134
+ // -------------------------
135
+
136
+ .page-header {
137
+ padding-bottom: ((@line-height-computed / 2) - 1);
138
+ margin: (@line-height-computed * 2) 0 @line-height-computed;
139
+ border-bottom: 1px solid @page-header-border-color;
140
+ }
141
+
142
+
143
+ // Lists
144
+ // --------------------------------------------------
145
+
146
+ // Unordered and Ordered lists
147
+ ul,
148
+ ol {
149
+ margin-top: 0;
150
+ margin-bottom: (@line-height-computed / 2);
151
+ ul,
152
+ ol {
153
+ margin-bottom: 0;
154
+ }
155
+ }
156
+
157
+ // List options
158
+
159
+ // Unstyled keeps list items block level, just removes default browser padding and list-style
160
+ .list-unstyled {
161
+ padding-left: 0;
162
+ list-style: none;
163
+ }
164
+
165
+ // Inline turns list items into inline-block
166
+ .list-inline {
167
+ .list-unstyled();
168
+ margin-left: -5px;
169
+
170
+ > li {
171
+ display: inline-block;
172
+ padding-left: 5px;
173
+ padding-right: 5px;
174
+ }
175
+ }
176
+
177
+ // Description Lists
178
+ dl {
179
+ margin-top: 0; // Remove browser default
180
+ margin-bottom: @line-height-computed;
181
+ }
182
+ dt,
183
+ dd {
184
+ line-height: @line-height-base;
185
+ }
186
+ dt {
187
+ font-weight: bold;
188
+ }
189
+ dd {
190
+ margin-left: 0; // Undo browser default
191
+ }
192
+
193
+ // Horizontal description lists
194
+ //
195
+ // Defaults to being stacked without any of the below styles applied, until the
196
+ // grid breakpoint is reached (default of ~768px).
197
+
198
+ @media (min-width: @grid-float-breakpoint) {
199
+ .dl-horizontal {
200
+ dt {
201
+ float: left;
202
+ width: (@component-offset-horizontal - 20);
203
+ clear: left;
204
+ text-align: right;
205
+ .text-overflow();
206
+ }
207
+ dd {
208
+ margin-left: @component-offset-horizontal;
209
+ &:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present
210
+ }
211
+ }
212
+ }
213
+
214
+ // MISC
215
+ // ----
216
+
217
+ // Abbreviations and acronyms
218
+ abbr[title],
219
+ // Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
220
+ abbr[data-original-title] {
221
+ cursor: help;
222
+ border-bottom: 1px dotted @abbr-border-color;
223
+ }
224
+ .initialism {
225
+ font-size: 90%;
226
+ text-transform: uppercase;
227
+ }
228
+
229
+ // Blockquotes
230
+ blockquote {
231
+ padding: (@line-height-computed / 2) @line-height-computed;
232
+ margin: 0 0 @line-height-computed;
233
+ font-size: @blockquote-font-size;
234
+ border-left: 5px solid @blockquote-border-color;
235
+
236
+ p,
237
+ ul,
238
+ ol {
239
+ &:last-child {
240
+ margin-bottom: 0;
241
+ }
242
+ }
243
+
244
+ // Note: Deprecated small and .small as of v3.1.0
245
+ // Context: https://github.com/twbs/bootstrap/issues/11660
246
+ footer,
247
+ small,
248
+ .small {
249
+ display: block;
250
+ font-size: 80%; // back to default font-size
251
+ line-height: @line-height-base;
252
+ color: @blockquote-small-color;
253
+
254
+ &:before {
255
+ content: '\2014 \00A0'; // em dash, nbsp
256
+ }
257
+ }
258
+ }
259
+
260
+ // Opposite alignment of blockquote
261
+ //
262
+ // Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.
263
+ .blockquote-reverse,
264
+ blockquote.pull-right {
265
+ padding-right: 15px;
266
+ padding-left: 0;
267
+ border-right: 5px solid @blockquote-border-color;
268
+ border-left: 0;
269
+ text-align: right;
270
+
271
+ // Account for citation
272
+ footer,
273
+ small,
274
+ .small {
275
+ &:before { content: ''; }
276
+ &:after {
277
+ content: '\00A0 \2014'; // nbsp, em dash
278
+ }
279
+ }
280
+ }
281
+
282
+ // Quotes
283
+ blockquote:before,
284
+ blockquote:after {
285
+ content: "";
286
+ }
287
+
288
+ // Addresses
289
+ address {
290
+ margin-bottom: @line-height-computed;
291
+ font-style: normal;
292
+ line-height: @line-height-base;
293
+ }