##// END OF EJS Templates
Added photon style.
neko259 -
r193:a74c7db8 default
parent child Browse files
Show More
@@ -0,0 +1,300 b''
1 html {
2 background: rgb(238, 238, 238);
3 color: rgb(51, 51, 51);
4 }
5
6 #admin_panel {
7 background: #FF0000;
8 color: #00FF00
9 }
10
11 .input_field {
12
13 }
14
15 .input_field_name {
16
17 }
18
19 .input_field_error {
20 color: #FF0000;
21 }
22
23
24 .title {
25 font-weight: bold;
26 color: #333;
27 font-size: 2ex;
28 }
29
30 .link, a {
31 color: rgb(255, 102, 0);
32 }
33
34 .block {
35 display: inline-block;
36 vertical-align: top;
37 }
38
39 .tag {
40 color: #222;
41 }
42
43 .post_id:hover {
44 color: #11f;
45 }
46
47 .post_id {
48 color: #444;
49 }
50
51 .post, .dead_post, #posts-table {
52 margin: 5px;
53 padding: 10px;
54 background: rgb(221, 221, 221);
55 border: 1px solid rgb(204, 204, 204);
56 border-radius: 5px 5px 5px 5px;
57 clear: left;
58 word-wrap: break-word;
59 display: table;
60 }
61
62 .metadata {
63 padding: 5px;
64 margin-top: 10px;
65 border: solid 1px #666;
66 font-size: 0.9em;
67 display: table;
68 }
69
70 .navigation_panel, .tag_info {
71 margin: 5px;
72 padding: 10px;
73 border: 1px solid rgb(204, 204, 204);
74 border-radius: 5px 5px 5px 5px;
75 }
76
77 .navigation_panel .link {
78 border-right: 1px solid #000;
79 font-weight: bold;
80 margin-right: 1ex;
81 padding-right: 1ex;
82 }
83 .navigation_panel .link:last-child {
84 border-left: 1px solid #000;
85 border-right: none;
86 float: right;
87 margin-left: 1ex;
88 margin-right: 0;
89 padding-left: 1ex;
90 padding-right: 0;
91 }
92
93 .navigation_panel::after, .post::after {
94 clear: both;
95 content: ".";
96 display: block;
97 height: 0;
98 line-height: 0;
99 visibility: hidden;
100 }
101
102 p {
103 margin-top: .5em;
104 margin-bottom: .5em;
105 }
106
107 .post-form-w {
108 display: table;
109 padding: 10px;
110 margin: 5px
111 }
112
113 .form-row {
114 display: table-row;
115 }
116
117 .form-label, .form-input, .form-errors {
118 display: table-cell;
119 }
120
121 .form-label {
122 padding: .25em 1ex .25em 0;
123 vertical-align: top;
124 }
125
126 .form-input {
127 padding: .25em 0;
128 }
129
130 .form-errors {
131 padding-left: 1ex;
132 font-weight: bold;
133 vertical-align: middle;
134 }
135
136 .post-form input, .post-form textarea {
137 background: #fff;
138 color: #000;
139 border: solid 1px;
140 padding: 0;
141 width: 100%;
142 }
143
144 .form-submit {
145 border-bottom: 2px solid #ddd;
146 margin-bottom: .5em;
147 padding-bottom: .5em;
148 }
149
150 .form-title {
151 font-weight: bold;
152 }
153
154 input[type="submit"] {
155 background: #fff;
156 border: solid 1px #000;
157 color: #000;
158 }
159
160 blockquote {
161 border-left: solid 2px;
162 padding-left: 5px;
163 color: #B1FB17;
164 margin: 0;
165 }
166
167 .post > .image {
168 float: left;
169 margin: 0 1ex .5ex 0;
170 min-width: 1px;
171 text-align: center;
172 display: table-row;
173
174 height: 150px;
175 }
176
177 .post > .metadata {
178 clear: left;
179 }
180
181 .get {
182 font-weight: bold;
183 color: #d55;
184 }
185
186 * {
187 text-decoration: none;
188 }
189
190 .dead_post {
191 background-color: #ecc;
192 }
193
194 .quote {
195 color: #92cf38;
196 font-style: italic;
197 }
198
199 .spoiler {
200 background: white;
201 color: white;
202 }
203
204 .spoiler:hover {
205 color: black;
206 }
207
208 .comment {
209 color: #eb2;
210 font-style: italic;
211 }
212
213 a:hover {
214 text-decoration: underline;
215 }
216
217 .last-replies {
218 margin-left: 3ex;
219 }
220
221 .thread {
222 margin-bottom: 3ex;
223 }
224
225 .post:target {
226 border: solid 2px white;
227 }
228
229 pre{
230 white-space:pre-wrap
231 }
232
233 li {
234 list-style-position: inside;
235 }
236
237 .fancybox-skin {
238 position: relative;
239 background-color: #fff;
240 color: #ddd;
241 text-shadow: none;
242 }
243
244 .fancybox-image {
245 border: 1px solid black;
246 }
247
248 .image-mode-tab {
249 display: table;
250 margin: 5px;
251 padding: 5px;
252 background: rgb(221, 221, 221);
253 border: 1px solid rgb(204, 204, 204);
254 border-radius: 5px 5px 5px 5px;
255 }
256
257 .image-mode-tab > label {
258 margin: 0 1ex;
259 }
260
261 .image-mode-tab > label > input {
262 margin-right: .5ex;
263 }
264
265 #posts-table {
266 margin: 5px;
267 }
268
269 .tag_info {
270 display: table;
271 }
272
273 .tag_info > h2 {
274 margin: 0;
275 }
276
277 .moderator_info {
278 color: #e99d41;
279 border: dashed 1px;
280 padding: 3px;
281 }
282
283 .refmap {
284 font-size: 0.9em;
285 color: #444;
286 margin-top: 1em;
287 }
288
289 input[type="submit"]:hover {
290 background: #ccc;
291 }
292
293
294 .fav {
295 color: rgb(255, 102, 0);
296 }
297
298 .not_fav {
299 color: #555;
300 } No newline at end of file
@@ -1,209 +1,210 b''
1 1 # Django settings for neboard project.
2 2 import os
3 3 import markdown
4 4 from boards.mdx_neboard import markdown_extended
5 5
6 6 DEBUG = True
7 7 TEMPLATE_DEBUG = DEBUG
8 8
9 9 ADMINS = (
10 10 # ('Your Name', 'your_email@example.com'),
11 11 ('admin', 'admin@example.com')
12 12 )
13 13
14 14 MANAGERS = ADMINS
15 15
16 16 DATABASES = {
17 17 'default': {
18 18 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
19 19 'NAME': 'database.db', # Or path to database file if using sqlite3.
20 20 'USER': '', # Not used with sqlite3.
21 21 'PASSWORD': '', # Not used with sqlite3.
22 22 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
23 23 'PORT': '', # Set to empty string for default. Not used with sqlite3.
24 24 }
25 25 }
26 26
27 27 CACHES = {
28 28 'default': {
29 29 'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
30 30 'LOCATION': 'neboard_cache',
31 31 }
32 32 }
33 33
34 34 # Local time zone for this installation. Choices can be found here:
35 35 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
36 36 # although not all choices may be available on all operating systems.
37 37 # In a Windows environment this must be set to your system time zone.
38 38 TIME_ZONE = 'Europe/Kiev'
39 39
40 40 # Language code for this installation. All choices can be found here:
41 41 # http://www.i18nguy.com/unicode/language-identifiers.html
42 42 LANGUAGE_CODE = 'en'
43 43
44 44 SITE_ID = 1
45 45
46 46 # If you set this to False, Django will make some optimizations so as not
47 47 # to load the internationalization machinery.
48 48 USE_I18N = True
49 49
50 50 # If you set this to False, Django will not format dates, numbers and
51 51 # calendars according to the current locale.
52 52 USE_L10N = True
53 53
54 54 # If you set this to False, Django will not use timezone-aware datetimes.
55 55 USE_TZ = True
56 56
57 57 # Absolute filesystem path to the directory that will hold user-uploaded files.
58 58 # Example: "/home/media/media.lawrence.com/media/"
59 59 MEDIA_ROOT = './media/'
60 60
61 61 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
62 62 # trailing slash.
63 63 # Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
64 64 MEDIA_URL = '/media/'
65 65
66 66 # Absolute path to the directory static files should be collected to.
67 67 # Don't put anything in this directory yourself; store your static files
68 68 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
69 69 # Example: "/home/media/media.lawrence.com/static/"
70 70 STATIC_ROOT = ''
71 71
72 72 # URL prefix for static files.
73 73 # Example: "http://media.lawrence.com/static/"
74 74 STATIC_URL = '/static/'
75 75
76 76 # Additional locations of static files
77 77 # It is really a hack, put real paths, not related
78 78 STATICFILES_DIRS = (
79 79 os.path.dirname(__file__) + '/boards/static',
80 80
81 81 # '/d/work/python/django/neboard/neboard/boards/static',
82 82 # Put strings here, like "/home/html/static" or "C:/www/django/static".
83 83 # Always use forward slashes, even on Windows.
84 84 # Don't forget to use absolute paths, not relative paths.
85 85 )
86 86
87 87 # List of finder classes that know how to find static files in
88 88 # various locations.
89 89 STATICFILES_FINDERS = (
90 90 'django.contrib.staticfiles.finders.FileSystemFinder',
91 91 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
92 92 # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
93 93 )
94 94
95 95 # Make this unique, and don't share it with anybody.
96 96 SECRET_KEY = '@1rc$o(7=tt#kd+4s$u6wchm**z^)4x90)7f6z(i&55@o11*8o'
97 97
98 98 # List of callables that know how to import templates from various sources.
99 99 TEMPLATE_LOADERS = (
100 100 'django.template.loaders.filesystem.Loader',
101 101 'django.template.loaders.app_directories.Loader',
102 102 # 'django.template.loaders.eggs.Loader',
103 103 )
104 104
105 105 TEMPLATE_CONTEXT_PROCESSORS = (
106 106 'django.core.context_processors.media',
107 107 'django.core.context_processors.static',
108 108 'django.core.context_processors.request',
109 109 'django.contrib.auth.context_processors.auth',
110 110 )
111 111
112 112 MIDDLEWARE_CLASSES = (
113 113 'django.contrib.sessions.middleware.SessionMiddleware',
114 114 'django.middleware.locale.LocaleMiddleware',
115 115 'django.middleware.common.CommonMiddleware',
116 116 # 'django.middleware.csrf.CsrfViewMiddleware',
117 117 'django.contrib.auth.middleware.AuthenticationMiddleware',
118 118 'django.contrib.messages.middleware.MessageMiddleware',
119 119 # Uncomment the next line for simple clickjacking protection:
120 120 # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
121 121 )
122 122
123 123 ROOT_URLCONF = 'neboard.urls'
124 124
125 125 # Python dotted path to the WSGI application used by Django's runserver.
126 126 WSGI_APPLICATION = 'neboard.wsgi.application'
127 127
128 128 TEMPLATE_DIRS = (
129 129 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
130 130 # Always use forward slashes, even on Windows.
131 131 # Don't forget to use absolute paths, not relative paths.
132 132 'templates',
133 133 )
134 134
135 135 INSTALLED_APPS = (
136 136 'django.contrib.auth',
137 137 'django.contrib.contenttypes',
138 138 'django.contrib.sessions',
139 139 # 'django.contrib.sites',
140 140 'django.contrib.messages',
141 141 'django.contrib.staticfiles',
142 142 # Uncomment the next line to enable the admin:
143 143 'django.contrib.admin',
144 144 # Uncomment the next line to enable admin documentation:
145 145 # 'django.contrib.admindocs',
146 146 'django.contrib.markup',
147 147 'django_cleanup',
148 148 'boards',
149 149 'captcha',
150 150 'south',
151 151 )
152 152
153 153 # TODO: NEED DESIGN FIXES
154 154 CAPTCHA_OUTPUT_FORMAT = (u' %(hidden_field)s '
155 155 u'<div class="form-label">%(image)s</div>'
156 156 u'<div class="form-text">%(text_field)s</div>')
157 157
158 158 # A sample logging configuration. The only tangible logging
159 159 # performed by this configuration is to send an email to
160 160 # the site admins on every HTTP 500 error when DEBUG=False.
161 161 # See http://docs.djangoproject.com/en/dev/topics/logging for
162 162 # more details on how to customize your logging configuration.
163 163 LOGGING = {
164 164 'version': 1,
165 165 'disable_existing_loggers': False,
166 166 'filters': {
167 167 'require_debug_false': {
168 168 '()': 'django.utils.log.RequireDebugFalse'
169 169 }
170 170 },
171 171 'handlers': {
172 172 'mail_admins': {
173 173 'level': 'ERROR',
174 174 'filters': ['require_debug_false'],
175 175 'class': 'django.utils.log.AdminEmailHandler'
176 176 }
177 177 },
178 178 'loggers': {
179 179 'django.request': {
180 180 'handlers': ['mail_admins'],
181 181 'level': 'ERROR',
182 182 'propagate': True,
183 183 },
184 184 }
185 185 }
186 186
187 187 MARKUP_FIELD_TYPES = (
188 188 ('markdown', markdown_extended),
189 189 )
190 190 # Custom imageboard settings
191 191 MAX_POSTS_PER_THREAD = 10 # Thread bumplimit
192 192 MAX_THREAD_COUNT = 500 # Old threads will be deleted to preserve this count
193 193 THREADS_PER_PAGE = 10
194 194 SITE_NAME = 'Neboard'
195 195
196 196 THEMES = [
197 197 ('md', 'Mystic Dark'),
198 ('sw', 'Snow White')
198 ('sw', 'Snow White'),
199 ('pg', 'Photon Gray'),
199 200 ]
200 201
201 202 DEFAULT_THEME = 'md'
202 203
203 204 POPULAR_TAGS = 10
204 205 LAST_REPLIES_COUNT = 3
205 206
206 207 ENABLE_CAPTCHA = False
207 208 # if user tries to post before CAPTCHA_DEFAULT_SAFE_TIME. Captcha will be shown
208 209 CAPTCHA_DEFAULT_SAFE_TIME = 30 # seconds
209 POSTING_DELAY = 30 # seconds No newline at end of file
210 POSTING_DELAY = 30 # seconds
General Comments 0
You need to be logged in to leave comments. Login now