Appearance

Cursor

Can I use ?Can I use ?
classproperties
cursor:valuecursor: value
cursor:autocursor: auto
cursor:aliascursor: alias
cursor:all-scrollcursor: all-scroll
cursor:cellcursor: cell
cursor:col-resizecursor: col-resize
cursor:context-menucursor: context-menu
cursor:copycursor: copy
cursor:crosshaircursor: crosshair
cursor:defaultcursor: default
cursor:e-resizecursor: e-resize
cursor:ew-resizecursor: ew-resize
cursor:grabcursor: grab
cursor:grabbingcursor: grabbing
cursor:movecursor: move
cursor:n-resizecursor: n-resize
cursor:ne-resizecursor: ne-resize
cursor:nesw-resizecursor: nesw-resize
cursor:no-dropcursor: no-drop
cursor:nonecursor: none
cursor:not-allowedcursor: not-allowed
cursor:ns-resizecursor: ns-resize
cursor:nw-resizecursor: nw-resize
cursor:nwse-resizecursor: nwse-resize
cursor:pointercursor: pointer
cursor:progresscursor: progress
cursor:row-resizecursor: row-resize
cursor:s-resizecursor: s-resize
cursor:se-resizecursor: se-resize
cursor:sw-resizecursor: sw-resize
cursor:textcursor: text
cursor:vertical-textcursor: vertical-text
cursor:w-resizecursor: w-resize
cursor:waitcursor: wait
cursor:zoom-incursor: zoom-in
cursor:zoom-outcursor: zoom-out

Overview

The cursor CSS property sets the mouse cursor, if any, to show when the mouse pointer is over an element.

<div class="">
Hover this line

See the cursor change.

<div class="clear:left">
    <div class="f:32 font-weight:900 cursor:pointer">Hover this line</div>
    <p class="text-align:justify">
        See the cursor change.
    </p>
</div>

Applying with functions

<div class="cursor:$(value)">...</div>

Master supports native CSS variables and functions, just add var(--key) or use shorthand$(key) for variables.

You can also use calc(expression), env(expression) and other CSS functions if the property supports it.

To learn more, see the Functions documentation.

Conditionally apply

States and selectors

<div class="cursor:auto:hover">...</div>

Master supports all native CSS selectors, just add :hover, :disabled, chaining, combinators and other CSS selectors as usual.

To learn more, see the Selectors documentation.

Responsive breakpoints

<div class="cursor:auto@sm">...</div>

Responsive breakpoints can be applied to all styles. Some available breakpoints are 3xs, 2xs, xs, sm,md, lg, xl, 2xl, 3xl, 4xl. Arbitrary breakpoints can be specified through comparison operators >, >=, <, <=.

To learn more, see the Breakpoints documentation.

<div class="cursor:auto@sm">...</div>

Master supports media types like print, screen, speech, all, and other media queries.

To learn more, see the Media Queries documentation.

Dark mode and color schemes

<div class="cursor:auto@dark">...</div>

Master uses the selector html.dark to support color schemes. Now, you can easily fine-tune your style for the color schemes.

To learn more, see the Color Schemes documentation.


© Aoyue Design LLC.
Issue on this page
Edited byAronLola