oldskool 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/Gemfile.lock +17 -0
- data/config/oldskool.yaml.dist +21 -0
- data/config.ru +17 -0
- data/lib/oldskool/error_handler.rb +14 -0
- data/lib/oldskool/router.rb +49 -0
- data/lib/oldskool/sinatra_app.rb +48 -0
- data/lib/oldskool/url_handler.rb +18 -0
- data/lib/oldskool/utils.rb +9 -0
- data/lib/oldskool.rb +15 -0
- data/public/js/less-1.1.3.min.js +16 -0
- data/public/lib/bootstrap.less +26 -0
- data/public/lib/forms.less +479 -0
- data/public/lib/mixins.less +222 -0
- data/public/lib/patterns.less +1063 -0
- data/public/lib/reset.less +141 -0
- data/public/lib/scaffolding.less +139 -0
- data/public/lib/tables.less +224 -0
- data/public/lib/type.less +187 -0
- data/public/lib/variables.less +60 -0
- data/views/do.erb +0 -0
- data/views/index.erb +20 -0
- data/views/layout.erb +44 -0
- metadata +102 -0
@@ -0,0 +1,60 @@
|
|
1
|
+
/* Variables.less
|
2
|
+
* Variables to customize the look and feel of Bootstrap
|
3
|
+
* ----------------------------------------------------- */
|
4
|
+
|
5
|
+
|
6
|
+
// Links
|
7
|
+
@linkColor: #0069d6;
|
8
|
+
@linkColorHover: darken(@linkColor, 15);
|
9
|
+
|
10
|
+
// Grays
|
11
|
+
@black: #000;
|
12
|
+
@grayDark: lighten(@black, 25%);
|
13
|
+
@gray: lighten(@black, 50%);
|
14
|
+
@grayLight: lighten(@black, 75%);
|
15
|
+
@grayLighter: lighten(@black, 90%);
|
16
|
+
@white: #fff;
|
17
|
+
|
18
|
+
// Accent Colors
|
19
|
+
@blue: #049CDB;
|
20
|
+
@blueDark: #0064CD;
|
21
|
+
@green: #46a546;
|
22
|
+
@red: #9d261d;
|
23
|
+
@yellow: #ffc40d;
|
24
|
+
@orange: #f89406;
|
25
|
+
@pink: #c3325f;
|
26
|
+
@purple: #7a43b6;
|
27
|
+
|
28
|
+
// Baseline grid
|
29
|
+
@basefont: 13px;
|
30
|
+
@baseline: 18px;
|
31
|
+
|
32
|
+
// Griditude
|
33
|
+
// Modify the grid styles in mixins.less
|
34
|
+
@gridColumns: 16;
|
35
|
+
@gridColumnWidth: 40px;
|
36
|
+
@gridGutterWidth: 20px;
|
37
|
+
@extraSpace: (@gridGutterWidth * 2); // For our grid calculations
|
38
|
+
@siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
|
39
|
+
|
40
|
+
// Color Scheme
|
41
|
+
// Use this to roll your own color schemes if you like (unused by Bootstrap by default)
|
42
|
+
@baseColor: @blue; // Set a base color
|
43
|
+
@complement: spin(@baseColor, 180); // Determine a complementary color
|
44
|
+
@split1: spin(@baseColor, 158); // Split complements
|
45
|
+
@split2: spin(@baseColor, -158);
|
46
|
+
@triad1: spin(@baseColor, 135); // Triads colors
|
47
|
+
@triad2: spin(@baseColor, -135);
|
48
|
+
@tetra1: spin(@baseColor, 90); // Tetra colors
|
49
|
+
@tetra2: spin(@baseColor, -90);
|
50
|
+
@analog1: spin(@baseColor, 22); // Analogs colors
|
51
|
+
@analog2: spin(@baseColor, -22);
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
// More variables coming soon:
|
56
|
+
// - @basefont to @baseFontSize
|
57
|
+
// - @baseline to @baseLineHeight
|
58
|
+
// - @baseFontFamily
|
59
|
+
// - @primaryButtonColor
|
60
|
+
// - anything else? File an issue on GitHub
|
data/views/do.erb
ADDED
File without changes
|
data/views/index.erb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
<% unless @error %>
|
2
|
+
<div class="row"> </div>
|
3
|
+
<div class="row"> </div>
|
4
|
+
<div class="row"> </div>
|
5
|
+
<div class="row">
|
6
|
+
<form action="/do" method="get" class="span10">
|
7
|
+
<div class="span16">
|
8
|
+
<div class="row">
|
9
|
+
<div class="span2"> </div>
|
10
|
+
<input name="q" id="q" type="text" placeholder="Query" class="span10"/>
|
11
|
+
<div class="span1"> </div>
|
12
|
+
<button type="submit" class="btn">Go</button>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
</form>
|
16
|
+
</div>
|
17
|
+
<script language="javascript" type="text/javascript">
|
18
|
+
document.getElementById("q").focus();
|
19
|
+
</script>
|
20
|
+
<% end %>
|
data/views/layout.erb
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<link rel="stylesheet/less" type="text/css" href="/lib/bootstrap.less">
|
4
|
+
<script src="/js/less-1.1.3.min.js" type="text/javascript"></script>
|
5
|
+
<title>Oldskool</title>
|
6
|
+
</head>
|
7
|
+
<body style="padding-top: 80px;">
|
8
|
+
<div class="topbar" data-dropdown="dropdown" >
|
9
|
+
<div class="topbar-inner">
|
10
|
+
<div class="container">
|
11
|
+
<h3><a href="/">Oldskool</a></h3>
|
12
|
+
<% if @topmenu %>
|
13
|
+
<ul class="nav">
|
14
|
+
<% @topmenu.each do |item| %>
|
15
|
+
<li><a href="<%= item[:url] %>"><%= item[:title] %></a></li>
|
16
|
+
<% end %>
|
17
|
+
</ul>
|
18
|
+
<% end %>
|
19
|
+
<form action="/do" method="get" class="pull-right"><input name="q" type="text" placeholder="Query" /></form>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div class="container">
|
25
|
+
<div class="row">
|
26
|
+
<div class="span4">
|
27
|
+
<% if @sidemenu %>
|
28
|
+
<% @sidemenu.each do |item| %>
|
29
|
+
<p><a href="<%= item[:url] %>"><button type="submit" class="btn"><%= item[:title] %></button></a></p>
|
30
|
+
<% end %>
|
31
|
+
<% end %>
|
32
|
+
</div>
|
33
|
+
<div class="span12">
|
34
|
+
<% if @error %>
|
35
|
+
<div class="alert-message error">
|
36
|
+
<%= @error %>
|
37
|
+
</div>
|
38
|
+
<% end %>
|
39
|
+
<%= yield %>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</body>
|
44
|
+
</html>
|
metadata
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: oldskool
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- R.I.Pienaar
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2012-01-14 00:00:00 +00:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: sinatra
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
description: "description: Pluggable web command line"
|
36
|
+
email: rip@devco.net
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files: []
|
42
|
+
|
43
|
+
files:
|
44
|
+
- lib/oldskool/utils.rb
|
45
|
+
- lib/oldskool/router.rb
|
46
|
+
- lib/oldskool/error_handler.rb
|
47
|
+
- lib/oldskool/url_handler.rb
|
48
|
+
- lib/oldskool/sinatra_app.rb
|
49
|
+
- lib/oldskool.rb
|
50
|
+
- views/layout.erb
|
51
|
+
- views/index.erb
|
52
|
+
- views/do.erb
|
53
|
+
- public/js/less-1.1.3.min.js
|
54
|
+
- public/lib/forms.less
|
55
|
+
- public/lib/scaffolding.less
|
56
|
+
- public/lib/bootstrap.less
|
57
|
+
- public/lib/tables.less
|
58
|
+
- public/lib/patterns.less
|
59
|
+
- public/lib/reset.less
|
60
|
+
- public/lib/mixins.less
|
61
|
+
- public/lib/variables.less
|
62
|
+
- public/lib/type.less
|
63
|
+
- config/oldskool.yaml.dist
|
64
|
+
- config.ru
|
65
|
+
- Gemfile
|
66
|
+
- Gemfile.lock
|
67
|
+
has_rdoc: true
|
68
|
+
homepage: http://devco.net/
|
69
|
+
licenses: []
|
70
|
+
|
71
|
+
post_install_message:
|
72
|
+
rdoc_options: []
|
73
|
+
|
74
|
+
require_paths:
|
75
|
+
- lib
|
76
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
hash: 3
|
82
|
+
segments:
|
83
|
+
- 0
|
84
|
+
version: "0"
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
hash: 3
|
91
|
+
segments:
|
92
|
+
- 0
|
93
|
+
version: "0"
|
94
|
+
requirements: []
|
95
|
+
|
96
|
+
rubyforge_project:
|
97
|
+
rubygems_version: 1.3.7
|
98
|
+
signing_key:
|
99
|
+
specification_version: 3
|
100
|
+
summary: oldskool
|
101
|
+
test_files: []
|
102
|
+
|