sass-rails-bootstrap 2.0.4 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +3 -3
- data/lib/sass-rails-bootstrap/sass_functions.rb +15 -0
- data/lib/sass-rails-bootstrap/version.rb +1 -1
- data/lib/sass-rails-bootstrap.rb +1 -0
- data/vendor/assets/javascripts/twitter/bootstrap/affix.js +104 -0
- data/vendor/assets/javascripts/twitter/bootstrap/alert.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/button.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +13 -6
- data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +5 -4
- data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +69 -19
- data/vendor/assets/javascripts/twitter/bootstrap/modal.js +96 -75
- data/vendor/assets/javascripts/twitter/bootstrap/popover.js +19 -9
- data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +13 -13
- data/vendor/assets/javascripts/twitter/bootstrap/tab.js +3 -3
- data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +15 -15
- data/vendor/assets/javascripts/twitter/bootstrap/transition.js +3 -4
- data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +52 -37
- data/vendor/assets/javascripts/twitter/bootstrap.js +1 -0
- data/vendor/assets/stylesheets/twitter/_bootstrap-responsive.scss +5 -5
- data/vendor/assets/stylesheets/twitter/_bootstrap.scss +2 -1
- data/vendor/assets/stylesheets/twitter/bootstrap/_accordion.sass +3 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.sass +14 -8
- data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.sass +9 -9
- data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.sass +71 -23
- data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.sass +81 -66
- data/vendor/assets/stylesheets/twitter/bootstrap/_carousel.sass +12 -3
- data/vendor/assets/stylesheets/twitter/bootstrap/_close.sass +4 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_code.sass +6 -4
- data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.sass +5 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.sass +76 -13
- data/vendor/assets/stylesheets/twitter/bootstrap/_forms.sass +84 -41
- data/vendor/assets/stylesheets/twitter/bootstrap/_grid.sass +13 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_hero-unit.sass +4 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_labels-badges.sass +15 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_layouts.sass +3 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.sass +107 -76
- data/vendor/assets/stylesheets/twitter/bootstrap/_modals.sass +8 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.sass +234 -134
- data/vendor/assets/stylesheets/twitter/bootstrap/_navs.sass +130 -96
- data/vendor/assets/stylesheets/twitter/bootstrap/_pager.sass +5 -4
- data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.sass +16 -8
- data/vendor/assets/stylesheets/twitter/bootstrap/_popovers.sass +92 -38
- data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.sass +18 -13
- data/vendor/assets/stylesheets/twitter/bootstrap/_reset.sass +6 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-1200px-min.sass +9 -7
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-767px-max.sass +75 -60
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-768px-979px.sass +7 -5
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-navbar.sass +15 -6
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-utilities.sass +17 -14
- data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.sass +24 -4
- data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.sass +13 -3
- data/vendor/assets/stylesheets/twitter/bootstrap/_tables.sass +50 -9
- data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.sass +9 -4
- data/vendor/assets/stylesheets/twitter/bootstrap/_tooltip.sass +46 -17
- data/vendor/assets/stylesheets/twitter/bootstrap/_type.sass +69 -67
- data/vendor/assets/stylesheets/twitter/bootstrap/_utilities.sass +8 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_variables.sass +95 -26
- data/vendor/assets/stylesheets/twitter/bootstrap/_wells.sass +6 -5
- metadata +4 -2
@@ -1,20 +1,22 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
//
|
2
|
+
// Responsive: Large desktop and up
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
3
5
|
|
4
6
|
@media (min-width: 1200px)
|
5
7
|
// Fixed grid
|
6
|
-
+core-grid-generate(
|
8
|
+
+core-grid-generate($gridColumnWidth1200, $gridGutterWidth1200)
|
7
9
|
|
8
10
|
// Fluid grid
|
9
|
-
+fluid-grid-generate(
|
11
|
+
+fluid-grid-generate($fluidGridColumnWidth1200, $fluidGridGutterWidth1200)
|
10
12
|
|
11
13
|
// Input grid
|
12
|
-
+input-grid-generate(
|
14
|
+
+input-grid-generate($gridColumnWidth1200, $gridGutterWidth1200)
|
13
15
|
|
14
16
|
// Thumbnails
|
15
17
|
.thumbnails
|
16
|
-
margin-left:
|
18
|
+
margin-left: -$gridGutterWidth1200
|
17
19
|
.thumbnails > li
|
18
|
-
margin-left:
|
20
|
+
margin-left: $gridGutterWidth1200
|
19
21
|
.row-fluid .thumbnails
|
20
22
|
margin-left: 0
|
@@ -1,65 +1,8 @@
|
|
1
|
-
//
|
2
|
-
//
|
3
|
-
|
4
|
-
@media (max-width: 480px)
|
5
|
-
// Smooth out the collapsing/expanding nav
|
6
|
-
.nav-collapse
|
7
|
-
-webkit-transform: translate3d(0, 0, 0) // activate the GPU
|
8
|
-
|
9
|
-
// Block level the page header small tag for readability
|
10
|
-
.page-header h1 small
|
11
|
-
display: block
|
12
|
-
line-height: $baseLineHeight
|
13
|
-
|
14
|
-
// Update checkboxes for iOS
|
15
|
-
input[type="checkbox"],
|
16
|
-
input[type="radio"]
|
17
|
-
border: 1px solid #ccc
|
18
|
-
|
19
|
-
// Remove the horizontal form styles
|
20
|
-
.form-horizontal .control-group > label
|
21
|
-
float: none
|
22
|
-
width: auto
|
23
|
-
padding-top: 0
|
24
|
-
text-align: left
|
25
|
-
|
26
|
-
// Move over all input controls and content
|
27
|
-
.form-horizontal .controls
|
28
|
-
margin-left: 0
|
29
|
-
|
30
|
-
// Move the options list down to align with labels
|
31
|
-
.form-horizontal .control-list
|
32
|
-
padding-top: 0 // has to be padding because margin collaspes
|
33
|
-
|
34
|
-
// Move over buttons in .form-actions to align with .controls
|
35
|
-
.form-horizontal .form-actions
|
36
|
-
padding-left: 10px
|
37
|
-
padding-right: 10px
|
38
|
-
|
39
|
-
// Modals
|
40
|
-
.modal
|
41
|
-
position: absolute
|
42
|
-
top: 10px
|
43
|
-
left: 10px
|
44
|
-
right: 10px
|
45
|
-
width: auto
|
46
|
-
margin: 0
|
47
|
-
&.fade.in
|
48
|
-
top: auto
|
49
|
-
|
50
|
-
.modal-header .close
|
51
|
-
padding: 10px
|
52
|
-
margin: -10px
|
53
|
-
|
54
|
-
// Carousel
|
55
|
-
.carousel-caption
|
56
|
-
position: static
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
// LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
|
1
|
+
//
|
2
|
+
// Responsive: Landscape phone to desktop/tablet
|
61
3
|
// --------------------------------------------------
|
62
4
|
|
5
|
+
|
63
6
|
@media (max-width: 767px)
|
64
7
|
// Padding to set content in a bit
|
65
8
|
body
|
@@ -102,6 +45,10 @@
|
|
102
45
|
.row,
|
103
46
|
.thumbnails
|
104
47
|
margin-left: 0
|
48
|
+
|
49
|
+
.thumbnails > li
|
50
|
+
float: none
|
51
|
+
margin-left: 0 // Reset the default margin for all li elements when no .span* classes are present
|
105
52
|
|
106
53
|
// Make all grid-sized elements block level again
|
107
54
|
[class*="span"],
|
@@ -110,6 +57,10 @@
|
|
110
57
|
display: block
|
111
58
|
width: auto
|
112
59
|
margin-left: 0
|
60
|
+
.span12,
|
61
|
+
.row-fluid .span12
|
62
|
+
width: 100%
|
63
|
+
+box-sizing(border-box)
|
113
64
|
|
114
65
|
// FORM FIELDS
|
115
66
|
// -----------
|
@@ -132,3 +83,67 @@
|
|
132
83
|
display: inline-block // redeclare so they don't wrap to new lines
|
133
84
|
width: auto
|
134
85
|
|
86
|
+
// Modals
|
87
|
+
.modal
|
88
|
+
position: fixed
|
89
|
+
top: 20px
|
90
|
+
left: 20px
|
91
|
+
right: 20px
|
92
|
+
width: auto
|
93
|
+
margin: 0
|
94
|
+
&.fade.in
|
95
|
+
top: auto
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
// UP TO LANDSCAPE PHONE
|
100
|
+
// ---------------------
|
101
|
+
|
102
|
+
@media (max-width: 480px)
|
103
|
+
// Smooth out the collapsing/expanding nav
|
104
|
+
.nav-collapse
|
105
|
+
-webkit-transform: translate3d(0, 0, 0) // activate the GPU
|
106
|
+
|
107
|
+
// Block level the page header small tag for readability
|
108
|
+
.page-header h1 small
|
109
|
+
display: block
|
110
|
+
line-height: $baseLineHeight
|
111
|
+
|
112
|
+
// Update checkboxes for iOS
|
113
|
+
input[type="checkbox"],
|
114
|
+
input[type="radio"]
|
115
|
+
border: 1px solid #ccc
|
116
|
+
|
117
|
+
// Remove the horizontal form styles
|
118
|
+
.form-horizontal .control-group > label
|
119
|
+
float: none
|
120
|
+
width: auto
|
121
|
+
padding-top: 0
|
122
|
+
text-align: left
|
123
|
+
|
124
|
+
// Move over all input controls and content
|
125
|
+
.form-horizontal .controls
|
126
|
+
margin-left: 0
|
127
|
+
|
128
|
+
// Move the options list down to align with labels
|
129
|
+
.form-horizontal .control-list
|
130
|
+
padding-top: 0 // has to be padding because margin collaspes
|
131
|
+
|
132
|
+
// Move over buttons in .form-actions to align with .controls
|
133
|
+
.form-horizontal .form-actions
|
134
|
+
padding-left: 10px
|
135
|
+
padding-right: 10px
|
136
|
+
|
137
|
+
// Modals
|
138
|
+
.modal
|
139
|
+
top: 10px
|
140
|
+
left: 10px
|
141
|
+
right: 10px
|
142
|
+
|
143
|
+
.modal-header .close
|
144
|
+
padding: 10px
|
145
|
+
margin: -10px
|
146
|
+
|
147
|
+
// Carousel
|
148
|
+
.carousel-caption
|
149
|
+
position: static
|
@@ -1,15 +1,17 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
//
|
2
|
+
// Responsive: Tablet to desktop
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
3
5
|
|
4
6
|
@media (min-width: 768px) and (max-width: 979px)
|
5
7
|
// Fixed grid
|
6
|
-
+core-grid-generate(
|
8
|
+
+core-grid-generate($gridColumnWidth768, $gridGutterWidth768)
|
7
9
|
|
8
10
|
// Fluid grid
|
9
|
-
+fluid-grid-generate(
|
11
|
+
+fluid-grid-generate($fluidGridColumnWidth768, $fluidGridGutterWidth768)
|
10
12
|
|
11
13
|
// Input grid
|
12
|
-
+input-grid-generate(
|
14
|
+
+input-grid-generate($gridColumnWidth768, $gridGutterWidth768)
|
13
15
|
|
14
16
|
// No need to reset .thumbnails here since it's the same $gridGutterWidth
|
15
17
|
|
@@ -1,13 +1,18 @@
|
|
1
|
+
//
|
2
|
+
// Responsive: Navbar
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
1
6
|
// TABLETS AND BELOW
|
2
7
|
// -----------------
|
3
|
-
@media (max-width:
|
8
|
+
@media (max-width: $navbarCollapseWidth)
|
4
9
|
// UNFIX THE TOPBAR
|
5
10
|
// ----------------
|
6
11
|
// Remove any padding from the body
|
7
12
|
body
|
8
13
|
padding-top: 0
|
9
14
|
|
10
|
-
// Unfix the
|
15
|
+
// Unfix the navbars
|
11
16
|
.navbar-fixed-top,
|
12
17
|
.navbar-fixed-bottom
|
13
18
|
position: static
|
@@ -59,7 +64,7 @@
|
|
59
64
|
// Nav and dropdown links in navbar
|
60
65
|
.nav-collapse .nav > li > a,
|
61
66
|
.nav-collapse .dropdown-menu a
|
62
|
-
padding:
|
67
|
+
padding: 9px 15px
|
63
68
|
font-weight: bold
|
64
69
|
color: $navbarLinkColor
|
65
70
|
+border-radius(3px)
|
@@ -75,6 +80,10 @@
|
|
75
80
|
.nav-collapse .nav > li > a:hover,
|
76
81
|
.nav-collapse .dropdown-menu a:hover
|
77
82
|
background-color: $navbarBackground
|
83
|
+
|
84
|
+
.navbar-inverse .nav-collapse .nav > li > a:hover,
|
85
|
+
.navbar-inverse .nav-collapse .dropdown-menu a:hover
|
86
|
+
background-color: $navbarInverseBackground
|
78
87
|
|
79
88
|
// Buttons in the navbar
|
80
89
|
.nav-collapse.in .btn-group
|
@@ -134,13 +143,13 @@
|
|
134
143
|
.navbar-static .navbar-inner
|
135
144
|
padding-left: 10px
|
136
145
|
padding-right: 10px
|
137
|
-
|
138
|
-
|
146
|
+
|
139
147
|
|
140
148
|
// DEFAULT DESKTOP
|
141
149
|
// ---------------
|
142
150
|
|
143
151
|
@media (min-width: 980px)
|
152
|
+
// Required to make the collapsing navbar work on regular desktops
|
144
153
|
.nav-collapse.collapse
|
145
154
|
height: auto !important
|
146
|
-
|
155
|
+
overflow: visible !important
|
@@ -1,5 +1,7 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
//
|
2
|
+
// Responsive: Utility classes
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
3
5
|
|
4
6
|
// Hide from screenreaders and browsers
|
5
7
|
// Credit: HTML5 Boilerplate
|
@@ -15,36 +17,37 @@
|
|
15
17
|
display: none !important
|
16
18
|
.visible-tablet
|
17
19
|
display: none !important
|
18
|
-
//.visible-desktop // Don't set initially
|
19
20
|
//.hidden-phone
|
20
21
|
//.hidden-tablet
|
21
22
|
.hidden-desktop
|
22
23
|
display: none !important
|
24
|
+
.visible-desktop
|
25
|
+
display: inherit !important
|
23
26
|
|
24
|
-
//
|
25
|
-
@media (max-width:
|
26
|
-
// Show
|
27
|
-
.visible-phone
|
28
|
-
display: inherit !important // Use inherit to restore previous behavior
|
29
|
-
// Hide
|
30
|
-
.hidden-phone
|
31
|
-
display: none !important
|
27
|
+
// Tablets & small desktops only
|
28
|
+
@media (min-width: 768px) and (max-width: 979px)
|
32
29
|
// Hide everything else
|
33
30
|
.hidden-desktop
|
34
31
|
display: inherit !important
|
35
32
|
.visible-desktop
|
36
33
|
display: none !important
|
37
|
-
|
38
|
-
// Tablets & small desktops only
|
39
|
-
@media (min-width: 768px) and (max-width: 979px)
|
40
34
|
// Show
|
41
35
|
.visible-tablet
|
42
36
|
display: inherit !important
|
43
37
|
// Hide
|
44
38
|
.hidden-tablet
|
45
39
|
display: none !important
|
40
|
+
|
41
|
+
// Phones only
|
42
|
+
@media (max-width: 767px)
|
46
43
|
// Hide everything else
|
47
44
|
.hidden-desktop
|
48
45
|
display: inherit !important
|
49
46
|
.visible-desktop
|
50
47
|
display: none !important
|
48
|
+
// Show
|
49
|
+
.visible-phone
|
50
|
+
display: inherit !important // Use inherit to restore previous behavior
|
51
|
+
// Hide
|
52
|
+
.hidden-phone
|
53
|
+
display: none !important
|
@@ -1,9 +1,10 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
//
|
2
|
+
// Scaffolding
|
3
|
+
// --------------------------------------------------
|
3
4
|
|
4
5
|
|
5
6
|
// Body reset
|
6
|
-
//
|
7
|
+
// -------------------------
|
7
8
|
|
8
9
|
body
|
9
10
|
margin: 0
|
@@ -15,7 +16,7 @@ body
|
|
15
16
|
|
16
17
|
|
17
18
|
// Links
|
18
|
-
//
|
19
|
+
// -------------------------
|
19
20
|
|
20
21
|
a
|
21
22
|
color: $linkColor
|
@@ -23,3 +24,22 @@ a
|
|
23
24
|
a:hover
|
24
25
|
color: $linkColorHover
|
25
26
|
text-decoration: underline
|
27
|
+
|
28
|
+
|
29
|
+
// Images
|
30
|
+
// -------------------------
|
31
|
+
|
32
|
+
.img-rounded
|
33
|
+
+border-radius(6px)
|
34
|
+
|
35
|
+
.img-polaroid
|
36
|
+
padding: 4px
|
37
|
+
background-color: #fff
|
38
|
+
border: 1px solid #ccc
|
39
|
+
border: 1px solid rgba(0,0,0,.2)
|
40
|
+
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,.1)
|
41
|
+
-moz-box-shadow: 0 1px 3px rgba(0,0,0,.1)
|
42
|
+
box-shadow: 0 1px 3px rgba(0,0,0,.1)
|
43
|
+
|
44
|
+
.img-circle
|
45
|
+
+border-radius(500px)
|
@@ -1,5 +1,6 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
//
|
2
|
+
// Sprites
|
3
|
+
// --------------------------------------------------
|
3
4
|
|
4
5
|
|
5
6
|
// ICONS
|
@@ -23,7 +24,16 @@
|
|
23
24
|
background-image: image-url($iconSpritePath)
|
24
25
|
background-position: 14px 14px
|
25
26
|
background-repeat: no-repeat
|
26
|
-
|
27
|
+
margin-top: 1px
|
28
|
+
|
29
|
+
// White icons with optional class, or on hover/active states of certain elements
|
30
|
+
.icon-white,
|
31
|
+
.nav > .active > a > [class^="icon-"],
|
32
|
+
.nav > .active > a > [class*=" icon-"],
|
33
|
+
.dropdown-menu > li > a:hover > [class^="icon-"],
|
34
|
+
.dropdown-menu > li > a:hover > [class*=" icon-"],
|
35
|
+
.dropdown-menu > .active > a > [class^="icon-"],
|
36
|
+
.dropdown-menu > .active > a > [class*=" icon-"]
|
27
37
|
background-image: image-url($iconWhiteSpritePath)
|
28
38
|
|
29
39
|
.icon-glass
|
@@ -1,5 +1,6 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
//
|
2
|
+
// Tables
|
3
|
+
// --------------------------------------------------
|
3
4
|
|
4
5
|
|
5
6
|
// BASE TABLES
|
@@ -59,7 +60,7 @@ table
|
|
59
60
|
.table-bordered
|
60
61
|
border: 1px solid $tableBorder
|
61
62
|
border-collapse: separate // Done so we can round those corners!
|
62
|
-
*border-collapse:
|
63
|
+
*border-collapse: collapse // IE7 can't round corners anyway
|
63
64
|
border-left: 0
|
64
65
|
+border-radius(4px)
|
65
66
|
th,
|
@@ -89,16 +90,34 @@ table
|
|
89
90
|
-moz-border-radius-topright: 4px
|
90
91
|
// For first th or td in the first row in the first thead or tbody
|
91
92
|
thead:last-child tr:last-child th:first-child,
|
92
|
-
tbody:last-child tr:last-child td:first-child
|
93
|
+
tbody:last-child tr:last-child td:first-child,
|
94
|
+
tfoot:last-child tr:last-child td:first-child
|
93
95
|
-webkit-border-bottom-left-radius: 4px
|
94
96
|
border-bottom-left-radius: 4px
|
95
97
|
-moz-border-radius-bottomleft: 4px
|
96
98
|
thead:last-child tr:last-child th:last-child,
|
97
|
-
tbody:last-child tr:last-child td:last-child
|
99
|
+
tbody:last-child tr:last-child td:last-child,
|
100
|
+
tfoot:last-child tr:last-child td:last-child
|
98
101
|
-webkit-border-bottom-right-radius: 4px
|
99
102
|
border-bottom-right-radius: 4px
|
100
103
|
-moz-border-radius-bottomright: 4px
|
101
104
|
|
105
|
+
// Special fixes to round the left border on the first td/th
|
106
|
+
caption + thead tr:first-child th:first-child,
|
107
|
+
caption + tbody tr:first-child td:first-child,
|
108
|
+
colgroup + thead tr:first-child th:first-child,
|
109
|
+
colgroup + tbody tr:first-child td:first-child
|
110
|
+
-webkit-border-top-left-radius: 4px
|
111
|
+
border-top-left-radius: 4px
|
112
|
+
-moz-border-radius-topleft: 4px
|
113
|
+
caption + thead tr:first-child th:last-child,
|
114
|
+
caption + tbody tr:first-child td:last-child,
|
115
|
+
colgroup + thead tr:first-child th:last-child,
|
116
|
+
colgroup + tbody tr:first-child td:last-child
|
117
|
+
-webkit-border-top-right-radius: 4px
|
118
|
+
border-top-right-radius: 4px
|
119
|
+
-moz-border-right-topleft: 4px
|
120
|
+
|
102
121
|
|
103
122
|
// ZEBRA-STRIPING
|
104
123
|
// --------------
|
@@ -114,15 +133,24 @@ table
|
|
114
133
|
// HOVER EFFECT
|
115
134
|
// ------------
|
116
135
|
// Placed here since it has to come after the potential zebra striping
|
117
|
-
.table
|
118
|
-
tbody
|
119
|
-
|
120
|
-
|
136
|
+
.table-hover
|
137
|
+
tbody
|
138
|
+
tr:hover td,
|
139
|
+
tr:hover th
|
140
|
+
background-color: $tableBackgroundHover
|
121
141
|
|
122
142
|
|
123
143
|
// TABLE CELL SIZING
|
124
144
|
// -----------------
|
125
145
|
|
146
|
+
// Reset default grid behavior
|
147
|
+
table [class*=span],
|
148
|
+
.row-fluid table [class*=span]
|
149
|
+
display: table-cell
|
150
|
+
float: none // undo default grid column styles
|
151
|
+
margin-left: 0 // undo default grid column styles
|
152
|
+
|
153
|
+
// Change the column widths to account for td/th padding
|
126
154
|
table
|
127
155
|
.span1
|
128
156
|
+table-columns(1)
|
@@ -172,3 +200,16 @@ table
|
|
172
200
|
+table-columns(23)
|
173
201
|
.span24
|
174
202
|
+table-columns(24)
|
203
|
+
|
204
|
+
|
205
|
+
// TABLE BACKGROUNDS
|
206
|
+
// -----------------
|
207
|
+
// Exact selectors below required to override .table-striped
|
208
|
+
|
209
|
+
.table
|
210
|
+
tbody tr.success td
|
211
|
+
background-color: $successBackground
|
212
|
+
tbody tr.error td
|
213
|
+
background-color: $errorBackground
|
214
|
+
tbody tr.info td
|
215
|
+
background-color: $infoBackground
|
@@ -1,5 +1,8 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
//
|
2
|
+
// Thumbnails
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
3
6
|
// Note: `.thumbnails` and `.thumbnails > li` are overriden in responsive files
|
4
7
|
|
5
8
|
// Make wrapper ul behave like the grid
|
@@ -22,10 +25,11 @@
|
|
22
25
|
.thumbnail
|
23
26
|
display: block
|
24
27
|
padding: 4px
|
25
|
-
line-height:
|
28
|
+
line-height: $baseLineHeight
|
26
29
|
border: 1px solid #ddd
|
27
30
|
+border-radius(4px)
|
28
|
-
+box-shadow(0 1px
|
31
|
+
+box-shadow(0 1px 3px rgba(0,0,0,.055))
|
32
|
+
+transition(all .2s ease-in-out)
|
29
33
|
|
30
34
|
// Add a hover state for linked versions only
|
31
35
|
a.thumbnail:hover
|
@@ -41,3 +45,4 @@ a.thumbnail:hover
|
|
41
45
|
|
42
46
|
.thumbnail .caption
|
43
47
|
padding: 9px
|
48
|
+
color: $gray
|
@@ -1,6 +1,9 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
//
|
2
|
+
// Tooltips
|
3
|
+
// --------------------------------------------------
|
3
4
|
|
5
|
+
|
6
|
+
// Base class
|
4
7
|
.tooltip
|
5
8
|
position: absolute
|
6
9
|
z-index: $zindexTooltip
|
@@ -12,32 +15,58 @@
|
|
12
15
|
&.in
|
13
16
|
+opacity(80)
|
14
17
|
&.top
|
15
|
-
margin-top: -
|
18
|
+
margin-top: -3px
|
16
19
|
&.right
|
17
|
-
margin-left:
|
20
|
+
margin-left: 3px
|
18
21
|
&.bottom
|
19
|
-
margin-top:
|
22
|
+
margin-top: 3px
|
20
23
|
&.left
|
21
|
-
margin-left: -
|
22
|
-
|
23
|
-
|
24
|
-
&.left .tooltip-arrow
|
25
|
-
+popover-arrow-left
|
26
|
-
&.bottom .tooltip-arrow
|
27
|
-
+popover-arrow-bottom
|
28
|
-
&.right .tooltip-arrow
|
29
|
-
+popover-arrow-right
|
30
|
-
|
24
|
+
margin-left: -3px
|
25
|
+
|
26
|
+
// Wrapper for the tooltip content
|
31
27
|
.tooltip-inner
|
32
28
|
max-width: 200px
|
33
29
|
padding: 3px 8px
|
34
|
-
color: $
|
30
|
+
color: $tooltipColor
|
35
31
|
text-align: center
|
36
32
|
text-decoration: none
|
37
|
-
background-color: $
|
33
|
+
background-color: $tooltipBackground
|
38
34
|
+border-radius(4px)
|
39
35
|
|
36
|
+
// Arrows
|
40
37
|
.tooltip-arrow
|
41
38
|
position: absolute
|
42
39
|
width: 0
|
43
40
|
height: 0
|
41
|
+
border-color: transparent
|
42
|
+
border-style: solid
|
43
|
+
|
44
|
+
.tooltip
|
45
|
+
&.top .tooltip-arrow
|
46
|
+
bottom: 0
|
47
|
+
left: 50%
|
48
|
+
margin-left: -$tooltipArrowWidth
|
49
|
+
border-width: $tooltipArrowWidth $tooltipArrowWidth 0
|
50
|
+
border-top-color: $tooltipArrowColor
|
51
|
+
|
52
|
+
&.right .tooltip-arrow
|
53
|
+
top: 50%
|
54
|
+
left: 0
|
55
|
+
margin-top: -$tooltipArrowWidth
|
56
|
+
border-width: $tooltipArrowWidth $tooltipArrowWidth $tooltipArrowWidth 0
|
57
|
+
border-right-color: $tooltipArrowColor
|
58
|
+
|
59
|
+
&.left .tooltip-arrow
|
60
|
+
top: 50%
|
61
|
+
right: 0
|
62
|
+
margin-top: -$tooltipArrowWidth
|
63
|
+
border-width: $tooltipArrowWidth 0 $tooltipArrowWidth $tooltipArrowWidth
|
64
|
+
border-left-color: $tooltipArrowColor
|
65
|
+
|
66
|
+
&.bottom .tooltip-arrow
|
67
|
+
top: 0
|
68
|
+
left: 50%
|
69
|
+
margin-left: -$tooltipArrowWidth
|
70
|
+
border-width: 0 $tooltipArrowWidth $tooltipArrowWidth
|
71
|
+
border-bottom-color: $tooltipArrowColor
|
72
|
+
|