trivial 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. data/CHANGELOG +1 -0
  2. data/Manifest +34 -1
  3. data/Rakefile +16 -1
  4. data/bin/trivialize +80 -17
  5. data/config/trivial.inc +3 -0
  6. data/content/dynamic.inc +1 -0
  7. data/lib/trivial.php +147 -21
  8. data/readme.md +77 -3
  9. data/styles/application.css +0 -7
  10. data/styles/blueprint/LICENSE +314 -0
  11. data/styles/blueprint/ie.css +35 -0
  12. data/styles/blueprint/plugins/buttons/icons/cross.png +0 -0
  13. data/styles/blueprint/plugins/buttons/icons/key.png +0 -0
  14. data/styles/blueprint/plugins/buttons/icons/tick.png +0 -0
  15. data/styles/blueprint/plugins/buttons/readme.txt +32 -0
  16. data/styles/blueprint/plugins/buttons/screen.css +97 -0
  17. data/styles/blueprint/plugins/fancy-type/readme.txt +14 -0
  18. data/styles/blueprint/plugins/fancy-type/screen.css +71 -0
  19. data/styles/blueprint/plugins/link-icons/icons/doc.png +0 -0
  20. data/styles/blueprint/plugins/link-icons/icons/email.png +0 -0
  21. data/styles/blueprint/plugins/link-icons/icons/external.png +0 -0
  22. data/styles/blueprint/plugins/link-icons/icons/feed.png +0 -0
  23. data/styles/blueprint/plugins/link-icons/icons/im.png +0 -0
  24. data/styles/blueprint/plugins/link-icons/icons/pdf.png +0 -0
  25. data/styles/blueprint/plugins/link-icons/icons/visited.png +0 -0
  26. data/styles/blueprint/plugins/link-icons/icons/xls.png +0 -0
  27. data/styles/blueprint/plugins/link-icons/readme.txt +18 -0
  28. data/styles/blueprint/plugins/link-icons/screen.css +40 -0
  29. data/styles/blueprint/plugins/rtl/readme.txt +10 -0
  30. data/styles/blueprint/plugins/rtl/screen.css +110 -0
  31. data/styles/blueprint/print.css +29 -0
  32. data/styles/blueprint/screen.css +258 -0
  33. data/styles/blueprint/src/forms.css +65 -0
  34. data/styles/blueprint/src/grid.css +280 -0
  35. data/styles/blueprint/src/grid.png +0 -0
  36. data/styles/blueprint/src/ie.css +76 -0
  37. data/styles/blueprint/src/print.css +85 -0
  38. data/styles/blueprint/src/reset.css +45 -0
  39. data/styles/blueprint/src/typography.css +106 -0
  40. data/trivial.gemspec +4 -4
  41. data/upgrade-notes/0.0.6.txt +12 -0
  42. data/views/application.inc +1 -0
  43. metadata +39 -4
@@ -0,0 +1,45 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ reset.css
4
+ * Resets default browser CSS.
5
+
6
+ -------------------------------------------------------------- */
7
+
8
+ html, body, div, span, object, iframe,
9
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
10
+ a, abbr, acronym, address, code,
11
+ del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
12
+ fieldset, form, label, legend,
13
+ table, caption, tbody, tfoot, thead, tr, th, td,
14
+ article, aside, dialog, figure, footer, header,
15
+ hgroup, nav, section {
16
+ margin: 0;
17
+ padding: 0;
18
+ border: 0;
19
+ font-weight: inherit;
20
+ font-style: inherit;
21
+ font-size: 100%;
22
+ font-family: inherit;
23
+ vertical-align: baseline;
24
+ }
25
+
26
+ article, aside, dialog, figure, footer, header,
27
+ hgroup, nav, section {
28
+ display:block;
29
+ }
30
+
31
+ body {
32
+ line-height: 1.5;
33
+ }
34
+
35
+ /* Tables still need 'cellspacing="0"' in the markup. */
36
+ table { border-collapse: separate; border-spacing: 0; }
37
+ caption, th, td { text-align: left; font-weight: normal; }
38
+ table, td, th { vertical-align: middle; }
39
+
40
+ /* Remove possible quote marks (") from <q>, <blockquote>. */
41
+ blockquote:before, blockquote:after, q:before, q:after { content: ""; }
42
+ blockquote, q { quotes: "" ""; }
43
+
44
+ /* Remove annoying border on linked images. */
45
+ a img { border: none; }
@@ -0,0 +1,106 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ typography.css
4
+ * Sets up some sensible default typography.
5
+
6
+ -------------------------------------------------------------- */
7
+
8
+ /* Default font settings.
9
+ The font-size percentage is of 16px. (0.75 * 16px = 12px) */
10
+ html { font-size:100.01%; }
11
+ body {
12
+ font-size: 75%;
13
+ color: #222;
14
+ background: #fff;
15
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
16
+ }
17
+
18
+
19
+ /* Headings
20
+ -------------------------------------------------------------- */
21
+
22
+ h1,h2,h3,h4,h5,h6 { font-weight: normal; color: #111; }
23
+
24
+ h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; }
25
+ h2 { font-size: 2em; margin-bottom: 0.75em; }
26
+ h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; }
27
+ h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; }
28
+ h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; }
29
+ h6 { font-size: 1em; font-weight: bold; }
30
+
31
+ h1 img, h2 img, h3 img,
32
+ h4 img, h5 img, h6 img {
33
+ margin: 0;
34
+ }
35
+
36
+
37
+ /* Text elements
38
+ -------------------------------------------------------------- */
39
+
40
+ p { margin: 0 0 1.5em; }
41
+ p img.left { float: left; margin: 1.5em 1.5em 1.5em 0; padding: 0; }
42
+ p img.right { float: right; margin: 1.5em 0 1.5em 1.5em; }
43
+
44
+ a:focus,
45
+ a:hover { color: #000; }
46
+ a { color: #009; text-decoration: underline; }
47
+
48
+ blockquote { margin: 1.5em; color: #666; font-style: italic; }
49
+ strong { font-weight: bold; }
50
+ em,dfn { font-style: italic; }
51
+ dfn { font-weight: bold; }
52
+ sup, sub { line-height: 0; }
53
+
54
+ abbr,
55
+ acronym { border-bottom: 1px dotted #666; }
56
+ address { margin: 0 0 1.5em; font-style: italic; }
57
+ del { color:#666; }
58
+
59
+ pre { margin: 1.5em 0; white-space: pre; }
60
+ pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; }
61
+
62
+
63
+ /* Lists
64
+ -------------------------------------------------------------- */
65
+
66
+ li ul,
67
+ li ol { margin: 0; }
68
+ ul, ol { margin: 0 1.5em 1.5em 0; padding-left: 3.333em; }
69
+
70
+ ul { list-style-type: disc; }
71
+ ol { list-style-type: decimal; }
72
+
73
+ dl { margin: 0 0 1.5em 0; }
74
+ dl dt { font-weight: bold; }
75
+ dd { margin-left: 1.5em;}
76
+
77
+
78
+ /* Tables
79
+ -------------------------------------------------------------- */
80
+
81
+ table { margin-bottom: 1.4em; width:100%; }
82
+ th { font-weight: bold; }
83
+ thead th { background: #c3d9ff; }
84
+ th,td,caption { padding: 4px 10px 4px 5px; }
85
+ tr.even td { background: #e5ecf9; }
86
+ tfoot { font-style: italic; }
87
+ caption { background: #eee; }
88
+
89
+
90
+ /* Misc classes
91
+ -------------------------------------------------------------- */
92
+
93
+ .small { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; }
94
+ .large { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; }
95
+ .hide { display: none; }
96
+
97
+ .quiet { color: #666; }
98
+ .loud { color: #000; }
99
+ .highlight { background:#ff0; }
100
+ .added { background:#060; color: #fff; }
101
+ .removed { background:#900; color: #fff; }
102
+
103
+ .first { margin-left:0; padding-left:0; }
104
+ .last { margin-right:0; padding-right:0; }
105
+ .top { margin-top:0; padding-top:0; }
106
+ .bottom { margin-bottom:0; padding-bottom:0; }
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{trivial}
5
- s.version = "0.0.5"
5
+ s.version = "0.0.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["John Bintz"]
9
- s.date = %q{2010-03-21}
9
+ s.date = %q{2010-04-02}
10
10
  s.default_executable = %q{trivialize}
11
11
  s.description = %q{ For those who are using PHP to build their sites and want a very simple framework
12
12
  in which to organize their files, trivial is the solution. It's one PHP file
@@ -17,8 +17,8 @@ Gem::Specification.new do |s|
17
17
  }
18
18
  s.email = %q{john@coswelproductions.com}
19
19
  s.executables = ["trivialize"]
20
- s.extra_rdoc_files = ["bin/trivialize", "lib/trivial.php"]
21
- s.files = ["Manifest", "Rakefile", "bin/trivialize", "content/index.html", "dist/htaccess.dist", "lib/trivial.php", "readme.md", "styles/application.css", "trivial.gemspec", "views/application.inc"]
20
+ s.extra_rdoc_files = ["CHANGELOG", "bin/trivialize", "lib/trivial.php"]
21
+ s.files = ["CHANGELOG", "Manifest", "Rakefile", "bin/trivialize", "config/trivial.inc", "content/dynamic.inc", "content/index.html", "dist/htaccess.dist", "lib/trivial.php", "readme.md", "styles/application.css", "styles/blueprint/LICENSE", "styles/blueprint/ie.css", "styles/blueprint/plugins/buttons/icons/cross.png", "styles/blueprint/plugins/buttons/icons/key.png", "styles/blueprint/plugins/buttons/icons/tick.png", "styles/blueprint/plugins/buttons/readme.txt", "styles/blueprint/plugins/buttons/screen.css", "styles/blueprint/plugins/fancy-type/readme.txt", "styles/blueprint/plugins/fancy-type/screen.css", "styles/blueprint/plugins/link-icons/icons/doc.png", "styles/blueprint/plugins/link-icons/icons/email.png", "styles/blueprint/plugins/link-icons/icons/external.png", "styles/blueprint/plugins/link-icons/icons/feed.png", "styles/blueprint/plugins/link-icons/icons/im.png", "styles/blueprint/plugins/link-icons/icons/pdf.png", "styles/blueprint/plugins/link-icons/icons/visited.png", "styles/blueprint/plugins/link-icons/icons/xls.png", "styles/blueprint/plugins/link-icons/readme.txt", "styles/blueprint/plugins/link-icons/screen.css", "styles/blueprint/plugins/rtl/readme.txt", "styles/blueprint/plugins/rtl/screen.css", "styles/blueprint/print.css", "styles/blueprint/screen.css", "styles/blueprint/src/forms.css", "styles/blueprint/src/grid.css", "styles/blueprint/src/grid.png", "styles/blueprint/src/ie.css", "styles/blueprint/src/print.css", "styles/blueprint/src/reset.css", "styles/blueprint/src/typography.css", "upgrade-notes/0.0.6.txt", "views/application.inc", "trivial.gemspec"]
22
22
  s.homepage = %q{http://github.com/johnbintz/trivial}
23
23
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Trivial", "--main", "readme.md"]
24
24
  s.require_paths = ["lib"]
@@ -0,0 +1,12 @@
1
+ The blueprint() function includes the Blueprint CSS framework. If you want to use it,
2
+ and you really should, include the following in your application <head>:
3
+
4
+ <php echo blueprint() ?>
5
+
6
+ Asset tags (styles and scripts for now) incude cachebusters:
7
+
8
+ <script type="text/javascript" href="scripts/application.js?1234567890"></script>
9
+
10
+ This means you can now set the Expires headers for static content to be
11
+ near-indefinite and still have users download the latest versions when an
12
+ update is made.
@@ -1,6 +1,7 @@
1
1
  <html>
2
2
  <head>
3
3
  <title>My Application</title>
4
+ <?php echo blueprint() ?>
4
5
  <?php echo scripts() ?>
5
6
  <?php echo styles() ?>
6
7
  </head>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 5
9
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - John Bintz
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-21 00:00:00 -04:00
17
+ date: 2010-04-02 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -30,19 +30,54 @@ executables:
30
30
  extensions: []
31
31
 
32
32
  extra_rdoc_files:
33
+ - CHANGELOG
33
34
  - bin/trivialize
34
35
  - lib/trivial.php
35
36
  files:
37
+ - CHANGELOG
36
38
  - Manifest
37
39
  - Rakefile
38
40
  - bin/trivialize
41
+ - config/trivial.inc
42
+ - content/dynamic.inc
39
43
  - content/index.html
40
44
  - dist/htaccess.dist
41
45
  - lib/trivial.php
42
46
  - readme.md
43
47
  - styles/application.css
44
- - trivial.gemspec
48
+ - styles/blueprint/LICENSE
49
+ - styles/blueprint/ie.css
50
+ - styles/blueprint/plugins/buttons/icons/cross.png
51
+ - styles/blueprint/plugins/buttons/icons/key.png
52
+ - styles/blueprint/plugins/buttons/icons/tick.png
53
+ - styles/blueprint/plugins/buttons/readme.txt
54
+ - styles/blueprint/plugins/buttons/screen.css
55
+ - styles/blueprint/plugins/fancy-type/readme.txt
56
+ - styles/blueprint/plugins/fancy-type/screen.css
57
+ - styles/blueprint/plugins/link-icons/icons/doc.png
58
+ - styles/blueprint/plugins/link-icons/icons/email.png
59
+ - styles/blueprint/plugins/link-icons/icons/external.png
60
+ - styles/blueprint/plugins/link-icons/icons/feed.png
61
+ - styles/blueprint/plugins/link-icons/icons/im.png
62
+ - styles/blueprint/plugins/link-icons/icons/pdf.png
63
+ - styles/blueprint/plugins/link-icons/icons/visited.png
64
+ - styles/blueprint/plugins/link-icons/icons/xls.png
65
+ - styles/blueprint/plugins/link-icons/readme.txt
66
+ - styles/blueprint/plugins/link-icons/screen.css
67
+ - styles/blueprint/plugins/rtl/readme.txt
68
+ - styles/blueprint/plugins/rtl/screen.css
69
+ - styles/blueprint/print.css
70
+ - styles/blueprint/screen.css
71
+ - styles/blueprint/src/forms.css
72
+ - styles/blueprint/src/grid.css
73
+ - styles/blueprint/src/grid.png
74
+ - styles/blueprint/src/ie.css
75
+ - styles/blueprint/src/print.css
76
+ - styles/blueprint/src/reset.css
77
+ - styles/blueprint/src/typography.css
78
+ - upgrade-notes/0.0.6.txt
45
79
  - views/application.inc
80
+ - trivial.gemspec
46
81
  has_rdoc: true
47
82
  homepage: http://github.com/johnbintz/trivial
48
83
  licenses: []