compass_twitter_bootstrap 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. data/CHANGELOG.md +5 -0
  2. data/build/convert.rb +13 -0
  3. data/lib/compass_twitter_bootstrap/version.rb +1 -1
  4. data/stylesheets/_compass_twitter_bootstrap_responsive.scss +11 -6
  5. data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +1 -1
  6. data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +2 -1
  7. data/stylesheets/compass_twitter_bootstrap/_buttons.scss +25 -7
  8. data/stylesheets/compass_twitter_bootstrap/_code.scss +13 -0
  9. data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +1 -2
  10. data/stylesheets/compass_twitter_bootstrap/_forms.scss +48 -41
  11. data/stylesheets/compass_twitter_bootstrap/_labels.scss +23 -7
  12. data/stylesheets/compass_twitter_bootstrap/_mixins.scss +73 -21
  13. data/stylesheets/compass_twitter_bootstrap/_modals.scss +11 -0
  14. data/stylesheets/compass_twitter_bootstrap/_navbar.scss +11 -4
  15. data/stylesheets/compass_twitter_bootstrap/_navs.scss +20 -11
  16. data/stylesheets/compass_twitter_bootstrap/_reset.scss +1 -1
  17. data/stylesheets/compass_twitter_bootstrap/_sprites.scss +7 -5
  18. data/stylesheets/compass_twitter_bootstrap/_tables.scss +14 -3
  19. data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +2 -2
  20. data/stylesheets/compass_twitter_bootstrap/_type.scss +3 -2
  21. data/stylesheets/compass_twitter_bootstrap/_variables.scss +61 -53
  22. data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +11 -8
  23. data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +1 -1
  24. data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +2 -1
  25. data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +23 -7
  26. data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +10 -0
  27. data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +1 -2
  28. data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +48 -37
  29. data/stylesheets_sass/compass_twitter_bootstrap/_labels.sass +22 -3
  30. data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +9 -0
  31. data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +12 -3
  32. data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +21 -11
  33. data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +1 -1
  34. data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +7 -5
  35. data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +11 -2
  36. data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +2 -2
  37. data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +3 -2
  38. data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +61 -53
  39. metadata +10 -4
@@ -1,6 +1,7 @@
1
1
  // MODALS
2
2
  // ------
3
3
 
4
+ // Recalculate z-index where appropriate
4
5
  .modal-open
5
6
  .dropdown-menu
6
7
  z-index: $zindexDropdown + $zindexModal
@@ -11,6 +12,7 @@
11
12
  .tooltip
12
13
  z-index: $zindexTooltip + $zindexModal
13
14
 
15
+ // Background
14
16
  .modal-backdrop
15
17
  position: fixed
16
18
  top: 0
@@ -27,6 +29,7 @@
27
29
  .modal-backdrop.fade.in
28
30
  +opacity(0.8)
29
31
 
32
+ // Base modal
30
33
  .modal
31
34
  position: fixed
32
35
  top: 50%
@@ -57,9 +60,15 @@
57
60
  .close
58
61
  margin-top: 2px
59
62
 
63
+ // Body (where all modal content resises)
60
64
  .modal-body
61
65
  padding: 15px
62
66
 
67
+ // Remove bottom margin if need be
68
+ .modal-body .modal-form
69
+ margin-bottom: 0
70
+
71
+ // Footer (for actions)
63
72
  .modal-footer
64
73
  padding: 14px 15px 15px
65
74
  margin-bottom: 0
@@ -74,6 +74,7 @@
74
74
  // make buttons vertically centered in navbar
75
75
  .btn-group .btn
76
76
  margin-top: 0
77
+ // then undo the margin here so we don't accidentally double it
77
78
 
78
79
  // Navbar forms
79
80
  .navbar-form
@@ -92,6 +93,14 @@
92
93
  input[type="checkbox"],
93
94
  input[type="radio"]
94
95
  margin-top: 3px
96
+ .input-append,
97
+ .input-prepend
98
+ margin-top: 6px
99
+ white-space: nowrap
100
+ // preven two items from separating within a .navbar-form that has .pull-left
101
+ input
102
+ margin-top: 0
103
+ // remove the margin on top since it's on the parent
95
104
 
96
105
  // Navbar search
97
106
  .navbar-search
@@ -117,7 +126,7 @@
117
126
  color: $white
118
127
  background-color: $grayLight
119
128
  background-color: rgba(255, 255, 255, 0.5)
120
- // Focus states (we use .focused since IE8 and down doesn't support :focus)
129
+ // Focus states (we use .focused since IE7-8 and down doesn't support :focus)
121
130
  &:focus,
122
131
  &.focused
123
132
  padding: 5px 10px
@@ -172,7 +181,8 @@
172
181
 
173
182
  // Hover
174
183
  .navbar .nav > li > a:hover
175
- background-color: transparent
184
+ background-color: $navbarLinkBackgroundHover
185
+ // "transparent" is default to differentiate :hover from .active
176
186
  color: $navbarLinkColorHover
177
187
  text-decoration: none
178
188
 
@@ -183,7 +193,6 @@
183
193
  color: $navbarLinkColorHover
184
194
  text-decoration: none
185
195
  background-color: $navbarBackground
186
- background-color: rgba(0, 0, 0, 0.5)
187
196
 
188
197
  // Dividers (basically a vertical hr)
189
198
  .navbar .divider-vertical
@@ -17,6 +17,21 @@
17
17
  text-decoration: none
18
18
  background-color: $grayLighter
19
19
 
20
+ // Nav headers (for dropdowns and lists)
21
+ .nav .nav-header
22
+ display: block
23
+ padding: 3px 15px
24
+ font-size: 11px
25
+ font-weight: bold
26
+ line-height: $baseLineHeight
27
+ color: $grayLight
28
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5)
29
+ text-transform: uppercase
30
+
31
+ // Space them out when they follow another list item (link)
32
+ .nav li + .nav-header
33
+ margin-top: 9px
34
+
20
35
  // NAV LIST
21
36
  // --------
22
37
 
@@ -27,21 +42,12 @@
27
42
 
28
43
  .nav-list > li > a,
29
44
  .nav-list .nav-header
30
- display: block
31
- padding: 3px 15px
32
45
  margin-left: -15px
33
46
  margin-right: -15px
34
47
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5)
35
48
 
36
- .nav-list .nav-header
37
- font-size: 11px
38
- font-weight: bold
39
- line-height: $baseLineHeight
40
- color: $grayLight
41
- text-transform: uppercase
42
-
43
- .nav-list > li + .nav-header
44
- margin-top: 9px
49
+ .nav-list > li > a
50
+ padding: 3px 15px
45
51
 
46
52
  .nav-list .active > a,
47
53
  .nav-list .active > a:hover
@@ -227,6 +233,10 @@
227
233
  .tabbable
228
234
  +clearfix
229
235
 
236
+ .tab-content
237
+ overflow: hidden
238
+ // prevent content from running below tabs
239
+
230
240
  // Remove border on bottom, left, right
231
241
 
232
242
  .tabs-below .nav-tabs,
@@ -109,7 +109,7 @@ input[type="submit"]
109
109
  cursor: pointer
110
110
  // Cursors on all buttons applied consistently
111
111
  -webkit-appearance: button
112
- // Style clicable inputs in iOS
112
+ // Style clickable inputs in iOS
113
113
 
114
114
  input[type="search"]
115
115
  // Appearance in Safari/Chrome
@@ -8,23 +8,25 @@
8
8
  // All icons receive the styles of the <i> tag with a base class
9
9
  // of .i and are then given a unique class to add width, height,
10
10
  // and background-position. Your resulting HTML will look like
11
- // <i class="i icon-inbox"></i>.
11
+ // <i class="icon-inbox"></i>.
12
12
 
13
13
  // For the white version of the icons, just add the .icon-white class:
14
- // <i class="i icon-inbox icon-white"></i>
14
+ // <i class="icon-inbox icon-white"></i>
15
15
 
16
- [class^="icon-"]
16
+ [class^="icon-"],
17
+ [class*=" icon-"]
17
18
  display: inline-block
18
19
  width: 14px
19
20
  height: 14px
21
+ line-height: 14px
20
22
  vertical-align: text-top
21
- background-image: url(../img/glyphicons-halflings.png)
23
+ background-image: image-url("$iconSpritePath")
22
24
  background-position: 14px 14px
23
25
  background-repeat: no-repeat
24
26
  +ie7-restore-right-whitespace
25
27
 
26
28
  .icon-white
27
- background-image: url(../img/glyphicons-halflings-white.png)
29
+ background-image: image-url("$iconWhiteSpritePath")
28
30
 
29
31
  .icon-glass
30
32
  background-position: 0 0
@@ -23,12 +23,13 @@ table
23
23
  padding: 8px
24
24
  line-height: $baseLineHeight
25
25
  text-align: left
26
+ vertical-align: top
26
27
  border-top: 1px solid #ddd
27
28
  th
28
29
  font-weight: bold
30
+ // Bottom align for column headings
31
+ thead th
29
32
  vertical-align: bottom
30
- td
31
- vertical-align: top
32
33
  // Remove top border from thead by default
33
34
  thead:first-child tr th,
34
35
  thead:first-child tr td
@@ -90,6 +91,14 @@ table
90
91
  tr:nth-child(odd) th
91
92
  background-color: #f9f9f9
92
93
 
94
+ // HOVER EFFECT
95
+ // ------------
96
+ // Placed here since it has to come after the potential zebra striping
97
+ .table
98
+ tbody tr:hover td,
99
+ tbody tr:hover th
100
+ background-color: #f5f5f5
101
+
93
102
  // TABLE CELL SIZING
94
103
  // -----------------
95
104
 
@@ -2,13 +2,13 @@
2
2
  // ----------
3
3
 
4
4
  .thumbnails
5
- margin-left: -20px
5
+ margin-left: -$gridGutterWidth
6
6
  list-style: none
7
7
  +clearfix
8
8
 
9
9
  .thumbnails > li
10
10
  float: left
11
- margin: 0 0 $baseLineHeight 20px
11
+ margin: 0 0 $baseLineHeight $gridGutterWidth
12
12
 
13
13
  .thumbnail
14
14
  display: block
@@ -99,7 +99,8 @@ ol
99
99
  li
100
100
  line-height: $baseLineHeight
101
101
 
102
- ul.unstyled
102
+ ul.unstyled,
103
+ ol.unstyled
103
104
  margin-left: 0
104
105
  list-style: none
105
106
 
@@ -124,7 +125,7 @@ dd
124
125
  hr
125
126
  margin: $baseLineHeight 0
126
127
  border: 0
127
- border-top: 1px solid #e5e5e5
128
+ border-top: 1px solid $hrBorder
128
129
  border-bottom: 1px solid $white
129
130
 
130
131
  // Emphasis
@@ -6,36 +6,36 @@
6
6
  // --------------------------------------------------
7
7
 
8
8
  // Links
9
- $linkColor: #0088cc
10
- $linkColorHover: darken($linkColor, 15%)
9
+ $linkColor: #0088cc !default
10
+ $linkColorHover: darken($linkColor, 15%) !default
11
11
 
12
12
  // Grays
13
- $black: black
14
- $grayDarker: #222222
15
- $grayDark: #333333
16
- $gray: #555555
17
- $grayLight: #999999
18
- $grayLighter: #eeeeee
19
- $white: white
13
+ $black: black !default
14
+ $grayDarker: #222222 !default
15
+ $grayDark: #333333 !default
16
+ $gray: #555555 !default
17
+ $grayLight: #999999 !default
18
+ $grayLighter: #eeeeee !default
19
+ $white: white !default
20
20
 
21
21
  // Accent colors
22
- $blue: #049cdb
23
- $blueDark: #0064cd
24
- $green: #46a546
25
- $red: #9d261d
26
- $yellow: #ffc40d
27
- $orange: #f89406
28
- $pink: #c3325f
29
- $purple: #7a43b6
22
+ $blue: #049cdb !default
23
+ $blueDark: #0064cd !default
24
+ $green: #46a546 !default
25
+ $red: #9d261d !default
26
+ $yellow: #ffc40d !default
27
+ $orange: #f89406 !default
28
+ $pink: #c3325f !default
29
+ $purple: #7a43b6 !default
30
30
 
31
31
  // Typography
32
- $baseFontSize: 13px
33
- $baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif
34
- $baseLineHeight: 18px
35
- $textColor: $grayDark
32
+ $baseFontSize: 13px !default
33
+ $baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default
34
+ $baseLineHeight: 18px !default
35
+ $textColor: $grayDark !default
36
36
 
37
37
  // Buttons
38
- $primaryButtonBackground: $linkColor
38
+ $primaryButtonBackground: $linkColor !default
39
39
 
40
40
  // COMPONENT VARIABLES
41
41
  // --------------------------------------------------
@@ -43,51 +43,59 @@ $primaryButtonBackground: $linkColor
43
43
  // Z-index master list
44
44
  // Used for a bird's eye view of components dependent on the z-axis
45
45
  // Try to avoid customizing these :)
46
- $zindexDropdown: 1000
47
- $zindexPopover: 1010
48
- $zindexTooltip: 1020
49
- $zindexFixedNavbar: 1030
50
- $zindexModalBackdrop: 1040
51
- $zindexModal: 1050
46
+ $zindexDropdown: 1000 !default
47
+ $zindexPopover: 1010 !default
48
+ $zindexTooltip: 1020 !default
49
+ $zindexFixedNavbar: 1030 !default
50
+ $zindexModalBackdrop: 1040 !default
51
+ $zindexModal: 1050 !default
52
+
53
+ // Sprite icons path
54
+ $iconSpritePath: "../img/glyphicons-halflings.png" !default
55
+ $iconWhiteSpritePath: "../img/glyphicons-halflings-white.png" !default
52
56
 
53
57
  // Input placeholder text color
54
- $placeholderText: $grayLight
58
+ $placeholderText: $grayLight !default
59
+
60
+ // Hr border color
61
+ $hrBorder: $grayLighter !default
55
62
 
56
63
  // Navbar
57
- $navbarHeight: 40px
58
- $navbarBackground: $grayDarker
59
- $navbarBackgroundHighlight: $grayDark
64
+ $navbarHeight: 40px !default
65
+ $navbarBackground: $grayDarker !default
66
+ $navbarBackgroundHighlight: $grayDark !default
67
+ $navbarLinkBackgroundHover: transparent !default
60
68
 
61
- $navbarText: $grayLight
62
- $navbarLinkColor: $grayLight
63
- $navbarLinkColorHover: $white
69
+ $navbarText: $grayLight !default
70
+ $navbarLinkColor: $grayLight !default
71
+ $navbarLinkColorHover: $white !default
64
72
 
65
73
  // Form states and alerts
66
- $warningText: #c09853
67
- $warningBackground: #fcf8e3
68
- $warningBorder: darken(adjust-hue($warningBackground, -10), 3%)
74
+ $warningText: #c09853 !default
75
+ $warningBackground: #fcf8e3 !default
76
+ $warningBorder: darken(adjust-hue($warningBackground, -10), 3%) !default
69
77
 
70
- $errorText: #b94a48
71
- $errorBackground: #f2dede
72
- $errorBorder: darken(adjust-hue($errorBackground, -10), 3%)
78
+ $errorText: #b94a48 !default
79
+ $errorBackground: #f2dede !default
80
+ $errorBorder: darken(adjust-hue($errorBackground, -10), 3%) !default
73
81
 
74
- $successText: #468847
75
- $successBackground: #dff0d8
76
- $successBorder: darken(adjust-hue($successBackground, -10), 5%)
82
+ $successText: #468847 !default
83
+ $successBackground: #dff0d8 !default
84
+ $successBorder: darken(adjust-hue($successBackground, -10), 5%) !default
77
85
 
78
- $infoText: #3a87ad
79
- $infoBackground: #d9edf7
80
- $infoBorder: darken(adjust-hue($infoBackground, -10), 7%)
86
+ $infoText: #3a87ad !default
87
+ $infoBackground: #d9edf7 !default
88
+ $infoBorder: darken(adjust-hue($infoBackground, -10), 7%) !default
81
89
 
82
90
  // GRID
83
91
  // --------------------------------------------------
84
92
 
85
93
  // Default 940px grid
86
- $gridColumns: 12
87
- $gridColumnWidth: 60px
88
- $gridGutterWidth: 20px
89
- $gridRowWidth: $gridColumns * $gridColumnWidth + $gridGutterWidth * ($gridColumns - 1)
94
+ $gridColumns: 12 !default
95
+ $gridColumnWidth: 60px !default
96
+ $gridGutterWidth: 20px !default
97
+ $gridRowWidth: $gridColumns * $gridColumnWidth + $gridGutterWidth * ($gridColumns - 1) !default
90
98
 
91
99
  // Fluid grid
92
- $fluidGridColumnWidth: 6.383%
93
- $fluidGridGutterWidth: 2.128%
100
+ $fluidGridColumnWidth: 6.383% !default
101
+ $fluidGridGutterWidth: 2.128% !default
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass_twitter_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-04 00:00:00.000000000 Z
12
+ date: 2012-02-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: compass
16
- requirement: &70246547532360 !ruby/object:Gem::Requirement
16
+ requirement: &70327296649540 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70246547532360
24
+ version_requirements: *70327296649540
25
25
  description: Compass/SCSS version of the twitter bootstrap
26
26
  email:
27
27
  - vrwaller@gmail.com
@@ -136,12 +136,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
136
  - - ! '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
+ segments:
140
+ - 0
141
+ hash: -64765018268233274
139
142
  required_rubygems_version: !ruby/object:Gem::Requirement
140
143
  none: false
141
144
  requirements:
142
145
  - - ! '>='
143
146
  - !ruby/object:Gem::Version
144
147
  version: '0'
148
+ segments:
149
+ - 0
150
+ hash: -64765018268233274
145
151
  requirements: []
146
152
  rubyforge_project:
147
153
  rubygems_version: 1.8.15