From 7d589eb6076e5ca7558a3d714936d731ecb32fa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 12 Feb 2019 14:39:12 +0100 Subject: [PATCH 1/2] V8: datepicker style matching the light interface of v8 --- src/Umbraco.Web.UI.Client/src/less/forms.less | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/less/forms.less b/src/Umbraco.Web.UI.Client/src/less/forms.less index 7b2afad20b..6507b22397 100644 --- a/src/Umbraco.Web.UI.Client/src/less/forms.less +++ b/src/Umbraco.Web.UI.Client/src/less/forms.less @@ -574,14 +574,19 @@ div.help { width: auto; height: 22px; min-width: 18px; - padding: 4px 6px; + padding: 5px 6px 3px 6px; font-size: @baseFontSize; font-weight: normal; line-height: @baseLineHeight; text-align: center; - text-shadow: 0 1px 0 @white; - background-color: @gray-10; - border: 1px solid @purple-l3; + //text-shadow: 0 1px 0 @white; + background-color: @white; + border: 1px solid @inputBorder; + color: @ui-option-type; + &:hover { + border-color:@inputBorderFocus; + color: @ui-option-type-hover; + } } .add-on, .btn, From 385a86b3b3e56739406f7e11c870a374e03440ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 12 Feb 2019 14:52:21 +0100 Subject: [PATCH 2/2] V8: UI datepicker style update --- .../src/less/property-editors.less | 17 +++++++++++++++++ .../propertyeditors/datepicker/datepicker.html | 12 ++++++------ 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/less/property-editors.less b/src/Umbraco.Web.UI.Client/src/less/property-editors.less index 09cdaf4939..9b0daa1e4d 100644 --- a/src/Umbraco.Web.UI.Client/src/less/property-editors.less +++ b/src/Umbraco.Web.UI.Client/src/less/property-editors.less @@ -884,6 +884,23 @@ .bootstrap-datetimepicker-widget .btn{padding: 0;} .bootstrap-datetimepicker-widget .picker-switch .btn{ background: none; border: none;} .umb-datepicker .input-append .add-on{cursor: pointer;} +.umb-datepicker .input-append .on-top { + position: absolute; + margin-left: -31px; + margin-top: 1px; + display: inline-block; + height: 22px; + padding: 5px 6px 3px 6px; + font-size: @baseFontSize; + font-weight: normal; + line-height: @baseLineHeight; + text-align: center; + background-color: @white; + color: @ui-option-type; + &:hover { + color: @ui-option-type-hover; + } +} .umb-datepicker p {margin-top:10px;} .umb-datepicker p a{color: @gray-3;} diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/datepicker/datepicker.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/datepicker/datepicker.html index 47c9182650..0d3fad580e 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/datepicker/datepicker.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/datepicker/datepicker.html @@ -13,12 +13,15 @@
+ + + @@ -38,9 +41,6 @@ This translates to the following time on the server: {{serverTime}}
What does this mean?

-

- Clear date -