ant-design/site/theme/template/Home/DesignPage/index.less
MadCcc 8e27cf986f
chore: rm component less file (#36244)
* chore: rm component less file

* refactor: less file

* refactor: rm less

* refactor: rm page-header and comment

* chore: rm less in components

* chore: update dist config

* chore: update image test

* chore: update dekko

* chore: rm lib dekko

* chore: update dist dekko

* chore: udpate bundle size

* test: update snapshot

* test: rm theme test

* test: update snapshot

* test: update snapshot

* chore: copy reset.css

* test: update image test

* chore: copy reset.css to es

* chore: update site script
2022-07-05 21:55:21 +08:00

198 lines
3.1 KiB
Plaintext

@import (reference) '../../../style/themes/index.less';
.design-card {
position: relative;
min-height: 278px;
padding: 32px 40px;
color: #697b8c;
line-height: 2;
background: rgba(0, 0, 0, 0.1);
&.main-card {
background-image: url('https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*i1EySrFVZvAAAAAAAAAAAABkARQnAQ');
background-size: cover;
}
h3,
h4 {
color: #0d1a26;
}
a {
color: #2f54eb;
}
.design-card-detail {
display: block;
margin-top: 12px;
}
.design-values {
text-align: center;
img {
display: block;
display: none;
width: 56px;
height: 56px;
margin: 20px auto 0;
}
h4 {
margin-top: 18px;
font-weight: normal;
}
}
&.sub-card {
padding: 0;
.card-info {
display: flex;
flex-direction: column;
padding: 40px 0 32px 40px;
.ant-row-rtl & {
padding: 40px 40px 32px 0;
}
ul {
margin-top: auto;
li {
margin-top: 16px;
a {
color: #2f54eb;
}
}
}
}
}
}
.design-mini-panel {
&:hover {
box-shadow: @shadow-2;
}
.ant-card-meta-title {
color: #0d1a26;
font-weight: 400;
font-size: 20px;
}
.ant-card-body {
padding: 16px 20px 20px;
}
.ant-card-meta-description {
color: #697b8c;
}
}
@media (min-width: @screen-sm-min) {
.design-card {
&.main-card {
padding-right: 0;
.ant-row-rtl & {
padding-right: 40px;
padding-left: 0;
}
}
&.sub-card {
background-image: none !important;
}
}
}
@media (max-width: @screen-sm-min) {
.design-card {
height: 478px;
padding: 24px 16px;
&.main-card {
height: auto;
padding-bottom: 16px;
background-image: url('https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*a8u5Q4QIJzcAAAAAAAAAAABkARQnAQ');
}
h3.ant-typography {
margin-bottom: 16px;
font-size: 18px;
}
.design-card-detail {
position: relative;
display: block;
margin-top: 12px;
line-height: 22px;
}
.design-values {
img {
display: block;
}
svg {
display: none;
}
h4 {
margin-top: 8px;
}
}
&.sub-card {
padding: 0;
line-height: 1.5;
background-repeat: no-repeat !important;
background-position: left 50% bottom 0% !important;
background-size: contain !important;
h3.ant-typography {
margin-bottom: 4px;
}
.card-info {
padding: 24px 16px 0;
}
ul {
margin-top: auto;
li {
margin-top: 12px;
}
}
}
.design-card-img-col {
display: none;
}
}
.design-mini-panels {
margin-top: -23px !important;
.design-mini-panel {
.ant-card-body {
padding: 16px 16px 20px;
.ant-card-meta-title {
margin-bottom: 4px;
font-size: 18px;
}
}
}
}
}
html.en-us {
.design-card.main-card {
line-height: 22px;
}
}