@adobe/coral-spectrum
Version:
Coral Spectrum is a JavaScript library of Web Components following Spectrum design patterns.
451 lines (428 loc) • 10.2 kB
CSS
/**
* Copyright 2019 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
@keyframes pulse {
0% {
-webkit-transform: scale(1);
opacity: 0;
}
50% {
-webkit-transform: scale(1.5);
opacity: 1;
}
100% {
-webkit-transform: scale(2);
opacity: 0;
}
}
@keyframes pulse--quiet {
0% {
-webkit-transform: scale(0.8);
opacity: 0;
}
50% {
-webkit-transform: scale(1.5);
opacity: 1;
}
100% {
-webkit-transform: scale(2);
opacity: 0;
}
}
._coral-CoachMarkPopover {
position: relative;
min-width: 272px;
max-width: 400px;
border-radius: 4px;
border-width: 1px;
border-style: solid;
}
._coral-CoachMarkPopover-image {
border-radius: 4px 4px 0 0;
width: 100%;
}
._coral-CoachMarkPopover-header,
._coral-CoachMarkPopover-content,
._coral-CoachMarkPopover-footer {
padding: 0 24px;
}
._coral-CoachMarkPopover-header {
padding-top: 24px;
}
._coral-CoachMarkPopover-footer {
padding-bottom: 24px;
}
._coral-CoachMarkPopover-header {
display: -ms-flexbox;
display: flex;
-ms-flex-pack: justify;
justify-content: space-between;
-ms-flex-align: end;
align-items: flex-end;
margin-bottom: 16px;
}
._coral-CoachMarkPopover-title {
font-size: 16px;
font-weight: 700;
line-height: 1.3;
margin-bottom: 0;
}
._coral-CoachMarkPopover-step {
-ms-flex-item-align: start;
-ms-grid-row-align: start;
align-self: start;
font-size: 14px;
font-weight: 400;
line-height: 1.5;
white-space: nowrap;
}
._coral-CoachMarkPopover-content {
margin-bottom: 16px;
}
._coral-CoachMarkPopover-footer {
margin-top: 0;
text-align: right;
}
._coral-CoachMarkIndicator {
position: relative;
margin: 6px;
}
._coral-CoachMarkIndicator-ring {
display: block;
position: absolute;
border-style: solid;
border-width: 2px;
border-radius: 50%;
}
._coral-CoachMarkIndicator-ring:nth-child(2) {
animation-delay: -1980ms;
}
._coral-CoachMarkIndicator-ring:nth-child(3) {
animation-delay: -3000ms
}
._coral-CoachMarkIndicator {
min-width: 48px;
min-height: 48px;
}
._coral-CoachMarkIndicator-ring {
top: 12px;
left: 12px;
width: 16px;
height: 16px;
animation: pulse 3000ms linear infinite;
}
._coral-CoachMarkIndicator-ring:nth-child(1) {
animation-delay: -1500ms;
}
._coral-CoachMarkIndicator--quiet {
min-width: 22px;
min-height: 22px;
}
._coral-CoachMarkIndicator--quiet ._coral-CoachMarkIndicator-ring {
top: 6px;
left: 6px;
width: 8px;
height: 8px;
animation: pulse--quiet 3000ms linear infinite;
}
._coral-CoachMarkIndicator--quiet ._coral-CoachMarkIndicator-ring:nth-child(1) {
animation-delay: -990ms;
}
.coral--large ._coral-CoachMarkPopover {
min-width: 340px;
max-width: 500px;
border-radius: 5px;
border-width: 1px;
}
.coral--large ._coral-CoachMarkPopover-image {
border-radius: 5px 5px 0 0;
}
.coral--large ._coral-CoachMarkPopover-header,
.coral--large ._coral-CoachMarkPopover-content,
.coral--large ._coral-CoachMarkPopover-footer {
padding: 0 30px;
}
.coral--large ._coral-CoachMarkPopover-header {
padding-top: 30px;
}
.coral--large ._coral-CoachMarkPopover-footer {
padding-bottom: 30px;
}
.coral--large ._coral-CoachMarkPopover-header {
margin-bottom: 20px;
}
.coral--large ._coral-CoachMarkPopover-title {
font-size: 19px;
font-weight: 700;
line-height: 1.3;
}
.coral--large ._coral-CoachMarkPopover-step {
font-size: 17px;
font-weight: 400;
line-height: 1.5;
}
.coral--large ._coral-CoachMarkPopover-content {
margin-bottom: 20px;
}
.coral--large ._coral-CoachMarkIndicator {
margin: 8px;
}
.coral--large ._coral-CoachMarkIndicator-ring {
border-width: 2px;
}
.coral--large ._coral-CoachMarkIndicator-ring:nth-child(2) {
animation-delay: -1980ms;
}
.coral--large ._coral-CoachMarkIndicator-ring:nth-child(3) {
animation-delay: -3000ms
}
.coral--large ._coral-CoachMarkIndicator {
min-width: 60px;
min-height: 60px;
}
.coral--large ._coral-CoachMarkIndicator-ring {
top: 15px;
left: 15px;
width: 20px;
height: 20px;
animation: pulse 3000ms linear infinite;
}
.coral--large ._coral-CoachMarkIndicator-ring:nth-child(1) {
animation-delay: -1500ms;
}
.coral--large ._coral-CoachMarkIndicator--quiet {
min-width: 27.5px;
min-height: 27.5px;
}
.coral--large ._coral-CoachMarkIndicator--quiet ._coral-CoachMarkIndicator-ring {
top: 7.5px;
left: 7.5px;
width: 10px;
height: 10px;
animation: pulse--quiet 3000ms linear infinite;
}
.coral--large ._coral-CoachMarkIndicator--quiet ._coral-CoachMarkIndicator-ring:nth-child(1) {
animation-delay: -990ms;
}
.coral--light ._coral-CoachMarkPopover {
background-color: rgb(255, 255, 255);
border-color: rgb(202, 202, 202);
box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.coral--light ._coral-CoachMarkPopover-title {
color: rgb(44, 44, 44);
}
.coral--light ._coral-CoachMarkPopover-step {
color: rgb(110, 110, 110);
}
.coral--light ._coral-CoachMarkPopover-content {
color: rgb(75, 75, 75);
}
.coral--light ._coral-CoachMarkIndicator-ring {
border-color: rgb(38, 128, 235);
}
.coral--light ._coral-CoachMarkIndicator--light ._coral-CoachMarkIndicator-ring {
border-color: rgb(255, 255, 255);
}
.coral--light ._coral-CoachMarkIndicator--dark ._coral-CoachMarkIndicator-ring {
border-color: rgb(44, 44, 44);
}
.coral--lightest ._coral-CoachMarkPopover {
background-color: rgb(255, 255, 255);
border-color: rgb(211, 211, 211);
box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.coral--lightest ._coral-CoachMarkPopover-title {
color: rgb(50, 50, 50);
}
.coral--lightest ._coral-CoachMarkPopover-step {
color: rgb(116, 116, 116);
}
.coral--lightest ._coral-CoachMarkPopover-content {
color: rgb(80, 80, 80);
}
.coral--lightest ._coral-CoachMarkIndicator-ring {
border-color: rgb(55, 142, 240);
}
.coral--lightest ._coral-CoachMarkIndicator--light ._coral-CoachMarkIndicator-ring {
border-color: rgb(255, 255, 255);
}
.coral--lightest ._coral-CoachMarkIndicator--dark ._coral-CoachMarkIndicator-ring {
border-color: rgb(50, 50, 50);
}
.coral--dark ._coral-CoachMarkPopover {
background-color: rgb(37, 37, 37);
border-color: rgb(90, 90, 90);
box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.coral--dark ._coral-CoachMarkPopover-title {
color: rgb(255, 255, 255);
}
.coral--dark ._coral-CoachMarkPopover-step {
color: rgb(185, 185, 185);
}
.coral--dark ._coral-CoachMarkPopover-content {
color: rgb(227, 227, 227);
}
.coral--dark ._coral-CoachMarkIndicator-ring {
border-color: rgb(38, 128, 235);
}
.coral--dark ._coral-CoachMarkIndicator--light ._coral-CoachMarkIndicator-ring {
border-color: rgb(37, 37, 37);
}
.coral--dark ._coral-CoachMarkIndicator--dark ._coral-CoachMarkIndicator-ring {
border-color: rgb(255, 255, 255);
}
.coral--darkest ._coral-CoachMarkPopover {
background-color: rgb(8, 8, 8);
border-color: rgb(73, 73, 73);
box-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.coral--darkest ._coral-CoachMarkPopover-title {
color: rgb(239, 239, 239);
}
.coral--darkest ._coral-CoachMarkPopover-step {
color: rgb(162, 162, 162);
}
.coral--darkest ._coral-CoachMarkPopover-content {
color: rgb(200, 200, 200);
}
.coral--darkest ._coral-CoachMarkIndicator-ring {
border-color: rgb(20, 115, 230);
}
.coral--darkest ._coral-CoachMarkIndicator--light ._coral-CoachMarkIndicator-ring {
border-color: rgb(8, 8, 8);
}
.coral--darkest ._coral-CoachMarkIndicator--dark ._coral-CoachMarkIndicator-ring {
border-color: rgb(239, 239, 239);
}
._coral-CoachMarkIndicator {
display: inline-block;
margin: 3px 0 0 4px;
}
.coral--large ._coral-CoachMarkIndicator-ring {
animation: large-pulse 3000ms cubic-bezier(0, 0, 1, 1) infinite;
}
.coral--large ._coral-CoachMarkIndicator--quiet ._coral-CoachMarkIndicator-ring {
animation: large-pulse--quiet 3000ms cubic-bezier(0, 0, 1, 1) infinite;
}
@-moz-keyframes large-pulse {
0% {
-webkit-transform: scale(1);
opacity: 0;
}
50% {
-webkit-transform: scale(1.5);
opacity: 1;
}
100% {
-webkit-transform: scale(2);
opacity: 0;
}
}
@-webkit-keyframes large-pulse {
0% {
-webkit-transform: scale(1);
opacity: 0;
}
50% {
-webkit-transform: scale(1.5);
opacity: 1;
}
100% {
-webkit-transform: scale(2);
opacity: 0;
}
}
@-o-keyframes large-pulse {
0% {
-webkit-transform: scale(1);
opacity: 0;
}
50% {
-webkit-transform: scale(1.5);
opacity: 1;
}
100% {
-webkit-transform: scale(2);
opacity: 0;
}
}
@keyframes large-pulse {
0% {
-webkit-transform: scale(1);
opacity: 0;
}
50% {
-webkit-transform: scale(1.5);
opacity: 1;
}
100% {
-webkit-transform: scale(2);
opacity: 0;
}
}
@-moz-keyframes large-pulse--quiet {
0% {
-webkit-transform: scale(0.8);
opacity: 0;
}
50% {
-webkit-transform: scale(1.5);
opacity: 1;
}
100% {
-webkit-transform: scale(2);
opacity: 0;
}
}
@-webkit-keyframes large-pulse--quiet {
0% {
-webkit-transform: scale(0.8);
opacity: 0;
}
50% {
-webkit-transform: scale(1.5);
opacity: 1;
}
100% {
-webkit-transform: scale(2);
opacity: 0;
}
}
@-o-keyframes large-pulse--quiet {
0% {
-webkit-transform: scale(0.8);
opacity: 0;
}
50% {
-webkit-transform: scale(1.5);
opacity: 1;
}
100% {
-webkit-transform: scale(2);
opacity: 0;
}
}
@keyframes large-pulse--quiet {
0% {
-webkit-transform: scale(0.8);
opacity: 0;
}
50% {
-webkit-transform: scale(1.5);
opacity: 1;
}
100% {
-webkit-transform: scale(2);
opacity: 0;
}
}