users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/process.js
9cb45d050939b499e8e01ec9e4fe9be998d98dc4
· 4.2 KB · 161 lines
raw
| 1 | // Styles for /lib/components/{yabai|aerospace}/process.jsx components |
| 2 | export const styles = /* css */ ` |
| 3 | .process { |
| 4 | display: flex; |
| 5 | pointer-events: none; |
| 6 | touch-action: none; |
| 7 | } |
| 8 | .process--centered { |
| 9 | position: absolute; |
| 10 | top: 0; |
| 11 | left: 0; |
| 12 | width: 100%; |
| 13 | height: 100%; |
| 14 | } |
| 15 | .process:empty { |
| 16 | display: none; |
| 17 | } |
| 18 | .process__container { |
| 19 | display: flex; |
| 20 | align-items: stretch; |
| 21 | box-sizing: border-box; |
| 22 | pointer-events: auto; |
| 23 | touch-action: auto; |
| 24 | } |
| 25 | .process--centered .process__container { |
| 26 | height: var(--bar-height); |
| 27 | margin: 0 auto; |
| 28 | padding: var(--bar-inner-margin); |
| 29 | } |
| 30 | .simple-bar--no-bar-background .process__container:not(:empty) { |
| 31 | padding: 4px 5px; |
| 32 | background-color: var(--background); |
| 33 | box-shadow: var(--light-shadow); |
| 34 | border-radius: var(--bar-radius); |
| 35 | } |
| 36 | .process__layout { |
| 37 | display: flex; |
| 38 | align-items: center; |
| 39 | padding: var(--item-inner-margin); |
| 40 | color: var(--white); |
| 41 | font-family: var(--font); |
| 42 | font-size: var(--font-size); |
| 43 | background-color: var(--main-alt); |
| 44 | border-radius: var(--item-radius); |
| 45 | box-shadow: var(--light-shadow); |
| 46 | } |
| 47 | .simple-bar--spaces-background-color-as-foreground .process__layout { |
| 48 | color: var(--foreground); |
| 49 | font-weight: 700; |
| 50 | background-color: transparent; |
| 51 | box-shadow: none; |
| 52 | } |
| 53 | .process__skhd-mode { |
| 54 | display: flex; |
| 55 | align-items: center; |
| 56 | padding: var(--item-inner-margin); |
| 57 | color: var(--foreground); |
| 58 | background-color: var(--minor); |
| 59 | font-family: var(--font); |
| 60 | font-size: var(--font-size); |
| 61 | border-radius: var(--item-radius); |
| 62 | box-shadow: var(--light-shadow); |
| 63 | font-style: italic; |
| 64 | text-transform: uppercase; |
| 65 | } |
| 66 | .process__window { |
| 67 | display: flex; |
| 68 | align-items: center; |
| 69 | gap: 3px; |
| 70 | margin: var(--item-outer-margin); |
| 71 | padding: var(--item-inner-margin); |
| 72 | color: currentColor; |
| 73 | font-family: var(--font); |
| 74 | font-size: var(--font-size); |
| 75 | background-color: var(--minor); |
| 76 | border-radius: var(--item-radius); |
| 77 | border: 0; |
| 78 | outline: none; |
| 79 | box-shadow: var(--light-shadow); |
| 80 | cursor: pointer; |
| 81 | user-select: none; |
| 82 | -webkit-user-select: none; |
| 83 | transition: color 160ms var(--transition-easing), background-color 160ms var(--transition-easing), |
| 84 | border 160ms var(--transition-easing), box-shadow 160ms var(--transition-easing); |
| 85 | z-index: 0; |
| 86 | } |
| 87 | .simple-bar--spaces-background-color-as-foreground .process__window { |
| 88 | background-color: transparent; |
| 89 | box-shadow: none; |
| 90 | } |
| 91 | .simple-bar--no-shadow .process__container, |
| 92 | .simple-bar--no-bar-background.simple-bar--no-shadow .process__container, |
| 93 | .simple-bar--no-shadow .process__layout, |
| 94 | .simple-bar--no-shadow .process__skhd-mode, |
| 95 | .simple-bar--no-shadow .process__window { |
| 96 | box-shadow: none; |
| 97 | } |
| 98 | .process__window:only-child { |
| 99 | margin: 0; |
| 100 | } |
| 101 | .process__window--only-current { |
| 102 | background-color: var(--minor); |
| 103 | } |
| 104 | .process__window--focused { |
| 105 | color: var(--minor); |
| 106 | background-color: var(--foreground); |
| 107 | } |
| 108 | .process__stack-index { |
| 109 | padding: 2px 5px; |
| 110 | color: var(--foreground); |
| 111 | background-color: var(--background); |
| 112 | font-size: calc(var(--font-size) - 1px); |
| 113 | border-radius: var(--item-radius); |
| 114 | } |
| 115 | .process__window--focused .process__stack-index { |
| 116 | color: var(--white); |
| 117 | background-color: var(--main-alt); |
| 118 | } |
| 119 | .simple-bar--spaces-background-color-as-foreground .process__window--focused { |
| 120 | color: var(--foreground); |
| 121 | background-color: transparent; |
| 122 | box-shadow: var(--light-shadow), 0 0 0 1px var(--foreground); |
| 123 | } |
| 124 | .process__window:not(.process__window--only-current):not(.process__window--focused):is(:hover, :active) { |
| 125 | box-shadow: var(--light-shadow), var(--hover-ring); |
| 126 | } |
| 127 | .process__icon { |
| 128 | flex: 0 0 11px; |
| 129 | width: 11px; |
| 130 | height: 11px; |
| 131 | fill: currentColor; |
| 132 | transition: margin-right 160ms var(--transition-easing); |
| 133 | } |
| 134 | .process__window--only-current .process__icon, |
| 135 | .process__window--focused .process__icon, |
| 136 | .process__window--expanded .process__icon { |
| 137 | margin-right: 6px; |
| 138 | } |
| 139 | .process__window--only-icon .process__icon { |
| 140 | margin-right: 0; |
| 141 | } |
| 142 | .process__inner { |
| 143 | max-width: 0; |
| 144 | display: flex; |
| 145 | flex-wrap: nowrap; |
| 146 | overflow: hidden; |
| 147 | transition: max-width 160ms var(--transition-easing); |
| 148 | } |
| 149 | .process__window--focused .process__inner, |
| 150 | .process__window--expanded .process__inner { |
| 151 | max-width: var(--item-max-width); |
| 152 | } |
| 153 | .process__window--only-current .process__inner { |
| 154 | max-width: 400px; |
| 155 | } |
| 156 | .process__name { |
| 157 | margin-top: 2px; |
| 158 | white-space: nowrap; |
| 159 | transition: transform 160ms var(--transition-easing); |
| 160 | } |
| 161 | `; |