forem-legion 0.0.1

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c5c6a26418da0abf1d0d63aaa1282746b6820766
4
+ data.tar.gz: 45d7a5cf359d8acc79696672bc1d9310de2fc397
5
+ SHA512:
6
+ metadata.gz: 9110aca78218b479be5fcfe36d1e8d0463118749582aa83dd6eeecacb2be0a1b2bfdaecab39d9caad938bb1313cb498654b688961d0587bf0d6d744358a7e23d
7
+ data.tar.gz: c619efa4c60d33d480b41d0c4a8959d6ed94f41ec10d26447a4a1e21d61b9f76374d2ea494d3f4926d7c4abd7ca15f6314b9e9cc8ec122760dc1eb90b5dad607
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in forem-theme-base.gemspec
4
+ gemspec
data/README.markdown ADDED
@@ -0,0 +1 @@
1
+ Want to know how this works? Read up on the forem wiki: https://github.com/radar/forem/wiki/Theming
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -0,0 +1,64 @@
1
+ @import "variables";
2
+
3
+ @media screen and (max-device-width: 480px){
4
+
5
+ body{
6
+ -webkit-text-size-adjust: none;
7
+ padding: 5px;
8
+ margin: 0 auto;
9
+ }
10
+
11
+ img{
12
+ max-width: 100%;
13
+ height: auto;
14
+ }
15
+
16
+ #forums{
17
+ .views-count, .posts-count {
18
+ display: none;
19
+ }
20
+ }
21
+
22
+ // Individual forum topics listing
23
+ .topics{
24
+ .posts-count, .views-count{
25
+ display: none;
26
+ }
27
+ }
28
+
29
+ #topic, #forum{
30
+ h2{
31
+ font-size: 90%;
32
+ }
33
+ }
34
+
35
+ #posts{
36
+ .post{
37
+ .user{
38
+ display: block;
39
+ width: auto;
40
+ float: right;
41
+ margin-left: 10px;
42
+ }
43
+
44
+ .contents{
45
+ margin-left: 0;
46
+ border-left: 0;
47
+
48
+ .actions{
49
+ display: block;
50
+ margin-top: 20px;
51
+ clear: both;
52
+ position: inherit;
53
+ right: 0;
54
+
55
+ li {
56
+ display: inline-block;
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+
63
+ }
64
+
@@ -0,0 +1,227 @@
1
+ @import "variables.css.less";
2
+
3
+ #forums_container {
4
+
5
+ }
6
+ /*
7
+ body{
8
+ font-family: GillSans, Calibri, Trebuchet, sans-serif;
9
+ color: @default-text;
10
+ margin-left: 20%;
11
+ margin-right: 20%;
12
+ }
13
+
14
+ #forums {
15
+ .title {
16
+ font-size: 175%;
17
+ }
18
+ }
19
+
20
+ #forum{
21
+ position: relative;
22
+ .secondary-nav{
23
+ position: absolute;
24
+ right: 0;
25
+ top: 0;
26
+ }
27
+ .description{
28
+ color: @lighter-text;
29
+ font-style: oblique;
30
+ }
31
+ menu{
32
+ padding-left: 0;
33
+ a{
34
+ background-color: @bar1-midbg;
35
+ padding: .5em;
36
+ display: inline-block;
37
+ color: @default-text;
38
+ text-decoration: none;
39
+ &:hover{
40
+ background-color: @bar1-bottombg;
41
+ }
42
+ margin: 0;
43
+ }
44
+ }
45
+ }
46
+
47
+ #topic, #forum {
48
+ h2{
49
+ padding: .5em;
50
+ position: relative;
51
+ background-color: @light-bg1;
52
+ color: #232323;
53
+ // margin: 0;
54
+ a{
55
+ text-decoration: none;
56
+ color: #232323;
57
+ &:hover{
58
+ text-decoration: underline;
59
+ }
60
+ }
61
+ a.reply{
62
+ margin-right: 1em;
63
+ font-weight: normal;
64
+ position: absolute;
65
+ right: 0;
66
+ padding: .5em;
67
+ background-color: #fff;
68
+ font-size: .5em;
69
+ text-decoration: none;
70
+ &:hover{
71
+ background-color: @light-bg1;
72
+ }
73
+ }
74
+ }
75
+ }
76
+
77
+ #posts{
78
+
79
+ .even{
80
+ background-color: @light-bg1;
81
+ }
82
+ .odd{
83
+ background-color: #cfcfcf;
84
+ }
85
+ .post{
86
+ min-height: 75px;
87
+ clear: both;
88
+ position: relative;
89
+ .user{
90
+ float: left;
91
+ font-size: .75em;
92
+ width: 140px;
93
+ display: inline-block;
94
+ padding: .5em 1em;
95
+ .username{
96
+ font-weight: bold;
97
+ }
98
+ .icon{
99
+ width: 50px;
100
+ height: 50px;
101
+ display: inline-block;
102
+ }
103
+ .member-for{
104
+ width: 80px;
105
+ display: inline-block;
106
+ }
107
+ }
108
+ .contents{
109
+ margin-left: 160px;
110
+ min-height: 100px;
111
+ border-left: 1px solid @mid-bg1;
112
+ padding: .1em 1em;
113
+
114
+ time{
115
+ padding: 5px;
116
+ color: @lighter-text;
117
+ margin-bottom: 1em;
118
+ font-size: .7em;
119
+ line-height: 18px;
120
+ }
121
+ .text{
122
+ margin-right: 100px;
123
+ }
124
+ &:hover .actions{
125
+ display: block;
126
+ }
127
+ .actions{
128
+ display: none;
129
+ position: absolute;
130
+ right: 10px;
131
+ bottom: 0;
132
+ list-style-type: none;
133
+ li{
134
+ a{
135
+ text-align: center;
136
+ display: block;
137
+ text-decoration: none;
138
+ padding: .25em;
139
+ margin-bottom: .25em;
140
+ color: @default-text;
141
+ background-color: @mid-bg1;
142
+ &:hover{
143
+ background-color: @mid-bg1-highlight;
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ }
150
+ }
151
+
152
+ table.subdued{
153
+ width: 100%;
154
+ a{
155
+ text-decoration: none;
156
+ &:visited{
157
+ color: @visited-text;
158
+ }
159
+ &:hover{
160
+ text-decoration: underline;
161
+ }
162
+ }
163
+ td, th{
164
+ padding: .5em;
165
+ }
166
+ thead{
167
+ th{
168
+ background-color: @bar1-midbg;
169
+ font-weight: normal;
170
+ text-align: left;
171
+ }
172
+ }
173
+ tbody{
174
+ color: @lighter-text;
175
+ .subject{
176
+ }
177
+ .started-by{
178
+ font-size: .7em;
179
+ color: @lighter-text;
180
+ }
181
+ .latest-post{
182
+ font-size: .7em;
183
+ width: 80px;
184
+ a{
185
+ text-decoration: none;
186
+ &:hover{
187
+ text-decoration: underline;
188
+ }
189
+ }
190
+ }
191
+ .posts-count, .views-count{
192
+ font-size: .8em;
193
+ width: 80px;
194
+ }
195
+ }
196
+ }
197
+
198
+ .pages{
199
+ .page{
200
+ display: inline-block;
201
+ padding: .25em;
202
+ &.current{
203
+ background-color: @light-bg1;
204
+ }
205
+ }
206
+ a{
207
+ text-decoration: none;
208
+ &:hover{
209
+ text-decoration: underline;
210
+ }
211
+ }
212
+ }
213
+
214
+ .lock.icon{
215
+ width: 24px;
216
+ height: 24px;
217
+ background: transparent url(<%= asset_path('forem/lock_icon.png') %>) 0 0;
218
+ display: inline-block;
219
+ }
220
+
221
+ .pin.icon{
222
+ width: 9px;
223
+ height: 15px;
224
+ background: transparent url(<%= asset_path('forem/pin_icon.png') %>) 0 0;
225
+ display: inline-block;
226
+ }
227
+ */
@@ -0,0 +1,11 @@
1
+ @light-bg1: #eee;
2
+ @mid-bg1: #bbb;
3
+ @mid-bg1-highlight: #aaa;
4
+ @bar1-topbg: #eee;
5
+ @bar1-midbg: #bbb;
6
+ @bar1-bottombg: #aaa;
7
+ @lighter-text: #777;
8
+ @visited-text: #333;
9
+ @default-text: #000;
10
+ @darkbg: #333;
11
+ @darkbg-highlight: #222;
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "forem-legion/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "forem-legion"
7
+ s.version = Forem::Theme::Legion::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Levi Wiseman"]
10
+ s.email = ["levi.wiseman@gmail.com"]
11
+ s.homepage = ""
12
+ s.summary = %q{Theme legion for forem.}
13
+ s.description = %q{Theme legion for forem.}
14
+
15
+ s.rubyforge_project = "forem-legion"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
21
+ end
@@ -0,0 +1,10 @@
1
+ require 'forem'
2
+ module Forem
3
+ module Theme
4
+ module Legion
5
+ class Engine < Rails::Engine
6
+ # Forem::Engine.theme = :legion
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ module Forem
2
+ module Theme
3
+ module Legion
4
+ VERSION = "0.0.1"
5
+ end
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: forem-legion
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Levi Wiseman
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-06-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Theme legion for forem.
14
+ email:
15
+ - levi.wiseman@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - Gemfile
21
+ - README.markdown
22
+ - Rakefile
23
+ - app/assets/images/forem/lock_icon.png
24
+ - app/assets/images/forem/pin_icon.png
25
+ - app/assets/stylesheets/forem/legion/iphone.css.scss.erb
26
+ - app/assets/stylesheets/forem/legion/style.css.less.erb
27
+ - app/assets/stylesheets/forem/legion/variables.css.less
28
+ - forem-legion.gemspec
29
+ - lib/forem-legion.rb
30
+ - lib/forem-legion/version.rb
31
+ homepage: ''
32
+ licenses: []
33
+ metadata: {}
34
+ post_install_message:
35
+ rdoc_options: []
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ requirements: []
49
+ rubyforge_project: forem-legion
50
+ rubygems_version: 2.4.6
51
+ signing_key:
52
+ specification_version: 4
53
+ summary: Theme legion for forem.
54
+ test_files: []