lion 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/.DS_Store +0 -0
  2. data/bin/.DS_Store +0 -0
  3. data/bin/{lion-new.rb → lion-new} +15 -14
  4. data/bin/{lion-server.rb → lion-server} +5 -5
  5. data/lib/.DS_Store +0 -0
  6. data/lib/lion.rb +13 -11
  7. data/lib/lion/.DS_Store +0 -0
  8. data/lib/lion/installer.rb +33 -10
  9. data/lib/lion/version.rb +1 -1
  10. data/lib/src/.DS_Store +0 -0
  11. data/lib/src/.sass-cache/5ccf7d1369eea03df15eaad4a636d5758dad569f/_core.sassc +0 -0
  12. data/lib/src/.sass-cache/5ccf7d1369eea03df15eaad4a636d5758dad569f/_elements.sassc +0 -0
  13. data/lib/src/.sass-cache/5ccf7d1369eea03df15eaad4a636d5758dad569f/_mixins.sassc +0 -0
  14. data/lib/src/.sass-cache/5ccf7d1369eea03df15eaad4a636d5758dad569f/_reset.sassc +0 -0
  15. data/lib/src/.sass-cache/5ccf7d1369eea03df15eaad4a636d5758dad569f/_settings.sassc +0 -0
  16. data/lib/src/.sass-cache/5ccf7d1369eea03df15eaad4a636d5758dad569f/_typography.sassc +0 -0
  17. data/lib/src/.sass-cache/8e2d42a7994fef08dc4bb4dcc558988ca283abc8/style.sassc +0 -0
  18. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_alerts.sassc +0 -0
  19. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_buttons.sassc +0 -0
  20. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_classes.sassc +0 -0
  21. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_forms.sassc +0 -0
  22. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_grid.sassc +0 -0
  23. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_media_queries.sassc +0 -0
  24. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_pagination.sassc +0 -0
  25. data/lib/src/.sass-cache/a9fef1ceab496160ac487b91339966e9d98134b5/_tables.sassc +0 -0
  26. data/lib/src/gemfile +6 -0
  27. data/lib/src/lion.rb +4 -1
  28. data/lib/src/public/.DS_Store +0 -0
  29. data/lib/src/public/coffeescripts/spec/application.spec.coffee +4 -0
  30. data/lib/src/public/images/baseline_20.png +0 -0
  31. data/lib/src/public/javascripts/application.js +5 -0
  32. data/lib/src/public/stylesheets/.DS_Store +0 -0
  33. data/lib/src/public/stylesheets/css/.DS_Store +0 -0
  34. data/lib/src/public/stylesheets/css/style.css +696 -1
  35. data/lib/src/public/stylesheets/scss/lib/.DS_Store +0 -0
  36. data/lib/src/public/stylesheets/scss/lib/core.scss +32 -0
  37. data/lib/src/public/stylesheets/scss/lib/css3/.DS_Store +0 -0
  38. data/lib/src/public/stylesheets/scss/lib/css3/background-clip.scss +4 -0
  39. data/lib/src/public/stylesheets/scss/lib/css3/border-radius.scss +4 -0
  40. data/lib/src/public/stylesheets/scss/lib/css3/box-shadow.scss +4 -0
  41. data/lib/src/public/{coffeescripts/spec/application.spec.js.coffee → stylesheets/scss/lib/css3/box-sizing.scss} +0 -0
  42. data/lib/src/public/stylesheets/scss/lib/css3/columns.scss +7 -0
  43. data/lib/src/public/stylesheets/scss/lib/css3/font-face.scss +7 -0
  44. data/lib/src/public/stylesheets/scss/lib/css3/gradient.scss +51 -0
  45. data/lib/src/public/stylesheets/scss/lib/css3/opacity.scss +5 -0
  46. data/lib/src/public/stylesheets/scss/lib/css3/rotate.scss +9 -0
  47. data/lib/src/public/stylesheets/scss/lib/css3/scale.scss +0 -0
  48. data/lib/src/public/stylesheets/scss/lib/css3/text-shadow.scss +2 -0
  49. data/lib/src/public/stylesheets/scss/lib/css3/transform.scss +0 -0
  50. data/lib/src/public/stylesheets/scss/lib/css3/transition.scss +9 -0
  51. data/lib/src/public/stylesheets/scss/lib/helpers/.DS_Store +0 -0
  52. data/lib/src/public/stylesheets/scss/lib/helpers/buttons.scss +24 -0
  53. data/lib/src/public/stylesheets/scss/lib/helpers/classes.scss +18 -0
  54. data/lib/src/public/stylesheets/scss/lib/helpers/forms.scss +192 -0
  55. data/lib/src/public/stylesheets/scss/lib/helpers/media_queries.scss +17 -0
  56. data/lib/src/public/stylesheets/scss/lib/helpers/tables.scss +23 -0
  57. data/lib/src/public/stylesheets/scss/lib/layout/.DS_Store +0 -0
  58. data/lib/src/public/stylesheets/scss/lib/layout/grid.scss +30 -0
  59. data/lib/src/public/stylesheets/scss/lib/mixins.scss +17 -0
  60. data/lib/src/public/stylesheets/scss/lib/reset.scss +69 -0
  61. data/lib/src/public/stylesheets/scss/lib/settings.scss +31 -0
  62. data/lib/src/public/stylesheets/scss/lib/typography/.DS_Store +0 -0
  63. data/lib/src/public/stylesheets/scss/lib/typography/elements.scss +130 -0
  64. data/lib/src/public/stylesheets/scss/lib/typography/headings.scss +30 -0
  65. data/lib/src/public/stylesheets/scss/style.scss +12 -0
  66. data/lib/src/rakefile +19 -0
  67. data/lib/src/views/.DS_Store +0 -0
  68. data/lib/src/views/index.slim +2 -3
  69. data/lib/src/views/layout.slim +20 -7
  70. data/readme.md +29 -0
  71. data/todo.txt +0 -0
  72. metadata +71 -25
  73. data/lib/src/public/coffeescripts/application.js.coffee +0 -6
  74. data/lib/src/public/javascripts/main.js +0 -5
  75. data/lib/src/public/stylesheets/sass/lib/_core.sass +0 -7
  76. data/lib/src/public/stylesheets/sass/lib/_elements.sass +0 -100
  77. data/lib/src/public/stylesheets/sass/lib/_grid.sass +0 -30
  78. data/lib/src/public/stylesheets/sass/lib/_reset.sass +0 -84
  79. data/lib/src/public/stylesheets/sass/lib/_settings.sass +0 -42
  80. data/lib/src/public/stylesheets/sass/lib/_typography.sass +0 -45
  81. data/lib/src/public/stylesheets/sass/lib/helpers/_buttons.sass +0 -15
  82. data/lib/src/public/stylesheets/sass/lib/helpers/_classes.sass +0 -24
  83. data/lib/src/public/stylesheets/sass/lib/helpers/_forms.sass +0 -184
  84. data/lib/src/public/stylesheets/sass/lib/helpers/_media_queries.sass +0 -113
  85. data/lib/src/public/stylesheets/sass/lib/helpers/_mixins.sass +0 -76
  86. data/lib/src/public/stylesheets/sass/lib/helpers/_tables.sass +0 -29
  87. data/lib/src/public/stylesheets/sass/style.sass +0 -40
Binary file
Binary file
@@ -1,14 +1,15 @@
1
- #!/usr/bin/env ruby
2
-
3
- libdir = File.join(File.dirname(File.dirname(__FILE__)), "lib")
4
- $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
5
- require 'lion'
6
-
7
- #Create a new project in the current directory
8
-
9
- args = ARGV.dup.unshift()
10
- if args.length > 0
11
- Lion::Installer.create(args[0], libdir, Dir.pwd)
12
- else
13
- $stdout.puts "No project name specified. Try lion-new project_name"
14
- end
1
+ #!/usr/bin/env ruby
2
+
3
+ libdir = File.join(File.dirname(File.dirname(__FILE__)), "lib")
4
+ $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
5
+ require 'lion'
6
+
7
+ #Get command line args. New project created >> gravity-init NAME --options
8
+ args = ARGV.dup.unshift()
9
+
10
+ if args.length > 0
11
+ installer = Lion::Installer.new(args, libdir)
12
+ installer.create()
13
+ else
14
+ STDERR.puts "No project name specified. Try lion-new project_name"
15
+ end
@@ -1,6 +1,6 @@
1
- #!/usr/bin/env ruby
2
- libdir = File.join(File.dirname(File.dirname(__FILE__)), "lib")
3
- $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
4
- require 'lion'
5
-
1
+ #!/usr/bin/env ruby
2
+ libdir = File.join(File.dirname(File.dirname(__FILE__)), "lib")
3
+ $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
4
+ require 'lion'
5
+
6
6
  Lion.start_server()
Binary file
@@ -6,18 +6,20 @@ module Lion
6
6
  autoload :Base, "lion/base"
7
7
  autoload :Installer, "lion/installer"
8
8
 
9
- def self.current_directory?
10
- Dir.pwd
11
- end
9
+ class << self
10
+ def current_directory?
11
+ Dir.pwd
12
+ end
12
13
 
13
- def self.start_server(options={})
14
- if File.exist?("config.ru")
15
- $stdout.puts "*** Lion has taken the stage ***"
16
- system "rackup"
17
- else
18
- $stdout.puts "Could not find config.ru. Are you in the right directory?"
19
- end
20
- end
14
+ def start_server(options={})
15
+ if File.exist?("config.ru")
16
+ $stdout.puts "*** Lion is watching your project ***"
17
+ system "rackup"
18
+ else
19
+ $stdout.puts "Could not find config.ru. Are you in the right directory?"
20
+ end
21
+ end
22
+ end
21
23
 
22
24
  end
23
25
 
Binary file
@@ -1,17 +1,40 @@
1
1
  require 'Fileutils'
2
2
 
3
3
  module Lion
4
- module Installer
5
- def self.create(project_name, libdir, cwd, *args)
6
- unless File.directory?(project_name)
7
- #Make a new folder in the current directory
8
- dir = File.dirname(__FILE__)
9
- Dir.mkdir(dir + '/' + project_name)
10
- #Recursively copy the gravity files into our new project directory
11
- FileUtils.cp_r "#{libdir}/src/.", "#{cwd}/#{project_name}/"
12
- puts "New project #{project_name} successfully created in #{cwd}"
4
+ class Installer
5
+ #Class for installing creating a new project in the current directory
6
+
7
+ def initialize(args, libdir)
8
+ @project_name = args[0]
9
+ @current = Dir.pwd
10
+ @lib = libdir
11
+ args.index("--scss") ? @scss = true : @scss = false
12
+ end
13
+
14
+ def error(string)
15
+ STDERR.puts string
16
+ end
17
+
18
+ def message(string)
19
+ STDOUT.puts string
20
+ end
21
+
22
+ def makeDir(name)
23
+ Dir.mkdir(@current + '/' + name)
24
+ end
25
+
26
+ def copyFiles
27
+ FileUtils.cp_r "#{@lib}/src/.", "#{@current}/#{@project_name}/"
28
+ message("New Lion project #{@project_name} successfully created in #{@current}/#{@project_name}/")
29
+ end
30
+
31
+ def create()
32
+ STDOUT.puts "You selected SCSS option" if @scss
33
+ unless File.directory?(@project_name)
34
+ makeDir(@project_name)
35
+ copyFiles()
13
36
  else
14
- $stdout.puts "That project already exists. Please try another name"
37
+ message("That project already exists. Please try another name")
15
38
  end
16
39
  end
17
40
  end
@@ -1,3 +1,3 @@
1
1
  module Lion
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
Binary file
@@ -0,0 +1,6 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "sinatra", :require => "sinatra/base"
4
+ gem 'coffee-script'
5
+ gem "sass"
6
+ gem "join"
@@ -6,12 +6,15 @@ class Lion < Sinatra::Base
6
6
  set :views, "./views"
7
7
  set :public, "./public"
8
8
  set :slim, :pretty => true
9
- set :port, 4567
9
+ set :port, 4000
10
10
  set :run, true
11
11
  set :static, true
12
12
  set :server, %w[thin mongrel webrick]
13
13
  end
14
14
 
15
+ helpers do
16
+ end
17
+
15
18
  @pages = []
16
19
  @template = slim
17
20
 
Binary file
@@ -0,0 +1,4 @@
1
+ describe 'Application', ->
2
+ describe 'My first test', ->
3
+ it 'should pass the first test', ->
4
+ expect(1).toEqual(1)
@@ -0,0 +1,5 @@
1
+ /*
2
+
3
+ Application.js. All modules inside /app folder will get compiled here when you run "rake precompile" in the terminal
4
+
5
+ */
@@ -1 +1,696 @@
1
- html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}ins{background-color:#ff9;color:#000;text-decoration:none}mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}del{text-decoration:line-through}abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}table{border-collapse:collapse;border-spacing:0}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}input,select{vertical-align:middle}textarea{overflow:auto}.ie6 legend,.ie7 legend{margin-left:-7px}input[wtype="radio"]{vertical-align:text-bottom}input[type="checkbox"]{vertical-align:bottom}.ie7 input[type="checkbox"]{vertical-align:baseline}.ie6 input{vertical-align:text-bottom}label,input[type="button"],input[type="submit"],input[type="image"],button{cursor:pointer}button,input,select,textarea{margin:0}table{margin-bottom:10px;width:100%}th{font-weight:bold;text-align:left;background:#ccc}th,td{padding:10px}tr:nth-child(odd){background-color:#f5f5f5}tr:nth-child(even){background-color:#eee}tfoot{font-style:italic}caption{background:#ffc}body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,input,textarea{line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;color:#333;font-size:14px}h1,h2,h3,h4,h5{margin-bottom:20px;color:#333;font-weight:900}h1{font-size:40px;line-height:40px}h2{font-size:20px;line-height:20px}h3{font-size:20px;line-height:20px}h4{font-size:20px;line-height:20px}h5{font-size:20px;line-height:20px}p{margin-bottom:20px}ul,ol{margin-bottom:20px}ul{list-style:none}ol{list-style-type:decimal}li{margin-bottom:10px}ul li ul{margin-left:20px;margin-top:10px;margin-bottom:10px}dl{margin-bottom:20px}dl dt{font-weight:bold;margin-bottom:10px}dl dd{margin-bottom:10px}abbr,acronym{border-bottom:1px dotted #000}address{font-style:italic}del{color:#000}a{color:#1c7fc4;text-decoration:none;-moz-transition:all 0.5s ease-in-out;-o-transition:all 0.5s ease-in-out;-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out;cursor:pointer}a:hover{text-decoration:none}blockquote{display:block}strong{font-weight:bold}em,dfn{font-style:italic}dfn{font-weight:bold}pre,code{margin:10px 0;white-space:pre}pre,code,tt{font:1em monospace;line-height:1.5}tt{display:block}q{font-style:italic;font-weight:bold;font-family:Georgia,Times,serif}cite{display:block;font-weight:bold}img{margin-bottom:10px}figcaption{display:block;font-weight:bold;font-style:italic}.wrap{width:940px;margin:0 auto}.clear{clear:both}.center{text-align:center}.uppercase{text-transform:uppercase}.titlecase{text-transform:capitalize}.invisible{visibility:hidden}.col-1{float:left;width:60px;margin-right:0;margin-right:20px}.col-1:last-child{margin-right:0}.col-2{float:left;width:140px;margin-right:20px}.col-2:last-child{margin-right:0}.col-3{float:left;width:220px;margin-right:20px}.col-3:last-child{margin-right:0}.col-4{float:left;width:300px;margin-right:20px}.col-4:last-child{margin-right:0}.col-5{float:left;width:380px;margin-right:20px}.col-5:last-child{margin-right:0}.col-6{float:left;width:460px;margin-right:20px}.col-6:last-child{margin-right:0}.col-7{float:left;width:540px;margin-right:20px}.col-7:last-child{margin-right:0}.col-8{float:left;width:620px;margin-right:20px}.col-8:last-child{margin-right:0}.col-9{float:left;width:700px;margin-right:20px}.col-9:last-child{margin-right:0}.col-10{float:left;width:780px;margin-right:20px}.col-10:last-child{margin-right:0}.col-11{float:left;width:860px;margin-right:20px}.col-11:last-child{margin-right:0}.col-12{float:left;width:940px;margin-right:20px}.col-12:last-child{margin-right:0}::-moz-focus-inner{border:0;padding:0}input[type="search"]::-webkit-search-decoration{display:none}form{margin-bottom:20px}fieldset{margin-bottom:20px}input[type="text"]:focus,input[type="password"]:focus,input[type="email"]:focus,input[type="tel"]:focus,textarea:focus{border:1px solid #aaa;color:#444}textarea{min-height:100px;resize:none;overflow:auto;width:100%}label,legend{display:block;font-weight:bold;font-size:13px}select{width:100%}input[type="checkbox"]{display:inline}label span,legend span{font-weight:normal;font-size:13px;color:#444}input,button,select,textarea{vertical-align:middle}input[type="radio"],input[type="checkbox"]{position:relative;vertical-align:top;top:3px;top:0 \0;*top:-3px;margin-right:5px}@media (-webkit-min-device-pixel-ratio: 1) and (max-device-width: 1024px){input[type="radio"],input[type="checkbox"]{vertical-align:baseline;top:2px}}@media (-webkit-min-device-pixel-ratio: 1) and (max-device-width: 480px){input[type="radio"],input[type="checkbox"]{vertical-align:baseline;top:0}}@media (-webkit-min-device-pixel-ratio: 2) and (max-device-width: 480px){input[type="radio"],input[type="checkbox"]{vertical-align:baseline;top:0}}textarea,select,input[type="date"],input[type="datetime"],input[type="datetime-local"],input[type="email"],input[type="month"],input[type="number"],input[type="password"],input[type="search"],input[type="tel"],input[type="text"],input[type="time"],input[type="url"],input[type="week"]{-webkit-appearance:none;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box;border:1px solid #ddd;border-color:#ddd #ddd #ddd;color:#000;padding:5px;outline:none;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;font:12px "Helvetica Neue",Helvetica,Arial,sans-serif;margin:0 0 20px 0;width:100%;display:block;background:#fafafa;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='$from', endColorstr='$to');background:-webkit-gradient(linear, left top, left bottom, from(#fafafa), to(#fff));background:-moz-linear-gradient(top, #fafafa, #fff);*padding-top:2px;*padding-bottom:1px;*height:auto}::-webkit-input-placeholder{color:#000}input:-moz-placeholder,textarea:-moz-placeholder{color:#000}:invalid{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}@media (-webkit-min-device-pixel-ratio: 0){select[size],select[multiple]{background-image:none;padding:0}::-webkit-validation-bubble-message{box-shadow:rgba(0,0,0,0.5) 0 0 5px;background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #666), color-stop(1, #000));border:#ddd;color:#fff;font:"Helvetica Neue",Helvetica,Arial,sans-serif;padding:15px 15px 17px;text-shadow:#000 0 0 1px}::-webkit-validation-bubble-top-outer-arrow,::-webkit-validation-bubble-top-inner-arrow{display:none}}optgroup{color:#000;font-style:normal;font-weight:normal}button[type=submit],input[type='submit']{padding:7px 12px;text-align:center;font-weight:bold;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;background:#111111;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='$from', endColorstr='$to');background:-webkit-gradient(linear, left top, left bottom, from(#111111), to(#333333));background:-moz-linear-gradient(top, #111111, #333333);border:0;color:#fff}#container{width:940px;margin:0 auto;padding:20px 0;overflow:hidden}body{background:#eee}section{margin-bottom:20px;overflow:hidden}h1,h2,h3,h4,h5,h6,p,li a{text-shadow:1px 1px 1px #fff}h1,h2,h3,h4,h5,h6{text-transform:uppercase}footer p{text-align:center}@media only screen and (min-width: 768px) and (max-width: 959px){#container{width:748px}.col-1{float:left;width:44px;margin-right:0;margin-right:20px}.col-1:last-child{margin-right:0}.col-2{float:left;width:108px;margin-right:20px}.col-2:last-child{margin-right:0}.col-3{float:left;width:172px;margin-right:20px}.col-3:last-child{margin-right:0}.col-4{float:left;width:236px;margin-right:20px}.col-4:last-child{margin-right:0}.col-5{float:left;width:300px;margin-right:20px}.col-5:last-child{margin-right:0}.col-6{float:left;width:364px;margin-right:20px}.col-6:last-child{margin-right:0}.col-7{float:left;width:428px;margin-right:20px}.col-7:last-child{margin-right:0}.col-8{float:left;width:492px;margin-right:20px}.col-8:last-child{margin-right:0}.col-9{float:left;width:556px;margin-right:20px}.col-9:last-child{margin-right:0}.col-10{float:left;width:620px;margin-right:20px}.col-10:last-child{margin-right:0}.col-11{float:left;width:684px;margin-right:20px}.col-11:last-child{margin-right:0}.col-12{float:left;width:748px;margin-right:20px}.col-12:last-child{margin-right:0}}@media only screen and (max-width: 767px){#container{width:300px}.col-1{width:280px;margin:0 10px}.col-2{width:280px;margin:0 10px}.col-3{width:280px;margin:0 10px}.col-4{width:280px;margin:0 10px}.col-5{width:280px;margin:0 10px}.col-6{width:280px;margin:0 10px}.col-7{width:280px;margin:0 10px}.col-8{width:280px;margin:0 10px}.col-9{width:280px;margin:0 10px}.col-10{width:280px;margin:0 10px}.col-11{width:280px;margin:0 10px}.col-12{width:280px;margin:0 10px}}@media only screen and (min-width: 480px) and (max-width: 767px){#container{width:480px}.col-1{width:460px;margin:0 10px}.col-2{width:460px;margin:0 10px}.col-3{width:460px;margin:0 10px}.col-4{width:460px;margin:0 10px}.col-5{width:460px;margin:0 10px}.col-6{width:460px;margin:0 10px}.col-7{width:460px;margin:0 10px}.col-8{width:460px;margin:0 10px}.col-9{width:460px;margin:0 10px}.col-10{width:460px;margin:0 10px}.col-11{width:460px;margin:0 10px}.col-12{width:460px;margin:0 10px}}
1
+ /* --------------------------------------------------------------
2
+ * Gravity CSS
3
+ * Version 0.1
4
+ * Developed by: Owain Lewis
5
+ * www.owainlewis.com
6
+ * License: MIT
7
+ * http://www.opensource.org/licenses/mit-license.php
8
+ *-------------------------------------------------------------- */
9
+ html, body, div, span, object, iframe,
10
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
11
+ abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
12
+ small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
13
+ fieldset, form, label, legend,
14
+ table, caption, tbody, tfoot, thead, tr, th, td,
15
+ article, aside, canvas, details, figcaption, figure,
16
+ footer, header, hgroup, menu, nav, section, summary,
17
+ time, mark, audio, video {
18
+ margin: 0;
19
+ padding: 0;
20
+ border: 0;
21
+ font-size: 100%;
22
+ font: inherit;
23
+ vertical-align: baseline; }
24
+
25
+ article, aside, details, figcaption, figure,
26
+ footer, header, hgroup, menu, nav, section {
27
+ display: block;
28
+ width: 100%; }
29
+
30
+ blockquote, q {
31
+ quotes: none; }
32
+
33
+ blockquote:before, blockquote:after,
34
+ q:before, q:after {
35
+ content: "";
36
+ content: none; }
37
+
38
+ table {
39
+ border-collapse: collapse;
40
+ border-spacing: 0; }
41
+
42
+ hr {
43
+ display: block;
44
+ height: 1px;
45
+ border: 0;
46
+ border-top: 1px solid #cccccc;
47
+ margin: 20px 0 19px 0;
48
+ padding: 0; }
49
+
50
+ input, select {
51
+ vertical-align: middle; }
52
+
53
+ textarea {
54
+ overflow: auto; }
55
+
56
+ .ie6 legend, .ie7 legend {
57
+ margin-left: -7px; }
58
+
59
+ input[wtype="radio"] {
60
+ vertical-align: text-bottom; }
61
+
62
+ input[type="checkbox"] {
63
+ vertical-align: bottom; }
64
+
65
+ .ie7 input[type="checkbox"] {
66
+ vertical-align: baseline; }
67
+
68
+ .ie6 input {
69
+ vertical-align: text-bottom; }
70
+
71
+ label, input[type="button"], input[type="submit"], input[type="image"], button {
72
+ cursor: pointer; }
73
+
74
+ button, input, select, textarea {
75
+ margin: 0; }
76
+
77
+ body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, input, textarea {
78
+ line-height: 20px;
79
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
80
+ color: gray;
81
+ font-size: 13px; }
82
+
83
+ p {
84
+ margin-bottom: 20px; }
85
+
86
+ ol {
87
+ margin-bottom: 20px;
88
+ margin-left: 20px; }
89
+ ol ol {
90
+ margin-bottom: 0; }
91
+
92
+ ul {
93
+ margin-bottom: 20px; }
94
+ ul li {
95
+ margin-bottom: 5px;
96
+ margin-left: 14px; }
97
+ ul li ul {
98
+ margin-left: 20px;
99
+ margin-top: 10px;
100
+ margin-bottom: 10px; }
101
+
102
+ ul.unstyled {
103
+ list-style: none; }
104
+ ul.unstyled li {
105
+ margin-left: 0; }
106
+
107
+ dl {
108
+ margin-bottom: 20px; }
109
+ dl dt {
110
+ font-weight: bold;
111
+ margin-bottom: 10px; }
112
+ dl dd {
113
+ margin-bottom: 10px; }
114
+
115
+ abbr, acronym {
116
+ border-bottom: 1px dotted black; }
117
+
118
+ address {
119
+ font-style: italic; }
120
+
121
+ del {
122
+ color: black; }
123
+
124
+ a {
125
+ color: #0069d6;
126
+ text-decoration: none;
127
+ -moz-transition: all 0.5s ease-in-out;
128
+ /* FF3.7+ */
129
+ -o-transition: all 0.5s ease-in-out;
130
+ /* Opera 10.5 */
131
+ -webkit-transition: all 0.5s ease-in-out;
132
+ /* Saf3.2+, Chrome */
133
+ transition: all 0.5s ease-in-out;
134
+ cursor: pointer; }
135
+
136
+ a:hover {
137
+ text-decoration: none; }
138
+
139
+ blockquote {
140
+ display: block;
141
+ font-weight: bold;
142
+ border-left: 4px solid #eeeeee;
143
+ padding: 40px 20px;
144
+ font-weight: bold;
145
+ font-size: 30px;
146
+ font-family: serif;
147
+ font-style: italic;
148
+ color: #404040;
149
+ line-height: 30px;
150
+ margin: 20px 0; }
151
+
152
+ pre, code {
153
+ margin: 10px 0;
154
+ white-space: pre; }
155
+
156
+ pre, code, tt {
157
+ font: "Monaco", Courier New, monospace;
158
+ line-height: 1.5;
159
+ padding: 0 3px 2px;
160
+ background: #fee9cc; }
161
+
162
+ q {
163
+ font-style: italic;
164
+ font-weight: bold;
165
+ font-family: "Georgia", Times New Roman, Times, sans-serif; }
166
+
167
+ cite {
168
+ display: block;
169
+ font-weight: bold; }
170
+
171
+ img {
172
+ margin-bottom: 10px; }
173
+
174
+ figcaption {
175
+ display: block;
176
+ font-weight: bold;
177
+ font-style: italic; }
178
+
179
+ small {
180
+ font-size: 10px; }
181
+
182
+ strong {
183
+ font-weight: bold; }
184
+
185
+ h1, h2, h3, h4, h5, h6 {
186
+ margin-bottom: 20px;
187
+ color: #404040;
188
+ font-weight: normal; }
189
+
190
+ h1 {
191
+ font-size: 30px;
192
+ line-height: 40px; }
193
+
194
+ h2 {
195
+ font-size: 25px;
196
+ line-height: 20px; }
197
+
198
+ h3 {
199
+ font-size: 20px;
200
+ line-height: 20px; }
201
+
202
+ h4 {
203
+ font-size: 15px;
204
+ line-height: 20px; }
205
+
206
+ h5 {
207
+ font-size: 15px;
208
+ font-weight: bold;
209
+ line-height: 20px; }
210
+
211
+ h6 {
212
+ font-size: 15px;
213
+ font-weight: bold;
214
+ line-height: 20px; }
215
+
216
+ .span-1 {
217
+ float: left;
218
+ width: 60px;
219
+ margin-right: 0;
220
+ margin-right: 20px; }
221
+ .span-1:last-child {
222
+ margin-right: 0; }
223
+
224
+ .span-2 {
225
+ float: left;
226
+ width: 140px;
227
+ margin-right: 20px; }
228
+ .span-2:last-child {
229
+ margin-right: 0; }
230
+
231
+ .span-3 {
232
+ float: left;
233
+ width: 220px;
234
+ margin-right: 20px; }
235
+ .span-3:last-child {
236
+ margin-right: 0; }
237
+
238
+ .span-4 {
239
+ float: left;
240
+ width: 300px;
241
+ margin-right: 20px; }
242
+ .span-4:last-child {
243
+ margin-right: 0; }
244
+
245
+ .span-5 {
246
+ float: left;
247
+ width: 380px;
248
+ margin-right: 20px; }
249
+ .span-5:last-child {
250
+ margin-right: 0; }
251
+
252
+ .span-6 {
253
+ float: left;
254
+ width: 460px;
255
+ margin-right: 20px; }
256
+ .span-6:last-child {
257
+ margin-right: 0; }
258
+
259
+ .span-7 {
260
+ float: left;
261
+ width: 540px;
262
+ margin-right: 20px; }
263
+ .span-7:last-child {
264
+ margin-right: 0; }
265
+
266
+ .span-8 {
267
+ float: left;
268
+ width: 620px;
269
+ margin-right: 20px; }
270
+ .span-8:last-child {
271
+ margin-right: 0; }
272
+
273
+ .span-9 {
274
+ float: left;
275
+ width: 700px;
276
+ margin-right: 20px; }
277
+ .span-9:last-child {
278
+ margin-right: 0; }
279
+
280
+ .span-10 {
281
+ float: left;
282
+ width: 780px;
283
+ margin-right: 20px; }
284
+ .span-10:last-child {
285
+ margin-right: 0; }
286
+
287
+ .span-11 {
288
+ float: left;
289
+ width: 860px;
290
+ margin-right: 20px; }
291
+ .span-11:last-child {
292
+ margin-right: 0; }
293
+
294
+ .span-12 {
295
+ float: left;
296
+ width: 940px;
297
+ margin-right: 20px; }
298
+ .span-12:last-child {
299
+ margin-right: 0; }
300
+
301
+ .last {
302
+ margin-right: 0 !important; }
303
+
304
+ ::-moz-focus-inner {
305
+ border: 0;
306
+ padding: 0; }
307
+
308
+ input[type="search"]::-webkit-search-decoration {
309
+ display: none; }
310
+
311
+ form {
312
+ margin-bottom: 20px; }
313
+
314
+ fieldset {
315
+ margin-bottom: 20px; }
316
+
317
+ input[type="text"]:focus,
318
+ input[type="password"]:focus,
319
+ input[type="email"]:focus,
320
+ input[type="tel"]:focus,
321
+ textarea:focus {
322
+ border: 1px solid #049cdb;
323
+ color: #444444; }
324
+
325
+ textarea {
326
+ min-height: 100px;
327
+ resize: none;
328
+ overflow: auto;
329
+ width: 100%; }
330
+
331
+ label,
332
+ legend {
333
+ display: block;
334
+ font-weight: bold;
335
+ font-size: 13px; }
336
+
337
+ select {
338
+ width: 100%; }
339
+
340
+ input[type="checkbox"] {
341
+ display: inline; }
342
+
343
+ label span,
344
+ legend span {
345
+ font-weight: normal;
346
+ font-size: 13px;
347
+ color: #444444; }
348
+
349
+ input,
350
+ button,
351
+ select,
352
+ textarea {
353
+ vertical-align: middle;
354
+ margin-bottom: 20px; }
355
+
356
+ input[type="radio"],
357
+ input[type="checkbox"] {
358
+ position: relative;
359
+ vertical-align: top;
360
+ top: 3px;
361
+ /* IE8, IE9, IE10 */
362
+ top: 0 \0;
363
+ /* IE7 */
364
+ *top: -3px;
365
+ margin-right: 5px; }
366
+
367
+ /* iPad */
368
+ @media (-webkit-min-device-pixel-ratio: 1) and (max-device-width: 1024px) {
369
+ input[type="radio"],
370
+ input[type="checkbox"] {
371
+ vertical-align: baseline;
372
+ top: 2px; } }
373
+ /* iPhone 3 */
374
+ @media (-webkit-min-device-pixel-ratio: 1) and (max-device-width: 480px) {
375
+ input[type="radio"],
376
+ input[type="checkbox"] {
377
+ vertical-align: baseline;
378
+ top: 0; } }
379
+ /* iPhone 4 */
380
+ @media (-webkit-min-device-pixel-ratio: 2) and (max-device-width: 480px) {
381
+ input[type="radio"],
382
+ input[type="checkbox"] {
383
+ vertical-align: baseline;
384
+ top: 0; } }
385
+ textarea,
386
+ select,
387
+ input[type="date"],
388
+ input[type="datetime"],
389
+ input[type="datetime-local"],
390
+ input[type="email"],
391
+ input[type="month"],
392
+ input[type="number"],
393
+ input[type="password"],
394
+ input[type="search"],
395
+ input[type="tel"],
396
+ input[type="text"],
397
+ input[type="time"],
398
+ input[type="url"],
399
+ input[type="week"] {
400
+ -webkit-appearance: none;
401
+ -moz-border-radius: 0;
402
+ -webkit-border-radius: 0;
403
+ border-radius: 0;
404
+ -webkit-box-sizing: border-box;
405
+ -moz-box-sizing: border-box;
406
+ box-sizing: border-box;
407
+ -moz-background-clip: padding;
408
+ -webkit-background-clip: padding;
409
+ background-clip: padding-box;
410
+ border: 1px solid #cccccc;
411
+ border-color: #cccccc #cccccc #cccccc;
412
+ color: black;
413
+ padding: 5px;
414
+ outline: none;
415
+ -webkit-border-radius: 2px;
416
+ -moz-border-radius: 2px;
417
+ border-radius: 2px;
418
+ font: 12px "Helvetica Neue", Helvetica, Arial, sans-serif;
419
+ margin: 0 0 18px 0;
420
+ width: 100%;
421
+ display: block;
422
+ /* IE7 */
423
+ *padding-top: 2px;
424
+ *padding-bottom: 1px;
425
+ *height: auto; }
426
+
427
+ ::-webkit-input-placeholder {
428
+ color: gray; }
429
+
430
+ input:-moz-placeholder,
431
+ textarea:-moz-placeholder {
432
+ color: gray;
433
+ font-size: 12px; }
434
+
435
+ :invalid {
436
+ -moz-box-shadow: none;
437
+ -webkit-box-shadow: none;
438
+ box-shadow: none; }
439
+
440
+ /* Tweaks for Safari + Chrome. */
441
+ @media (-webkit-min-device-pixel-ratio: 0) {
442
+ select[size],
443
+ select[multiple] {
444
+ background-image: none;
445
+ padding: 0; }
446
+
447
+ ::-webkit-validation-bubble-message {
448
+ box-shadow: rgba(0, 0, 0, 0.5) 0 0 5px;
449
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #666666), color-stop(1, black));
450
+ border: #cccccc;
451
+ color: white;
452
+ font: "Helvetica Neue", Helvetica, Arial, sans-serif;
453
+ padding: 15px 15px 17px;
454
+ text-shadow: black 0 0 1px; }
455
+
456
+ ::-webkit-validation-bubble-top-outer-arrow,
457
+ ::-webkit-validation-bubble-top-inner-arrow {
458
+ display: none; } }
459
+ optgroup {
460
+ color: black;
461
+ font-style: normal;
462
+ font-weight: normal; }
463
+
464
+ button[type=submit], input[type='submit'] {
465
+ padding: 7px 12px;
466
+ text-align: center;
467
+ font-weight: bold;
468
+ -webkit-border-radius: 5px;
469
+ -moz-border-radius: 5px;
470
+ border-radius: 5px;
471
+ background: #111111;
472
+ /* for non-css3 browsers */
473
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$from', endColorstr='$to');
474
+ /* for IE */
475
+ background: -webkit-gradient(linear, left top, left bottom, from(#111111), to(#333333));
476
+ /* for webkit browsers */
477
+ background: -moz-linear-gradient(top, #111111, #333333);
478
+ /* for firefox 3.6+ */
479
+ border: 0;
480
+ color: white; }
481
+
482
+ .input-list {
483
+ list-style: none;
484
+ margin: 0 0 20px 0; }
485
+ .input-list li {
486
+ padding-top: 0;
487
+ list-style: none;
488
+ margin: 0 0 5px 0; }
489
+ .input-list li input {
490
+ margin-bottom: 0; }
491
+ .input-list li label {
492
+ font-weight: normal;
493
+ padding-top: 0; }
494
+
495
+ table {
496
+ margin-bottom: 20px;
497
+ width: 100%; }
498
+
499
+ th {
500
+ font-weight: bold;
501
+ text-align: left;
502
+ border-bottom: 4px solid gray; }
503
+
504
+ td {
505
+ padding: 10px;
506
+ border-bottom: 1px solid #ddd; }
507
+
508
+ th {
509
+ padding: 10px 10px 6px 10px; }
510
+
511
+ tr:nth-child(even) {
512
+ background-color: #F9F9F9; }
513
+
514
+ tfoot {
515
+ font-style: italic; }
516
+
517
+ caption {
518
+ background: #ffffcc; }
519
+
520
+ .button, input.button {
521
+ -webkit-border-radius: 4px;
522
+ -moz-border-radius: 4px;
523
+ border-radius: 4px;
524
+ background: #e6e6e6;
525
+ /* for non-css3 browsers */
526
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$from', endColorstr='$to');
527
+ /* for IE */
528
+ background: -webkit-gradient(linear, left top, left bottom, from(#e6e6e6), to(#cccccc));
529
+ /* for webkit browsers */
530
+ background: -moz-linear-gradient(top, #e6e6e6, #cccccc);
531
+ /* for firefox 3.6+ */
532
+ cursor: pointer;
533
+ font-weight: bold;
534
+ color: #333333;
535
+ display: inline-block;
536
+ border: 1px solid #bfbfbf;
537
+ text-align: center;
538
+ padding: 4px 12px;
539
+ margin: 0 10px 20px 0;
540
+ min-width: 80px; }
541
+ .button:hover, input.button:hover {
542
+ background: #d9d9d9;
543
+ /* for non-css3 browsers */
544
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$from', endColorstr='$to');
545
+ /* for IE */
546
+ background: -webkit-gradient(linear, left top, left bottom, from(#d9d9d9), to(#e6e6e6));
547
+ /* for webkit browsers */
548
+ background: -moz-linear-gradient(top, #d9d9d9, #e6e6e6);
549
+ /* for firefox 3.6+ */ }
550
+
551
+ .button.main {
552
+ -webkit-border-radius: 4px;
553
+ -moz-border-radius: 4px;
554
+ border-radius: 4px;
555
+ background: #17b8fb;
556
+ /* for non-css3 browsers */
557
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$from', endColorstr='$to');
558
+ /* for IE */
559
+ background: -webkit-gradient(linear, left top, left bottom, from(#17b8fb), to(#049cdb));
560
+ /* for webkit browsers */
561
+ background: -moz-linear-gradient(top, #17b8fb, #049cdb);
562
+ /* for firefox 3.6+ */
563
+ cursor: pointer;
564
+ font-weight: bold;
565
+ color: white;
566
+ display: inline-block;
567
+ border: 1px solid #048ac2;
568
+ text-align: center;
569
+ padding: 4px 12px;
570
+ margin: 0 10px 20px 0;
571
+ min-width: 80px; }
572
+ .button.main:hover {
573
+ background: #04aef4;
574
+ /* for non-css3 browsers */
575
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$from', endColorstr='$to');
576
+ /* for IE */
577
+ background: -webkit-gradient(linear, left top, left bottom, from(#04aef4), to(#17b8fb));
578
+ /* for webkit browsers */
579
+ background: -moz-linear-gradient(top, #04aef4, #17b8fb);
580
+ /* for firefox 3.6+ */ }
581
+
582
+ .button.delete {
583
+ -webkit-border-radius: 4px;
584
+ -moz-border-radius: 4px;
585
+ border-radius: 4px;
586
+ background: #c83025;
587
+ /* for non-css3 browsers */
588
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$from', endColorstr='$to');
589
+ /* for IE */
590
+ background: -webkit-gradient(linear, left top, left bottom, from(#c83025), to(#9d261d));
591
+ /* for webkit browsers */
592
+ background: -moz-linear-gradient(top, #c83025, #9d261d);
593
+ /* for firefox 3.6+ */
594
+ cursor: pointer;
595
+ font-weight: bold;
596
+ color: white;
597
+ display: inline-block;
598
+ border: 1px solid #872119;
599
+ text-align: center;
600
+ padding: 4px 12px;
601
+ margin: 0 10px 20px 0;
602
+ min-width: 80px; }
603
+ .button.delete:hover {
604
+ background: #b32b21;
605
+ /* for non-css3 browsers */
606
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$from', endColorstr='$to');
607
+ /* for IE */
608
+ background: -webkit-gradient(linear, left top, left bottom, from(#b32b21), to(#c83025));
609
+ /* for webkit browsers */
610
+ background: -moz-linear-gradient(top, #b32b21, #c83025);
611
+ /* for firefox 3.6+ */ }
612
+
613
+ .wrap {
614
+ width: 940px;
615
+ margin: 0 auto; }
616
+
617
+ .clear {
618
+ clear: both; }
619
+
620
+ .center {
621
+ text-align: center; }
622
+
623
+ .uppercase {
624
+ text-transform: uppercase; }
625
+
626
+ .titlecase {
627
+ text-transform: capitalize; }
628
+
629
+ .invisible {
630
+ visibility: hidden; }
631
+
632
+ .container {
633
+ width: 940px;
634
+ margin: 0 auto;
635
+ padding: 20px 0;
636
+ overflow: hidden; }
637
+
638
+ section {
639
+ clear: both;
640
+ margin: 20px 0;
641
+ overflow: hidden; }
642
+
643
+ /* 768px */
644
+ /* 320px. iPhone */
645
+ @media only screen and (max-width: 767px) {
646
+ .container {
647
+ width: 300px; }
648
+
649
+ .span-1 {
650
+ width: 280px;
651
+ margin: 0 10px; }
652
+
653
+ .span-2 {
654
+ width: 280px;
655
+ margin: 0 10px; }
656
+
657
+ .span-3 {
658
+ width: 280px;
659
+ margin: 0 10px; }
660
+
661
+ .span-4 {
662
+ width: 280px;
663
+ margin: 0 10px; }
664
+
665
+ .span-5 {
666
+ width: 280px;
667
+ margin: 0 10px; }
668
+
669
+ .span-6 {
670
+ width: 280px;
671
+ margin: 0 10px; }
672
+
673
+ .span-7 {
674
+ width: 280px;
675
+ margin: 0 10px; }
676
+
677
+ .span-8 {
678
+ width: 280px;
679
+ margin: 0 10px; }
680
+
681
+ .span-9 {
682
+ width: 280px;
683
+ margin: 0 10px; }
684
+
685
+ .span-10 {
686
+ width: 280px;
687
+ margin: 0 10px; }
688
+
689
+ .span-11 {
690
+ width: 280px;
691
+ margin: 0 10px; }
692
+
693
+ .span-12 {
694
+ width: 280px;
695
+ margin: 0 10px; } }
696
+ /* 480px */