diff options
Diffstat (limited to 'users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/spaces/space.js')
| -rwxr-xr-x | users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/spaces/space.js | 152 |
1 files changed, 152 insertions, 0 deletions
diff --git a/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/spaces/space.js b/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/spaces/space.js new file mode 100755 index 0000000..0e6d1cb --- /dev/null +++ b/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/spaces/space.js | |||
| @@ -0,0 +1,152 @@ | |||
| 1 | export const spaceStyles = /* css */ ` | ||
| 2 | .space, .stickies { | ||
| 3 | position: relative; | ||
| 4 | display: flex; | ||
| 5 | align-items: center; | ||
| 6 | animation: space-appearance 320ms var(--transition-easing); | ||
| 7 | } | ||
| 8 | |||
| 9 | @keyframes space-appearance { | ||
| 10 | 0% { | ||
| 11 | opacity: 0; | ||
| 12 | } | ||
| 13 | } | ||
| 14 | .space__inner, | ||
| 15 | .spaces__add, | ||
| 16 | .stickies__inner { | ||
| 17 | height: 100%; | ||
| 18 | display: flex; | ||
| 19 | align-items: center; | ||
| 20 | margin: var(--item-outer-margin); | ||
| 21 | padding: var(--item-inner-margin); | ||
| 22 | color: currentColor; | ||
| 23 | font-family: var(--font); | ||
| 24 | background-color: var(--minor); | ||
| 25 | border-radius: var(--item-radius); | ||
| 26 | border: 0; | ||
| 27 | outline: none; | ||
| 28 | box-shadow: var(--light-shadow); | ||
| 29 | cursor: pointer; | ||
| 30 | user-select: none; | ||
| 31 | -webkit-user-select: none; | ||
| 32 | transition: color 160ms var(--transition-easing), background-color 160ms var(--transition-easing), | ||
| 33 | border 160ms var(--transition-easing), box-shadow 160ms var(--transition-easing); | ||
| 34 | z-index: 0; | ||
| 35 | } | ||
| 36 | .space__inner:disabled { | ||
| 37 | cursor: default; | ||
| 38 | } | ||
| 39 | .stickies__inner { | ||
| 40 | padding-block: 0; | ||
| 41 | background-color: var(--background); | ||
| 42 | box-shadow: none; | ||
| 43 | cursor: default; | ||
| 44 | } | ||
| 45 | .simple-bar--spaces-background-color-as-foreground .space__inner, | ||
| 46 | .simple-bar--spaces-background-color-as-foreground .spaces__add, | ||
| 47 | .simple-bar--spaces-background-color-as-foreground .stickies__inner { | ||
| 48 | background-color: transparent; | ||
| 49 | box-shadow: none; | ||
| 50 | } | ||
| 51 | .simple-bar--no-shadow .space__inner, | ||
| 52 | .simple-bar--no-shadow .spaces__add, | ||
| 53 | .simple-bar--no-shadow .stickies__inner { | ||
| 54 | box-shadow: none; | ||
| 55 | } | ||
| 56 | .space:first-of-type .space__inner { | ||
| 57 | margin-left: 0; | ||
| 58 | } | ||
| 59 | .space:hover .space__inner { | ||
| 60 | z-index: 1; | ||
| 61 | } | ||
| 62 | .spaces__add { | ||
| 63 | height: auto; | ||
| 64 | background-color: transparent; | ||
| 65 | box-shadow: none; | ||
| 66 | } | ||
| 67 | .spaces__add:hover { | ||
| 68 | background-color: var(--minor); | ||
| 69 | } | ||
| 70 | .space--fullscreen .space__inner { | ||
| 71 | color: var(--minor); | ||
| 72 | background-color: var(--yellow); | ||
| 73 | } | ||
| 74 | .simple-bar--spaces-background-color-as-foreground .space--fullscreen .space__inner { | ||
| 75 | color: var(--yellow); | ||
| 76 | background-color: transparent; | ||
| 77 | } | ||
| 78 | .space--focused .space__inner { | ||
| 79 | color: var(--minor); | ||
| 80 | background-color: var(--foreground); | ||
| 81 | } | ||
| 82 | .simple-bar--spaces-background-color-as-foreground .space--focused .space__inner { | ||
| 83 | color: var(--foreground); | ||
| 84 | background-color: transparent; | ||
| 85 | } | ||
| 86 | .space--visible .space__inner { | ||
| 87 | box-shadow: var(--light-shadow), var(--foreground-shadow); | ||
| 88 | } | ||
| 89 | .simple-bar--no-shadow .space--visible .space__inner { | ||
| 90 | box-shadow: none; | ||
| 91 | } | ||
| 92 | .space:not(.space--focused) .space__inner:not(:disabled):hover, | ||
| 93 | .spaces__add:hover { | ||
| 94 | box-shadow: var(--light-shadow), var(--hover-ring); | ||
| 95 | } | ||
| 96 | .space:not(.space--focused) .space__inner:not(:disabled):active, | ||
| 97 | .spaces__add:active { | ||
| 98 | box-shadow: var(--light-shadow), var(--focus-ring); | ||
| 99 | } | ||
| 100 | .simple-bar--no-shadow .space:not(.space--focused) .space__inner:not(:disabled):hover, | ||
| 101 | .simple-bar--no-shadow .spaces__add:hover { | ||
| 102 | box-shadow: var(--hover-ring); | ||
| 103 | } | ||
| 104 | .simple-bar--no-shadow .space:not(.space--focused) .space__inner:not(:disabled):active, | ||
| 105 | .simple-bar--no-shadow .spaces__add:active { | ||
| 106 | box-shadow: var(--focus-ring); | ||
| 107 | } | ||
| 108 | .space__label { | ||
| 109 | display: block; | ||
| 110 | margin: 0; | ||
| 111 | color: currentColor; | ||
| 112 | font-family: inherit; | ||
| 113 | font-size: var(--font-size); | ||
| 114 | line-height: 1; | ||
| 115 | text-align: center; | ||
| 116 | background-color: transparent; | ||
| 117 | border: 0; | ||
| 118 | border-radius: 2px; | ||
| 119 | outline: none; | ||
| 120 | } | ||
| 121 | .space__label:not(:read-only):focus { | ||
| 122 | box-shadow: var(--focus-ring); | ||
| 123 | } | ||
| 124 | .simple-bar--spaces-background-color-as-foreground .space--focused .space__label { | ||
| 125 | font-weight: 700; | ||
| 126 | } | ||
| 127 | .space__icon { | ||
| 128 | flex: 0 0 11px; | ||
| 129 | width: 11px; | ||
| 130 | height: 11px; | ||
| 131 | margin-left: 6px; | ||
| 132 | fill: currentColor; | ||
| 133 | opacity: 0.5; | ||
| 134 | transform: translateZ(0); | ||
| 135 | } | ||
| 136 | .stickies__inner .space__icon:first-child { | ||
| 137 | margin: 0; | ||
| 138 | } | ||
| 139 | .space__icon--focused { | ||
| 140 | opacity: 1; | ||
| 141 | } | ||
| 142 | .space__icon--fullscreen { | ||
| 143 | fill: var(--yellow); | ||
| 144 | } | ||
| 145 | .space__icon--topmost { | ||
| 146 | fill: var(--orange); | ||
| 147 | } | ||
| 148 | .space--focused .space__icon--fullscreen { | ||
| 149 | stroke: rgba(0, 0, 0, 0.3); | ||
| 150 | stroke-width: 2px; | ||
| 151 | } | ||
| 152 | `; | ||
