sass-rails-bootstrap 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +13 -0
- data/README.md +99 -0
- data/Rakefile +38 -0
- data/lib/sass-rails-bootstrap/engine.rb +4 -0
- data/lib/sass-rails-bootstrap/version.rb +3 -0
- data/lib/sass-rails-bootstrap.rb +5 -0
- data/lib/tasks/sass-rails-bootstrap_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +56 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +2 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/sass-rails-bootstrap_test.rb +7 -0
- data/test/test_helper.rb +10 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap/alert.js +94 -0
- data/vendor/assets/javascripts/twitter/bootstrap/button.js +100 -0
- data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +161 -0
- data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +138 -0
- data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +92 -0
- data/vendor/assets/javascripts/twitter/bootstrap/modal.js +210 -0
- data/vendor/assets/javascripts/twitter/bootstrap/popover.js +95 -0
- data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +125 -0
- data/vendor/assets/javascripts/twitter/bootstrap/tab.js +130 -0
- data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +270 -0
- data/vendor/assets/javascripts/twitter/bootstrap/transition.js +51 -0
- data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +271 -0
- data/vendor/assets/javascripts/twitter/bootstrap.js +12 -0
- data/vendor/assets/stylesheets/twitter/_bootstrap.scss +66 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_accordion.sass +26 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.sass +54 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_badges.sass +44 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.sass +20 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.sass +155 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.sass +161 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_carousel.sass +105 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_close.sass +16 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_code.sass +48 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.sass +16 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.sass +130 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_forms.sass +492 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_grid.sass +8 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_hero-unit.sass +19 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_labels.sass +45 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_layouts.sass +13 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.sass +517 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_modals.sass +87 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.sass +300 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navs.sass +332 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pager.sass +29 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.sass +45 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_popovers.sass +54 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.sass +105 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_reset.sass +115 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive.sass +333 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.sass +25 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.sass +273 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_tables.sass +158 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.sass +34 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_tooltip.sass +43 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_type.sass +209 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_utilities.sass +19 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_variables.sass +199 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_wells.sass +23 -0
- metadata +183 -0
@@ -0,0 +1,300 @@
|
|
1
|
+
// NAVBAR (FIXED AND STATIC)
|
2
|
+
// -------------------------
|
3
|
+
|
4
|
+
|
5
|
+
// COMMON STYLES
|
6
|
+
// -------------
|
7
|
+
|
8
|
+
.navbar
|
9
|
+
// Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
|
10
|
+
*position: relative
|
11
|
+
*z-index: 2
|
12
|
+
|
13
|
+
overflow: visible
|
14
|
+
margin-bottom: $baseLineHeight
|
15
|
+
|
16
|
+
// Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
|
17
|
+
.navbar-inner
|
18
|
+
padding-left: 20px
|
19
|
+
padding-right: 20px
|
20
|
+
+gradient-vertical($navbarBackgroundHighlight, $navbarBackground)
|
21
|
+
+border-radius(4px)
|
22
|
+
$shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1)
|
23
|
+
+box-shadow($shadow)
|
24
|
+
|
25
|
+
// Set width to auto for default container
|
26
|
+
// We then reset it for fixed navbars in the +grid-generate mixin
|
27
|
+
.navbar .container
|
28
|
+
width: auto
|
29
|
+
|
30
|
+
// Navbar button for toggling navbar items in responsive layouts
|
31
|
+
.btn-navbar
|
32
|
+
display: none
|
33
|
+
float: right
|
34
|
+
padding: 7px 10px
|
35
|
+
margin-left: 5px
|
36
|
+
margin-right: 5px
|
37
|
+
+button-background($navbarBackgroundHighlight, $navbarBackground)
|
38
|
+
$shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)
|
39
|
+
+box-shadow($shadow)
|
40
|
+
|
41
|
+
.btn-navbar .icon-bar
|
42
|
+
display: block
|
43
|
+
width: 18px
|
44
|
+
height: 2px
|
45
|
+
background-color: #f5f5f5
|
46
|
+
+border-radius(1px)
|
47
|
+
+box-shadow(0 1px 0 rgba(0,0,0,.25))
|
48
|
+
|
49
|
+
.btn-navbar .icon-bar + .icon-bar
|
50
|
+
margin-top: 3px
|
51
|
+
|
52
|
+
// Override the default collapsed state
|
53
|
+
.nav-collapse.collapse
|
54
|
+
height: auto
|
55
|
+
|
56
|
+
|
57
|
+
// Brand, links, text, and buttons
|
58
|
+
.navbar
|
59
|
+
color: $navbarText
|
60
|
+
// Hover and active states
|
61
|
+
.brand:hover
|
62
|
+
text-decoration: none
|
63
|
+
// Website or project name
|
64
|
+
.brand
|
65
|
+
float: left
|
66
|
+
display: block
|
67
|
+
padding: 8px 20px 12px
|
68
|
+
margin-left: -20px // negative indent to left-align the text down the page
|
69
|
+
font-size: 20px
|
70
|
+
font-weight: 200
|
71
|
+
line-height: 1
|
72
|
+
color: $white
|
73
|
+
// Plain text in topbar
|
74
|
+
.navbar-text
|
75
|
+
margin-bottom: 0
|
76
|
+
line-height: $navbarHeight
|
77
|
+
// Buttons in navbar
|
78
|
+
.btn,
|
79
|
+
.btn-group
|
80
|
+
+navbar-vertical-align(30px) // vertically center in navbar
|
81
|
+
.btn-group .btn
|
82
|
+
margin-top: 0 // then undo the margin here so we don't accidentally double it
|
83
|
+
|
84
|
+
// Navbar forms
|
85
|
+
.navbar-form
|
86
|
+
margin-bottom: 0 // remove default bottom margin
|
87
|
+
+clearfix
|
88
|
+
input,
|
89
|
+
select,
|
90
|
+
.radio,
|
91
|
+
.checkbox
|
92
|
+
+navbar-vertical-align(30px) // vertically center in navbar
|
93
|
+
input,
|
94
|
+
select
|
95
|
+
display: inline-block
|
96
|
+
margin-bottom: 0
|
97
|
+
input[type="image"],
|
98
|
+
input[type="checkbox"],
|
99
|
+
input[type="radio"]
|
100
|
+
margin-top: 3px
|
101
|
+
.input-append,
|
102
|
+
.input-prepend
|
103
|
+
margin-top: 6px
|
104
|
+
white-space: nowrap // prevent two items from separating within a .navbar-form that has .pull-left
|
105
|
+
input
|
106
|
+
margin-top: 0 // remove the margin on top since it's on the parent
|
107
|
+
|
108
|
+
// Navbar search
|
109
|
+
.navbar-search
|
110
|
+
position: relative
|
111
|
+
float: left
|
112
|
+
+navbar-vertical-align(28px) // vertically center in navbar
|
113
|
+
margin-bottom: 0
|
114
|
+
.search-query
|
115
|
+
padding: 4px 9px
|
116
|
+
+font-sans-serif(13px, normal, 1)
|
117
|
+
color: $white
|
118
|
+
background-color: $navbarSearchBackground
|
119
|
+
border: 1px solid $navbarSearchBorder
|
120
|
+
$shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.15)
|
121
|
+
+box-shadow($shadow)
|
122
|
+
+transition(none)
|
123
|
+
|
124
|
+
// Placeholder text gets special styles; can't be a grouped selector
|
125
|
+
&:-moz-placeholder
|
126
|
+
color: $navbarSearchPlaceholderColor
|
127
|
+
&::-webkit-input-placeholder
|
128
|
+
color: $navbarSearchPlaceholderColor
|
129
|
+
|
130
|
+
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
131
|
+
&:focus,
|
132
|
+
&.focused
|
133
|
+
padding: 5px 10px
|
134
|
+
color: $grayDark
|
135
|
+
text-shadow: 0 1px 0 $white
|
136
|
+
background-color: $navbarSearchBackgroundFocus
|
137
|
+
border: 0
|
138
|
+
+box-shadow(0 0 3px rgba(0,0,0,.15))
|
139
|
+
outline: 0
|
140
|
+
|
141
|
+
|
142
|
+
// FIXED NAVBAR
|
143
|
+
// ------------
|
144
|
+
|
145
|
+
// Shared (top/bottom) styles
|
146
|
+
.navbar-fixed-top,
|
147
|
+
.navbar-fixed-bottom
|
148
|
+
position: fixed
|
149
|
+
right: 0
|
150
|
+
left: 0
|
151
|
+
z-index: $zindexFixedNavbar
|
152
|
+
margin-bottom: 0 // remove 18px margin for static navbar
|
153
|
+
|
154
|
+
.navbar-fixed-top .navbar-inner,
|
155
|
+
.navbar-fixed-bottom .navbar-inner
|
156
|
+
padding-left: 0
|
157
|
+
padding-right: 0
|
158
|
+
+border-radius(0)
|
159
|
+
|
160
|
+
.navbar-fixed-top .container,
|
161
|
+
.navbar-fixed-bottom .container
|
162
|
+
+core-grid-span($gridColumns, $gridColumnWidth, $gridGutterWidth)
|
163
|
+
|
164
|
+
// Fixed to top
|
165
|
+
.navbar-fixed-top
|
166
|
+
top: 0
|
167
|
+
|
168
|
+
// Fixed to bottom
|
169
|
+
.navbar-fixed-bottom
|
170
|
+
bottom: 0
|
171
|
+
|
172
|
+
|
173
|
+
// NAVIGATION
|
174
|
+
// ----------
|
175
|
+
|
176
|
+
.navbar .nav
|
177
|
+
position: relative
|
178
|
+
left: 0
|
179
|
+
display: block
|
180
|
+
float: left
|
181
|
+
margin: 0 10px 0 0
|
182
|
+
|
183
|
+
.navbar .nav.pull-right
|
184
|
+
float: right // redeclare due to specificity
|
185
|
+
|
186
|
+
.navbar .nav > li
|
187
|
+
display: block
|
188
|
+
float: left
|
189
|
+
|
190
|
+
// Links
|
191
|
+
.navbar .nav > li > a
|
192
|
+
float: none
|
193
|
+
padding: 10px 10px 11px
|
194
|
+
line-height: 19px
|
195
|
+
color: $navbarLinkColor
|
196
|
+
text-decoration: none
|
197
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25)
|
198
|
+
|
199
|
+
// Hover
|
200
|
+
.navbar .nav > li > a:hover
|
201
|
+
background-color: $navbarLinkBackgroundHover // "transparent" is default to differentiate :hover from .active
|
202
|
+
color: $navbarLinkColorHover
|
203
|
+
text-decoration: none
|
204
|
+
|
205
|
+
// Active nav items
|
206
|
+
.navbar .nav .active > a,
|
207
|
+
.navbar .nav .active > a:hover
|
208
|
+
color: $navbarLinkColorActive
|
209
|
+
text-decoration: none
|
210
|
+
background-color: $navbarLinkBackgroundActive
|
211
|
+
background-color: rgba(0,0,0,.5)
|
212
|
+
|
213
|
+
// Dividers (basically a vertical hr)
|
214
|
+
.navbar .divider-vertical
|
215
|
+
height: $navbarHeight
|
216
|
+
width: 1px
|
217
|
+
margin: 0 9px
|
218
|
+
overflow: hidden
|
219
|
+
background-color: $navbarBackground
|
220
|
+
border-right: 1px solid $navbarBackgroundHighlight
|
221
|
+
|
222
|
+
// Secondary (floated right) nav in topbar
|
223
|
+
.navbar .nav.pull-right
|
224
|
+
margin-left: 10px
|
225
|
+
margin-right: 0
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
// Dropdown menus
|
230
|
+
// --------------
|
231
|
+
|
232
|
+
// Menu position and menu carets
|
233
|
+
.navbar .dropdown-menu
|
234
|
+
margin-top: 1px
|
235
|
+
+border-radius(4px)
|
236
|
+
&:before
|
237
|
+
content: ''
|
238
|
+
display: inline-block
|
239
|
+
border-left: 7px solid transparent
|
240
|
+
border-right: 7px solid transparent
|
241
|
+
border-bottom: 7px solid #ccc
|
242
|
+
border-bottom-color: $dropdownBorder
|
243
|
+
position: absolute
|
244
|
+
top: -7px
|
245
|
+
left: 9px
|
246
|
+
&:after
|
247
|
+
content: ''
|
248
|
+
display: inline-block
|
249
|
+
border-left: 6px solid transparent
|
250
|
+
border-right: 6px solid transparent
|
251
|
+
border-bottom: 6px solid $dropdownBackground
|
252
|
+
position: absolute
|
253
|
+
top: -6px
|
254
|
+
left: 10px
|
255
|
+
|
256
|
+
// Menu position and menu caret support for dropups via extra dropup class
|
257
|
+
.navbar-fixed-bottom .dropdown-menu
|
258
|
+
&:before
|
259
|
+
border-top: 7px solid #ccc
|
260
|
+
border-top-color: $dropdownBorder
|
261
|
+
border-bottom: 0
|
262
|
+
bottom: -7px
|
263
|
+
top: auto
|
264
|
+
&:after
|
265
|
+
border-top: 6px solid $dropdownBackground
|
266
|
+
border-bottom: 0
|
267
|
+
bottom: -6px
|
268
|
+
top: auto
|
269
|
+
|
270
|
+
// Dropdown toggle caret
|
271
|
+
.navbar .nav .dropdown-toggle .caret,
|
272
|
+
.navbar .nav .open.dropdown .caret
|
273
|
+
border-top-color: $white
|
274
|
+
border-bottom-color: $white
|
275
|
+
.navbar .nav .active .caret
|
276
|
+
+opacity(100)
|
277
|
+
|
278
|
+
// Remove background color from open dropdown
|
279
|
+
.navbar .nav .open > .dropdown-toggle,
|
280
|
+
.navbar .nav .active > .dropdown-toggle,
|
281
|
+
.navbar .nav .open.active > .dropdown-toggle
|
282
|
+
background-color: transparent
|
283
|
+
|
284
|
+
// Dropdown link on hover
|
285
|
+
.navbar .nav .active > .dropdown-toggle:hover
|
286
|
+
color: $white
|
287
|
+
|
288
|
+
// Right aligned menus need alt position
|
289
|
+
// TODO: rejigger this at some point to simplify the selectors
|
290
|
+
.navbar .nav.pull-right .dropdown-menu,
|
291
|
+
.navbar .nav .dropdown-menu.pull-right
|
292
|
+
left: auto
|
293
|
+
right: 0
|
294
|
+
&:before
|
295
|
+
left: auto
|
296
|
+
right: 12px
|
297
|
+
&:after
|
298
|
+
left: auto
|
299
|
+
right: 13px
|
300
|
+
|
@@ -0,0 +1,332 @@
|
|
1
|
+
// NAVIGATIONS
|
2
|
+
// -----------
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
// BASE CLASS
|
7
|
+
// ----------
|
8
|
+
|
9
|
+
.nav
|
10
|
+
margin-left: 0
|
11
|
+
margin-bottom: $baseLineHeight
|
12
|
+
list-style: none
|
13
|
+
|
14
|
+
// Make links block level
|
15
|
+
.nav > li > a
|
16
|
+
display: block
|
17
|
+
|
18
|
+
.nav > li > a:hover
|
19
|
+
text-decoration: none
|
20
|
+
background-color: $grayLighter
|
21
|
+
|
22
|
+
// Nav headers (for dropdowns and lists)
|
23
|
+
.nav .nav-header
|
24
|
+
display: block
|
25
|
+
padding: 3px 15px
|
26
|
+
font-size: 11px
|
27
|
+
font-weight: bold
|
28
|
+
line-height: $baseLineHeight
|
29
|
+
color: $grayLight
|
30
|
+
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5)
|
31
|
+
text-transform: uppercase
|
32
|
+
|
33
|
+
// Space them out when they follow another list item (link)
|
34
|
+
.nav li + .nav-header
|
35
|
+
margin-top: 9px
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
// NAV LIST
|
40
|
+
// --------
|
41
|
+
|
42
|
+
.nav-list
|
43
|
+
padding-left: 15px
|
44
|
+
padding-right: 15px
|
45
|
+
margin-bottom: 0
|
46
|
+
|
47
|
+
.nav-list > li > a,
|
48
|
+
.nav-list .nav-header
|
49
|
+
margin-left: -15px
|
50
|
+
margin-right: -15px
|
51
|
+
text-shadow: 0 1px 0 rgba(255,255,255,.5)
|
52
|
+
|
53
|
+
.nav-list > li > a
|
54
|
+
padding: 3px 15px
|
55
|
+
|
56
|
+
.nav-list > .active > a
|
57
|
+
.nav-list > .active > a:hover
|
58
|
+
color: $white
|
59
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.2)
|
60
|
+
background-color: $linkColor
|
61
|
+
|
62
|
+
.nav-list [class^="icon-"],
|
63
|
+
.nav-list [class*=" icon-"]
|
64
|
+
margin-right: 2px
|
65
|
+
|
66
|
+
// Dividers (basically an hr) within the dropdown
|
67
|
+
.nav-list .divider
|
68
|
+
+nav-divider
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
// TABS AND PILLS
|
73
|
+
// -------------
|
74
|
+
|
75
|
+
// Common styles
|
76
|
+
.nav-tabs,
|
77
|
+
.nav-pills
|
78
|
+
+clearfix
|
79
|
+
> li
|
80
|
+
float: left
|
81
|
+
> a
|
82
|
+
padding-right: 12px
|
83
|
+
padding-left: 12px
|
84
|
+
margin-right: 2px
|
85
|
+
line-height: 14px // keeps the overall height an even number
|
86
|
+
|
87
|
+
// TABS
|
88
|
+
// ----
|
89
|
+
|
90
|
+
// Give the tabs something to sit on
|
91
|
+
.nav-tabs
|
92
|
+
border-bottom: 1px solid #ddd
|
93
|
+
|
94
|
+
// Make the list-items overlay the bottom border
|
95
|
+
> li
|
96
|
+
margin-bottom: -1px
|
97
|
+
|
98
|
+
// Actual tabs (as links)
|
99
|
+
> a
|
100
|
+
padding-top: 8px
|
101
|
+
padding-bottom: 8px
|
102
|
+
line-height: $baseLineHeight
|
103
|
+
border: 1px solid transparent
|
104
|
+
+border-radius(4px 4px 0 0)
|
105
|
+
&:hover
|
106
|
+
border-color: $grayLighter $grayLighter #ddd
|
107
|
+
|
108
|
+
// Active state, and it's :hover to override normal :hover
|
109
|
+
> .active > a,
|
110
|
+
> .active > a:hover
|
111
|
+
color: $gray
|
112
|
+
background-color: $white
|
113
|
+
border: 1px solid #ddd
|
114
|
+
border-bottom-color: transparent
|
115
|
+
cursor: default
|
116
|
+
|
117
|
+
// PILLS
|
118
|
+
// -----
|
119
|
+
|
120
|
+
// Links rendered as pills
|
121
|
+
.nav-pills
|
122
|
+
> li > a
|
123
|
+
padding-top: 8px
|
124
|
+
padding-bottom: 8px
|
125
|
+
margin-top: 2px
|
126
|
+
margin-bottom: 2px
|
127
|
+
+border-radius(5px)
|
128
|
+
|
129
|
+
// Active state
|
130
|
+
> .active > a,
|
131
|
+
> .active > a:hover
|
132
|
+
color: $white
|
133
|
+
background-color: $linkColor
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
// STACKED NAV
|
138
|
+
// -----------
|
139
|
+
|
140
|
+
// Stacked tabs and pills
|
141
|
+
.nav-stacked
|
142
|
+
> li
|
143
|
+
float: none
|
144
|
+
> a
|
145
|
+
margin-right: 0 // no need for the gap between nav items
|
146
|
+
|
147
|
+
// Tabs
|
148
|
+
.tabs-stacked
|
149
|
+
border-bottom: 0
|
150
|
+
> li > a
|
151
|
+
border: 1px solid #ddd
|
152
|
+
+border-radius(0)
|
153
|
+
> li:first-child > a
|
154
|
+
+border-radius(4px 4px 0 0)
|
155
|
+
> li:last-child > a
|
156
|
+
+border-radius(0 0 4px 4px)
|
157
|
+
> li > a:hover
|
158
|
+
border-color: #ddd
|
159
|
+
z-index: 2
|
160
|
+
|
161
|
+
|
162
|
+
// Pills
|
163
|
+
.pills-stacked
|
164
|
+
> li > a
|
165
|
+
margin-bottom: 3px
|
166
|
+
> li:last-child > a
|
167
|
+
margin-bottom: 1px // decrease margin to match sizing of stacked tabs
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
// DROPDOWNS
|
172
|
+
// ---------
|
173
|
+
|
174
|
+
// Position the menu
|
175
|
+
.nav-tabs .dropdown-menu,
|
176
|
+
.nav-pills .dropdown-menu
|
177
|
+
margin-top: 1px
|
178
|
+
border-width: 1px
|
179
|
+
|
180
|
+
.nav-pills .dropdown-menu
|
181
|
+
+border-radius(4px)
|
182
|
+
|
183
|
+
// Default dropdown links
|
184
|
+
// -------------------------
|
185
|
+
// Make carets use linkColor to start
|
186
|
+
.nav-tabs .dropdown-toggle .caret,
|
187
|
+
.nav-pills .dropdown-toggle .caret
|
188
|
+
border-top-color: $linkColor
|
189
|
+
border-bottom-color: $linkColor
|
190
|
+
margin-top: 6px
|
191
|
+
|
192
|
+
.nav-tabs .dropdown-toggle:hover .caret,
|
193
|
+
.nav-pills .dropdown-toggle:hover .caret
|
194
|
+
border-top-color: $linkColorHover
|
195
|
+
border-bottom-color: $linkColorHover
|
196
|
+
|
197
|
+
// Active dropdown links
|
198
|
+
// -------------------------
|
199
|
+
.nav-tabs .active .dropdown-toggle .caret,
|
200
|
+
.nav-pills .active .dropdown-toggle .caret
|
201
|
+
border-top-color: $grayDark
|
202
|
+
border-bottom-color: $grayDark
|
203
|
+
|
204
|
+
// Active:hover dropdown links
|
205
|
+
// -------------------------
|
206
|
+
.nav > .dropdown.active > a:hover
|
207
|
+
color: $black
|
208
|
+
cursor: pointer
|
209
|
+
|
210
|
+
// Open dropdowns
|
211
|
+
// -------------------------
|
212
|
+
.nav-tabs .open .dropdown-toggle,
|
213
|
+
.nav-pills .open .dropdown-toggle,
|
214
|
+
.nav > .open.active > a:hover
|
215
|
+
color: $white
|
216
|
+
background-color: $grayLight
|
217
|
+
border-color: $grayLight
|
218
|
+
|
219
|
+
.nav .open .caret,
|
220
|
+
.nav .open.active .caret,
|
221
|
+
.nav .open a:hover .caret
|
222
|
+
border-top-color: $white
|
223
|
+
border-bottom-color: $white
|
224
|
+
+opacity(100)
|
225
|
+
|
226
|
+
// Dropdowns in stacked tabs
|
227
|
+
.tabs-stacked .open > a:hover
|
228
|
+
border-color: $grayLight
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
// TABBABLE
|
233
|
+
// --------
|
234
|
+
|
235
|
+
|
236
|
+
// COMMON STYLES
|
237
|
+
// -------------
|
238
|
+
|
239
|
+
// Clear any floats
|
240
|
+
.tabbable
|
241
|
+
+clearfix
|
242
|
+
|
243
|
+
.tab-content
|
244
|
+
display: table // prevent content from running below tabs
|
245
|
+
width: 100%
|
246
|
+
|
247
|
+
// Remove border on bottom, left, right
|
248
|
+
.tabs-below .nav-tabs,
|
249
|
+
.tabs-right .nav-tabs,
|
250
|
+
.tabs-left .nav-tabs
|
251
|
+
border-bottom: 0
|
252
|
+
|
253
|
+
// Show/hide tabbable areas
|
254
|
+
.tab-content > .tab-pane,
|
255
|
+
.pill-content > .pill-pane
|
256
|
+
display: none
|
257
|
+
|
258
|
+
.tab-content > .active,
|
259
|
+
.pill-content > .active
|
260
|
+
display: block
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
// BOTTOM
|
265
|
+
// ------
|
266
|
+
|
267
|
+
.tabs-below .nav-tabs
|
268
|
+
border-top: 1px solid #ddd
|
269
|
+
|
270
|
+
.tabs-below .nav-tabs > li
|
271
|
+
margin-top: -1px
|
272
|
+
margin-bottom: 0
|
273
|
+
|
274
|
+
.tabs-below .nav-tabs > li > a
|
275
|
+
+border-radius(0 0 4px 4px)
|
276
|
+
&:hover
|
277
|
+
border-bottom-color: transparent
|
278
|
+
border-top-color: #ddd
|
279
|
+
|
280
|
+
.tabs-below .nav-tabs .active > a,
|
281
|
+
.tabs-below .nav-tabs .active > a:hover
|
282
|
+
border-color: transparent #ddd #ddd #ddd
|
283
|
+
|
284
|
+
// LEFT & RIGHT
|
285
|
+
// ------------
|
286
|
+
|
287
|
+
// Common styles
|
288
|
+
.tabs-left .nav-tabs > li,
|
289
|
+
.tabs-right .nav-tabs > li
|
290
|
+
float: none
|
291
|
+
|
292
|
+
.tabs-left .nav-tabs > li > a,
|
293
|
+
.tabs-right .nav-tabs > li > a
|
294
|
+
min-width: 74px
|
295
|
+
margin-right: 0
|
296
|
+
margin-bottom: 3px
|
297
|
+
|
298
|
+
// Tabs on the left
|
299
|
+
.tabs-left .nav-tabs
|
300
|
+
float: left
|
301
|
+
margin-right: 19px
|
302
|
+
border-right: 1px solid #ddd
|
303
|
+
|
304
|
+
.tabs-left .nav-tabs > li > a
|
305
|
+
margin-right: -1px
|
306
|
+
+border-radius(4px 0 0 4px)
|
307
|
+
|
308
|
+
.tabs-left .nav-tabs > li > a:hover
|
309
|
+
border-color: $grayLighter #ddd $grayLighter $grayLighter
|
310
|
+
|
311
|
+
.tabs-left .nav-tabs .active > a,
|
312
|
+
.tabs-left .nav-tabs .active > a:hover
|
313
|
+
border-color: #ddd transparent #ddd #ddd
|
314
|
+
*border-right-color: $white
|
315
|
+
|
316
|
+
// Tabs on the right
|
317
|
+
.tabs-right .nav-tabs
|
318
|
+
float: right
|
319
|
+
margin-left: 19px
|
320
|
+
border-left: 1px solid #ddd
|
321
|
+
|
322
|
+
.tabs-right .nav-tabs > li > a
|
323
|
+
margin-left: -1px
|
324
|
+
+border-radius(0 4px 4px 0)
|
325
|
+
|
326
|
+
.tabs-right .nav-tabs > li > a:hover
|
327
|
+
border-color: $grayLighter $grayLighter $grayLighter #ddd
|
328
|
+
|
329
|
+
.tabs-right .nav-tabs .active > a,
|
330
|
+
.tabs-right .nav-tabs .active > a:hover
|
331
|
+
border-color: #ddd #ddd #ddd transparent
|
332
|
+
*border-left-color: $white
|
@@ -0,0 +1,29 @@
|
|
1
|
+
// PAGER
|
2
|
+
// -----
|
3
|
+
|
4
|
+
.pager
|
5
|
+
margin-left: 0
|
6
|
+
margin-bottom: $baseLineHeight
|
7
|
+
list-style: none
|
8
|
+
text-align: center
|
9
|
+
+clearfix
|
10
|
+
li
|
11
|
+
display: inline
|
12
|
+
a
|
13
|
+
display: inline-block
|
14
|
+
padding: 5px 14px
|
15
|
+
background-color: #fff
|
16
|
+
border: 1px solid #ddd
|
17
|
+
+border-radius(15px)
|
18
|
+
&:hover
|
19
|
+
text-decoration: none
|
20
|
+
background-color: #f5f5f5
|
21
|
+
.next a
|
22
|
+
float: right
|
23
|
+
.previous a
|
24
|
+
float: left
|
25
|
+
.disabled a,
|
26
|
+
.disabled a:hover
|
27
|
+
color: $grayLight
|
28
|
+
background-color: #fff
|
29
|
+
cursor: default
|
@@ -0,0 +1,45 @@
|
|
1
|
+
// PAGINATION
|
2
|
+
// ----------
|
3
|
+
|
4
|
+
.pagination
|
5
|
+
height: $baseLineHeight * 2
|
6
|
+
margin: $baseLineHeight 0
|
7
|
+
.pagination ul
|
8
|
+
display: inline-block
|
9
|
+
+ie7-inline-block
|
10
|
+
margin-left: 0
|
11
|
+
margin-bottom: 0
|
12
|
+
+border-radius(3px)
|
13
|
+
+box-shadow(0 1px 2px rgba(0,0,0,.05))
|
14
|
+
.pagination li
|
15
|
+
display: inline
|
16
|
+
.pagination a
|
17
|
+
float: left
|
18
|
+
padding: 0 14px
|
19
|
+
line-height: $baseLineHeight * 2 - 2
|
20
|
+
text-decoration: none
|
21
|
+
border: 1px solid #ddd
|
22
|
+
border-left-width: 0
|
23
|
+
.pagination a:hover,
|
24
|
+
.pagination .active a
|
25
|
+
background-color: #f5f5f5
|
26
|
+
.pagination .active a
|
27
|
+
color: $grayLight
|
28
|
+
cursor: default
|
29
|
+
.pagination .disabled span,
|
30
|
+
.pagination .disabled a,
|
31
|
+
.pagination .disabled a:hover
|
32
|
+
color: $grayLight
|
33
|
+
background-color: transparent
|
34
|
+
cursor: default
|
35
|
+
.pagination li:first-child a
|
36
|
+
border-left-width: 1px
|
37
|
+
+border-radius(3px 0 0 3px)
|
38
|
+
.pagination li:last-child a
|
39
|
+
+border-radius(0 3px 3px 0)
|
40
|
+
|
41
|
+
// Centered
|
42
|
+
.pagination-centered
|
43
|
+
text-align: center
|
44
|
+
.pagination-right
|
45
|
+
text-align: right
|