@syncfusion/ej2-material-theme
Version:
A modern JavaScript UI toolkit that has been built from the ground up to be lightweight, responsive, modular and touch friendly. It is written in TypeScript and has no external dependencies.
375 lines • 9.09 kB
CSS
/*! component's theme wise override material-definitions and variables */
.e-card {
border-radius: 2px;
box-sizing: border-box;
display: -ms-flexbox;
display: flex;
-ms-flex-direction: column;
flex-direction: column;
font-family: "Roboto", "Segoe UI", "GeezaPro", "DejaVu Serif", "sans-serif", "-apple-system", "BlinkMacSystemFont";
font-size: 15px;
-ms-flex-pack: center;
justify-content: center;
line-height: 36px;
min-height: 36px;
overflow: hidden;
position: relative;
text-overflow: ellipsis;
vertical-align: middle;
width: 100%;
}
.e-card > * {
-ms-flex-pack: center;
justify-content: center;
}
.e-card > .e-card-header-title {
box-sizing: border-box;
font-size: 15px;
line-height: normal;
padding: 12px;
}
.e-card > .e-card-header-title + :not(.e-card-header-title) {
margin-top: 0;
padding-top: 0;
}
.e-card > .e-card-title {
font-size: 18px;
line-height: normal;
padding: 18px 12px 12px;
}
.e-card > .e-card-title + :not(.e-card-title) {
margin-top: 0;
padding-top: 0;
}
.e-card > .e-card-header-title,
.e-card > .e-card-title {
overflow: hidden;
text-overflow: ellipsis;
}
.e-card .e-card-header-caption {
line-height: normal;
}
.e-card .e-card-header-caption .e-card-header-title {
font-size: 15px;
}
.e-card .e-card-header-caption .e-card-sub-title {
font-size: 14px;
}
.e-card .e-card-stacked {
display: -ms-flexbox;
display: flex;
-ms-flex-direction: column;
flex-direction: column;
-ms-flex-pack: center;
justify-content: center;
overflow: hidden;
}
.e-card.e-card-horizontal,
.e-card .e-card-horizontal {
display: -ms-flexbox;
display: flex;
-ms-flex-direction: row;
flex-direction: row;
-ms-flex-pack: center;
justify-content: center;
}
.e-card.e-card-horizontal .e-card-image,
.e-card.e-card-horizontal img,
.e-card .e-card-horizontal .e-card-image,
.e-card .e-card-horizontal img {
margin: 2px;
}
.e-card .e-card-horizontal {
line-height: normal;
padding: 2px;
}
.e-card.e-card-horizontal > * {
-ms-flex: 1;
flex: 1;
}
.e-card.e-card-horizontal .e-card-stacked {
display: -ms-flexbox;
display: flex;
-ms-flex: 1;
flex: 1;
-ms-flex-direction: column;
flex-direction: column;
overflow: hidden;
}
.e-card.e-card-horizontal .e-card-stacked > :first-child {
-ms-flex-positive: 1;
flex-grow: 1;
}
.e-card .e-card-separator {
display: block;
}
.e-card .e-card-corner {
border-radius: 50%;
}
.e-card .e-card-header {
box-sizing: border-box;
display: -ms-flexbox;
display: flex;
-ms-flex-direction: row;
flex-direction: row;
-ms-flex-pack: center;
justify-content: center;
line-height: normal;
min-height: 22.5px;
padding: 12px;
width: inherit;
}
.e-card .e-card-header .e-card-content {
padding-left: 0;
padding-right: 0;
}
.e-card .e-card-header .e-card-actions {
-ms-flex-pack: start;
justify-content: flex-start;
}
.e-card .e-card-header .e-card-header-image {
-ms-flex-item-align: center;
align-self: center;
display: -ms-flexbox;
display: flex;
}
.e-card .e-card-header .e-card-header-caption {
-ms-flex-item-align: center;
align-self: center;
display: -ms-flexbox;
display: flex;
-ms-flex: 1;
flex: 1;
-ms-flex-direction: column;
flex-direction: column;
overflow: hidden;
padding: 0 0 0 12px;
}
.e-card .e-card-header .e-card-header-caption:first-child {
padding: 0;
}
.e-card .e-card-header .e-card-header-caption .e-card-header-title,
.e-card .e-card-header .e-card-header-caption .e-card-sub-title {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.e-card .e-card-header .e-card-header-caption .e-card-header-title {
font-size: 13px;
font-weight: normal;
line-height: normal;
}
.e-card .e-card-header .e-card-header-caption .e-card-sub-title {
font-size: 12px;
font-weight: normal;
line-height: normal;
padding: 6px 0 0;
}
.e-card .e-card-header .e-card-header-image {
background-repeat: no-repeat;
background-size: cover;
height: 30px;
width: 30px;
}
.e-card .e-card-header .e-card-corner {
border-radius: 50%;
}
.e-card .e-card-image {
background-size: cover;
min-height: 112.5px;
position: relative;
width: 100%;
}
.e-card .e-card-image .e-card-title {
bottom: 0;
box-sizing: border-box;
font-size: 18px;
line-height: 30px;
min-height: 30px;
overflow: hidden;
padding: 0 12px;
position: absolute;
text-overflow: ellipsis;
width: inherit;
}
.e-card .e-card-image .e-card-title.e-card-top-left, .e-card .e-card-image .e-card-title.e-card-top-right {
bottom: auto;
top: 0;
}
.e-card .e-card-image .e-card-title.e-card-top-right {
text-align: right;
}
.e-card .e-card-image .e-card-title.e-card-bottom-right {
text-align: right;
}
.e-card .e-card-actions {
box-sizing: border-box;
display: inline-block;
-ms-flex-pack: start;
justify-content: flex-start;
padding: 12px 6px 6px 6px;
}
.e-card .e-card-actions.e-card-vertical {
display: -ms-flexbox;
display: flex;
-ms-flex-direction: column;
flex-direction: column;
padding: 12px 6px 6px 6px;
}
.e-card .e-card-actions.e-card-vertical .e-card-btn,
.e-card .e-card-actions.e-card-vertical a {
-ms-flex-item-align: initial;
-ms-grid-row-align: initial;
align-self: initial;
box-sizing: border-box;
display: inline-block;
-ms-flex-pack: center;
justify-content: center;
margin: 0 0 6px 0;
text-align: center;
width: 100%;
}
.e-card .e-card-actions.e-card-vertical .e-card-btn:last-child,
.e-card .e-card-actions.e-card-vertical a:last-child {
margin-bottom: 0;
}
.e-card .e-card-actions button,
.e-card .e-card-actions a {
-ms-flex-align: center;
align-items: center;
-ms-flex-item-align: center;
align-self: center;
cursor: pointer;
display: -ms-inline-flexbox;
display: inline-flex;
overflow: hidden;
vertical-align: middle;
white-space: nowrap;
}
.e-card .e-card-actions .e-card-btn span,
.e-card .e-card-actions .e-card-btn span.e-icons {
display: -ms-flexbox;
display: flex;
font-size: 14px;
height: 24px;
width: 24px;
}
.e-card .e-card-actions .e-card-btn span::before,
.e-card .e-card-actions .e-card-btn span.e-icons::before {
-ms-flex-item-align: center;
align-self: center;
display: -ms-flexbox;
display: flex;
-ms-flex-pack: center;
justify-content: center;
width: inherit;
}
.e-card .e-card-actions .e-card-btn > * {
overflow: hidden;
text-overflow: ellipsis;
width: inherit;
}
.e-card .e-card-actions .e-card-btn,
.e-card .e-card-actions a {
border-radius: 2px;
}
.e-card .e-card-actions .e-card-btn,
.e-card .e-card-actions a {
font-family: "Roboto", "Segoe UI", "GeezaPro", "DejaVu Serif", "sans-serif", "-apple-system", "BlinkMacSystemFont";
font-size: 14px;
line-height: 27px;
margin: 0 0 0 6px;
min-height: 27px;
padding: 0 6px;
text-decoration: none;
text-transform: uppercase;
}
.e-card .e-card-actions .e-card-btn:first-child,
.e-card .e-card-actions a:first-child {
margin-left: 0;
}
.e-card .e-card-content {
font-size: 14px;
line-height: normal;
padding: 12px;
word-wrap: break-word;
}
.e-card .e-card-content + :not(.e-card-content),
.e-card .e-card-content + .e-card-actions.e-card-vertical {
margin-top: 0;
padding-top: 0;
}
.e-card .e-card-content,
.e-card .e-card-content p {
line-height: normal;
overflow: hidden;
text-overflow: ellipsis;
}
/* stylelint-disable property-no-vendor-prefix */
.e-card {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
background: #fff;
border: 1px none #000;
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.16);
color: rgba(0, 0, 0, 0.87);
outline: none;
}
.e-card:hover {
background-color: #fff;
border-color: #000;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.22);
}
.e-card:focus {
background-color: #fff;
border-color: #000;
}
.e-card:active {
background-color: #fff;
border-color: #000;
}
.e-card .e-card-separator {
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.e-card .e-card-header-caption .e-card-header-title {
color: rgba(0, 0, 0, 0.87);
}
.e-card .e-card-header-caption .e-card-sub-title {
color: rgba(0, 0, 0, 0.54);
}
.e-card .e-card-image .e-card-title {
background-color: rgba(0, 0, 0, 0.35);
color: #fff;
}
.e-card .e-card-actions .e-card-btn span,
.e-card .e-card-actions .e-card-btn span.e-icons {
color: rgba(0, 0, 0, 0.54);
}
.e-card .e-card-actions .e-card-btn,
.e-card .e-card-actions a {
background-color: #fff;
border: 0;
color: #e3165b;
outline: 0;
}
.e-card .e-card-actions .e-card-btn:hover,
.e-card .e-card-actions a:hover {
background-color: rgba(0, 0, 0, 0.12);
border: 0;
color: #e3165b;
}
.e-card .e-card-actions .e-card-btn:focus,
.e-card .e-card-actions a:focus {
background-color: rgba(0, 0, 0, 0.12);
border: 0;
color: #e3165b;
}
.e-card .e-card-actions .e-card-btn:active,
.e-card .e-card-actions a:active {
background-color: rgba(0, 0, 0, 0.12);
border: 0;
color: #e3165b;
}
.e-card .e-card-content {
color: rgba(0, 0, 0, 0.54);
}