Style contact editor layout (needs more work)

This commit is contained in:
iRouge
2015-06-12 10:50:08 -04:00
committed by Francis Lachapelle
parent b81f98236c
commit 79dc49b905
3 changed files with 70 additions and 89 deletions
@@ -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);
}
}
@@ -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,