diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-04-11 20:36:46 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-04-11 20:36:46 +0200 |
| commit | 9640e839d876504373da479a02ef62c536d95d8f (patch) | |
| tree | bd3409986d67504e98edab8d97261196cf73336c /addons/website_forum/static/src/css | |
| parent | ac8f4d62a54c5cf3792a7c8acad26db7bac69c50 (diff) | |
| parent | 4c8418648f0203f916d531d7fec6d5d1d1c3b565 (diff) | |
[ADD] New module: website_forum, a clone of askbot / stackoverflow.
This module models a forum: questions, answers, voting and comment system, karma
management. There is a link with gamification, allowing to use badges and reward
users for their participation to the forum.
Badges are temporarily commented out to ease the module beta-testing without having
to wait for some gamification improvements.
This merge also contains some fixes in access rights for gamification.
bzr revid: tde@openerp.com-20140411183646-fmkeng9fzixjrqy5
Diffstat (limited to 'addons/website_forum/static/src/css')
| -rw-r--r-- | addons/website_forum/static/src/css/Makefile | 5 | ||||
| -rw-r--r-- | addons/website_forum/static/src/css/website_forum.css | 82 | ||||
| -rw-r--r-- | addons/website_forum/static/src/css/website_forum.sass | 66 |
3 files changed, 153 insertions, 0 deletions
diff --git a/addons/website_forum/static/src/css/Makefile b/addons/website_forum/static/src/css/Makefile new file mode 100644 index 00000000000..ceee4ae3f7a --- /dev/null +++ b/addons/website_forum/static/src/css/Makefile @@ -0,0 +1,5 @@ +all: website_forum.css +%.css: %.sass + sass -t expanded --compass --unix-newlines $< $@ +watch: + sass -t expanded --compass --unix-newlines --watch .:. diff --git a/addons/website_forum/static/src/css/website_forum.css b/addons/website_forum/static/src/css/website_forum.css new file mode 100644 index 00000000000..1155ded81aa --- /dev/null +++ b/addons/website_forum/static/src/css/website_forum.css @@ -0,0 +1,82 @@ +.box { + padding-left: 8px; + padding-right: 8px; + margin-left: 4px; + margin-right: 4px; + border-radius: 4px; + min-width: 80px; +} +.box span { + font-size: 200%; + font-weight: bold; +} + +.question .question-name { + font-size: 150%; +} + +.oe_grey { + background-color: #eeeeee; +} + +.img-avatar { + max-width: 50px; + margin-right: 10px; +} + +.badge-gold { + color: #ffcc00; +} + +.badge-silver { + color: #cccccc; +} + +.badge-bronze { + color: #eea91e; +} + +.oe_answer_true { + color: #428bca; +} + +.oe_answer_false { + color: #999999; +} + +.forum_favourite_question { + color: #ffcc00 !important; +} + +.load_tags { + width: 845px !important; +} + +a.no-decoration { + cursor: pointer; + text-decoration: none !important; +} + +.faq-question:hover { + text-decoration: none !important; + color: #428bca; +} + +.oe_comment_grey { + background-color: whitesmoke; + padding: 4px; +} + +.country_flag { + max-height: 16px; + display: inline-block; + margin-left: 2px; +} + +.tag_text .text-core .text-wrap textarea, .tag_text .text-core .text-wrap input, .tag_text .text-core .text-wrap .text-dropdown, .tag_text .text-core .text-wrap .text-prompt { + font: 1.2em "Helvetica Neue", Helvetica, Arial, sans-serif !important; +} +.tag_text .text-core .text-wrap .text-tags .text-tag .text-button { + font: 1.2em "Helvetica Neue", Helvetica, Arial, sans-serif !important; + height: 1.2em !important; +} diff --git a/addons/website_forum/static/src/css/website_forum.sass b/addons/website_forum/static/src/css/website_forum.sass new file mode 100644 index 00000000000..f5bfb667b74 --- /dev/null +++ b/addons/website_forum/static/src/css/website_forum.sass @@ -0,0 +1,66 @@ +.box + padding-left: 8px + padding-right: 8px + margin-left: 4px + margin-right: 4px + border-radius: 4px + min-width: 80px + span + font-size: 200% + font-weight: bold + +.question + .question-name + font-size: 150% + +.oe_grey + background-color: #eeeeee + +.img-avatar + max-width: 50px + margin-right: 10px + +.badge-gold + color: #ffcc00 + +.badge-silver + color: #cccccc + +.badge-bronze + color: #eea91e + +.oe_answer_true + color: #428bca + +.oe_answer_false + color: #999999 + +.forum_favourite_question + color: #ffcc00 !important + +.load_tags + width: 845px !important + +a.no-decoration + cursor: pointer + text-decoration: none !important + +.faq-question:hover + text-decoration: none !important + color: #428bca + +.oe_comment_grey + background-color: #f5f5f5 + padding: 4px + +.country_flag + max-height: 16px + display: inline-block + margin-left: 2px + +.tag_text .text-core .text-wrap + textarea, input, .text-dropdown, .text-prompt + font: 1.2em "Helvetica Neue", Helvetica, Arial, sans-serif !important + .text-tags .text-tag .text-button + font: 1.2em "Helvetica Neue", Helvetica, Arial, sans-serif !important + height: 1.2em !important
\ No newline at end of file |
