winbox-ui-next
Version:
We Design Vue 2.0: A Vue.js 3 UI Library
198 lines (197 loc) • 4.29 kB
CSS
/******** borderSize *******/
/******** borderStyle *******/
/******** radius *******/
/******** shadow distance *******/
/******** size *******/
/******** spacing *******/
/******** shadow *******/
/******** opacity *******/
/******** fontSize *******/
/******** fontWeight ********/
/******** radius *******/
/******** Primary *******/
/******** success *******/
/******** warning *******/
/******** danger *******/
/******** link *******/
/******** radius *******/
/********* icon hover *********/
.w-card {
position: relative;
background: var(--color-bg-2);
border-radius: var(--border-radius-none);
transition: box-shadow 0.2s cubic-bezier(0, 0, 1, 1);
}
.w-card-header {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
overflow: hidden;
border-bottom: 1px solid var(--color-neutral-3);
}
.w-card-header-no-title::before {
display: block;
content: ' ';
}
.w-card-header-title {
flex: 1;
color: var(--color-text-1);
font-weight: 500;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.w-card-header-extra {
color: rgb(var(--primary-6));
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.w-card-body {
color: var(--color-text-2);
}
.w-card-cover {
overflow: hidden;
}
.w-card-cover > * {
display: block;
width: 100%;
}
.w-card-actions {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 20px;
}
.w-card-actions::before {
visibility: hidden;
content: '';
}
.w-card-actions-right {
display: flex;
align-items: center;
}
.w-card-actions-item {
display: flex;
align-items: center;
justify-content: center;
color: var(--color-text-2);
cursor: pointer;
transition: color 0.2s cubic-bezier(0, 0, 1, 1);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.w-card-actions-item:hover {
color: rgb(var(--primary-6));
}
.w-card-actions-item:not(:last-child) {
margin-right: 12px;
}
.w-card-meta-footer {
display: flex;
align-items: center;
justify-content: space-between;
}
.w-card-meta-footer:last-child {
margin-top: 20px;
}
.w-card-meta-footer-only-actions::before {
visibility: hidden;
content: '';
}
.w-card-meta-footer .w-card-actions {
margin-top: 0;
}
.w-card-meta-title {
color: var(--color-text-1);
font-weight: 500;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.w-card-meta-description:not(:first-child) {
margin-top: 4px;
}
.w-card-grid {
position: relative;
box-sizing: border-box;
width: 33.33%;
box-shadow: 1px 0 0 0 var(--color-neutral-3), 0 1px 0 0 var(--color-neutral-3), 1px 1px 0 0 var(--color-neutral-3), 1px 0 0 0 var(--color-neutral-3) inset, 0 1px 0 0 var(--color-neutral-3) inset;
}
.w-card-grid::before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
transition: box-shadow 0.2s cubic-bezier(0, 0, 1, 1);
content: '';
pointer-events: none;
}
.w-card-grid-hoverable:hover {
z-index: 1;
}
.w-card-grid-hoverable:hover::before {
box-shadow: 0 4px 10px rgb(var(--gray-2));
}
.w-card-grid .w-card {
background: none;
box-shadow: none;
}
.w-card-contain-grid:not(.w-card-loading) > .w-card-body {
display: flex;
flex-wrap: wrap;
margin: 0 -1px;
padding: 0;
}
.w-card-hoverable:hover {
box-shadow: 0 2px 16px 0 rgba(38, 42, 50, 0.2);
}
.w-card-bordered {
border: 1px solid var(--color-neutral-3);
border-radius: 3px;
}
.w-card-bordered .w-card-cover {
border-radius: 3px 3px 0 0;
}
.w-card-loading .w-card-body {
overflow: hidden;
text-align: center;
}
.w-card-size-medium {
font-size: 14px;
}
.w-card-size-medium .w-card-header {
height: 46px;
padding: 10px 16px;
}
.w-card-size-medium .w-card-header-title,
.w-card-size-medium .w-card-meta-title {
font-size: 16px;
}
.w-card-size-medium .w-card-header-extra {
font-size: 14px;
}
.w-card-size-medium .w-card-body {
padding: 16px 16px;
}
.w-card-size-small {
font-size: 14px;
}
.w-card-size-small .w-card-header {
height: 40px;
padding: 8px 16px;
}
.w-card-size-small .w-card-header-title,
.w-card-size-small .w-card-meta-title {
font-size: 16px;
}
.w-card-size-small .w-card-header-extra {
font-size: 14px;
}
.w-card-size-small .w-card-body {
padding: 16px 16px;
}