UNPKG

@atlassian/aui

Version:

Atlassian User Interface library

70 lines (58 loc) 1.44 kB
@import 'imports/aui-theme/components/spinner'; @keyframes spinnerRotateAnimation { to { transform: rotate(360deg); } } .spinner-size(@size) { & { width: @size; height: @size; > .aui-spinner > svg { #aui.spinner-stroke(@size); } } // deprecated; do not use. &[filled] { > .aui-spinner > svg { left: -(@size / 2); } } } aui-spinner { display: block; position: relative; color: #42526E; .spinner-size(@aui-spinner-size-medium); &[size="small"] { .spinner-size(@aui-spinner-size-small); } &[size="large"] { .spinner-size(@aui-spinner-size-large); } .aui-spinner { box-sizing: border-box; position: relative; width: 100%; height: 100%; & > svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; animation: 0.86s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite spinnerRotateAnimation; fill: none; stroke: currentColor; stroke-linecap: round; transform-origin: center; } } // deprecated; do not use. &[filled] { // The "filled" variant of the spinner should always take up no space in the DOM height: 0 !important; width: 0 !important; margin: auto; } }