summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less/datepicker.less
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2016-04-08 14:53:34 +0200
committerGéry Debongnie <ged@odoo.com>2016-04-21 15:21:39 +0200
commit977db823c7c84e9edc7c8cf8384eb9cf47275b3a (patch)
treec3312f745baf11d51f976a60d6e285480f557d4c /addons/web/static/src/less/datepicker.less
parente1bfd3fbda97ac7a64a585b07be161d5be606cf9 (diff)
[REF] web: stop duplicating web
Avoid duplicating web addon in enterprise by extracting a common basis. Enterprise features stay in enterprise, but use that common basis. Mainly: - JS refactoring and linting - Conversion of .sass into .less split into multiple files - Templates cleaning and DOM simplification - Re-generation of web.pot, and update of .po files
Diffstat (limited to 'addons/web/static/src/less/datepicker.less')
-rw-r--r--addons/web/static/src/less/datepicker.less59
1 files changed, 59 insertions, 0 deletions
diff --git a/addons/web/static/src/less/datepicker.less b/addons/web/static/src/less/datepicker.less
new file mode 100644
index 00000000000..271cd357d15
--- /dev/null
+++ b/addons/web/static/src/less/datepicker.less
@@ -0,0 +1,59 @@
+@odoo-datepicker-week-color: #8f8f8f;
+@odoo-datepicker-week-bg-color: lighten(@odoo-datepicker-week-color, 30%);
+
+.o_datepicker {
+ position: relative;
+
+ .o_datepicker_input {
+ width: 100%;
+ }
+
+ .o_datepicker_button {
+ .o-position-absolute(2px, 4px);
+ cursor: pointer;
+ &:after {
+ .o-caret-down;
+ }
+ }
+}
+
+.datepicker {
+ .table-condensed {
+ > thead {
+ color: white;
+ background-color: @odoo-brand-primary;
+
+ > tr {
+ &:first-child {
+ th:hover {
+ color: white;
+ background-color: darken(@odoo-brand-primary, 10%);
+ }
+ }
+
+ &:last-child {
+ color: @odoo-datepicker-week-color;
+ background-color: @odoo-datepicker-week-bg-color;
+ }
+ > th {
+ border-radius: 0;
+ }
+ }
+ }
+
+ > tbody {
+ > tr {
+ > td {
+ &.active, .active {
+ background-color: @odoo-brand-optional;
+ border-radius: 100px;
+ }
+
+ &.today:before {
+ border-bottom-color: @odoo-brand-optional;
+ }
+ }
+ }
+ }
+ }
+}