concen 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. data/Gemfile +0 -3
  2. data/Gemfile.lock +0 -9
  3. data/LICENSE +1 -1
  4. data/README.md +23 -1
  5. data/app/assets/stylesheets/concen/application.css.sass +14 -16
  6. data/app/assets/stylesheets/concen/compass/_css3.scss +17 -0
  7. data/app/assets/stylesheets/concen/compass/_layout.scss +3 -0
  8. data/app/assets/stylesheets/concen/compass/_reset-legacy.scss +3 -0
  9. data/app/assets/stylesheets/concen/compass/_reset.scss +3 -0
  10. data/app/assets/stylesheets/concen/compass/_support.scss +36 -0
  11. data/app/assets/stylesheets/concen/compass/_typography.scss +4 -0
  12. data/app/assets/stylesheets/concen/compass/_utilities.scss +9 -0
  13. data/app/assets/stylesheets/concen/compass/css3/_appearance.scss +13 -0
  14. data/app/assets/stylesheets/concen/compass/css3/_background-clip.scss +43 -0
  15. data/app/assets/stylesheets/concen/compass/css3/_background-origin.scss +42 -0
  16. data/app/assets/stylesheets/concen/compass/css3/_background-size.scss +26 -0
  17. data/app/assets/stylesheets/concen/compass/css3/_border-radius.scss +135 -0
  18. data/app/assets/stylesheets/concen/compass/css3/_box-shadow.scss +93 -0
  19. data/app/assets/stylesheets/concen/compass/css3/_box-sizing.scss +13 -0
  20. data/app/assets/stylesheets/concen/compass/css3/_box.scss +111 -0
  21. data/app/assets/stylesheets/concen/compass/css3/_columns.scss +60 -0
  22. data/app/assets/stylesheets/concen/compass/css3/_font-face.scss +63 -0
  23. data/app/assets/stylesheets/concen/compass/css3/_gradient.scss +99 -0
  24. data/app/assets/stylesheets/concen/compass/css3/_images.scss +132 -0
  25. data/app/assets/stylesheets/concen/compass/css3/_inline-block.scss +16 -0
  26. data/app/assets/stylesheets/concen/compass/css3/_opacity.scss +19 -0
  27. data/app/assets/stylesheets/concen/compass/css3/_pie.scss +73 -0
  28. data/app/assets/stylesheets/concen/compass/css3/_shared.scss +38 -0
  29. data/app/assets/stylesheets/concen/compass/css3/_text-shadow.scss +62 -0
  30. data/app/assets/stylesheets/concen/compass/css3/_transform-legacy.scss +87 -0
  31. data/app/assets/stylesheets/concen/compass/css3/_transform.scss +598 -0
  32. data/app/assets/stylesheets/concen/compass/css3/_transition.scss +119 -0
  33. data/app/assets/stylesheets/concen/compass/layout/_grid-background.scss +178 -0
  34. data/app/assets/stylesheets/concen/compass/layout/_sticky-footer.scss +23 -0
  35. data/app/assets/stylesheets/concen/compass/layout/_stretching.scss +24 -0
  36. data/app/assets/stylesheets/concen/compass/reset/_utilities-legacy.scss +135 -0
  37. data/app/assets/stylesheets/concen/compass/reset/_utilities.scss +140 -0
  38. data/app/assets/stylesheets/concen/compass/typography/_links.scss +3 -0
  39. data/app/assets/stylesheets/concen/compass/typography/_lists.scss +4 -0
  40. data/app/assets/stylesheets/concen/compass/typography/_text.scss +4 -0
  41. data/app/assets/stylesheets/concen/compass/typography/_vertical_rhythm.scss +193 -0
  42. data/app/assets/stylesheets/concen/compass/typography/links/_hover-link.scss +5 -0
  43. data/app/assets/stylesheets/concen/compass/typography/links/_link-colors.scss +28 -0
  44. data/app/assets/stylesheets/concen/compass/typography/links/_unstyled-link.scss +7 -0
  45. data/app/assets/stylesheets/concen/compass/typography/lists/_bullets.scss +34 -0
  46. data/app/assets/stylesheets/concen/compass/typography/lists/_horizontal-list.scss +61 -0
  47. data/app/assets/stylesheets/concen/compass/typography/lists/_inline-block-list.scss +47 -0
  48. data/app/assets/stylesheets/concen/compass/typography/lists/_inline-list.scss +44 -0
  49. data/app/assets/stylesheets/concen/compass/typography/text/_ellipsis.scss +25 -0
  50. data/app/assets/stylesheets/concen/compass/typography/text/_force-wrap.scss +12 -0
  51. data/app/assets/stylesheets/concen/compass/typography/text/_nowrap.scss +2 -0
  52. data/app/assets/stylesheets/concen/compass/typography/text/_replacement.scss +34 -0
  53. data/app/assets/stylesheets/concen/compass/utilities/_color.scss +1 -0
  54. data/app/assets/stylesheets/concen/compass/utilities/_general.scss +6 -0
  55. data/app/assets/stylesheets/concen/compass/utilities/_links.scss +5 -0
  56. data/app/assets/stylesheets/concen/compass/utilities/_lists.scss +6 -0
  57. data/app/assets/stylesheets/concen/compass/utilities/_print.scss +17 -0
  58. data/app/assets/stylesheets/concen/compass/utilities/_sprites.scss +1 -0
  59. data/app/assets/stylesheets/concen/compass/utilities/_tables.scss +3 -0
  60. data/app/assets/stylesheets/concen/compass/utilities/_text.scss +5 -0
  61. data/app/assets/stylesheets/concen/compass/utilities/color/_contrast.scss +28 -0
  62. data/app/assets/stylesheets/concen/compass/utilities/general/_clearfix.scss +44 -0
  63. data/app/assets/stylesheets/concen/compass/utilities/general/_float.scss +30 -0
  64. data/app/assets/stylesheets/concen/compass/utilities/general/_hacks.scss +46 -0
  65. data/app/assets/stylesheets/concen/compass/utilities/general/_min.scss +16 -0
  66. data/app/assets/stylesheets/concen/compass/utilities/general/_reset.scss +2 -0
  67. data/app/assets/stylesheets/concen/compass/utilities/general/_tabs.scss +1 -0
  68. data/app/assets/stylesheets/concen/compass/utilities/general/_tag-cloud.scss +18 -0
  69. data/app/assets/stylesheets/concen/compass/utilities/links/_hover-link.scss +3 -0
  70. data/app/assets/stylesheets/concen/compass/utilities/links/_link-colors.scss +3 -0
  71. data/app/assets/stylesheets/concen/compass/utilities/links/_unstyled-link.scss +3 -0
  72. data/app/assets/stylesheets/concen/compass/utilities/lists/_bullets.scss +3 -0
  73. data/app/assets/stylesheets/concen/compass/utilities/lists/_horizontal-list.scss +3 -0
  74. data/app/assets/stylesheets/concen/compass/utilities/lists/_inline-block-list.scss +3 -0
  75. data/app/assets/stylesheets/concen/compass/utilities/lists/_inline-list.scss +3 -0
  76. data/app/assets/stylesheets/concen/compass/utilities/sprites/_base.scss +66 -0
  77. data/app/assets/stylesheets/concen/compass/utilities/sprites/_sprite-img.scss +56 -0
  78. data/app/assets/stylesheets/concen/compass/utilities/tables/_alternating-rows-and-columns.scss +20 -0
  79. data/app/assets/stylesheets/concen/compass/utilities/tables/_borders.scss +33 -0
  80. data/app/assets/stylesheets/concen/compass/utilities/tables/_scaffolding.scss +9 -0
  81. data/app/assets/stylesheets/concen/compass/utilities/text/_ellipsis.scss +3 -0
  82. data/app/assets/stylesheets/concen/compass/utilities/text/_nowrap.scss +3 -0
  83. data/app/assets/stylesheets/concen/compass/utilities/text/_replacement.scss +3 -0
  84. data/app/assets/stylesheets/concen/partials/_base.sass +4 -4
  85. data/app/assets/stylesheets/concen/partials/_variables.sass +5 -5
  86. data/app/helpers/concen/application_helper.rb +0 -6
  87. data/app/models/concen/page.rb +12 -3
  88. data/app/views/concen/grid_files/_form.html.erb +23 -0
  89. data/app/views/concen/grid_files/edit.html.erb +10 -0
  90. data/app/views/concen/pages/_file_list.erb +11 -0
  91. data/app/views/concen/pages/_files.erb +32 -0
  92. data/app/views/concen/pages/_form.html.erb +26 -0
  93. data/app/views/concen/pages/_nested_list.html.erb +22 -0
  94. data/app/views/concen/pages/edit.html.erb +19 -0
  95. data/app/views/concen/pages/index.html.erb +12 -0
  96. data/app/views/concen/pages/new.html.erb +10 -0
  97. data/app/views/concen/performances/_runtimes.html.erb +8 -0
  98. data/app/views/concen/performances/show.html.erb +40 -0
  99. data/app/views/concen/sessions/new.html.erb +17 -0
  100. data/app/views/concen/statuses/_server.html.erb +34 -0
  101. data/app/views/concen/statuses/show.html.erb +27 -0
  102. data/app/views/concen/traffics/_pages.html.erb +8 -0
  103. data/app/views/concen/traffics/_referrals.html.erb +12 -0
  104. data/app/views/concen/traffics/show.html.erb +40 -0
  105. data/app/views/concen/users/_form.html.erb +42 -0
  106. data/app/views/concen/users/{_password_reset.html.haml → _password_reset.html.erb} +0 -0
  107. data/app/views/concen/users/_settings.html.erb +23 -0
  108. data/app/views/concen/users/edit.html.erb +12 -0
  109. data/app/views/concen/users/index.html.erb +40 -0
  110. data/app/views/concen/users/new.html.erb +6 -0
  111. data/app/views/concen/users/new_invite.html.erb +24 -0
  112. data/app/views/concen/users/new_reset_password.html.erb +24 -0
  113. data/app/views/layouts/concen/{_additional_header_links.haml → _additional_header_links.html.erb} +0 -0
  114. data/app/views/layouts/concen/_header.html.erb +24 -0
  115. data/app/views/layouts/concen/{maintenance.html.haml → _iphone.html.erb} +0 -0
  116. data/app/views/layouts/concen/application.html.erb +42 -0
  117. data/app/views/layouts/concen/maintenance.html.erb +0 -0
  118. data/concen.gemspec +0 -2
  119. data/lib/concen/engine.rb +0 -1
  120. data/lib/concen/version.rb +1 -1
  121. data/test/support/raw_text/smartypants.html +1 -1
  122. data/test/support/raw_text/smartypants.txt +1 -1
  123. metadata +130 -74
  124. data/app/views/concen/grid_files/_form.html.haml +0 -15
  125. data/app/views/concen/grid_files/edit.html.haml +0 -7
  126. data/app/views/concen/pages/_file_list.haml +0 -7
  127. data/app/views/concen/pages/_files.haml +0 -24
  128. data/app/views/concen/pages/_form.html.haml +0 -17
  129. data/app/views/concen/pages/_nested_list.html.haml +0 -15
  130. data/app/views/concen/pages/edit.html.haml +0 -13
  131. data/app/views/concen/pages/index.html.haml +0 -12
  132. data/app/views/concen/pages/new.html.haml +0 -7
  133. data/app/views/concen/performances/_runtimes.html.haml +0 -5
  134. data/app/views/concen/performances/show.html.haml +0 -27
  135. data/app/views/concen/sessions/new.html.haml +0 -12
  136. data/app/views/concen/statuses/_server.html.haml +0 -19
  137. data/app/views/concen/statuses/show.html.haml +0 -18
  138. data/app/views/concen/traffics/_pages.html.haml +0 -5
  139. data/app/views/concen/traffics/_referrals.html.haml +0 -9
  140. data/app/views/concen/traffics/show.html.haml +0 -27
  141. data/app/views/concen/users/_form.html.haml +0 -29
  142. data/app/views/concen/users/_settings.html.haml +0 -15
  143. data/app/views/concen/users/edit.html.haml +0 -9
  144. data/app/views/concen/users/index.html.haml +0 -32
  145. data/app/views/concen/users/new.html.haml +0 -4
  146. data/app/views/concen/users/new_invite.html.haml +0 -15
  147. data/app/views/concen/users/new_reset_password.html.haml +0 -15
  148. data/app/views/layouts/concen/_header.html.haml +0 -18
  149. data/app/views/layouts/concen/_iphone.html.haml +0 -6
  150. data/app/views/layouts/concen/application.html.haml +0 -33
data/Gemfile CHANGED
@@ -1,12 +1,9 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  gem "rails", ">= 3.1.0"
4
-
5
- gem "compass", "~> 0.12.alpha"
6
4
  gem "sass-rails", "~> 3.1.3"
7
5
 
8
6
  # gemspec.
9
- gem "haml", "~> 3.1.0"
10
7
  gem "mustache", "~> 0.99.4"
11
8
  gem "redcarpet", "2.0.0b5"
12
9
  gem "mongoid", "~> 2.2"
@@ -46,19 +46,12 @@ GEM
46
46
  childprocess (0.1.9)
47
47
  ffi (~> 1.0.6)
48
48
  chronic (0.6.4)
49
- chunky_png (1.2.1)
50
- compass (0.12.alpha.0)
51
- chunky_png (~> 1.2)
52
- fssm (>= 0.2.7)
53
- sass (~> 3.1)
54
49
  database_cleaner (0.6.0)
55
50
  domainatrix (0.0.10)
56
51
  addressable
57
52
  erubis (2.7.0)
58
53
  fabrication (1.1.0)
59
54
  ffi (1.0.9)
60
- fssm (0.2.7)
61
- haml (3.1.2)
62
55
  hike (1.2.1)
63
56
  i18n (0.6.0)
64
57
  json_pure (1.5.2)
@@ -144,11 +137,9 @@ DEPENDENCIES
144
137
  bson_ext (~> 1.4.0)
145
138
  capybara (>= 0.4.0)
146
139
  chronic (~> 0.6.3)
147
- compass (~> 0.12.alpha)
148
140
  database_cleaner (= 0.6.0)
149
141
  domainatrix (~> 0.0.10)
150
142
  fabrication (= 1.1.0)
151
- haml (~> 3.1.0)
152
143
  mime-types (~> 1.16)
153
144
  minitest (~> 2.6.1)
154
145
  mongo (~> 1.3)
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2011 Steve Randy Tantra
1
+ Copyright © 2011 Steve Randy Tantra
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -132,7 +132,14 @@ To access Concen web interface, use "concen" subdomain for example http://concen
132
132
 
133
133
  If you have used Concen for any of your websites and would like to be listed here. Please send me a message.
134
134
 
135
- ## Versions History
135
+ ## Versions
136
+
137
+ - **0.2.5**:
138
+
139
+ - Temporary fix for Redcarpet's smartypants extension.
140
+ - Minor color changes.
141
+ - Remove Compass dependency.
142
+ - Remove Haml dependency.
136
143
 
137
144
  - **0.2.4**:
138
145
 
@@ -187,3 +194,18 @@ If you have used Concen for any of your websites and would like to be listed her
187
194
  - **0.1.1**: Minor bug fixes.
188
195
 
189
196
  - **0.1**: Initial release.
197
+
198
+ ## Upcoming Features
199
+
200
+ - Time range selection in traffic statistics.
201
+ - Time range selection in performance statistics.
202
+
203
+ ## License
204
+
205
+ Copyright © 2011 Steve Randy Tantra
206
+
207
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
208
+
209
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
210
+
211
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -4,18 +4,16 @@
4
4
  //= require concen/jquery.ui.resizable
5
5
  @charset "utf-8"
6
6
 
7
- @import "compass"
8
- @import "compass/reset"
9
- @import "compass/typography/text/force-wrap"
10
- @import "blueprint/print"
7
+ @import "concen/compass/utilities"
8
+ @import "concen/compass/typography"
9
+ @import "concen/compass/css3"
10
+ @import "concen/compass/reset"
11
+
11
12
  @import "concen/partials/variables"
12
13
  @import "concen/partials/mixins"
13
14
  @import "concen/partials/base"
14
15
  @import "concen/partials/form"
15
16
 
16
- @media print
17
- +blueprint-print
18
-
19
17
  body.concen
20
18
  min-width: 960px
21
19
  padding: $standard-gap
@@ -54,10 +52,11 @@ header
54
52
  right: 0
55
53
  top: 0
56
54
  ul
57
- +horizontal-list(10px)
58
55
  font-size: 13px
59
56
  overflow: visible
60
57
  li
58
+ float: left
59
+ margin-left: 20px
61
60
  line-height: 25px
62
61
  a
63
62
  +hover-link
@@ -117,6 +116,7 @@ ul.pages
117
116
  width: 12px
118
117
  height: 12px
119
118
  +inline-block
119
+ vertical-align: middle
120
120
  p, ul p
121
121
  margin-bottom: 10px
122
122
  vertical-align: middle
@@ -159,10 +159,9 @@ footer
159
159
  #file-list
160
160
  width: 260px
161
161
  float: right
162
- // background: lighten(#000, 94%)
163
162
  padding: 0 0 0 20px
164
163
  margin-bottom: 20px
165
- +text-shadow(white, 0px, 1px, 0px)
164
+ text-shadow: white 0px 1px 0px
166
165
  position: relative
167
166
  h3
168
167
  line-height: 1
@@ -171,7 +170,7 @@ footer
171
170
  position: relative
172
171
  background: lighten(#000, 92%)
173
172
  padding: 6px 10px
174
- +text-shadow(white, 0px, 1px, 0px)
173
+ text-shadow: white 0px 1px 0px
175
174
  ul
176
175
  list-style-position: inside
177
176
  margin-bottom: 20px
@@ -213,7 +212,6 @@ footer
213
212
  float: left
214
213
  width: 31.25%
215
214
  margin-right: 3.125%
216
- // margin-bottom: 30px
217
215
  font-size: 12px
218
216
  .graph
219
217
  padding: $standard-gap/2
@@ -222,8 +220,8 @@ footer
222
220
  border-bottom: 1px solid $color-2
223
221
  padding: $standard-gap/3
224
222
  background: $color-4
225
- +border-top-radius(4px)
226
- +text-shadow(white, 0px, 1px, 0px)
223
+ +border-radius(4px 4px 0 0)
224
+ text-shadow: white 0px 1px 0px
227
225
  p.big-number
228
226
  font-size: 72px
229
227
  text-align: center
@@ -300,7 +298,7 @@ footer
300
298
  .qtip-tip, .qtip-wrapper
301
299
 
302
300
  .qtip-wrapper
303
- +box-shadow(rgba(0,0,0,0.75), 0, 1px, 3px)
301
+ +box-shadow(rgba(0,0,0,0.75) 0 1px 3px)
304
302
 
305
303
  // Ace Text Editor
306
304
 
@@ -351,7 +349,7 @@ table
351
349
  width: 100%
352
350
  th
353
351
  background: $color-4
354
- +border-top-radius(4px)
352
+ +border-radius(4px 4px 0 0)
355
353
  font-size: 16px
356
354
  font-weight: bold
357
355
  .wf-active &
@@ -0,0 +1,17 @@
1
+ @import "css3/border-radius";
2
+ @import "css3/inline-block";
3
+ @import "css3/opacity";
4
+ @import "css3/box-shadow";
5
+ @import "css3/text-shadow";
6
+ @import "css3/columns";
7
+ @import "css3/box-sizing";
8
+ @import "css3/box";
9
+ @import "css3/gradient";
10
+ @import "css3/images";
11
+ @import "css3/background-clip";
12
+ @import "css3/background-origin";
13
+ @import "css3/background-size";
14
+ @import "css3/font-face";
15
+ @import "css3/transform";
16
+ @import "css3/transition";
17
+ @import "css3/appearance";
@@ -0,0 +1,3 @@
1
+ @import "layout/grid-background";
2
+ @import "layout/sticky-footer";
3
+ @import "layout/stretching";
@@ -0,0 +1,3 @@
1
+ @import "reset/utilities-legacy";
2
+
3
+ @include global-reset;
@@ -0,0 +1,3 @@
1
+ @import "reset/utilities";
2
+
3
+ @include global-reset;
@@ -0,0 +1,36 @@
1
+ // Usually compass hacks apply to both ie6 & 7 -- set this to false to disable support for both.
2
+ $legacy-support-for-ie: true !default;
3
+
4
+ // Setting this to false will result in smaller output, but no support for ie6 hacks
5
+ $legacy-support-for-ie6: $legacy-support-for-ie !default;
6
+
7
+ // Setting this to false will result in smaller output, but no support for ie7 hacks
8
+ $legacy-support-for-ie7: $legacy-support-for-ie !default;
9
+
10
+ // Setting this to false will result in smaller output, but no support for legacy ie8 hacks
11
+ $legacy-support-for-ie8: $legacy-support-for-ie !default;
12
+
13
+ // @private
14
+ // The user can simply set $legacy-support-for-ie and 6, 7, and 8 will be set accordingly,
15
+ // But in case the user set each of those explicitly, we need to sync the value of
16
+ // this combined variable.
17
+ $legacy-support-for-ie: $legacy-support-for-ie6 or $legacy-support-for-ie7 or $legacy-support-for-ie8;
18
+
19
+ // Support for mozilla in experimental css3 properties (-moz).
20
+ $experimental-support-for-mozilla : true !default;
21
+ // Support for webkit in experimental css3 properties (-webkit).
22
+ $experimental-support-for-webkit : true !default;
23
+ // Support for webkit's original (non-standard) gradient syntax.
24
+ $support-for-original-webkit-gradients : true !default;
25
+ // Support for opera in experimental css3 properties (-o).
26
+ $experimental-support-for-opera : true !default;
27
+ // Support for microsoft in experimental css3 properties (-ms).
28
+ $experimental-support-for-microsoft : true !default;
29
+ // Support for khtml in experimental css3 properties (-khtml).
30
+ $experimental-support-for-khtml : true !default;
31
+ // Support for svg in experimental css3 properties.
32
+ // Setting this to true might add significant size to your
33
+ // generated stylesheets.
34
+ $experimental-support-for-svg : false !default;
35
+ // Support for CSS PIE in experimental css3 properties (-pie).
36
+ $experimental-support-for-pie : false !default;
@@ -0,0 +1,4 @@
1
+ @import "typography/links";
2
+ @import "typography/lists";
3
+ @import "typography/text";
4
+ @import "typography/vertical_rhythm";
@@ -0,0 +1,9 @@
1
+ @import "utilities/color";
2
+ @import "utilities/general";
3
+ @import "utilities/sprites";
4
+ @import "utilities/tables";
5
+
6
+ // deprecated
7
+ @import "typography/links";
8
+ @import "typography/lists";
9
+ @import "typography/text";
@@ -0,0 +1,13 @@
1
+ @import "shared";
2
+
3
+ // Change the appearance for Mozilla, Webkit and the future
4
+ //
5
+ // @param $ap
6
+ // [ none | normal | icon | window | button | menu | field ]
7
+
8
+ @mixin appearance($ap) {
9
+ $ap: unquote($ap);
10
+ @include experimental(appearance, $ap,
11
+ -moz, -webkit, not -o, not -ms, not -khtml, official
12
+ );
13
+ }
@@ -0,0 +1,43 @@
1
+ @import "shared";
2
+
3
+ // The default value is `padding-box` -- the box model used by modern browsers.
4
+ //
5
+ // If you wish to do so, you can override the default constant with `border-box`
6
+ //
7
+ // To override to the default border-box model, use this code:
8
+ // $default-background-clip: border-box
9
+
10
+ $default-background-clip: padding-box !default;
11
+
12
+ // Clip the background (image and color) at the edge of the padding or border.
13
+ //
14
+ // Legal Values:
15
+ //
16
+ // * padding-box
17
+ // * border-box
18
+ // * text
19
+
20
+ @mixin background-clip($clip: $default-background-clip) {
21
+ // webkit and mozilla use the deprecated short [border | padding]
22
+ $clip: unquote($clip);
23
+ $deprecated: $clip;
24
+ @if $clip == padding-box { $deprecated: padding; }
25
+ @if $clip == border-box { $deprecated: border; }
26
+ // Support for webkit and mozilla's use of the deprecated short form
27
+ @include experimental(background-clip, $deprecated,
28
+ -moz,
29
+ -webkit,
30
+ not -o,
31
+ not -ms,
32
+ not -khtml,
33
+ not official
34
+ );
35
+ @include experimental(background-clip, $clip,
36
+ not -moz,
37
+ not -webkit,
38
+ -o,
39
+ -ms,
40
+ -khtml,
41
+ official
42
+ );
43
+ }
@@ -0,0 +1,42 @@
1
+ // Override `$default-background-origin` to change the default.
2
+
3
+ @import "shared";
4
+
5
+ $default-background-origin: content-box !default;
6
+
7
+ // Position the background off the edge of the padding, border or content
8
+ //
9
+ // * Possible values:
10
+ // * `padding-box`
11
+ // * `border-box`
12
+ // * `content-box`
13
+ // * browser defaults to `padding-box`
14
+ // * mixin defaults to `content-box`
15
+
16
+
17
+ @mixin background-origin($origin: $default-background-origin) {
18
+ $origin: unquote($origin);
19
+ // webkit and mozilla use the deprecated short [border | padding | content]
20
+ $deprecated: $origin;
21
+ @if $origin == padding-box { $deprecated: padding; }
22
+ @if $origin == border-box { $deprecated: border; }
23
+ @if $origin == content-box { $deprecated: content; }
24
+
25
+ // Support for webkit and mozilla's use of the deprecated short form
26
+ @include experimental(background-origin, $deprecated,
27
+ -moz,
28
+ -webkit,
29
+ not -o,
30
+ not -ms,
31
+ not -khtml,
32
+ not official
33
+ );
34
+ @include experimental(background-origin, $origin,
35
+ not -moz,
36
+ not -webkit,
37
+ -o,
38
+ -ms,
39
+ -khtml,
40
+ official
41
+ );
42
+ }
@@ -0,0 +1,26 @@
1
+ @import "shared";
2
+
3
+ // override to change the default
4
+ $default-background-size: 100% auto !default;
5
+
6
+ // Set the size of background images using px, width and height, or percentages.
7
+ // Currently supported in: Opera, Gecko, Webkit.
8
+ //
9
+ // * percentages are relative to the background-origin (default = padding-box)
10
+ // * mixin defaults to: `$default-background-size`
11
+ @mixin background-size(
12
+ $size-1: $default-background-size,
13
+ $size-2: false,
14
+ $size-3: false,
15
+ $size-4: false,
16
+ $size-5: false,
17
+ $size-6: false,
18
+ $size-7: false,
19
+ $size-8: false,
20
+ $size-9: false,
21
+ $size-10: false
22
+ ) {
23
+ $size-1: if(type-of($size-1) == string, unquote($size-1), $size-1);
24
+ $sizes: compact($size-1, $size-2, $size-3, $size-4, $size-5, $size-6, $size-7, $size-8, $size-9, $size-10);
25
+ @include experimental(background-size, $sizes, -moz, -webkit, -o, not -ms, not -khtml);
26
+ }
@@ -0,0 +1,135 @@
1
+ @import "shared";
2
+
3
+ $default-border-radius: 5px !default;
4
+
5
+ // Round all corners by a specific amount, defaults to value of `$default-border-radius`.
6
+ //
7
+ // When two values are passed, the first is the horizontal radius
8
+ // and the second is the vertical radius.
9
+ //
10
+ // Note: webkit does not support shorthand syntax for several corners at once.
11
+ // So in the case where you pass several values only the first will be passed to webkit.
12
+ //
13
+ // Examples:
14
+ //
15
+ // .simple { @include border-radius(4px, 4px); }
16
+ // .compound { @include border-radius(2px 5px, 3px 6px); }
17
+ // .crazy { @include border-radius(1px 3px 5px 7px, 2px 4px 6px 8px)}
18
+ //
19
+ // Which generates:
20
+ // .simple {
21
+ // -webkit-border-radius: 4px 4px;
22
+ // -moz-border-radius: 4px / 4px;
23
+ // -o-border-radius: 4px / 4px;
24
+ // -ms-border-radius: 4px / 4px;
25
+ // -khtml-border-radius: 4px / 4px;
26
+ // border-radius: 4px / 4px; }
27
+ //
28
+ // .compound {
29
+ // -webkit-border-radius: 2px 3px;
30
+ // -moz-border-radius: 2px 5px / 3px 6px;
31
+ // -o-border-radius: 2px 5px / 3px 6px;
32
+ // -ms-border-radius: 2px 5px / 3px 6px;
33
+ // -khtml-border-radius: 2px 5px / 3px 6px;
34
+ // border-radius: 2px 5px / 3px 6px; }
35
+ //
36
+ // .crazy {
37
+ // -webkit-border-radius: 1px 2px;
38
+ // -moz-border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px;
39
+ // -o-border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px;
40
+ // -ms-border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px;
41
+ // -khtml-border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px;
42
+ // border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px; }
43
+
44
+ @mixin border-radius($radius: $default-border-radius, $vertical-radius: false) {
45
+
46
+ @if $vertical-radius {
47
+ // Webkit doesn't understand the official shorthand syntax for specifying
48
+ // a vertical radius unless so in case there's several we only take the first.
49
+ @include experimental(border-radius, first-value-of($radius) first-value-of($vertical-radius),
50
+ not -moz,
51
+ -webkit,
52
+ not -o,
53
+ not -ms,
54
+ not -khtml,
55
+ not official
56
+ );
57
+ @include experimental("border-radius", $radius unquote("/") $vertical-radius,
58
+ -moz,
59
+ not -webkit,
60
+ -o,
61
+ -ms,
62
+ -khtml,
63
+ official
64
+ );
65
+ }
66
+ @else {
67
+ @include experimental(border-radius, $radius);
68
+ }
69
+ }
70
+
71
+ // Round radius at position by amount.
72
+ //
73
+ // * legal values for `$vert`: `top`, `bottom`
74
+ // * legal values for `$horz`: `left`, `right`
75
+
76
+ @mixin border-corner-radius($vert, $horz, $radius: $default-border-radius) {
77
+ // Support for mozilla's syntax for specifying a corner
78
+ @include experimental("border-radius-#{$vert}#{$horz}", $radius,
79
+ -moz,
80
+ not -webkit,
81
+ not -o,
82
+ not -ms,
83
+ not -khtml,
84
+ not official
85
+ );
86
+ @include experimental("border-#{$vert}-#{$horz}-radius", $radius,
87
+ not -moz,
88
+ -webkit,
89
+ -o,
90
+ -ms,
91
+ -khtml,
92
+ official
93
+ );
94
+
95
+ }
96
+
97
+ // Round top-left corner only
98
+
99
+ @mixin border-top-left-radius($radius: $default-border-radius) {
100
+ @include border-corner-radius(top, left, $radius); }
101
+
102
+ // Round top-right corner only
103
+
104
+ @mixin border-top-right-radius($radius: $default-border-radius) {
105
+ @include border-corner-radius(top, right, $radius); }
106
+
107
+ // Round bottom-left corner only
108
+
109
+ @mixin border-bottom-left-radius($radius: $default-border-radius) {
110
+ @include border-corner-radius(bottom, left, $radius); }
111
+
112
+ // Round bottom-right corner only
113
+
114
+ @mixin border-bottom-right-radius($radius: $default-border-radius) {
115
+ @include border-corner-radius(bottom, right, $radius); }
116
+
117
+ // Round both top corners by amount
118
+ @mixin border-top-radius($radius: $default-border-radius) {
119
+ @include border-top-left-radius($radius);
120
+ @include border-top-right-radius($radius); }
121
+
122
+ // Round both right corners by amount
123
+ @mixin border-right-radius($radius: $default-border-radius) {
124
+ @include border-top-right-radius($radius);
125
+ @include border-bottom-right-radius($radius); }
126
+
127
+ // Round both bottom corners by amount
128
+ @mixin border-bottom-radius($radius: $default-border-radius) {
129
+ @include border-bottom-left-radius($radius);
130
+ @include border-bottom-right-radius($radius); }
131
+
132
+ // Round both left corners by amount
133
+ @mixin border-left-radius($radius: $default-border-radius) {
134
+ @include border-top-left-radius($radius);
135
+ @include border-bottom-left-radius($radius); }