formol-theme-basic 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,20 @@
1
+ Copyright 2011 Florian DUTEY
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,7 @@
1
+ Theme 'basic' for Formol forum engine
2
+
3
+ Add this line to your Gemfile (after line `gem 'formol'`)
4
+
5
+ ```ruby
6
+ gem 'formol-theme-basic'
7
+ ```
@@ -0,0 +1,51 @@
1
+ #
2
+ # To change this template, choose Tools | Templates
3
+ # and open the template in the editor.
4
+
5
+
6
+ require 'rubygems'
7
+ require 'rake'
8
+ require 'rake/clean'
9
+ require 'rake/gempackagetask'
10
+ require 'rake/rdoctask'
11
+ require 'rake/testtask'
12
+ require 'spec/rake/spectask'
13
+
14
+ spec = Gem::Specification.new do |s|
15
+ s.name = 'formol-theme-basic'
16
+ s.version = '0.0.1'
17
+ s.has_rdoc = true
18
+ s.extra_rdoc_files = ['README', 'LICENSE']
19
+ s.summary = 'Your summary here'
20
+ s.description = s.summary
21
+ s.author = ''
22
+ s.email = ''
23
+ # s.executables = ['your_executable_here']
24
+ s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
25
+ s.require_path = "lib"
26
+ s.bindir = "bin"
27
+ end
28
+
29
+ Rake::GemPackageTask.new(spec) do |p|
30
+ p.gem_spec = spec
31
+ p.need_tar = true
32
+ p.need_zip = true
33
+ end
34
+
35
+ Rake::RDocTask.new do |rdoc|
36
+ files =['README', 'LICENSE', 'lib/**/*.rb']
37
+ rdoc.rdoc_files.add(files)
38
+ rdoc.main = "README" # page to start on
39
+ rdoc.title = "formol-theme-basic Docs"
40
+ rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
41
+ rdoc.options << '--line-numbers'
42
+ end
43
+
44
+ Rake::TestTask.new do |t|
45
+ t.test_files = FileList['test/**/*.rb']
46
+ end
47
+
48
+ Spec::Rake::SpecTask.new do |t|
49
+ t.spec_files = FileList['spec/**/*.rb']
50
+ t.libs << Dir["lib"]
51
+ end
@@ -0,0 +1,3 @@
1
+ //= require formol/themes/basic/partials/breadcrumb
2
+ //= require formol/themes/basic/partials/formol_lists
3
+ //= require formol/themes/basic/partials/categories/list
@@ -0,0 +1,3 @@
1
+ //= require formol/themes/basic/partials/formol_lists
2
+ //= require formol/themes/basic/partials/forums/list
3
+ //= require formol/themes/basic/partials/breadcrumb
@@ -0,0 +1,9 @@
1
+ .breadcrumb {
2
+ li {
3
+ display: inline-block;
4
+ margin-right: 4px;
5
+ }
6
+
7
+ padding: 0;
8
+ margin: 10px 0;
9
+ }
@@ -0,0 +1,101 @@
1
+ @import "formol/mixins/after_clear";
2
+
3
+ .forums {
4
+ padding: 0;
5
+ list-style-type: none;
6
+ margin: 0;
7
+ }
8
+
9
+ .formol_category {
10
+ margin-bottom: 10px;
11
+
12
+ h2 {
13
+ margin: 0;
14
+ margin-bottom: 0.7em;
15
+ padding: 0.1em 0.2em;
16
+ border-bottom: 1px solid #a5a5a5;
17
+
18
+ a {
19
+ text-decoration: none;
20
+ color: black;
21
+ }
22
+ }
23
+ }
24
+
25
+ .formol_category_forums {
26
+ min-width: 650px;
27
+ margin-left: 15px;
28
+
29
+ .forums .unread .metas {
30
+ background-image: url('/assets/formol/themes/basic/unread.png');
31
+ }
32
+
33
+ .formol_forum {
34
+ margin-bottom: 5px;
35
+ }
36
+
37
+ .head {
38
+ > span {
39
+ float: left;
40
+
41
+ &:first-letter {
42
+ text-transform: capitalize;
43
+ }
44
+ }
45
+
46
+ .label {
47
+ width: 51%;
48
+ padding-right: 30px;
49
+ }
50
+
51
+ &:after {
52
+ @include after_clear;
53
+ }
54
+ }
55
+
56
+ .formol_forum {
57
+ &:after {
58
+ @include after_clear;
59
+ }
60
+
61
+ > span {
62
+ float: left;
63
+ }
64
+
65
+ .metas {
66
+ width: 51%;
67
+ padding-left: 30px;
68
+ background: transparent url('/assets/formol/themes/basic/read.png') no-repeat scroll left 7px;
69
+ height: 38px;
70
+ }
71
+
72
+ .label {
73
+ display: block;
74
+ }
75
+
76
+ .description {
77
+ color: #777;
78
+ padding-left: 4px;
79
+ font-style: italic;
80
+ }
81
+ }
82
+
83
+ .topics_count,
84
+ .posts_count {
85
+ width: 9%;
86
+ text-align: center;
87
+ }
88
+
89
+ .last_post {
90
+ width: 25%;
91
+
92
+ .created_by {
93
+ display: block;
94
+ }
95
+
96
+ time {
97
+ color: #aaa;
98
+ font-style: italic;
99
+ }
100
+ }
101
+ }
@@ -0,0 +1,6 @@
1
+ ol.list {
2
+ min-width: 650px;
3
+ list-style-type: none;
4
+ padding: 0;
5
+ margin: 0;
6
+ }
@@ -0,0 +1,97 @@
1
+ @import "formol/mixins/after_clear";
2
+
3
+ hgroup {
4
+ h2 {
5
+ &:first-letter {
6
+ text-transform: capitalize;
7
+ }
8
+
9
+ margin-bottom: 0;
10
+ }
11
+
12
+ h4 {
13
+ margin-top: 0;
14
+ padding-left: 10px;
15
+ color: #aaa;
16
+ font-style: italic;
17
+ }
18
+ }
19
+
20
+ .forum_tools {
21
+ list-style-type: none;
22
+ padding: 0;
23
+
24
+ li {
25
+ display: inline-block;
26
+ }
27
+ }
28
+
29
+ .formol_forum_topics {
30
+ .topics .unread .meta {
31
+ background-image: url('/assets/formol/themes/basic/unread.png');
32
+ }
33
+
34
+ .head {
35
+ &:after {
36
+ @include after_clear;
37
+ }
38
+
39
+ > span {
40
+ &:first-letter {
41
+ text-transform: capitalize;
42
+ }
43
+
44
+ float: left;
45
+ }
46
+
47
+ .title {
48
+ width: 51%;
49
+ padding-right: 30px;
50
+ }
51
+ }
52
+
53
+ .formol_topic {
54
+ &:after {
55
+ @include after_clear;
56
+ }
57
+
58
+ > span {
59
+ float: left;
60
+ }
61
+ }
62
+
63
+ .topics {
64
+ list-style-type: none;
65
+ padding: 0;
66
+ margin: 0;
67
+ }
68
+
69
+ .meta {
70
+ width: 51%;
71
+ padding-left: 30px;
72
+ background: transparent url('/assets/formol/themes/basic/read.png') no-repeat scroll left 7px;
73
+
74
+ .title {
75
+ display: block;
76
+ }
77
+ }
78
+
79
+ .posts_count,
80
+ .views_count {
81
+ width: 9%;
82
+ text-align: center;
83
+ }
84
+
85
+ .last_post {
86
+ width: 25%;
87
+
88
+ .created_by {
89
+ display: block;
90
+ }
91
+
92
+ time {
93
+ color: #aaa;
94
+ font-style: italic;
95
+ }
96
+ }
97
+ }
@@ -0,0 +1,9 @@
1
+ .formol_poll {
2
+ width: 50%;
3
+ margin: 0 auto;
4
+
5
+ ol {
6
+ list-style-type: none;
7
+ padding: 0;
8
+ }
9
+ }
@@ -0,0 +1,116 @@
1
+ @import "formol/mixins/after_clear";
2
+
3
+ .last_fives {
4
+ .actions {
5
+ display: none;
6
+ }
7
+ }
8
+
9
+ li.formol_post {
10
+ background-color: #e1ebf2;
11
+ padding: 10px;
12
+ padding-bottom: 25px;
13
+ margin-bottom: 10px;
14
+ position: relative;
15
+ min-width: 885px;
16
+
17
+ &:after {
18
+ @include after_clear;
19
+ }
20
+
21
+ .metas {
22
+ float: left;
23
+ width: 12%;
24
+
25
+ .links {
26
+ margin-bottom: 5px;
27
+ }
28
+
29
+ figure {
30
+ margin: 5px 0;
31
+ }
32
+
33
+ span {
34
+ display: block;
35
+ }
36
+
37
+ .posts_count {
38
+ &:first-letter {
39
+ text-transform: uppercase;
40
+ }
41
+ }
42
+ }
43
+
44
+ .content {
45
+ width: 88%;
46
+ float: left;
47
+
48
+ .highlight {
49
+ clear: left;
50
+ padding: 10px;
51
+ margin-bottom: 1em;
52
+ background-color: #fcfcfc;
53
+
54
+ .lineno {
55
+ color: #cacaca;
56
+ }
57
+ }
58
+
59
+ .highlight_title {
60
+ background-color: #FAFAFA;
61
+ float: left;
62
+ font-family: monospace;
63
+ font-weight: bold;
64
+ padding: 3px 4px 0;
65
+ }
66
+
67
+ pre, blockquote {
68
+ margin: 0;
69
+ }
70
+
71
+ blockquote {
72
+ margin-bottom: 5px;
73
+
74
+ p:last-child {
75
+ margin-bottom: 0;
76
+ }
77
+ }
78
+
79
+ pre {
80
+ line-height: 120%;
81
+ }
82
+ }
83
+
84
+ .created_at {
85
+ left: 12%;
86
+ bottom: 5px;
87
+ position: absolute;
88
+ font-style: italic;
89
+ color: #888;
90
+
91
+ &:first-letter {
92
+ text-transform: uppercase;
93
+ }
94
+ }
95
+
96
+ .actions {
97
+ position: absolute;
98
+ margin: 0;
99
+ bottom: 5px;
100
+ right: 10px;
101
+
102
+ li {
103
+ display: inline-block;
104
+ }
105
+ }
106
+ }
107
+
108
+ blockquote {
109
+ border: 1px solid #dddddd;
110
+ background-color: #eaeaea;
111
+ padding: 5px;
112
+
113
+ blockquote {
114
+ background-color: #efefef;
115
+ }
116
+ }
@@ -0,0 +1,6 @@
1
+ //= require formol/themes/basic/partials/posts/post
2
+ //= require formol/themes/basic/partials/breadcrumb
3
+
4
+ h2:first-letter {
5
+ text-transform: capitalize;
6
+ }
@@ -0,0 +1,41 @@
1
+ //= require formol/themes/basic/partials/formol_lists
2
+ //= require formol/themes/basic/partials/posts/post
3
+ //= require formol/themes/basic/partials/breadcrumb
4
+ //= require formol/themes/basic/partials/polls/poll
5
+
6
+
7
+ h2 {
8
+ &:first-letter {
9
+ text-transform: uppercase;
10
+ }
11
+ }
12
+
13
+ .topic_tools {
14
+ margin: 0;
15
+ padding: 0;
16
+ margin-bottom: 5px;
17
+
18
+ li {
19
+ display: inline-block;
20
+ margin-right: 5px;
21
+ }
22
+ }
23
+
24
+ form {
25
+ fieldset.poll {
26
+ padding-left: 60px;
27
+ padding-top: 10px;
28
+
29
+ > legend {
30
+ margin-left: 40px;
31
+ }
32
+
33
+ fieldset.answers {
34
+ padding-left: 20px;
35
+
36
+ > legend {
37
+ margin-left: 60px;
38
+ }
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,9 @@
1
+ module Formol
2
+ module Theme
3
+ module Basic
4
+ class Engine < ::Rails::Engine
5
+ Formol.themes << :basic
6
+ end
7
+ end
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,59 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: formol-theme-basic
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Florian Dutey
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-01-20 00:00:00.000000000Z
13
+ dependencies: []
14
+ description: Basic theme for formol forum engine
15
+ email:
16
+ - fdutey@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - app/assets/stylesheets/formol/themes/basic/topics.css.scss
22
+ - app/assets/stylesheets/formol/themes/basic/categories.css.scss
23
+ - app/assets/stylesheets/formol/themes/basic/forums.css.scss
24
+ - app/assets/stylesheets/formol/themes/basic/posts.css.scss
25
+ - app/assets/stylesheets/formol/themes/basic/partials/formol_lists.css.scss
26
+ - app/assets/stylesheets/formol/themes/basic/partials/forums/list.css.scss
27
+ - app/assets/stylesheets/formol/themes/basic/partials/categories/list.css.scss
28
+ - app/assets/stylesheets/formol/themes/basic/partials/posts/post.css.scss
29
+ - app/assets/stylesheets/formol/themes/basic/partials/polls/poll.css.scss
30
+ - app/assets/stylesheets/formol/themes/basic/partials/breadcrumb.css.scss
31
+ - lib/formol-theme-basic.rb
32
+ - MIT-LICENSE
33
+ - Rakefile
34
+ - README.md
35
+ homepage: https://github.com/mulasse/formol/formol-theme-basic
36
+ licenses: []
37
+ post_install_message:
38
+ rdoc_options: []
39
+ require_paths:
40
+ - lib
41
+ required_ruby_version: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
48
+ none: false
49
+ requirements:
50
+ - - ! '>='
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ requirements: []
54
+ rubyforge_project:
55
+ rubygems_version: 1.8.10
56
+ signing_key:
57
+ specification_version: 3
58
+ summary: Basic theme for formol forum engine
59
+ test_files: []