@dialpad/dialtone-css
Version:
Dialpad's design system
81 lines (73 loc) • 3.08 kB
text/less
//
// DIALTONE
// UTILITIES: INTERACTIVITY
//
// These are interactivity utility classes for Dialpad's design system Dialtone.
// For further documentation of these and other classes,
// visit https://dialtone.dialpad.com/utilities/interactivity
//
// TABLE OF CONTENTS
// • CURSOR
// • OUTLINE
// • POINTER EVENTS
//
// ============================================================================
// $ CURSOR
// Sets the type of mouse cursor, if any, to show when the mouse pointer is over an element.
// ----------------------------------------------------------------------------
.d-c-menu { cursor: context-menu ; }
.d-c-help { cursor: help ; }
.d-c-pointer { cursor: pointer ; }
.d-c-progress { cursor: progress ; }
.d-c-wait { cursor: wait ; }
.d-c-crosshair { cursor: crosshair ; }
.d-c-text { cursor: text ; }
.d-c-move { cursor: move ; }
.d-c-copy { cursor: copy ; }
.d-c-not-allowed { cursor: not-allowed ; }
.d-c-grab { cursor: grab ; }
.d-c-grabbing { cursor: grabbing ; }
.d-c-all-scroll { cursor: all-scroll ; }
.d-c-col-resize { cursor: col-resize ; }
.d-c-row-resize { cursor: row-resize ; }
.d-c-zoom-in { cursor: zoom-in ; }
.d-c-zoom-out { cursor: zoom-out ; }
.d-c-auto { cursor: auto ; }
.d-c-default { cursor: default ; }
.d-c-none { cursor: none ; }
//============================================================================
// $ OUTLINE
// Sets the style, width, color, and other characteristics
// elements' outlines. These shouldn't be confused with borders.
// ----------------------------------------------------------------------------
.d-ol-focusring {
outline: none ;
box-shadow: var(--dt-shadow-focus) ;
}
.d-ol-focusring-inset {
outline: none ;
box-shadow: var(--dt-shadow-focus-inset) ;
}
.d-ol-none {
outline: none ;
box-shadow: none ;
}
//============================================================================
// $ POINTER EVENTS
// The pointer-events CSS property enables or disables all
// mouse events on an element.
// ----------------------------------------------------------------------------
.d-pe-auto { pointer-events: auto ; }
.d-pe-inherit { pointer-events: inherit ; }
.d-pe-none { pointer-events: none ; }
.d-us-auto { user-select: auto ; }
.d-us-none { user-select: none ; }
//============================================================================
// $ RESIZE
// The resize CSS property sets whether an element is resizable,
// and if so, in which directions.
// ----------------------------------------------------------------------------
.d-r-both { resize: both ; }
.d-r-horizontal { resize: horizontal ; }
.d-r-vertical { resize: vertical ; }
.d-r-none { resize: none ; }