diff options
Diffstat (limited to 'users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/spaces/space-options.js')
| -rwxr-xr-x | users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/spaces/space-options.js | 137 |
1 files changed, 137 insertions, 0 deletions
diff --git a/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/spaces/space-options.js b/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/spaces/space-options.js new file mode 100755 index 0000000..1f43895 --- /dev/null +++ b/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/spaces/space-options.js | |||
| @@ -0,0 +1,137 @@ | |||
| 1 | export const spaceOptionsStyles = /* css */ ` | ||
| 2 | .space-options { | ||
| 3 | position: absolute; | ||
| 4 | top: calc(100% + 3px); | ||
| 5 | left: calc(50% - 22px); | ||
| 6 | height: 90%; | ||
| 7 | width: 50px; | ||
| 8 | height: 18px; | ||
| 9 | display: flex; | ||
| 10 | align-items: stretch; | ||
| 11 | background-color: var(--white); | ||
| 12 | opacity: 0; | ||
| 13 | pointer-events: none; | ||
| 14 | touch-action: none; | ||
| 15 | border-radius: 3px; | ||
| 16 | box-shadow: var(--light-shadow); | ||
| 17 | transform-origin: top center; | ||
| 18 | transform: translateZ(0) scale(0); | ||
| 19 | transition: opacity 160ms var(--transition-easing), transform 160ms var(--transition-easing); | ||
| 20 | z-index: 1; | ||
| 21 | } | ||
| 22 | .simple-bar--on-bottom .space-options { | ||
| 23 | top: unset; | ||
| 24 | bottom: calc(100% + 3px); | ||
| 25 | transform-origin: bottom center; | ||
| 26 | } | ||
| 27 | .simple-bar--inline-spaces-options .space-options { | ||
| 28 | height: 100%; | ||
| 29 | top: 0; | ||
| 30 | left: 100%; | ||
| 31 | border-radius: 3px; | ||
| 32 | transform-origin: center; | ||
| 33 | } | ||
| 34 | .space--hovered .space-options { | ||
| 35 | opacity: 1; | ||
| 36 | transform: translateZ(0); | ||
| 37 | pointer-events: auto; | ||
| 38 | touch-action: auto; | ||
| 39 | transition: opacity 160ms 1s var(--transition-easing), transform 160ms 1s var(--transition-easing); | ||
| 40 | } | ||
| 41 | .space--hovered.space--no-delay .space-options { | ||
| 42 | transition: opacity 160ms var(--transition-easing), transform 160ms var(--transition-easing); | ||
| 43 | } | ||
| 44 | .space-options::before { | ||
| 45 | content: ""; | ||
| 46 | position: absolute; | ||
| 47 | bottom: 100%; | ||
| 48 | left: 0; | ||
| 49 | width: 100%; | ||
| 50 | height: 3px; | ||
| 51 | z-index: 2; | ||
| 52 | } | ||
| 53 | .space-options::after { | ||
| 54 | content: ''; | ||
| 55 | position: absolute; | ||
| 56 | top: -3px; | ||
| 57 | left: calc(50% - 4px); | ||
| 58 | width: 0; | ||
| 59 | height: 0; | ||
| 60 | border-left: 4px solid transparent; | ||
| 61 | border-right: 4px solid transparent; | ||
| 62 | border-bottom: 3px solid var(--white); | ||
| 63 | } | ||
| 64 | .simple-bar--on-bottom .space-options::after { | ||
| 65 | top: unset; | ||
| 66 | bottom: -3px; | ||
| 67 | border-left: 4px solid transparent; | ||
| 68 | border-right: 4px solid transparent; | ||
| 69 | border-top: 3px solid var(--white); | ||
| 70 | border-bottom: none; | ||
| 71 | } | ||
| 72 | .simple-bar--inline-spaces-options .space-options::after { | ||
| 73 | top: calc(50% - 4px); | ||
| 74 | left: -3px; | ||
| 75 | border-top: 4px solid transparent; | ||
| 76 | border-bottom: 4px solid transparent; | ||
| 77 | border-right: 3px solid var(--white); | ||
| 78 | border-left: none; | ||
| 79 | } | ||
| 80 | .space-options__option { | ||
| 81 | position: relative; | ||
| 82 | flex: 1 1 100%; | ||
| 83 | display: flex; | ||
| 84 | align-items: center; | ||
| 85 | justify-content: center; | ||
| 86 | cursor: pointer; | ||
| 87 | user-select: none; | ||
| 88 | -webkit-user-select: none; | ||
| 89 | transform: translateZ(0); | ||
| 90 | transition: background-color 160ms var(--transition-easing), opacity 160ms var(--transition-easing); | ||
| 91 | } | ||
| 92 | .space-options__option:last-child { | ||
| 93 | opacity: 0.8; | ||
| 94 | background-color: var(--red); | ||
| 95 | } | ||
| 96 | .space--fullscreen .space-options__option:last-child, | ||
| 97 | .space:first-of-type:only-of-type .space-options__option:last-child, | ||
| 98 | .space:first-of-type:nth-last-of-type(2) .space-options__option:last-child { | ||
| 99 | pointer-events: none; | ||
| 100 | touch-action: none; | ||
| 101 | opacity: 0.5; | ||
| 102 | filter: grayscale(100%); | ||
| 103 | } | ||
| 104 | .space:first-of-type .space-options__option--move-prev, | ||
| 105 | .space:nth-last-of-type(1) .space-options__option--move-next, | ||
| 106 | .space:first-of-type:only-of-type .space-options__option--move-prev, | ||
| 107 | .space:first-of-type:only-of-type .space-options__option--move-next, | ||
| 108 | .space:first-of-type:nth-last-of-type(1) .space-options__option--move-prev, | ||
| 109 | .space:first-of-type:nth-last-of-type(1) .space-options__option--move-next { | ||
| 110 | opacity: 0.2; | ||
| 111 | pointer-events: none; | ||
| 112 | touch-action: none; | ||
| 113 | } | ||
| 114 | .space .space-options__option:first-of-type { | ||
| 115 | border-radius: 3px 0 0 3px; | ||
| 116 | } | ||
| 117 | .space-options__option:last-of-type { | ||
| 118 | border-radius: 0 3px 3px 0; | ||
| 119 | } | ||
| 120 | .space-options__option:not(:last-child):hover { | ||
| 121 | background-color: var(--transparent-dark); | ||
| 122 | } | ||
| 123 | .space-options__option:last-child:hover { | ||
| 124 | opacity: 1; | ||
| 125 | } | ||
| 126 | .space-options__option > svg { | ||
| 127 | width: 8px; | ||
| 128 | height: 8px; | ||
| 129 | fill: var(--black); | ||
| 130 | curor: pointer; | ||
| 131 | user-select: none; | ||
| 132 | -webkit-user-select: none; | ||
| 133 | } | ||
| 134 | .space-options__option:last-child > svg { | ||
| 135 | fill: var(--white); | ||
| 136 | } | ||
| 137 | `; | ||
