@workday/canvas-kit-css-popup
Version:
Popup CSS for Canvas kit CSS
611 lines (592 loc) • 12.3 kB
CSS
/*
* Workday Canvas - canvas-kit-css-popup v9.1.26
* Copyright 2019-2023 Workday, Inc.
*/
.wdc-card {
box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.1);
border: 1px solid #ced3d9;
border-radius: 8px;
padding: 32px;
margin: 16px 0;
background-color: #ffffff;
box-sizing: border-box;
}
.wdc-card-heading, .wdc-card-header, .wdc-card-title {
font-weight: 700;
font-size: 20px;
line-height: 28px;
color: #333333;
margin-bottom: 24px;
margin-top: 0;
}
.wdc-card-body {
font-size: 14px;
font-weight: 400;
line-height: 20px;
color: #494949;
}
.wdc-card-container.wdc-card-container-start {
justify-content: flex-start;
}
.wdc-card-container.wdc-card-container-end {
justify-content: flex-end;
}
.wdc-card-container.wdc-card-container-center {
justify-content: center;
}
.wdc-card-container.wdc-card-container-between {
justify-content: space-between;
}
.wdc-card-container.wdc-card-container-around {
justify-content: space-around;
}
.wdc-card-container {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.wdc-card-1 {
box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.1);
border: 1px solid #ced3d9;
border-radius: 8px;
padding: 32px;
margin: 16px 0;
background-color: #ffffff;
box-sizing: border-box;
width: calc(8.3333333333% - 96px);
}
.wdc-card-1-heading, .wdc-card-1-header, .wdc-card-1-title {
font-weight: 700;
font-size: 20px;
line-height: 28px;
color: #333333;
margin-bottom: 24px;
margin-top: 0;
}
.wdc-card-1-body {
font-size: 14px;
font-weight: 400;
line-height: 20px;
color: #494949;
}
.wdc-card-1.wdc-card-no-padding {
padding: 0;
width: calc(8.3333333333% - 32px);
}
.wdc-card-2 {
box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.1);
border: 1px solid #ced3d9;
border-radius: 8px;
padding: 32px;
margin: 16px 0;
background-color: #ffffff;
box-sizing: border-box;
width: calc(16.6666666667% - 96px);
}
.wdc-card-2-heading, .wdc-card-2-header, .wdc-card-2-title {
font-weight: 700;
font-size: 20px;
line-height: 28px;
color: #333333;
margin-bottom: 24px;
margin-top: 0;
}
.wdc-card-2-body {
font-size: 14px;
font-weight: 400;
line-height: 20px;
color: #494949;
}
.wdc-card-2.wdc-card-no-padding {
padding: 0;
width: calc(16.6666666667% - 32px);
}
.wdc-card-3 {
box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.1);
border: 1px solid #ced3d9;
border-radius: 8px;
padding: 32px;
margin: 16px 0;
background-color: #ffffff;
box-sizing: border-box;
width: calc(25% - 96px);
}
.wdc-card-3-heading, .wdc-card-3-header, .wdc-card-3-title {
font-weight: 700;
font-size: 20px;
line-height: 28px;
color: #333333;
margin-bottom: 24px;
margin-top: 0;
}
.wdc-card-3-body {
font-size: 14px;
font-weight: 400;
line-height: 20px;
color: #494949;
}
.wdc-card-3.wdc-card-no-padding {
padding: 0;
width: calc(25% - 32px);
}
.wdc-card-4 {
box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.1);
border: 1px solid #ced3d9;
border-radius: 8px;
padding: 32px;
margin: 16px 0;
background-color: #ffffff;
box-sizing: border-box;
width: calc(33.3333333333% - 96px);
}
.wdc-card-4-heading, .wdc-card-4-header, .wdc-card-4-title {
font-weight: 700;
font-size: 20px;
line-height: 28px;
color: #333333;
margin-bottom: 24px;
margin-top: 0;
}
.wdc-card-4-body {
font-size: 14px;
font-weight: 400;
line-height: 20px;
color: #494949;
}
.wdc-card-4.wdc-card-no-padding {
padding: 0;
width: calc(33.3333333333% - 32px);
}
.wdc-card-5 {
box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.1);
border: 1px solid #ced3d9;
border-radius: 8px;
padding: 32px;
margin: 16px 0;
background-color: #ffffff;
box-sizing: border-box;
width: calc(41.6666666667% - 96px);
}
.wdc-card-5-heading, .wdc-card-5-header, .wdc-card-5-title {
font-weight: 700;
font-size: 20px;
line-height: 28px;
color: #333333;
margin-bottom: 24px;
margin-top: 0;
}
.wdc-card-5-body {
font-size: 14px;
font-weight: 400;
line-height: 20px;
color: #494949;
}
.wdc-card-5.wdc-card-no-padding {
padding: 0;
width: calc(41.6666666667% - 32px);
}
.wdc-card-6 {
box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.1);
border: 1px solid #ced3d9;
border-radius: 8px;
padding: 32px;
margin: 16px 0;
background-color: #ffffff;
box-sizing: border-box;
width: calc(50% - 96px);
}
.wdc-card-6-heading, .wdc-card-6-header, .wdc-card-6-title {
font-weight: 700;
font-size: 20px;
line-height: 28px;
color: #333333;
margin-bottom: 24px;
margin-top: 0;
}
.wdc-card-6-body {
font-size: 14px;
font-weight: 400;
line-height: 20px;
color: #494949;
}
.wdc-card-6.wdc-card-no-padding {
padding: 0;
width: calc(50% - 32px);
}
.wdc-card-7 {
box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.1);
border: 1px solid #ced3d9;
border-radius: 8px;
padding: 32px;
margin: 16px 0;
background-color: #ffffff;
box-sizing: border-box;
width: calc(58.3333333333% - 96px);
}
.wdc-card-7-heading, .wdc-card-7-header, .wdc-card-7-title {
font-weight: 700;
font-size: 20px;
line-height: 28px;
color: #333333;
margin-bottom: 24px;
margin-top: 0;
}
.wdc-card-7-body {
font-size: 14px;
font-weight: 400;
line-height: 20px;
color: #494949;
}
.wdc-card-7.wdc-card-no-padding {
padding: 0;
width: calc(58.3333333333% - 32px);
}
.wdc-card-8 {
box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.1);
border: 1px solid #ced3d9;
border-radius: 8px;
padding: 32px;
margin: 16px 0;
background-color: #ffffff;
box-sizing: border-box;
width: calc(66.6666666667% - 96px);
}
.wdc-card-8-heading, .wdc-card-8-header, .wdc-card-8-title {
font-weight: 700;
font-size: 20px;
line-height: 28px;
color: #333333;
margin-bottom: 24px;
margin-top: 0;
}
.wdc-card-8-body {
font-size: 14px;
font-weight: 400;
line-height: 20px;
color: #494949;
}
.wdc-card-8.wdc-card-no-padding {
padding: 0;
width: calc(66.6666666667% - 32px);
}
.wdc-card-9 {
box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.1);
border: 1px solid #ced3d9;
border-radius: 8px;
padding: 32px;
margin: 16px 0;
background-color: #ffffff;
box-sizing: border-box;
width: calc(75% - 96px);
}
.wdc-card-9-heading, .wdc-card-9-header, .wdc-card-9-title {
font-weight: 700;
font-size: 20px;
line-height: 28px;
color: #333333;
margin-bottom: 24px;
margin-top: 0;
}
.wdc-card-9-body {
font-size: 14px;
font-weight: 400;
line-height: 20px;
color: #494949;
}
.wdc-card-9.wdc-card-no-padding {
padding: 0;
width: calc(75% - 32px);
}
.wdc-card-10 {
box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.1);
border: 1px solid #ced3d9;
border-radius: 8px;
padding: 32px;
margin: 16px 0;
background-color: #ffffff;
box-sizing: border-box;
width: calc(83.3333333333% - 96px);
}
.wdc-card-10-heading, .wdc-card-10-header, .wdc-card-10-title {
font-weight: 700;
font-size: 20px;
line-height: 28px;
color: #333333;
margin-bottom: 24px;
margin-top: 0;
}
.wdc-card-10-body {
font-size: 14px;
font-weight: 400;
line-height: 20px;
color: #494949;
}
.wdc-card-10.wdc-card-no-padding {
padding: 0;
width: calc(83.3333333333% - 32px);
}
.wdc-card-11 {
box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.1);
border: 1px solid #ced3d9;
border-radius: 8px;
padding: 32px;
margin: 16px 0;
background-color: #ffffff;
box-sizing: border-box;
width: calc(91.6666666667% - 96px);
}
.wdc-card-11-heading, .wdc-card-11-header, .wdc-card-11-title {
font-weight: 700;
font-size: 20px;
line-height: 28px;
color: #333333;
margin-bottom: 24px;
margin-top: 0;
}
.wdc-card-11-body {
font-size: 14px;
font-weight: 400;
line-height: 20px;
color: #494949;
}
.wdc-card-11.wdc-card-no-padding {
padding: 0;
width: calc(91.6666666667% - 32px);
}
.wdc-card-12 {
box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.1);
border: 1px solid #ced3d9;
border-radius: 8px;
padding: 32px;
margin: 16px 0;
background-color: #ffffff;
box-sizing: border-box;
width: calc(100% - 96px);
}
.wdc-card-12-heading, .wdc-card-12-header, .wdc-card-12-title {
font-weight: 700;
font-size: 20px;
line-height: 28px;
color: #333333;
margin-bottom: 24px;
margin-top: 0;
}
.wdc-card-12-body {
font-size: 14px;
font-weight: 400;
line-height: 20px;
color: #494949;
}
.wdc-card-12.wdc-card-no-padding {
padding: 0;
width: calc(100% - 32px);
}
@keyframes popupAnimationTopLeft {
from {
opacity: 0;
transform: translate(-8px, -8px);
}
to {
opacity: 1;
transform: translate(0);
}
}
@keyframes popupAnimationTopCenter {
from {
opacity: 0;
transform: translate(0px, -8px);
}
to {
opacity: 1;
transform: translate(0);
}
}
@keyframes popupAnimationTopRight {
from {
opacity: 0;
transform: translate(8px, -8px);
}
to {
opacity: 1;
transform: translate(0);
}
}
@keyframes popupAnimationBottomLeft {
from {
opacity: 0;
transform: translate(-8px, 8px);
}
to {
opacity: 1;
transform: translate(0);
}
}
@keyframes popupAnimationBottomCenter {
from {
opacity: 0;
transform: translate(0px, 8px);
}
to {
opacity: 1;
transform: translate(0);
}
}
@keyframes popupAnimationBottomRight {
from {
opacity: 0;
transform: translate(8px, 8px);
}
to {
opacity: 1;
transform: translate(0);
}
}
.wdc-popup {
font-family: "Roboto", "Helvetica Neue", "Helvetica", Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.1);
border: 1px solid #ced3d9;
border-radius: 8px;
padding: 32px;
margin: 16px 0;
background-color: #ffffff;
box-sizing: border-box;
position: relative;
margin: 0;
animation-duration: 150ms;
animation-timing-function: ease-out;
}
.wdc-popup-heading, .wdc-popup-header, .wdc-popup-title {
font-weight: 700;
font-size: 20px;
line-height: 28px;
color: #333333;
margin-bottom: 24px;
margin-top: 0;
}
.wdc-popup-body {
font-size: 14px;
font-weight: 400;
line-height: 20px;
color: #494949;
}
.wdc-popup-padding-s {
padding: 16px;
}
.wdc-popup-no-padding {
padding: 0;
}
.wdc-popup-close {
position: absolute;
right: 12px;
top: 12px;
}
.wdc-popup-animation-origin-top-center {
animation-name: popupAnimationTopCenter;
transform-origin: top center;
}
.wdc-popup-animation-origin-right-center {
animation-name: popupAnimationRightCenter;
transform-origin: right center;
}
.wdc-popup-animation-origin-bottom-center {
animation-name: popupAnimationBottomCenter;
transform-origin: bottom center;
}
.wdc-popup-animation-origin-left-center {
animation-name: popupAnimationLeftCenter;
transform-origin: left center;
}
.wdc-popup-animation-origin-top-left {
animation-name: popupAnimationLeftCenter;
transform-origin: top left;
}
.wdc-popup-animation-origin-top-right {
animation-name: popupAnimationLeftCenter;
transform-origin: top right;
}
.wdc-popup-animation-origin-bottom-right {
animation-name: popupAnimationLeftCenter;
transform-origin: bottom right;
}
.wdc-popup-animation-origin-bottom-left {
animation-name: popupAnimationLeftCenter;
transform-origin: bottom right;
}
@media only screen and (max-width: 768px) {
.wdc-card-1 {
width: calc(16.6666666667% - 96px);
}
.wdc-card-2 {
width: calc(33.3333333333% - 96px);
}
.wdc-card-3 {
width: calc(50% - 96px);
}
.wdc-card-4 {
width: calc(100% - 96px);
}
.wdc-card-5 {
width: calc(100% - 96px);
}
.wdc-card-6 {
width: calc(100% - 96px);
}
.wdc-card-7 {
width: calc(100% - 96px);
}
.wdc-card-8 {
width: calc(100% - 96px);
}
.wdc-card-9 {
width: calc(100% - 96px);
}
.wdc-card-10 {
width: calc(100% - 96px);
}
.wdc-card-11 {
width: calc(100% - 96px);
}
.wdc-card-12 {
width: calc(100% - 96px);
}
}
@media only screen and (max-width: 320px) {
.wdc-card-1 {
width: 100%;
}
.wdc-card-2 {
width: 100%;
}
.wdc-card-3 {
width: 100%;
}
.wdc-card-4 {
width: 100%;
}
.wdc-card-5 {
width: 100%;
}
.wdc-card-6 {
width: 100%;
}
.wdc-card-7 {
width: 100%;
}
.wdc-card-8 {
width: 100%;
}
.wdc-card-9 {
width: 100%;
}
.wdc-card-10 {
width: 100%;
}
.wdc-card-11 {
width: 100%;
}
.wdc-card-12 {
width: 100%;
}
}