diff options
| author | Keyur Gajjar <kga@odoo.com> | 2015-12-14 19:00:15 +0530 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2016-03-21 14:02:10 +0100 |
| commit | bea7b198621a76f3f29853fc8725e9821ff375cc (patch) | |
| tree | 2726dda6c99ead8adb60d7a854503a857cdb0ac0 /addons/gamification/static/src | |
| parent | 4ddc32313996c8cf6e8e6dffd2253aad8a144ccf (diff) | |
[MIG] gamification: migrated sass to less.
Diffstat (limited to 'addons/gamification/static/src')
| -rw-r--r-- | addons/gamification/static/src/css/gamification.css | 65 | ||||
| -rw-r--r-- | addons/gamification/static/src/css/gamification.sass | 63 | ||||
| -rw-r--r-- | addons/gamification/static/src/less/gamification.less | 33 |
3 files changed, 33 insertions, 128 deletions
diff --git a/addons/gamification/static/src/css/gamification.css b/addons/gamification/static/src/css/gamification.css deleted file mode 100644 index 68479e58760..00000000000 --- a/addons/gamification/static/src/css/gamification.css +++ /dev/null @@ -1,65 +0,0 @@ -.openerp .oe_kanban_view .oe_kanban_card.oe_kanban_goal { - width: 230px; - min-height: 200px; -} -.openerp .oe_kanban_view .oe_kanban_card.oe_kanban_badge { - width: 250px; - min-height: 150px; -} -.openerp .oe_kanban_badge_avatars { - margin-top: 8px; -} -.openerp .oe_kanban_badge_avatars img { - width: 30px; - height: 30px; - padding-left: 0; - margin-top: 3px; - border-radius: 2px; - -box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); -} -.openerp .oe_margin_top_8 { - margin-top: 8px; -} -.openerp .oe_margin_top_16 { - margin-top: 16px; -} -.openerp .oe_kanban_goal .oe_goal_state_block { - width: 200px; - height: 130px; - margin: auto; - margin-bottom: -20px; -} -.openerp .oe_kanban_goal .oe_goal_state_block .oe_goal_state { - font-size: 2.5em; - font-weight: bold; - padding-top: 30px; -} -.openerp .oe_kanban_goal .oe_goal_state_block .oe_goal_state .fa { - font-size: 3em; - margin-top: -17px; - margin-left: 17px; -} -.openerp .oe_kanban_goal .oe_goal_state_block, .openerp .oe_kanban_goal p { - text-align: center; -} -.openerp .oe_kanban_content .oe_goal_gauge:first-child { - margin: auto; -} -.openerp .oe_kanban_content .oe_goal_gauge svg { - margin-top: -20px; -} -.openerp .oe_no_overflow { - overflow: hidden; -} -.openerp .oe_red { - color: red; -} -.openerp .oe_green { - color: green; -} -.openerp .oe_orange { - color: orange; -} -.openerp .oe_form td .oe_no_padding { - margin-left: -6px; -} diff --git a/addons/gamification/static/src/css/gamification.sass b/addons/gamification/static/src/css/gamification.sass deleted file mode 100644 index cbba41e05fb..00000000000 --- a/addons/gamification/static/src/css/gamification.sass +++ /dev/null @@ -1,63 +0,0 @@ -@charset "utf-8" - -.openerp - // Kanban views - .oe_kanban_view - .oe_kanban_card.oe_kanban_goal - width: 230px - min-height: 200px - .oe_kanban_card.oe_kanban_badge - width: 250px - min-height: 150px - .oe_kanban_badge_avatars - margin-top: 8px - img - width: 30px - height: 30px - padding-left: 0 - margin-top: 3px - border-radius: 2px - -box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) - .oe_margin_top_8 - margin-top: 8px - .oe_margin_top_16 - margin-top: 16px - .oe_kanban_goal - .oe_goal_state_block - width: 200px - height: 130px - margin: auto - margin-bottom: -20px - .oe_goal_state - font-size: 2.5em - font-weight: bold - padding-top: 30px - .oe_goal_state - .fa - font-size: 3em - margin-top: -17px - margin-left: 17px - .oe_goal_state_block,p - text-align: center - - .oe_kanban_content - .oe_goal_gauge:first-child - margin: auto /* avoid margin-right: 16px */ - .oe_goal_gauge - svg - margin-top: -20px - .oe_no_overflow - overflow: hidden - - - .oe_red - color: red - .oe_green - color: green - .oe_orange - color: orange - - - // compensate padding from .openerp .oe_form td.oe_form_group_cell + .oe_form_group_cell - .oe_form td .oe_no_padding - margin-left: -6px diff --git a/addons/gamification/static/src/less/gamification.less b/addons/gamification/static/src/less/gamification.less new file mode 100644 index 00000000000..a9440f5fd4f --- /dev/null +++ b/addons/gamification/static/src/less/gamification.less @@ -0,0 +1,33 @@ +.o_kanban_gamification { + img.o_kanban_badge_avatars { + width: 30px; + height: 30px; + padding-left: 0; + margin-top: 8px; + border-radius: 2px; + -box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); + } + .o_kanban_content { + .o_goal_state_block { + width: 200px; + height: 130px; + margin: auto; + margin-bottom: -20px; + text-align: center; + .o_goal_state { + font-size: 2.5em; + font-weight: bold; + padding-top: 13px; + } + } + } + .o_red { + color: red; + } + .o_green { + color: green; + } + .o_orange { + color: orange; + } +} |
