░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/packages/canvas-planner/src/components/StickyButton
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: styles.css
.root { box-sizing: border-box; display: block; border: none; color: var(--color); background-color: var(--background); padding: 0; font-size: var(--fontSize); font-weight: var(--fontWeight); font-family: var(--fontFamily); text-transform: var(--textTransform); line-height: var(--lineHeight); white-space: nowrap; cursor: pointer; user-select: none; touch-action: manipulation; appearance: none; transition: background-color 0.2s; outline: none; overflow: visible; border-bottom-left-radius: var(--borderRadius); border-bottom-right-radius: var(--borderRadius); position: fixed; &::before { content: ""; box-sizing: border-box; width: calc(100% + 0.5rem); height: calc(100% + 0.5rem); border: var(--focusRingWidth) solid var(--focusRingColor); position: absolute; top: -0.25rem; /* the placement and radii are symetrical, so no need to replace left/right with start/end */ left: -0.25rem; border-bottom-left-radius: var(--borderRadius); border-bottom-right-radius: var(--borderRadius); transform: scale(0.25); opacity: 0; transition: all 0.2s ease-out; } &:focus { &::before { opacity: 1; transform: scale(1); } } &:focus, &:hover { background-color: var(--backgroundHover); .icon { transform: translate3d(0, -0.0625rem, 0) scale(1.2); } } &[aria-disabled] { cursor: not-allowed; pointer-events: none; opacity: 0.5; } } .icon { display: block; font-size: 0.75rem; margin-inline-start: var(--iconMargin); transform: translate3d(0, -0.0625rem, 0); transition: all 0.2s; } .direction--up, .direction--down { .layout { padding-inline-end: var(--hasIconRightPadding); } } .layout { box-sizing: border-box; display: flex; align-items: center; width: 100%; height: 100%; padding: var(--padding); } .newActivityButton { offset-inline-start: 0; top: 100%; position: absolute; }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 __tests__/
DIR
—
2023-09-24 03:39
📄 index.js
JS
3.1 KB
2023-09-24 03:39
EDIT
📄 styles.css
CSS
1.9 KB
2023-09-24 03:39
EDIT
📄 theme.js
JS
1.5 KB
2023-09-24 03:39
EDIT