kanpachi 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/bower.json +1 -0
- data/kanpachi.gemspec +1 -1
- data/lib/kanpachi/doc/template/components/bootstrap/.bower.json +34 -0
- data/lib/kanpachi/doc/template/components/bootstrap/Gruntfile.js +421 -0
- data/lib/kanpachi/doc/template/components/bootstrap/LICENSE +21 -0
- data/lib/kanpachi/doc/template/components/bootstrap/README.md +173 -0
- data/lib/kanpachi/doc/template/components/bootstrap/bower.json +24 -0
- data/lib/kanpachi/doc/template/{source/stylesheets → components/bootstrap/dist/css}/bootstrap-theme.css +0 -0
- data/lib/kanpachi/doc/template/{source/stylesheets → components/bootstrap/dist/css}/bootstrap-theme.css.map +0 -0
- data/lib/kanpachi/doc/template/{source/stylesheets → components/bootstrap/dist/css}/bootstrap-theme.min.css +0 -0
- data/lib/kanpachi/doc/template/{source/stylesheets → components/bootstrap/dist/css}/bootstrap.css +0 -0
- data/lib/kanpachi/doc/template/{source/stylesheets → components/bootstrap/dist/css}/bootstrap.css.map +0 -0
- data/lib/kanpachi/doc/template/{source/stylesheets → components/bootstrap/dist/css}/bootstrap.min.css +0 -0
- data/lib/kanpachi/doc/template/components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- data/lib/kanpachi/doc/template/components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +229 -0
- data/lib/kanpachi/doc/template/components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/lib/kanpachi/doc/template/components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- data/lib/kanpachi/doc/template/{source/javascripts → components/bootstrap/dist/js}/bootstrap.js +0 -0
- data/lib/kanpachi/doc/template/{source/javascripts → components/bootstrap/dist/js}/bootstrap.min.js +0 -0
- data/lib/kanpachi/doc/template/components/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
- data/lib/kanpachi/doc/template/components/bootstrap/fonts/glyphicons-halflings-regular.svg +229 -0
- data/lib/kanpachi/doc/template/components/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/lib/kanpachi/doc/template/components/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
- data/lib/kanpachi/doc/template/components/bootstrap/grunt/bs-glyphicons-data-generator.js +34 -0
- data/lib/kanpachi/doc/template/components/bootstrap/grunt/bs-lessdoc-parser.js +236 -0
- data/lib/kanpachi/doc/template/components/bootstrap/grunt/bs-raw-files-generator.js +31 -0
- data/lib/kanpachi/doc/template/components/bootstrap/grunt/shrinkwrap.js +28 -0
- data/lib/kanpachi/doc/template/components/bootstrap/js/affix.js +137 -0
- data/lib/kanpachi/doc/template/components/bootstrap/js/alert.js +88 -0
- data/lib/kanpachi/doc/template/components/bootstrap/js/button.js +107 -0
- data/lib/kanpachi/doc/template/components/bootstrap/js/carousel.js +205 -0
- data/lib/kanpachi/doc/template/components/bootstrap/js/collapse.js +170 -0
- data/lib/kanpachi/doc/template/components/bootstrap/js/dropdown.js +147 -0
- data/lib/kanpachi/doc/template/components/bootstrap/js/modal.js +243 -0
- data/lib/kanpachi/doc/template/components/bootstrap/js/popover.js +110 -0
- data/lib/kanpachi/doc/template/components/bootstrap/js/scrollspy.js +153 -0
- data/lib/kanpachi/doc/template/components/bootstrap/js/tab.js +125 -0
- data/lib/kanpachi/doc/template/components/bootstrap/js/tooltip.js +399 -0
- data/lib/kanpachi/doc/template/components/bootstrap/js/transition.js +48 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/alerts.less +67 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/badges.less +55 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/bootstrap.less +49 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/breadcrumbs.less +26 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/button-groups.less +226 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/buttons.less +159 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/carousel.less +232 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/close.less +33 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/code.less +63 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/component-animations.less +29 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/dropdowns.less +213 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/forms.less +438 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/glyphicons.less +233 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/grid.less +84 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/input-groups.less +162 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/jumbotron.less +44 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/labels.less +64 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/list-group.less +110 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/media.less +56 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/mixins.less +929 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/modals.less +139 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/navbar.less +616 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/navs.less +242 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/normalize.less +423 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/pager.less +55 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/pagination.less +88 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/panels.less +241 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/popovers.less +133 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/print.less +101 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/progress-bars.less +80 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/responsive-utilities.less +92 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/scaffolding.less +134 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/tables.less +233 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/theme.less +247 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/thumbnails.less +36 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/tooltip.less +95 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/type.less +293 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/utilities.less +56 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/variables.less +829 -0
- data/lib/kanpachi/doc/template/components/bootstrap/less/wells.less +29 -0
- data/lib/kanpachi/doc/template/components/bootstrap/package.json +70 -0
- data/lib/kanpachi/doc/template/components/bootstrap/test-infra/README.md +100 -0
- data/lib/kanpachi/doc/template/components/bootstrap/test-infra/npm-shrinkwrap.canonical.json +1 -0
- data/lib/kanpachi/doc/template/components/bootstrap/test-infra/requirements.txt +1 -0
- data/lib/kanpachi/doc/template/components/bootstrap/test-infra/s3_cache.py +107 -0
- data/lib/kanpachi/doc/template/components/bootstrap/test-infra/sauce_browsers.yml +83 -0
- data/lib/kanpachi/doc/template/components/bootstrap/test-infra/uncached-npm-install.sh +4 -0
- data/lib/kanpachi/doc/template/components/html5shiv/.bower.json +6 -7
- data/lib/kanpachi/doc/template/components/html5shiv/Gruntfile.js +61 -0
- data/lib/kanpachi/doc/template/components/html5shiv/bower.json +15 -0
- data/lib/kanpachi/doc/template/components/html5shiv/dist/html5shiv-printshiv.js +498 -10
- data/lib/kanpachi/doc/template/components/html5shiv/dist/html5shiv-printshiv.min.js +4 -0
- data/lib/kanpachi/doc/template/components/html5shiv/dist/html5shiv.js +300 -7
- data/lib/kanpachi/doc/template/components/html5shiv/dist/html5shiv.min.js +4 -0
- data/lib/kanpachi/doc/template/components/html5shiv/package.json +16 -0
- data/lib/kanpachi/doc/template/components/html5shiv/readme.md +3 -3
- data/lib/kanpachi/doc/template/source/javascripts/all.coffee +1 -1
- data/lib/kanpachi/doc/template/source/layouts/layout.slim +1 -1
- data/lib/kanpachi/response.rb +13 -5
- data/lib/kanpachi/version.rb +1 -1
- metadata +93 -12
@@ -0,0 +1,48 @@
|
|
1
|
+
/* ========================================================================
|
2
|
+
* Bootstrap: transition.js v3.1.1
|
3
|
+
* http://getbootstrap.com/javascript/#transitions
|
4
|
+
* ========================================================================
|
5
|
+
* Copyright 2011-2014 Twitter, Inc.
|
6
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
|
+
* ======================================================================== */
|
8
|
+
|
9
|
+
|
10
|
+
+function ($) {
|
11
|
+
'use strict';
|
12
|
+
|
13
|
+
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
|
14
|
+
// ============================================================
|
15
|
+
|
16
|
+
function transitionEnd() {
|
17
|
+
var el = document.createElement('bootstrap')
|
18
|
+
|
19
|
+
var transEndEventNames = {
|
20
|
+
'WebkitTransition' : 'webkitTransitionEnd',
|
21
|
+
'MozTransition' : 'transitionend',
|
22
|
+
'OTransition' : 'oTransitionEnd otransitionend',
|
23
|
+
'transition' : 'transitionend'
|
24
|
+
}
|
25
|
+
|
26
|
+
for (var name in transEndEventNames) {
|
27
|
+
if (el.style[name] !== undefined) {
|
28
|
+
return { end: transEndEventNames[name] }
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
return false // explicit for ie8 ( ._.)
|
33
|
+
}
|
34
|
+
|
35
|
+
// http://blog.alexmaccaw.com/css-transitions
|
36
|
+
$.fn.emulateTransitionEnd = function (duration) {
|
37
|
+
var called = false, $el = this
|
38
|
+
$(this).one($.support.transition.end, function () { called = true })
|
39
|
+
var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
|
40
|
+
setTimeout(callback, duration)
|
41
|
+
return this
|
42
|
+
}
|
43
|
+
|
44
|
+
$(function () {
|
45
|
+
$.support.transition = transitionEnd()
|
46
|
+
})
|
47
|
+
|
48
|
+
}(jQuery);
|
@@ -0,0 +1,67 @@
|
|
1
|
+
//
|
2
|
+
// Alerts
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base styles
|
7
|
+
// -------------------------
|
8
|
+
|
9
|
+
.alert {
|
10
|
+
padding: @alert-padding;
|
11
|
+
margin-bottom: @line-height-computed;
|
12
|
+
border: 1px solid transparent;
|
13
|
+
border-radius: @alert-border-radius;
|
14
|
+
|
15
|
+
// Headings for larger alerts
|
16
|
+
h4 {
|
17
|
+
margin-top: 0;
|
18
|
+
// Specified for the h4 to prevent conflicts of changing @headings-color
|
19
|
+
color: inherit;
|
20
|
+
}
|
21
|
+
// Provide class for links that match alerts
|
22
|
+
.alert-link {
|
23
|
+
font-weight: @alert-link-font-weight;
|
24
|
+
}
|
25
|
+
|
26
|
+
// Improve alignment and spacing of inner content
|
27
|
+
> p,
|
28
|
+
> ul {
|
29
|
+
margin-bottom: 0;
|
30
|
+
}
|
31
|
+
> p + p {
|
32
|
+
margin-top: 5px;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
// Dismissable alerts
|
37
|
+
//
|
38
|
+
// Expand the right padding and account for the close button's positioning.
|
39
|
+
|
40
|
+
.alert-dismissable {
|
41
|
+
padding-right: (@alert-padding + 20);
|
42
|
+
|
43
|
+
// Adjust close link position
|
44
|
+
.close {
|
45
|
+
position: relative;
|
46
|
+
top: -2px;
|
47
|
+
right: -21px;
|
48
|
+
color: inherit;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
// Alternate styles
|
53
|
+
//
|
54
|
+
// Generate contextual modifier classes for colorizing the alert.
|
55
|
+
|
56
|
+
.alert-success {
|
57
|
+
.alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
|
58
|
+
}
|
59
|
+
.alert-info {
|
60
|
+
.alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
|
61
|
+
}
|
62
|
+
.alert-warning {
|
63
|
+
.alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text);
|
64
|
+
}
|
65
|
+
.alert-danger {
|
66
|
+
.alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
|
67
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
//
|
2
|
+
// Badges
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base classes
|
7
|
+
.badge {
|
8
|
+
display: inline-block;
|
9
|
+
min-width: 10px;
|
10
|
+
padding: 3px 7px;
|
11
|
+
font-size: @font-size-small;
|
12
|
+
font-weight: @badge-font-weight;
|
13
|
+
color: @badge-color;
|
14
|
+
line-height: @badge-line-height;
|
15
|
+
vertical-align: baseline;
|
16
|
+
white-space: nowrap;
|
17
|
+
text-align: center;
|
18
|
+
background-color: @badge-bg;
|
19
|
+
border-radius: @badge-border-radius;
|
20
|
+
|
21
|
+
// Empty badges collapse automatically (not available in IE8)
|
22
|
+
&:empty {
|
23
|
+
display: none;
|
24
|
+
}
|
25
|
+
|
26
|
+
// Quick fix for badges in buttons
|
27
|
+
.btn & {
|
28
|
+
position: relative;
|
29
|
+
top: -1px;
|
30
|
+
}
|
31
|
+
.btn-xs & {
|
32
|
+
top: 0;
|
33
|
+
padding: 1px 5px;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
// Hover state, but only for links
|
38
|
+
a.badge {
|
39
|
+
&:hover,
|
40
|
+
&:focus {
|
41
|
+
color: @badge-link-hover-color;
|
42
|
+
text-decoration: none;
|
43
|
+
cursor: pointer;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
// Account for counters in navs
|
48
|
+
a.list-group-item.active > .badge,
|
49
|
+
.nav-pills > .active > a > .badge {
|
50
|
+
color: @badge-active-color;
|
51
|
+
background-color: @badge-active-bg;
|
52
|
+
}
|
53
|
+
.nav-pills > li > a > .badge {
|
54
|
+
margin-left: 3px;
|
55
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
// Core variables and mixins
|
2
|
+
@import "variables.less";
|
3
|
+
@import "mixins.less";
|
4
|
+
|
5
|
+
// Reset
|
6
|
+
@import "normalize.less";
|
7
|
+
@import "print.less";
|
8
|
+
|
9
|
+
// Core CSS
|
10
|
+
@import "scaffolding.less";
|
11
|
+
@import "type.less";
|
12
|
+
@import "code.less";
|
13
|
+
@import "grid.less";
|
14
|
+
@import "tables.less";
|
15
|
+
@import "forms.less";
|
16
|
+
@import "buttons.less";
|
17
|
+
|
18
|
+
// Components
|
19
|
+
@import "component-animations.less";
|
20
|
+
@import "glyphicons.less";
|
21
|
+
@import "dropdowns.less";
|
22
|
+
@import "button-groups.less";
|
23
|
+
@import "input-groups.less";
|
24
|
+
@import "navs.less";
|
25
|
+
@import "navbar.less";
|
26
|
+
@import "breadcrumbs.less";
|
27
|
+
@import "pagination.less";
|
28
|
+
@import "pager.less";
|
29
|
+
@import "labels.less";
|
30
|
+
@import "badges.less";
|
31
|
+
@import "jumbotron.less";
|
32
|
+
@import "thumbnails.less";
|
33
|
+
@import "alerts.less";
|
34
|
+
@import "progress-bars.less";
|
35
|
+
@import "media.less";
|
36
|
+
@import "list-group.less";
|
37
|
+
@import "panels.less";
|
38
|
+
@import "wells.less";
|
39
|
+
@import "close.less";
|
40
|
+
|
41
|
+
// Components w/ JavaScript
|
42
|
+
@import "modals.less";
|
43
|
+
@import "tooltip.less";
|
44
|
+
@import "popovers.less";
|
45
|
+
@import "carousel.less";
|
46
|
+
|
47
|
+
// Utility classes
|
48
|
+
@import "utilities.less";
|
49
|
+
@import "responsive-utilities.less";
|
@@ -0,0 +1,26 @@
|
|
1
|
+
//
|
2
|
+
// Breadcrumbs
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.breadcrumb {
|
7
|
+
padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal;
|
8
|
+
margin-bottom: @line-height-computed;
|
9
|
+
list-style: none;
|
10
|
+
background-color: @breadcrumb-bg;
|
11
|
+
border-radius: @border-radius-base;
|
12
|
+
|
13
|
+
> li {
|
14
|
+
display: inline-block;
|
15
|
+
|
16
|
+
+ li:before {
|
17
|
+
content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space
|
18
|
+
padding: 0 5px;
|
19
|
+
color: @breadcrumb-color;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
> .active {
|
24
|
+
color: @breadcrumb-active-color;
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,226 @@
|
|
1
|
+
//
|
2
|
+
// Button groups
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Make the div behave like a button
|
6
|
+
.btn-group,
|
7
|
+
.btn-group-vertical {
|
8
|
+
position: relative;
|
9
|
+
display: inline-block;
|
10
|
+
vertical-align: middle; // match .btn alignment given font-size hack above
|
11
|
+
> .btn {
|
12
|
+
position: relative;
|
13
|
+
float: left;
|
14
|
+
// Bring the "active" button to the front
|
15
|
+
&:hover,
|
16
|
+
&:focus,
|
17
|
+
&:active,
|
18
|
+
&.active {
|
19
|
+
z-index: 2;
|
20
|
+
}
|
21
|
+
&:focus {
|
22
|
+
// Remove focus outline when dropdown JS adds it after closing the menu
|
23
|
+
outline: none;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
// Prevent double borders when buttons are next to each other
|
29
|
+
.btn-group {
|
30
|
+
.btn + .btn,
|
31
|
+
.btn + .btn-group,
|
32
|
+
.btn-group + .btn,
|
33
|
+
.btn-group + .btn-group {
|
34
|
+
margin-left: -1px;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
// Optional: Group multiple button groups together for a toolbar
|
39
|
+
.btn-toolbar {
|
40
|
+
margin-left: -5px; // Offset the first child's margin
|
41
|
+
&:extend(.clearfix all);
|
42
|
+
|
43
|
+
.btn-group,
|
44
|
+
.input-group {
|
45
|
+
float: left;
|
46
|
+
}
|
47
|
+
> .btn,
|
48
|
+
> .btn-group,
|
49
|
+
> .input-group {
|
50
|
+
margin-left: 5px;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
|
55
|
+
border-radius: 0;
|
56
|
+
}
|
57
|
+
|
58
|
+
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
|
59
|
+
.btn-group > .btn:first-child {
|
60
|
+
margin-left: 0;
|
61
|
+
&:not(:last-child):not(.dropdown-toggle) {
|
62
|
+
.border-right-radius(0);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
|
66
|
+
.btn-group > .btn:last-child:not(:first-child),
|
67
|
+
.btn-group > .dropdown-toggle:not(:first-child) {
|
68
|
+
.border-left-radius(0);
|
69
|
+
}
|
70
|
+
|
71
|
+
// Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)
|
72
|
+
.btn-group > .btn-group {
|
73
|
+
float: left;
|
74
|
+
}
|
75
|
+
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
|
76
|
+
border-radius: 0;
|
77
|
+
}
|
78
|
+
.btn-group > .btn-group:first-child {
|
79
|
+
> .btn:last-child,
|
80
|
+
> .dropdown-toggle {
|
81
|
+
.border-right-radius(0);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
.btn-group > .btn-group:last-child > .btn:first-child {
|
85
|
+
.border-left-radius(0);
|
86
|
+
}
|
87
|
+
|
88
|
+
// On active and open, don't show outline
|
89
|
+
.btn-group .dropdown-toggle:active,
|
90
|
+
.btn-group.open .dropdown-toggle {
|
91
|
+
outline: 0;
|
92
|
+
}
|
93
|
+
|
94
|
+
|
95
|
+
// Sizing
|
96
|
+
//
|
97
|
+
// Remix the default button sizing classes into new ones for easier manipulation.
|
98
|
+
|
99
|
+
.btn-group-xs > .btn { &:extend(.btn-xs); }
|
100
|
+
.btn-group-sm > .btn { &:extend(.btn-sm); }
|
101
|
+
.btn-group-lg > .btn { &:extend(.btn-lg); }
|
102
|
+
|
103
|
+
|
104
|
+
// Split button dropdowns
|
105
|
+
// ----------------------
|
106
|
+
|
107
|
+
// Give the line between buttons some depth
|
108
|
+
.btn-group > .btn + .dropdown-toggle {
|
109
|
+
padding-left: 8px;
|
110
|
+
padding-right: 8px;
|
111
|
+
}
|
112
|
+
.btn-group > .btn-lg + .dropdown-toggle {
|
113
|
+
padding-left: 12px;
|
114
|
+
padding-right: 12px;
|
115
|
+
}
|
116
|
+
|
117
|
+
// The clickable button for toggling the menu
|
118
|
+
// Remove the gradient and set the same inset shadow as the :active state
|
119
|
+
.btn-group.open .dropdown-toggle {
|
120
|
+
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
121
|
+
|
122
|
+
// Show no shadow for `.btn-link` since it has no other button styles.
|
123
|
+
&.btn-link {
|
124
|
+
.box-shadow(none);
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
|
129
|
+
// Reposition the caret
|
130
|
+
.btn .caret {
|
131
|
+
margin-left: 0;
|
132
|
+
}
|
133
|
+
// Carets in other button sizes
|
134
|
+
.btn-lg .caret {
|
135
|
+
border-width: @caret-width-large @caret-width-large 0;
|
136
|
+
border-bottom-width: 0;
|
137
|
+
}
|
138
|
+
// Upside down carets for .dropup
|
139
|
+
.dropup .btn-lg .caret {
|
140
|
+
border-width: 0 @caret-width-large @caret-width-large;
|
141
|
+
}
|
142
|
+
|
143
|
+
|
144
|
+
// Vertical button groups
|
145
|
+
// ----------------------
|
146
|
+
|
147
|
+
.btn-group-vertical {
|
148
|
+
> .btn,
|
149
|
+
> .btn-group,
|
150
|
+
> .btn-group > .btn {
|
151
|
+
display: block;
|
152
|
+
float: none;
|
153
|
+
width: 100%;
|
154
|
+
max-width: 100%;
|
155
|
+
}
|
156
|
+
|
157
|
+
// Clear floats so dropdown menus can be properly placed
|
158
|
+
> .btn-group {
|
159
|
+
&:extend(.clearfix all);
|
160
|
+
> .btn {
|
161
|
+
float: none;
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
> .btn + .btn,
|
166
|
+
> .btn + .btn-group,
|
167
|
+
> .btn-group + .btn,
|
168
|
+
> .btn-group + .btn-group {
|
169
|
+
margin-top: -1px;
|
170
|
+
margin-left: 0;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
|
174
|
+
.btn-group-vertical > .btn {
|
175
|
+
&:not(:first-child):not(:last-child) {
|
176
|
+
border-radius: 0;
|
177
|
+
}
|
178
|
+
&:first-child:not(:last-child) {
|
179
|
+
border-top-right-radius: @border-radius-base;
|
180
|
+
.border-bottom-radius(0);
|
181
|
+
}
|
182
|
+
&:last-child:not(:first-child) {
|
183
|
+
border-bottom-left-radius: @border-radius-base;
|
184
|
+
.border-top-radius(0);
|
185
|
+
}
|
186
|
+
}
|
187
|
+
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
|
188
|
+
border-radius: 0;
|
189
|
+
}
|
190
|
+
.btn-group-vertical > .btn-group:first-child:not(:last-child) {
|
191
|
+
> .btn:last-child,
|
192
|
+
> .dropdown-toggle {
|
193
|
+
.border-bottom-radius(0);
|
194
|
+
}
|
195
|
+
}
|
196
|
+
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
|
197
|
+
.border-top-radius(0);
|
198
|
+
}
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
// Justified button groups
|
203
|
+
// ----------------------
|
204
|
+
|
205
|
+
.btn-group-justified {
|
206
|
+
display: table;
|
207
|
+
width: 100%;
|
208
|
+
table-layout: fixed;
|
209
|
+
border-collapse: separate;
|
210
|
+
> .btn,
|
211
|
+
> .btn-group {
|
212
|
+
float: none;
|
213
|
+
display: table-cell;
|
214
|
+
width: 1%;
|
215
|
+
}
|
216
|
+
> .btn-group .btn {
|
217
|
+
width: 100%;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
|
222
|
+
// Checkbox and radio options
|
223
|
+
[data-toggle="buttons"] > .btn > input[type="radio"],
|
224
|
+
[data-toggle="buttons"] > .btn > input[type="checkbox"] {
|
225
|
+
display: none;
|
226
|
+
}
|