| 1 |
@import "../../variables"; |
| 2 |
|
| 3 |
// Transition selector. |
| 4 |
.ghostkit-component-transition-selector { |
| 5 |
.ghostkit-component-dropdown-picker-toggle { |
| 6 |
min-height: 30px; |
| 7 |
padding: 3px; |
| 8 |
border-color: #949494; |
| 9 |
border-radius: 4px; |
| 10 |
|
| 11 |
.ghostkit-component-dropdown-picker-toggle-label { |
| 12 |
display: flex; |
| 13 |
gap: 10px; |
| 14 |
align-items: center; |
| 15 |
width: 100%; |
| 16 |
|
| 17 |
> .ghostkit-component-bezier-editor, |
| 18 |
> .ghostkit-component-spring-editor { |
| 19 |
display: inline-flex; |
| 20 |
align-items: center; |
| 21 |
justify-content: center; |
| 22 |
width: 24px; |
| 23 |
height: 24px; |
| 24 |
overflow: hidden; |
| 25 |
background-color: var(--wp-admin-theme-color); |
| 26 |
border-radius: 2px; |
| 27 |
} |
| 28 |
} |
| 29 |
|
| 30 |
.ghostkit-component-transition-selector-reset { |
| 31 |
display: inline-block; |
| 32 |
width: 15px; |
| 33 |
height: 15px; |
| 34 |
margin-right: 5px; |
| 35 |
margin-left: auto; |
| 36 |
overflow: hidden; |
| 37 |
color: #000; |
| 38 |
cursor: pointer; |
| 39 |
background-color: #f9f5f5; |
| 40 |
border-radius: 2px; |
| 41 |
|
| 42 |
&:hover, |
| 43 |
&:focus { |
| 44 |
background-color: #e5e5e5; |
| 45 |
} |
| 46 |
|
| 47 |
svg { |
| 48 |
width: 100%; |
| 49 |
height: 100%; |
| 50 |
} |
| 51 |
} |
| 52 |
} |
| 53 |
} |
| 54 |
|
| 55 |
.ghostkit-component-transition-selector-content { |
| 56 |
> .components-popover__content > * + * { |
| 57 |
margin-top: 16px; |
| 58 |
} |
| 59 |
|
| 60 |
.ghostkit-control-toggle-group { |
| 61 |
margin-bottom: 20px; |
| 62 |
} |
| 63 |
} |
| 64 |
|
| 65 |
// Bezier and Spring editor. |
| 66 |
.ghostkit-component-bezier-editor, |
| 67 |
.ghostkit-component-spring-editor { |
| 68 |
position: relative; |
| 69 |
|
| 70 |
> svg { |
| 71 |
border: 1px solid #949494; |
| 72 |
border-radius: 4px; |
| 73 |
} |
| 74 |
} |
| 75 |
|
| 76 |
.ghostkit-component-bezier-editor-preview, |
| 77 |
.ghostkit-component-spring-editor-preview { |
| 78 |
> svg { |
| 79 |
border: none; |
| 80 |
border-radius: 0; |
| 81 |
} |
| 82 |
} |
| 83 |
|
| 84 |
// Bezier controls. |
| 85 |
.ghostkit-component-easing-controls-bezier > .components-base-control__field { |
| 86 |
display: flex; |
| 87 |
flex-wrap: wrap; |
| 88 |
width: 100%; |
| 89 |
|
| 90 |
> .components-base-control { |
| 91 |
width: 25%; |
| 92 |
|
| 93 |
&:not(:last-child) { |
| 94 |
margin-right: -1px; |
| 95 |
border-right: 0; |
| 96 |
border-top-right-radius: 0; |
| 97 |
border-bottom-right-radius: 0; |
| 98 |
} |
| 99 |
} |
| 100 |
|
| 101 |
> .components-base-control__label { |
| 102 |
width: 100%; |
| 103 |
} |
| 104 |
} |
| 105 |
|
| 106 |
// Spring controls. |
| 107 |
.ghostkit-component-spring-editor-duration { |
| 108 |
position: absolute; |
| 109 |
right: 12px; |
| 110 |
bottom: 10px; |
| 111 |
font-size: 10px; |
| 112 |
font-weight: 500; |
| 113 |
color: #9a9a9a; |
| 114 |
} |
| 115 |
|