From 79dc49b905b5a8c15c00e3a52564d47e6dcb078d Mon Sep 17 00:00:00 2001 From: iRouge Date: Tue, 24 Feb 2015 00:00:59 -0500 Subject: [PATCH] Style contact editor layout (needs more work) --- .../ContactsUI/UIxContactEditorTemplate.wox | 129 ++++++------------ .../scss/components/button/_button.scss | 13 ++ .../components/pseudo-input/pseudo-input.scss | 17 +++ 3 files changed, 70 insertions(+), 89 deletions(-) diff --git a/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox b/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox index f6e616240..a6d899274 100644 --- a/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox +++ b/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox @@ -4,99 +4,67 @@
-

-
{{card.$description()}} - {{category.value}} +

+
{{card.$description()}} + {{category.value}}
- + -

-

- -
- -
-
-
+
-
- - - -
- -
+ +
+ -
-
- -
- + + + + + +
+
@@ -106,26 +74,15 @@
-
+ -
-
-
- -
-
+ -
-
-

-

-
-
-
+
@@ -137,7 +94,7 @@
-
@@ -320,7 +277,7 @@
-
@@ -360,11 +317,8 @@
-
- -
-
-
-
- -
-
-
-
diff --git a/UI/WebServerResources/scss/components/button/_button.scss b/UI/WebServerResources/scss/components/button/_button.scss index 2f080a93b..1d2f1eef9 100644 --- a/UI/WebServerResources/scss/components/button/_button.scss +++ b/UI/WebServerResources/scss/components/button/_button.scss @@ -20,4 +20,17 @@ sg-folder-tree .md-button { } .sg-active .md-button { color: sg-color($sogoBlue, 800); +} +// Custom icon-buttons +// ---------------------------------------------------------------------------- +button.icon { + font-size: sg-size('title'); + color: $colorGray; + transition: box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), + background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), + color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), + transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); + &:hover { + color: sg-color($sogoBlue, 500); + } } \ No newline at end of file diff --git a/UI/WebServerResources/scss/components/pseudo-input/pseudo-input.scss b/UI/WebServerResources/scss/components/pseudo-input/pseudo-input.scss index 32a216755..1034fb1f5 100644 --- a/UI/WebServerResources/scss/components/pseudo-input/pseudo-input.scss +++ b/UI/WebServerResources/scss/components/pseudo-input/pseudo-input.scss @@ -44,6 +44,12 @@ $input-padding-top: 2px !default; font-size: sg-size(caption); line-height: $sg-line-height-1; } +// md overqualifies so we are +.md-input-focused label.pseudo-input-label, +.md-input-has-value label.pseudo-input-label { + transform: translate3d(0, 4px, 0) scale(1); + margin-top: $mg; +} .pseudo-input-field { display: block; @@ -86,10 +92,21 @@ input /deep/ #inner-editor { line-height: inherit; } +input::-webkit-datetime-edit, +:root /deep/ div#date-time-edit { + opacity: 0; +} + +.md-input-focused input::-webkit-datetime-edit, +.md-input-focused /deep/ div#date-time-edit { + opacity: 1; +} + md-input-container { display: flex; position: relative; flex-direction: column; + flex: 1 1 auto; padding: $input-container-padding; textarea,