Skip to content

Commit

Permalink
#184 contextual links focus animation added
Browse files Browse the repository at this point in the history
  • Loading branch information
mortendk committed Oct 6, 2017
1 parent 7762bb0 commit c53315e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 26 deletions.
26 changes: 19 additions & 7 deletions elevenfeat/templates/contextual/contextual.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
.contextual-region {
transition: background-color 0.2s ease-in-out;
}
.contextual-region.focus {
/*min-height: 32px;*/
}
.contextual-region.focus { }

/**
* Contextual trigger.
Expand Down Expand Up @@ -121,7 +119,7 @@
}

.js-outside-in-edit-mode .contextual-region {
min-height: calc(2.5 * 16px);
min-height: 32px;
}

/* icons default */
Expand All @@ -147,10 +145,24 @@
colors
------------------------------------------------------------------------------*/
/* color for the region */
.contextual-region.focus {
outline: auto 1px var(--rasberry);
background-color: var(--bluesky-light-light);
.contextual-region:before {
box-sizing: border-box;
position: absolute;
content: '';
top: 0;
left:0;
width: 0;
height: 0;
border: 1px dashed transparent;
}

.contextual-region.focus:before{
width: 100%;
height: 100%;
border: 1px dashed var(--bluesky-light);
transition: width 0.1s ease-in-out, height 0.1s ease-out 0.1s;
}

.js-outside-in-edit-mode .contextual-region{
outline: 1px dotted var(--bluesky-light);
}
Expand Down
31 changes: 16 additions & 15 deletions elevenfeat/templates/quickedit/quickedit.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Quickedit

.quickedit-candidate {
background-color: var(--bluesky-light-20);
border-bottom: 1px solid var(--bluesky-light);
}


Expand All @@ -41,24 +40,26 @@ Quickedit
background-color: var(--bluesky-light-50);
}

.quickedit-field:before {
box-sizing: border-box;
position: absolute;
content: '';
top: 0;
left:0;
width: 0;
height: 0;
border: 1px dashed transparent;
}


/* indicator of the elements that we can quick edit*/
.quickedit-field {
outline: 1px dashed var(--bluesky);
/*border: 1px solid transparent;*/
/*background: linear-gradient(white, white) padding-box,
repeating-linear-gradient(-45deg, red 0, Gainsboro 25%, Gainsboro 0, white 50%) 0 / 0.5rem 0.5rem;*/
}
.quickedit-field:hover{
/*animation: thisIsHowYouGetAnts 50s linear infinite;*/
background-color: var(--bluesky-light-light-light)
}
/*@keyframes thisIsHowYouGetAnts {
to {
background-position: 100%;
}
width: 100%;
height: 100%;
border: 1px dashed var(--bluesky-light);
transition: width 0.1s ease-in-out, height 0.1s ease-out 0.1s;
}
*/

.quickedit-highlighted {
color: var(--bluesky);
background-color: var(--bluesky-light)
Expand Down
6 changes: 2 additions & 4 deletions elevenfeat/templates/quickedit/quickedit.toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@
margin-left: -5rem
}
.quickedit-toolbar-content {
background-color: var(--white-80);
background-color: var(--black-80);
border: 1px solid var(--gravel);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
font-size: 16px;
color: var(--white);
min-width: 40rem;

}

/* Save + Close */
Expand All @@ -25,7 +24,7 @@

/* Label name hide that we dont need it */
.quickedit-toolbar-label {
/*display: none;*/
display: none;
}
.quickedit-toolbar-label .field { }

Expand Down Expand Up @@ -62,7 +61,6 @@ Buttons
-webkit-mask: url(icons/thumbs-up.svg) no-repeat;
-webkit-mask-size: contain;
mask-size: contain;

}

.quickedit-button.action-cancel{
Expand Down

0 comments on commit c53315e

Please sign in to comment.