ant-design/site/theme/template/Home/DesignPage/index.less
二货机器人 36bcaaef85
Add variable.less to support css variable (#31496)
* chore: use varaible.less

* chore: basic primary varaible

* chore: Move to variable

* chore: align active color

* chore: global fix of css variable

* chore: primary colors

* chore: button danger

* chore: btn default error color

* chore: button series

* chore: More examples

* chore: More components

* chore: Form demo

* chore: form style

* fix: Tag & Alert variable

* chore: update footer

* chore: rm tmp code

* chore: transfer

* fix: picker column active color

* chore: Adjust active bg color

* chore: table hover color

* chore: all css variables

* chore: Global using variables

* chore: Test case

* chore: Update test logic

* chore: back of default less

* chore: entry of site use proxy style

* chore: update entry

* chore: split of variables

* refactor: quick dist speed

* fix: site use variable version

* chore: Update less config

* chore: add mv script

* chore: Update repalcement script

* chore: Add inject variables

* chore: Update script

* fix: script path

* chore: Move to component instead

* chore: fix condition

* chore: update config

* chore: Update in less transform

* chore: Modify logic

* chore: change to variables

* chore: Update name

* fix: script name

* chore: do inject

* revert: back of path

* chore: 2 way of generate

* bump tools

* chore: Add auto replacement script

* chore: auto genrate less file

* chore: fix test

* test: More test case

* chore: Update limit config

* test: coverage

* docs: Update doc
2021-09-01 10:56:50 +08:00

198 lines
3.1 KiB
Plaintext

@import (reference) '../../../../../components/style/themes/variable.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 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;
}
}