ant-design/site/theme/template/Resources/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

139 lines
2.6 KiB
Plaintext

@import (reference) '../../style/themes/index.less';
@ArticleMaxWidth: 1208px;
@resource-padding: 40px;
@resource-padding-xs: 24px;
#resources-page {
article {
padding: 0 @resource-padding;
// Title
.title-region {
margin: 0 -@resource-padding;
padding: 0 @resource-padding;
overflow: hidden;
background: url('https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*y_r7RogIG1wAAAAAAAAAAABkARQnAQ');
background-size: cover;
h1 {
max-width: @ArticleMaxWidth;
margin: 56px auto 16px;
font-size: 38px;
line-height: 46px;
}
.markdown {
max-width: @ArticleMaxWidth;
margin: 0 auto 56px;
font-weight: 200;
font-size: 16px;
line-height: 24px;
}
}
// Content
> .markdown {
max-width: @ArticleMaxWidth;
margin: 0 auto;
> p {
margin-bottom: 56px;
}
}
h2 {
margin-top: 124px;
color: #314659;
font-weight: lighter;
font-size: 30px;
line-height: 38px;
&:first-child {
margin-top: 88px;
}
}
h3 {
margin-top: 56px;
font-weight: 400;
font-size: 24px;
line-height: 32px;
}
p {
color: #697b8c;
}
}
.resource-cards {
.resource-card {
display: flex;
flex-direction: column;
height: 100%;
color: inherit;
list-style: none;
border: 1px solid #e6e6e6;
border-radius: 2px;
cursor: pointer;
transition: box-shadow 0.3s;
&:hover {
box-shadow: @shadow-2;
}
.resource-card-image {
width: calc(100% + 2px);
max-width: none;
height: 184px;
margin: -1px -1px 0;
object-fit: cover;
}
.resource-card-title {
margin: 16px 20px 8px;
color: #0d1a26;
font-size: 20px;
line-height: 28px;
}
.resource-card-description {
margin: 0 20px 20px;
color: #697b8c;
font-size: 14px;
line-height: 22px;
}
}
}
footer {
margin-top: 176px;
.rc-footer-container {
max-width: @ArticleMaxWidth;
margin: 0 auto;
padding-right: 0;
padding-left: 0;
}
}
}
@media only screen and (max-width: 767.99px) {
#resources-page {
article {
padding: 0 @resource-padding-xs;
// Title
.title-region {
margin: 0 -@resource-padding-xs;
padding: 0 @resource-padding-xs;
}
}
.ant-col {
padding-top: 16px !important;
padding-bottom: 16px !important;
}
}
}