compass_twitter_bootstrap 2.0.1.2 → 2.0.3
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 +17 -0
- data/build/convert.rb +2 -12
- data/lib/compass_twitter_bootstrap/version.rb +1 -1
- data/stylesheets/_compass_twitter_bootstrap.scss +2 -2
- data/stylesheets/_compass_twitter_bootstrap_awesome.scss +66 -0
- data/stylesheets/_compass_twitter_bootstrap_responsive.scss +14 -293
- data/stylesheets/compass_twitter_bootstrap/_accordion.scss +6 -1
- data/stylesheets/compass_twitter_bootstrap/_alerts.scss +3 -15
- data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +5 -3
- data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +82 -39
- data/stylesheets/compass_twitter_bootstrap/_buttons.scss +38 -30
- data/stylesheets/compass_twitter_bootstrap/_carousel.scss +5 -5
- data/stylesheets/compass_twitter_bootstrap/_close.scss +13 -2
- data/stylesheets/compass_twitter_bootstrap/_code.scss +9 -9
- data/stylesheets/compass_twitter_bootstrap/_component-animations.scss +10 -8
- data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +62 -49
- data/stylesheets/compass_twitter_bootstrap/_font-awesome.scss +267 -0
- data/stylesheets/compass_twitter_bootstrap/_forms.scss +141 -77
- data/stylesheets/compass_twitter_bootstrap/_grid.scss +2 -5
- data/stylesheets/compass_twitter_bootstrap/_hero-unit.scss +4 -2
- data/stylesheets/compass_twitter_bootstrap/_labels-badges.scss +63 -0
- data/stylesheets/compass_twitter_bootstrap/_layouts.scss +3 -3
- data/stylesheets/compass_twitter_bootstrap/_mixins.scss +275 -255
- data/stylesheets/compass_twitter_bootstrap/_modals.scss +19 -12
- data/stylesheets/compass_twitter_bootstrap/_navbar.scss +146 -81
- data/stylesheets/compass_twitter_bootstrap/_navs.scss +77 -52
- data/stylesheets/compass_twitter_bootstrap/_pager.scss +8 -2
- data/stylesheets/compass_twitter_bootstrap/_pagination.scss +6 -5
- data/stylesheets/compass_twitter_bootstrap/_popovers.scss +9 -9
- data/stylesheets/compass_twitter_bootstrap/_progress-bars.scss +41 -19
- data/stylesheets/compass_twitter_bootstrap/_reset.scss +4 -4
- data/stylesheets/compass_twitter_bootstrap/_responsive-1200px-min.scss +26 -0
- data/stylesheets/compass_twitter_bootstrap/_responsive-767px-max.scss +149 -0
- data/stylesheets/compass_twitter_bootstrap/_responsive-768px-979px.scss +17 -0
- data/stylesheets/compass_twitter_bootstrap/_responsive-navbar.scss +146 -0
- data/stylesheets/compass_twitter_bootstrap/_responsive-utilities.scss +41 -0
- data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +4 -4
- data/stylesheets/compass_twitter_bootstrap/_sprites.scss +42 -9
- data/stylesheets/compass_twitter_bootstrap/_tables.scss +60 -34
- data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +18 -6
- data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +7 -7
- data/stylesheets/compass_twitter_bootstrap/_type.scss +28 -11
- data/stylesheets/compass_twitter_bootstrap/_variables.scss +107 -9
- data/stylesheets/compass_twitter_bootstrap/_wells.scss +13 -2
- data/stylesheets_sass/_compass_twitter_bootstrap.sass +2 -2
- data/stylesheets_sass/_compass_twitter_bootstrap_awesome.sass +70 -0
- data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +13 -224
- data/stylesheets_sass/compass_twitter_bootstrap/_accordion.sass +5 -1
- data/stylesheets_sass/compass_twitter_bootstrap/_alerts.sass +3 -14
- data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +5 -3
- data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +73 -36
- data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +39 -28
- data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +5 -5
- data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +12 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +10 -9
- data/stylesheets_sass/compass_twitter_bootstrap/_component-animations.sass +5 -5
- data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +57 -47
- data/stylesheets_sass/compass_twitter_bootstrap/_font-awesome.sass +515 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +140 -76
- data/stylesheets_sass/compass_twitter_bootstrap/_grid.sass +2 -5
- data/stylesheets_sass/compass_twitter_bootstrap/_hero-unit.sass +4 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_labels-badges.sass +85 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_layouts.sass +3 -3
- data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +277 -260
- data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +19 -12
- data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +138 -78
- data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +77 -51
- data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +8 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +6 -5
- data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +9 -9
- data/stylesheets_sass/compass_twitter_bootstrap/_progress-bars.sass +44 -19
- data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +4 -3
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-1200px-min.sass +17 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-767px-max.sass +115 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-768px-979px.sass +11 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-navbar.sass +115 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-utilities.sass +56 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +4 -4
- data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +70 -7
- data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +72 -34
- data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +15 -5
- data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +7 -7
- data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +27 -11
- data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +105 -8
- data/stylesheets_sass/compass_twitter_bootstrap/_wells.sass +11 -2
- data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.svg +175 -0
- data/vendor/assets/fonts/fontawesome-webfont.svgz +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/bootstrap-alert.js +28 -32
- data/vendor/assets/javascripts/bootstrap-all.js +12 -0
- data/vendor/assets/javascripts/bootstrap-button.js +32 -34
- data/vendor/assets/javascripts/bootstrap-carousel.js +33 -21
- data/vendor/assets/javascripts/bootstrap-collapse.js +47 -26
- data/vendor/assets/javascripts/bootstrap-dropdown.js +18 -10
- data/vendor/assets/javascripts/bootstrap-modal.js +25 -17
- data/vendor/assets/javascripts/bootstrap-popover.js +13 -10
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +44 -18
- data/vendor/assets/javascripts/bootstrap-tab.js +12 -7
- data/vendor/assets/javascripts/bootstrap-tooltip.js +40 -35
- data/vendor/assets/javascripts/bootstrap-transition.js +30 -20
- data/vendor/assets/javascripts/bootstrap-typeahead.js +29 -15
- metadata +29 -9
- data/stylesheets/compass_twitter_bootstrap/_labels.scss +0 -32
- data/stylesheets_sass/compass_twitter_bootstrap/_labels.sass +0 -42
data/README.md
CHANGED
|
@@ -76,6 +76,23 @@ Demo App at https://github.com/vwall/Compass-Twitter-Bootstrap-Demo-App
|
|
|
76
76
|
@import "compass_twitter_bootstrap"
|
|
77
77
|
|
|
78
78
|
|
|
79
|
+
## Using [Font Awesome](http://fortawesome.github.com/Font-Awesome/)
|
|
80
|
+
|
|
81
|
+
To use the font awesome font and icons simply change the standard import to:
|
|
82
|
+
|
|
83
|
+
@import "compass_twitter_bootstrap_awesome"
|
|
84
|
+
|
|
85
|
+
## Using Javascripts with Rails Asset Pipeline
|
|
86
|
+
|
|
87
|
+
Javascript Libraries are located in vendor/assets/javascripts
|
|
88
|
+
|
|
89
|
+
Include them individually or
|
|
90
|
+
|
|
91
|
+
//=require bootstrap-all
|
|
92
|
+
|
|
93
|
+
to include all files
|
|
94
|
+
|
|
95
|
+
|
|
79
96
|
## TWITTER BOOTSTRAP
|
|
80
97
|
|
|
81
98
|
Bootstrap is Twitter's toolkit for kickstarting CSS for websites, apps, and more. It includes base CSS styles for typography, forms, buttons, tables, grids, navigation, alerts, and more.
|
data/build/convert.rb
CHANGED
|
@@ -51,23 +51,13 @@ private
|
|
|
51
51
|
sha = nil
|
|
52
52
|
trees = open('https://api.github.com/repos/twitter/bootstrap/git/trees/master').read
|
|
53
53
|
trees = JSON.parse trees
|
|
54
|
-
|
|
55
|
-
trees['tree'].select do |t|
|
|
56
|
-
if t['path'] == 'less'
|
|
57
|
-
sha = t['sha']
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
sha
|
|
54
|
+
trees['tree'].find{|t| t['path'] == 'less'}['sha']
|
|
62
55
|
end
|
|
63
56
|
|
|
64
57
|
def get_less_files
|
|
65
|
-
file_list = []
|
|
66
58
|
files = open("https://api.github.com/repos/twitter/bootstrap/git/trees/#{get_tree_sha}").read
|
|
67
59
|
files = JSON.parse files
|
|
68
|
-
files['tree'].
|
|
69
|
-
|
|
70
|
-
file_list
|
|
60
|
+
files['tree'].map{|f| f['path']}
|
|
71
61
|
end
|
|
72
62
|
|
|
73
63
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap v2.0.
|
|
2
|
+
* Bootstrap v2.0.3
|
|
3
3
|
*
|
|
4
4
|
* Copyright 2012 Twitter, Inc
|
|
5
5
|
* Licensed under the Apache License v2.0
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
// Components: Misc
|
|
58
58
|
@import "compass_twitter_bootstrap/thumbnails";
|
|
59
|
-
@import "compass_twitter_bootstrap/labels";
|
|
59
|
+
@import "compass_twitter_bootstrap/labels-badges";
|
|
60
60
|
@import "compass_twitter_bootstrap/progress-bars";
|
|
61
61
|
@import "compass_twitter_bootstrap/accordion";
|
|
62
62
|
@import "compass_twitter_bootstrap/carousel";
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Bootstrap v2.0.3
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2012 Twitter, Inc
|
|
5
|
+
* Licensed under the Apache License v2.0
|
|
6
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
*
|
|
8
|
+
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
@import "compass";
|
|
12
|
+
|
|
13
|
+
@import "compass_twitter_bootstrap/mixins";
|
|
14
|
+
|
|
15
|
+
// CSS Reset
|
|
16
|
+
@import "compass_twitter_bootstrap/reset";
|
|
17
|
+
|
|
18
|
+
// Core variables and mixins
|
|
19
|
+
@import "compass_twitter_bootstrap/variables"; // Modify this for custom colors, font-sizes, etc
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
// Grid system and page structure
|
|
23
|
+
@import "compass_twitter_bootstrap/scaffolding";
|
|
24
|
+
@import "compass_twitter_bootstrap/grid";
|
|
25
|
+
@import "compass_twitter_bootstrap/layouts";
|
|
26
|
+
|
|
27
|
+
// Base CSS
|
|
28
|
+
@import "compass_twitter_bootstrap/type";
|
|
29
|
+
@import "compass_twitter_bootstrap/code";
|
|
30
|
+
@import "compass_twitter_bootstrap/forms";
|
|
31
|
+
@import "compass_twitter_bootstrap/tables";
|
|
32
|
+
|
|
33
|
+
// Components: common
|
|
34
|
+
@import "compass_twitter_bootstrap/font-awesome";
|
|
35
|
+
@import "compass_twitter_bootstrap/dropdowns";
|
|
36
|
+
@import "compass_twitter_bootstrap/wells";
|
|
37
|
+
@import "compass_twitter_bootstrap/component-animations";
|
|
38
|
+
@import "compass_twitter_bootstrap/close";
|
|
39
|
+
|
|
40
|
+
// Components: Buttons & Alerts
|
|
41
|
+
@import "compass_twitter_bootstrap/buttons";
|
|
42
|
+
@import "compass_twitter_bootstrap/button-groups";
|
|
43
|
+
@import "compass_twitter_bootstrap/alerts"; // Note: alerts share common CSS with buttons and thus have styles in buttons.less
|
|
44
|
+
|
|
45
|
+
// Components: Nav
|
|
46
|
+
@import "compass_twitter_bootstrap/navs";
|
|
47
|
+
@import "compass_twitter_bootstrap/navbar";
|
|
48
|
+
@import "compass_twitter_bootstrap/breadcrumbs";
|
|
49
|
+
@import "compass_twitter_bootstrap/pagination";
|
|
50
|
+
@import "compass_twitter_bootstrap/pager";
|
|
51
|
+
|
|
52
|
+
// Components: Popovers
|
|
53
|
+
@import "compass_twitter_bootstrap/modals";
|
|
54
|
+
@import "compass_twitter_bootstrap/tooltip";
|
|
55
|
+
@import "compass_twitter_bootstrap/popovers";
|
|
56
|
+
|
|
57
|
+
// Components: Misc
|
|
58
|
+
@import "compass_twitter_bootstrap/thumbnails";
|
|
59
|
+
@import "compass_twitter_bootstrap/labels-badges";
|
|
60
|
+
@import "compass_twitter_bootstrap/progress-bars";
|
|
61
|
+
@import "compass_twitter_bootstrap/accordion";
|
|
62
|
+
@import "compass_twitter_bootstrap/carousel";
|
|
63
|
+
@import "compass_twitter_bootstrap/hero-unit";
|
|
64
|
+
|
|
65
|
+
// Utility classes
|
|
66
|
+
@import "compass_twitter_bootstrap/utilities"; // Has to be last to override when necessary
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap Responsive v2.0.
|
|
2
|
+
* Bootstrap Responsive v2.0.3
|
|
3
3
|
*
|
|
4
4
|
* Copyright 2012 Twitter, Inc
|
|
5
5
|
* Licensed under the Apache License v2.0
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
+
|
|
11
12
|
// Responsive
|
|
12
13
|
// For phone and tablet devices
|
|
13
14
|
// -------------------------------------------------------------
|
|
@@ -24,304 +25,24 @@
|
|
|
24
25
|
// RESPONSIVE CLASSES
|
|
25
26
|
// ------------------
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
// Credit: HTML5 Boilerplate
|
|
29
|
-
.hidden {
|
|
30
|
-
display: none;
|
|
31
|
-
visibility: hidden;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
// UP TO LANDSCAPE PHONE
|
|
37
|
-
// ---------------------
|
|
38
|
-
|
|
39
|
-
@media (max-width: 480px) {
|
|
40
|
-
|
|
41
|
-
// Smooth out the collapsing/expanding nav
|
|
42
|
-
.nav-collapse {
|
|
43
|
-
-webkit-transform: translate3d(0, 0, 0); // activate the GPU
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// Block level the page header small tag for readability
|
|
47
|
-
.page-header h1 small {
|
|
48
|
-
display: block;
|
|
49
|
-
line-height: $baseLineHeight;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Make span* classes full width
|
|
53
|
-
input[class*="span"],
|
|
54
|
-
select[class*="span"],
|
|
55
|
-
textarea[class*="span"],
|
|
56
|
-
.uneditable-input {
|
|
57
|
-
display: block;
|
|
58
|
-
width: 100%;
|
|
59
|
-
min-height: 28px; /* Make inputs at least the height of their button counterpart */
|
|
60
|
-
/* Makes inputs behave like true block-level elements */
|
|
61
|
-
-webkit-box-sizing: border-box; /* Older Webkit */
|
|
62
|
-
-moz-box-sizing: border-box; /* Older FF */
|
|
63
|
-
-ms-box-sizing: border-box; /* IE8 */
|
|
64
|
-
box-sizing: border-box; /* CSS3 spec*/
|
|
65
|
-
}
|
|
66
|
-
// But don't let it screw up prepend/append inputs
|
|
67
|
-
.input-prepend input[class*="span"],
|
|
68
|
-
.input-append input[class*="span"] {
|
|
69
|
-
width: auto;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// Update checkboxes for iOS
|
|
73
|
-
input[type="checkbox"],
|
|
74
|
-
input[type="radio"] {
|
|
75
|
-
border: 1px solid #ccc;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// Remove the horizontal form styles
|
|
79
|
-
.form-horizontal .control-group > label {
|
|
80
|
-
float: none;
|
|
81
|
-
width: auto;
|
|
82
|
-
padding-top: 0;
|
|
83
|
-
text-align: left;
|
|
84
|
-
}
|
|
85
|
-
// Move over all input controls and content
|
|
86
|
-
.form-horizontal .controls {
|
|
87
|
-
margin-left: 0;
|
|
88
|
-
}
|
|
89
|
-
// Move the options list down to align with labels
|
|
90
|
-
.form-horizontal .control-list {
|
|
91
|
-
padding-top: 0; // has to be padding because margin collaspes
|
|
92
|
-
}
|
|
93
|
-
// Move over buttons in .form-actions to align with .controls
|
|
94
|
-
.form-horizontal .form-actions {
|
|
95
|
-
padding-left: 10px;
|
|
96
|
-
padding-right: 10px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Modals
|
|
100
|
-
.modal {
|
|
101
|
-
position: absolute;
|
|
102
|
-
top: 10px;
|
|
103
|
-
left: 10px;
|
|
104
|
-
right: 10px;
|
|
105
|
-
width: auto;
|
|
106
|
-
margin: 0;
|
|
107
|
-
&.fade.in { top: auto; }
|
|
108
|
-
}
|
|
109
|
-
.modal-header .close {
|
|
110
|
-
padding: 10px;
|
|
111
|
-
margin: -10px;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// Carousel
|
|
115
|
-
.carousel-caption {
|
|
116
|
-
position: static;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
// LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
|
|
124
|
-
// --------------------------------------------------
|
|
125
|
-
|
|
126
|
-
@media (max-width: 767px) {
|
|
127
|
-
// GRID & CONTAINERS
|
|
128
|
-
// -----------------
|
|
129
|
-
// Remove width from containers
|
|
130
|
-
.container {
|
|
131
|
-
width: auto;
|
|
132
|
-
padding: 0 20px;
|
|
133
|
-
}
|
|
134
|
-
// Fluid rows
|
|
135
|
-
.row-fluid {
|
|
136
|
-
width: 100%;
|
|
137
|
-
}
|
|
138
|
-
// Undo negative margin on rows
|
|
139
|
-
.row {
|
|
140
|
-
margin-left: 0;
|
|
141
|
-
}
|
|
142
|
-
// Make all columns even
|
|
143
|
-
.row > [class*="span"],
|
|
144
|
-
.row-fluid > [class*="span"] {
|
|
145
|
-
float: none;
|
|
146
|
-
display: block;
|
|
147
|
-
width: auto;
|
|
148
|
-
margin: 0;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
28
|
+
@import "compass_twitter_bootstrap/responsive-utilities";
|
|
152
29
|
|
|
153
30
|
|
|
154
|
-
//
|
|
155
|
-
// ----------------------------------
|
|
156
|
-
|
|
157
|
-
@media (min-width: 768px) and (max-width: 979px) {
|
|
158
|
-
|
|
159
|
-
// Fixed grid
|
|
160
|
-
@include gridSystem-generate(12, 42px, 20px);
|
|
161
|
-
|
|
162
|
-
// Fluid grid
|
|
163
|
-
@include fluidGridSystem-generate(12, 5.801104972%, 2.762430939%);
|
|
164
|
-
|
|
165
|
-
// Input grid
|
|
166
|
-
@include inputGridSystem-generate(12, 42px, 20px);
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
// TABLETS AND BELOW
|
|
173
|
-
// -----------------
|
|
174
|
-
@media (max-width: 979px) {
|
|
175
|
-
|
|
176
|
-
// UNFIX THE TOPBAR
|
|
177
|
-
// ----------------
|
|
178
|
-
// Remove any padding from the body
|
|
179
|
-
body {
|
|
180
|
-
padding-top: 0;
|
|
181
|
-
}
|
|
182
|
-
// Unfix the navbar
|
|
183
|
-
.navbar-fixed-top {
|
|
184
|
-
position: static;
|
|
185
|
-
margin-bottom: $baseLineHeight;
|
|
186
|
-
}
|
|
187
|
-
.navbar-fixed-top .navbar-inner {
|
|
188
|
-
padding: 5px;
|
|
189
|
-
}
|
|
190
|
-
.navbar .container {
|
|
191
|
-
width: auto;
|
|
192
|
-
padding: 0;
|
|
193
|
-
}
|
|
194
|
-
// Account for brand name
|
|
195
|
-
.navbar .brand {
|
|
196
|
-
padding-left: 10px;
|
|
197
|
-
padding-right: 10px;
|
|
198
|
-
margin: 0 0 0 -5px;
|
|
199
|
-
}
|
|
200
|
-
// Nav collapse clears brand
|
|
201
|
-
.navbar .nav-collapse {
|
|
202
|
-
clear: left;
|
|
203
|
-
}
|
|
204
|
-
// Block-level the nav
|
|
205
|
-
.navbar .nav {
|
|
206
|
-
float: none;
|
|
207
|
-
margin: 0 0 ($baseLineHeight / 2);
|
|
208
|
-
}
|
|
209
|
-
.navbar .nav > li {
|
|
210
|
-
float: none;
|
|
211
|
-
}
|
|
212
|
-
.navbar .nav > li > a {
|
|
213
|
-
margin-bottom: 2px;
|
|
214
|
-
}
|
|
215
|
-
.navbar .nav > .divider-vertical {
|
|
216
|
-
display: none;
|
|
217
|
-
}
|
|
218
|
-
.navbar .nav .nav-header {
|
|
219
|
-
color: $navbarText;
|
|
220
|
-
text-shadow: none;
|
|
221
|
-
}
|
|
222
|
-
// Nav and dropdown links in navbar
|
|
223
|
-
.navbar .nav > li > a,
|
|
224
|
-
.navbar .dropdown-menu a {
|
|
225
|
-
padding: 6px 15px;
|
|
226
|
-
font-weight: bold;
|
|
227
|
-
color: $navbarLinkColor;
|
|
228
|
-
@include border-radius(3px);
|
|
229
|
-
}
|
|
230
|
-
.navbar .dropdown-menu li + li a {
|
|
231
|
-
margin-bottom: 2px;
|
|
232
|
-
}
|
|
233
|
-
.navbar .nav > li > a:hover,
|
|
234
|
-
.navbar .dropdown-menu a:hover {
|
|
235
|
-
background-color: $navbarBackground;
|
|
236
|
-
}
|
|
237
|
-
// Dropdowns in the navbar
|
|
238
|
-
.navbar .dropdown-menu {
|
|
239
|
-
position: static;
|
|
240
|
-
top: auto;
|
|
241
|
-
left: auto;
|
|
242
|
-
float: none;
|
|
243
|
-
display: block;
|
|
244
|
-
max-width: none;
|
|
245
|
-
margin: 0 15px;
|
|
246
|
-
padding: 0;
|
|
247
|
-
background-color: transparent;
|
|
248
|
-
border: none;
|
|
249
|
-
@include border-radius(0);
|
|
250
|
-
@include box-shadow(none);
|
|
251
|
-
}
|
|
252
|
-
.navbar .dropdown-menu:before,
|
|
253
|
-
.navbar .dropdown-menu:after {
|
|
254
|
-
display: none;
|
|
255
|
-
}
|
|
256
|
-
.navbar .dropdown-menu .divider {
|
|
257
|
-
display: none;
|
|
258
|
-
}
|
|
259
|
-
// Forms in navbar
|
|
260
|
-
.navbar-form,
|
|
261
|
-
.navbar-search {
|
|
262
|
-
float: none;
|
|
263
|
-
padding: ($baseLineHeight / 2) 15px;
|
|
264
|
-
margin: ($baseLineHeight / 2) 0;
|
|
265
|
-
border-top: 1px solid $navbarBackground;
|
|
266
|
-
border-bottom: 1px solid $navbarBackground;
|
|
267
|
-
$shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);
|
|
268
|
-
@include box-shadow($shadow);
|
|
269
|
-
}
|
|
270
|
-
// Pull right (secondary) nav content
|
|
271
|
-
.navbar .nav.pull-right {
|
|
272
|
-
float: none;
|
|
273
|
-
margin-left: 0;
|
|
274
|
-
}
|
|
275
|
-
// Static navbar
|
|
276
|
-
.navbar-static .navbar-inner {
|
|
277
|
-
padding-left: 10px;
|
|
278
|
-
padding-right: 10px;
|
|
279
|
-
}
|
|
280
|
-
// Navbar button
|
|
281
|
-
.btn-navbar {
|
|
282
|
-
display: block;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
// Hide everything in the navbar save .brand and toggle button */
|
|
286
|
-
.nav-collapse {
|
|
287
|
-
overflow: hidden;
|
|
288
|
-
height: 0;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
// DEFAULT DESKTOP
|
|
295
|
-
// ---------------
|
|
296
|
-
|
|
297
|
-
@media (min-width: 980px) {
|
|
298
|
-
.nav-collapse.collapse {
|
|
299
|
-
height: auto !important;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
// LARGE DESKTOP & UP
|
|
31
|
+
// MEDIA QUERIES
|
|
306
32
|
// ------------------
|
|
307
33
|
|
|
308
|
-
|
|
34
|
+
// Phones to portrait tablets and narrow desktops
|
|
35
|
+
@import "compass_twitter_bootstrap/responsive-767px-max";
|
|
309
36
|
|
|
310
|
-
|
|
311
|
-
|
|
37
|
+
// Tablets to regular desktops
|
|
38
|
+
@import "compass_twitter_bootstrap/responsive-768px-979px";
|
|
312
39
|
|
|
313
|
-
|
|
314
|
-
|
|
40
|
+
// Large desktops
|
|
41
|
+
@import "compass_twitter_bootstrap/responsive-1200px-min";
|
|
315
42
|
|
|
316
|
-
// Input grid
|
|
317
|
-
@include inputGridSystem-generate(12, 70px, 30px);
|
|
318
43
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
margin-left: -30px;
|
|
322
|
-
}
|
|
323
|
-
.thumbnails > li {
|
|
324
|
-
margin-left: 30px;
|
|
325
|
-
}
|
|
44
|
+
// RESPONSIVE NAVBAR
|
|
45
|
+
// ------------------
|
|
326
46
|
|
|
327
|
-
|
|
47
|
+
// From 979px and below, show a button to toggle navbar contents
|
|
48
|
+
@import "compass_twitter_bootstrap/responsive-navbar";
|