123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- /* mixins & extensions */
- @keyframes in {
- 0% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
- }
- @keyframes in-down {
- 0% {
- opacity: 0;
- transform: translate3D(0, -5px, 0);
- }
- 100% {
- opacity: 1;
- transform: translate3D(0, 0, 0);
- }
- }
- @keyframes in-up {
- 0% {
- opacity: 0;
- transform: translate3D(0, 5px, 0);
- }
- 100% {
- opacity: 1;
- transform: translate3D(0, 0, 0);
- }
- }
- @keyframes in-scale {
- 0% {
- opacity: 0;
- transform: scale3D(0.95, 0.95, 1);
- }
- 100% {
- opacity: 1;
- transform: scale3D(1, 1, 1);
- }
- }
- :root {
- --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));
- --calcite-internal-duration-factor: var(--calcite-duration-factor, 1);
- --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));
- --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));
- --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));
- }
- .calcite-animate {
- opacity: 0;
- animation-fill-mode: both;
- animation-duration: var(--calcite-animation-timing);
- }
- .calcite-animate__in {
- animation-name: in;
- }
- .calcite-animate__in-down {
- animation-name: in-down;
- }
- .calcite-animate__in-up {
- animation-name: in-up;
- }
- .calcite-animate__in-scale {
- animation-name: in-scale;
- }
- @media (prefers-reduced-motion: reduce) {
- :root {
- --calcite-internal-duration-factor: 0.01;
- }
- }
- /**
- * Currently only used in Checkbox.
- */
- :root {
- --calcite-floating-ui-transition: var(--calcite-animation-timing);
- }
- :host([hidden]) {
- display: none;
- }
- :host {
- display: block;
- position: absolute;
- z-index: 900;
- }
- .calcite-floating-ui-anim {
- position: relative;
- transition: var(--calcite-floating-ui-transition);
- visibility: hidden;
- transition-property: transform, visibility, opacity;
- opacity: 0;
- box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.16);
- z-index: 1;
- border-radius: 0.25rem;
- }
- :host([data-placement^=bottom]) .calcite-floating-ui-anim {
- transform: translateY(-5px);
- }
- :host([data-placement^=top]) .calcite-floating-ui-anim {
- transform: translateY(5px);
- }
- :host([data-placement^=left]) .calcite-floating-ui-anim {
- transform: translateX(5px);
- }
- :host([data-placement^=right]) .calcite-floating-ui-anim {
- transform: translateX(-5px);
- }
- :host([data-placement]) .calcite-floating-ui-anim--active {
- opacity: 1;
- visibility: visible;
- transform: translate(0);
- }
- :host([calcite-hydrated-hidden]) {
- visibility: hidden !important;
- pointer-events: none;
- }
- .arrow,
- .arrow::before {
- position: absolute;
- inline-size: 8px;
- block-size: 8px;
- z-index: -1;
- }
- .arrow::before {
- content: "";
- --tw-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
- --tw-shadow-colored: 0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
- transform: rotate(45deg);
- background: var(--calcite-ui-foreground-1);
- }
- :host([data-placement^=top]) .arrow {
- inset-block-end: -4px;
- }
- :host([data-placement^=bottom]) .arrow {
- inset-block-start: -4px;
- }
- :host([data-placement^=left]) .arrow {
- direction: ltr;
- inset-inline-end: -4px;
- }
- :host([data-placement^=right]) .arrow {
- direction: ltr;
- inset-inline-start: -4px;
- }
- :host {
- pointer-events: none;
- }
- :host([open]) {
- pointer-events: initial;
- }
- .calcite-floating-ui-anim {
- border-radius: 0.25rem;
- border-width: 1px;
- border-style: solid;
- border-color: var(--calcite-ui-border-3);
- background-color: var(--calcite-ui-foreground-1);
- }
- .arrow::before {
- outline: 1px solid var(--calcite-ui-border-3);
- }
- .header {
- display: flex;
- flex: 1 1 auto;
- align-items: stretch;
- justify-content: flex-start;
- border-width: 0px;
- border-block-end-width: 1px;
- border-style: solid;
- background-color: var(--calcite-ui-foreground-1);
- border-block-end-color: var(--calcite-ui-border-3);
- }
- .heading {
- margin: 0px;
- display: block;
- flex: 1 1 auto;
- align-self: center;
- white-space: normal;
- padding-inline: 1rem;
- padding-block: 0.75rem;
- font-size: var(--calcite-font-size-0);
- line-height: 1.375;
- font-weight: var(--calcite-font-weight-medium);
- color: var(--calcite-ui-text-1);
- word-wrap: break-word;
- word-break: break-word;
- }
- .container {
- position: relative;
- display: flex;
- block-size: 100%;
- flex-direction: row;
- flex-wrap: nowrap;
- border-radius: 0.25rem;
- background-color: var(--calcite-ui-foreground-1);
- color: var(--calcite-ui-text-1);
- }
- .container.has-header {
- flex-direction: column;
- }
- .content {
- display: flex;
- block-size: 100%;
- inline-size: 100%;
- flex-direction: column;
- flex-wrap: nowrap;
- align-self: center;
- word-wrap: break-word;
- word-break: break-word;
- }
- .close-button-container {
- display: flex;
- overflow: hidden;
- flex: 0 0 auto;
- border-start-end-radius: 0.25rem;
- border-end-end-radius: 0.25rem;
- }
- ::slotted(calcite-panel),
- ::slotted(calcite-flow) {
- block-size: 100%;
- }
|