compass_twitter_bootstrap 0.1.8 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. data/CHANGELOG.md +6 -0
  2. data/README.md +14 -8
  3. data/build/convert.rb +58 -33
  4. data/lib/compass_twitter_bootstrap.rb +1 -1
  5. data/lib/compass_twitter_bootstrap/version.rb +1 -1
  6. data/stylesheets/_compass_twitter_bootstrap.scss +45 -7
  7. data/stylesheets/_compass_twitter_bootstrap_responsive.scss +322 -0
  8. data/stylesheets/compass_twitter_bootstrap/_accordion.scss +28 -0
  9. data/stylesheets/compass_twitter_bootstrap/_alerts.scss +70 -0
  10. data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +22 -0
  11. data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +147 -0
  12. data/stylesheets/compass_twitter_bootstrap/_buttons.scss +165 -0
  13. data/stylesheets/compass_twitter_bootstrap/_carousel.scss +121 -0
  14. data/stylesheets/compass_twitter_bootstrap/_close.scss +18 -0
  15. data/stylesheets/compass_twitter_bootstrap/_code.scss +44 -0
  16. data/stylesheets/compass_twitter_bootstrap/_component-animations.scss +18 -0
  17. data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +131 -0
  18. data/stylesheets/compass_twitter_bootstrap/_forms.scss +335 -299
  19. data/stylesheets/compass_twitter_bootstrap/_grid.scss +8 -0
  20. data/stylesheets/compass_twitter_bootstrap/_hero-unit.scss +20 -0
  21. data/stylesheets/compass_twitter_bootstrap/_labels.scss +16 -0
  22. data/stylesheets/compass_twitter_bootstrap/_layouts.scss +17 -0
  23. data/stylesheets/compass_twitter_bootstrap/_mixins.scss +409 -68
  24. data/stylesheets/compass_twitter_bootstrap/_modals.scss +72 -0
  25. data/stylesheets/compass_twitter_bootstrap/_navbar.scss +292 -0
  26. data/stylesheets/compass_twitter_bootstrap/_navs.scss +344 -0
  27. data/stylesheets/compass_twitter_bootstrap/_pager.scss +30 -0
  28. data/stylesheets/compass_twitter_bootstrap/_pagination.scss +55 -0
  29. data/stylesheets/compass_twitter_bootstrap/_popovers.scss +49 -0
  30. data/stylesheets/compass_twitter_bootstrap/_progress-bars.scss +95 -0
  31. data/stylesheets/compass_twitter_bootstrap/_reset.scss +37 -52
  32. data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +13 -123
  33. data/stylesheets/compass_twitter_bootstrap/_sprites.scss +156 -0
  34. data/stylesheets/compass_twitter_bootstrap/_tables.scss +75 -160
  35. data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +35 -0
  36. data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +35 -0
  37. data/stylesheets/compass_twitter_bootstrap/_type.scss +100 -70
  38. data/stylesheets/compass_twitter_bootstrap/_utilities.scss +23 -0
  39. data/stylesheets/compass_twitter_bootstrap/_variables.scss +94 -55
  40. data/stylesheets/compass_twitter_bootstrap/_wells.scss +17 -0
  41. data/stylesheets_sass/_compass_twitter_bootstrap.sass +49 -6
  42. data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +252 -0
  43. data/stylesheets_sass/compass_twitter_bootstrap/_accordion.sass +24 -0
  44. data/stylesheets_sass/compass_twitter_bootstrap/_alerts.sass +65 -0
  45. data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +18 -0
  46. data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +129 -0
  47. data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +150 -0
  48. data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +95 -0
  49. data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +16 -0
  50. data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +41 -0
  51. data/stylesheets_sass/compass_twitter_bootstrap/_component-animations.sass +16 -0
  52. data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +121 -0
  53. data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +327 -306
  54. data/stylesheets_sass/compass_twitter_bootstrap/_grid.sass +8 -0
  55. data/stylesheets_sass/compass_twitter_bootstrap/_hero-unit.sass +17 -0
  56. data/stylesheets_sass/compass_twitter_bootstrap/_labels.sass +23 -0
  57. data/stylesheets_sass/compass_twitter_bootstrap/_layouts.sass +14 -0
  58. data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +425 -57
  59. data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +75 -0
  60. data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +258 -0
  61. data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +316 -0
  62. data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +29 -0
  63. data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +53 -0
  64. data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +55 -0
  65. data/stylesheets_sass/compass_twitter_bootstrap/_progress-bars.sass +89 -0
  66. data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +33 -67
  67. data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +13 -175
  68. data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +392 -0
  69. data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +67 -139
  70. data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +34 -0
  71. data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +43 -0
  72. data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +95 -65
  73. data/stylesheets_sass/compass_twitter_bootstrap/_utilities.sass +20 -0
  74. data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +67 -45
  75. data/stylesheets_sass/compass_twitter_bootstrap/_wells.sass +15 -0
  76. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  77. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  78. data/vendor/assets/javascripts/bootstrap-alert.js +91 -0
  79. data/vendor/assets/javascripts/bootstrap-button.js +98 -0
  80. data/vendor/assets/javascripts/bootstrap-carousel.js +154 -0
  81. data/vendor/assets/javascripts/bootstrap-collapse.js +136 -0
  82. data/vendor/assets/javascripts/bootstrap-dropdown.js +58 -21
  83. data/vendor/assets/javascripts/bootstrap-modal.js +63 -114
  84. data/vendor/assets/javascripts/bootstrap-popover.js +38 -33
  85. data/vendor/assets/javascripts/bootstrap-scrollspy.js +62 -44
  86. data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
  87. data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
  88. data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
  89. data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
  90. metadata +69 -17
  91. data/stylesheets/compass_twitter_bootstrap/_patterns.scss +0 -1058
  92. data/stylesheets_sass/compass_twitter_bootstrap/_patterns.sass +0 -923
  93. data/vendor/assets/javascripts/bootstrap-alerts.js +0 -124
  94. data/vendor/assets/javascripts/bootstrap-buttons.js +0 -64
  95. data/vendor/assets/javascripts/bootstrap-tabs.js +0 -80
  96. data/vendor/assets/javascripts/bootstrap-twipsy.js +0 -321
@@ -0,0 +1,34 @@
1
+ // THUMBNAILS
2
+ // ----------
3
+
4
+ .thumbnails
5
+ margin-left: -20px
6
+ list-style: none
7
+ +clearfix
8
+
9
+ .thumbnails > li
10
+ float: left
11
+ margin: 0 0 $baseLineHeight 20px
12
+
13
+ .thumbnail
14
+ display: block
15
+ padding: 4px
16
+ line-height: 1
17
+ border: 1px solid #ddd
18
+ +border-radius(4px)
19
+ +box-shadow(0 1px 1px rgba(0, 0, 0, 0.075))
20
+
21
+ // Add a hover state for linked versions only
22
+ a.thumbnail:hover
23
+ border-color: $linkColor
24
+ +box-shadow(0 1px 4px rgba(0, 105, 214, 0.25))
25
+
26
+ // Images and captions
27
+ .thumbnail > img
28
+ display: block
29
+ max-width: 100%
30
+ margin-left: auto
31
+ margin-right: auto
32
+
33
+ .thumbnail .caption
34
+ padding: 9px
@@ -0,0 +1,43 @@
1
+ // TOOLTIP
2
+ // ------=
3
+
4
+ .tooltip
5
+ position: absolute
6
+ z-index: $zindexTooltip
7
+ display: block
8
+ visibility: visible
9
+ padding: 5px
10
+ font-size: 11px
11
+ +opacity(0)
12
+ &.in
13
+ +opacity(0.8)
14
+ &.top
15
+ margin-top: -2px
16
+ &.right
17
+ margin-left: 2px
18
+ &.bottom
19
+ margin-top: 2px
20
+ &.left
21
+ margin-left: -2px
22
+ &.top .tooltip-arrow
23
+ +popoverArrow-top
24
+ &.left .tooltip-arrow
25
+ +popoverArrow-left
26
+ &.bottom .tooltip-arrow
27
+ +popoverArrow-bottom
28
+ &.right .tooltip-arrow
29
+ +popoverArrow-right
30
+
31
+ .tooltip-inner
32
+ max-width: 200px
33
+ padding: 3px 8px
34
+ color: $white
35
+ text-align: center
36
+ text-decoration: none
37
+ background-color: $black
38
+ +border-radius(4px)
39
+
40
+ .tooltip-arrow
41
+ position: absolute
42
+ width: 0
43
+ height: 0
@@ -1,66 +1,88 @@
1
- /* Typography.less
2
- * Headings, body text, lists, code, and more for a versatile and durable typography system
3
- * ----------------------------------------------------------------------------------------
1
+ // Typography.less
2
+ // Headings, body text, lists, code, and more for a versatile and durable typography system
3
+ // ----------------------------------------------------------------------------------------
4
4
 
5
5
  // BODY TEXT
6
6
  // ---------
7
7
 
8
8
  p
9
- +shorthand(normal, $basefont, $baseline)
10
- margin-bottom: $baseline / 2
9
+ margin: 0 0 $baseLineHeight / 2
10
+ font-family: $baseFontFamily
11
+ font-size: $baseFontSize
12
+ line-height: $baseLineHeight
11
13
  small
12
- font-size: $basefont - 2
14
+ font-size: $baseFontSize - 2
13
15
  color: $grayLight
14
16
 
17
+ .lead
18
+ margin-bottom: $baseLineHeight
19
+ font-size: 20px
20
+ font-weight: 200
21
+ line-height: $baseLineHeight * 1.5
22
+
15
23
  // HEADINGS
16
24
  // --------
17
25
 
18
26
  h1, h2, h3, h4, h5, h6
27
+ margin: 0
19
28
  font-weight: bold
20
29
  color: $grayDark
30
+ text-rendering: optimizelegibility
31
+ // Fix the character spacing for headings
21
32
  small
33
+ font-weight: normal
22
34
  color: $grayLight
23
35
 
24
36
  h1
25
- margin-bottom: $baseline
26
37
  font-size: 30px
27
- line-height: $baseline * 2
38
+ line-height: $baseLineHeight * 2
28
39
  small
29
40
  font-size: 18px
30
41
 
31
42
  h2
32
43
  font-size: 24px
33
- line-height: $baseline * 2
44
+ line-height: $baseLineHeight * 2
34
45
  small
35
- font-size: 14px
36
-
37
- h3, h4, h5, h6
38
- line-height: $baseline * 2
46
+ font-size: 18px
39
47
 
40
48
  h3
49
+ line-height: $baseLineHeight * 1.5
41
50
  font-size: 18px
42
51
  small
43
52
  font-size: 14px
44
53
 
54
+ h4, h5, h6
55
+ line-height: $baseLineHeight
56
+
45
57
  h4
46
- font-size: 16px
58
+ font-size: 14px
47
59
  small
48
60
  font-size: 12px
49
61
 
50
62
  h5
51
- font-size: 14px
63
+ font-size: 12px
52
64
 
53
65
  h6
54
- font-size: 13px
66
+ font-size: 11px
55
67
  color: $grayLight
56
68
  text-transform: uppercase
57
69
 
58
- // COLORS
59
- // ------
70
+ // Page header
71
+ .page-header
72
+ padding-bottom: $baseLineHeight - 1
73
+ margin: $baseLineHeight 0
74
+ border-bottom: 1px solid $grayLighter
75
+
76
+ .page-header h1
77
+ line-height: 1
78
+
79
+ // LISTS
80
+ // -----
60
81
 
61
82
  // Unordered and Ordered lists
62
83
  ul, ol
63
- margin: 0 0 $baseline 25px
84
+ padding: 0
85
+ margin: 0 0 $baseLineHeight / 2 25px
64
86
 
65
87
  ul ul,
66
88
  ul ol,
@@ -75,88 +97,96 @@ ol
75
97
  list-style: decimal
76
98
 
77
99
  li
78
- line-height: $baseline
79
- color: $gray
100
+ line-height: $baseLineHeight
80
101
 
81
102
  ul.unstyled
82
- list-style: none
83
103
  margin-left: 0
104
+ list-style: none
84
105
 
85
106
  // Description Lists
86
107
  dl
87
- margin-bottom: $baseline
88
- dt, dd
89
- line-height: $baseline
90
- dt
91
- font-weight: bold
92
- dd
93
- margin-left: $baseline / 2
108
+ margin-bottom: $baseLineHeight
109
+
110
+ dt,
111
+ dd
112
+ line-height: $baseLineHeight
113
+
114
+ dt
115
+ font-weight: bold
116
+
117
+ dd
118
+ margin-left: $baseLineHeight / 2
94
119
 
95
120
  // MISC
96
121
  // ----
97
122
 
98
123
  // Horizontal rules
99
124
  hr
100
- margin: 20px 0 19px
125
+ margin: $baseLineHeight 0
101
126
  border: 0
102
- border-bottom: 1px solid #eee
127
+ border-top: 1px solid #e5e5e5
128
+ border-bottom: 1px solid $white
103
129
 
104
130
  // Emphasis
105
131
  strong
106
- font-style: inherit
107
132
  font-weight: bold
108
133
 
109
134
  em
110
135
  font-style: italic
111
- font-weight: inherit
112
- line-height: inherit
113
136
 
114
137
  .muted
115
138
  color: $grayLight
116
139
 
140
+ // Abbreviations and acronyms
141
+ abbr
142
+ font-size: 90%
143
+ text-transform: uppercase
144
+ border-bottom: 1px dotted #ddd
145
+ cursor: help
146
+
117
147
  // Blockquotes
118
148
  blockquote
119
- margin-bottom: $baseline
120
- border-left: 5px solid #eee
121
- padding-left: 15px
149
+ padding: 0 0 0 15px
150
+ margin: 0 0 $baseLineHeight
151
+ border-left: 5px solid $grayLighter
122
152
  p
123
- +shorthand(300, 14px, $baseline)
124
153
  margin-bottom: 0
154
+ +font-shorthand(16px, 300, $baseLineHeight * 1.25)
125
155
  small
126
156
  display: block
127
- +shorthand(300, 12px, $baseline)
157
+ line-height: $baseLineHeight
128
158
  color: $grayLight
129
159
  &:before
130
160
  content: '\2014 \00A0'
161
+ // Float right with text-align: right
162
+ &.pull-right
163
+ float: right
164
+ padding-left: 0
165
+ padding-right: 15px
166
+ border-left: 0
167
+ border-right: 5px solid $grayLighter
168
+ p,
169
+ small
170
+ text-align: right
171
+
172
+ // Quotes
173
+
174
+ q:before,
175
+ q:after,
176
+ blockquote:before,
177
+ blockquote:after
178
+ content: ""
131
179
 
132
180
  // Addresses
133
181
  address
134
182
  display: block
135
- line-height: $baseline
136
- margin-bottom: $baseline
137
-
138
- // Inline and block code styles
139
- code, pre
140
- padding: 0 3px 2px
141
- font-family: Monaco, Andale Mono, Courier New, monospace
142
- font-size: 12px
143
- +border-radius(3px)
183
+ margin-bottom: $baseLineHeight
184
+ line-height: $baseLineHeight
185
+ font-style: normal
144
186
 
145
- code
146
- background-color: lighten($orange, 40%)
147
- color: rgba(0, 0, 0, 0.75)
148
- padding: 1px 3px
187
+ // Misc
188
+ small
189
+ font-size: 100%
149
190
 
150
- pre
151
- background-color: #f5f5f5
152
- display: block
153
- padding: ($baseline - 1) / 2
154
- margin: 0 0 $baseline
155
- line-height: $baseline
156
- font-size: 12px
157
- border: 1px solid #ccc
158
- border: 1px solid rgba(0, 0, 0, 0.15)
159
- +border-radius(3px)
160
- white-space: pre
161
- white-space: pre-wrap
162
- word-wrap: break-word
191
+ cite
192
+ font-style: normal
@@ -0,0 +1,20 @@
1
+ // UTILITY CLASSES
2
+ // ---------------
3
+
4
+ // Quick floats
5
+ .pull-right
6
+ float: right
7
+
8
+ .pull-left
9
+ float: left
10
+
11
+ // Toggling content
12
+ .hide
13
+ display: none
14
+
15
+ .show
16
+ display: block
17
+
18
+ // Visibility
19
+ .invisible
20
+ visibility: hidden
@@ -1,20 +1,24 @@
1
- /* Variables.less
2
- * Variables to customize the look and feel of Bootstrap
3
- * -----------------------------------------------------
1
+ // Variables.less
2
+ // Variables to customize the look and feel of Bootstrap
3
+ // -----------------------------------------------------
4
+
5
+ // GLOBAL VALUES
6
+ // --------------------------------------------------
4
7
 
5
8
  // Links
6
- $linkColor: #0069d6
7
- $linkColorHover: darken($linkColor, 15)
9
+ $linkColor: #0088cc
10
+ $linkColorHover: darken($linkColor, 15%)
8
11
 
9
12
  // Grays
10
13
  $black: black
11
- $grayDark: lighten($black, 25%)
12
- $gray: lighten($black, 50%)
13
- $grayLight: lighten($black, 75%)
14
- $grayLighter: lighten($black, 90%)
14
+ $grayDarker: #222222
15
+ $grayDark: #333333
16
+ $gray: #555555
17
+ $grayLight: #999999
18
+ $grayLighter: #eeeeee
15
19
  $white: white
16
20
 
17
- // Accent Colors
21
+ // Accent colors
18
22
  $blue: #049cdb
19
23
  $blueDark: #0064cd
20
24
  $green: #46a546
@@ -24,48 +28,66 @@ $orange: #f89406
24
28
  $pink: #c3325f
25
29
  $purple: #7a43b6
26
30
 
27
- // Baseline grid
28
- $basefont: 13px
29
- $baseline: 18px
31
+ // Typography
32
+ $baseFontSize: 13px
33
+ $baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif
34
+ $baseLineHeight: 18px
35
+ $textColor: $grayDark
30
36
 
31
- // Griditude
32
- // Modify the grid styles in mixins.less
33
- $gridColumns: 16
34
- $gridColumnWidth: 40px
35
- $gridGutterWidth: 20px
36
- $extraSpace: $gridGutterWidth * 2
37
+ // Buttons
38
+ $primaryButtonBackground: $linkColor
39
+
40
+ // COMPONENT VARIABLES
41
+ // --------------------------------------------------
37
42
 
38
- // For our grid calculations
39
- $siteWidth: $gridColumns * $gridColumnWidth + $gridGutterWidth * ($gridColumns - 1)
43
+ // Z-index master list
44
+ // Used for a bird's eye view of components dependent on the z-axis
45
+ // Try to avoid customizing these :)
46
+ $zindexDropdown: 1000
47
+ $zindexPopover: 1010
48
+ $zindexTooltip: 1020
49
+ $zindexFixedNavbar: 1030
50
+ $zindexModalBackdrop: 1040
51
+ $zindexModal: 1050
40
52
 
41
- // Color Scheme
42
- // Use this to roll your own color schemes if you like (unused by Bootstrap by default)
43
- $baseColor: $blue
53
+ // Input placeholder text color
54
+ $placeholderText: $grayLight
44
55
 
45
- // Set a base color
46
- $complement: adjust-hue($baseColor, 180)
56
+ // Navbar
57
+ $navbarHeight: 40px
58
+ $navbarBackground: $grayDarker
59
+ $navbarBackgroundHighlight: $grayDark
47
60
 
48
- // Determine a complementary color
49
- $split1: adjust-hue($baseColor, 158)
61
+ $navbarText: $grayLight
62
+ $navbarLinkColor: $grayLight
63
+ $navbarLinkColorHover: $white
50
64
 
51
- // Split complements
52
- $split2: adjust-hue($baseColor, -158)
53
- $triad1: adjust-hue($baseColor, 135)
65
+ // Form states and alerts
66
+ $warningText: #c09853
67
+ $warningBackground: #fcf8e3
68
+ $warningBorder: darken(adjust-hue($warningBackground, -10), 3%)
54
69
 
55
- // Triads colors
56
- $triad2: adjust-hue($baseColor, -135)
57
- $tetra1: adjust-hue($baseColor, 90)
70
+ $errorText: #b94a48
71
+ $errorBackground: #f2dede
72
+ $errorBorder: darken(adjust-hue($errorBackground, -10), 3%)
58
73
 
59
- // Tetra colors
60
- $tetra2: adjust-hue($baseColor, -90)
61
- $analog1: adjust-hue($baseColor, 22)
74
+ $successText: #468847
75
+ $successBackground: #dff0d8
76
+ $successBorder: darken(adjust-hue($successBackground, -10), 5%)
62
77
 
63
- // Analogs colors
64
- $analog2: adjust-hue($baseColor, -22)
78
+ $infoText: #3a87ad
79
+ $infoBackground: #d9edf7
80
+ $infoBorder: darken(adjust-hue($infoBackground, -10), 7%)
81
+
82
+ // GRID
83
+ // --------------------------------------------------
84
+
85
+ // Default 940px grid
86
+ $gridColumns: 12
87
+ $gridColumnWidth: 60px
88
+ $gridGutterWidth: 20px
89
+ $gridRowWidth: $gridColumns * $gridColumnWidth + $gridGutterWidth * ($gridColumns - 1)
65
90
 
66
- // More variables coming soon:
67
- // - $basefont to $baseFontSize
68
- // - $baseline to $baseLineHeight
69
- // - $baseFontFamily
70
- // - $primaryButtonColor
71
- // - anything else? File an issue on GitHub
91
+ // Fluid grid
92
+ $fluidGridColumnWidth: 6.383%
93
+ $fluidGridGutterWidth: 2.128%