bixi
Version:
企业级中后台前端解决方案
141 lines (135 loc) • 2.58 kB
text/less
@screen-sm-width: 1135px;
@screen-mobile-width: 450px;
.resource-wrapper {
min-height: calc(100vh - 368px);
padding-top: 40px;
.fix-size {
margin-bottom: 30px;
// > div {
// display: flex;
// }
h1 {
color: #595959;
font-size: 30px;
text-align: left;
}
p {
color: rgba(0, 0, 0, 0.65);
font-size: 16px;
}
.example-item {
position: relative;
display: inline-block;
// flex: 1;
margin-right: 17px;
margin-bottom: 10px;
border: 1px solid #EDF1F7;
cursor: pointer;
&:last-child {
margin-right: 0;
}
&:hover {
box-shadow: 0 0 10px 3px #eee;
}
.icon {
position: absolute;
top: 5px;
right: 5px;
width: 36px;
height: 36px;
background-repeat: no-repeat;
background-size: cover;
&-axure {
background-image: url('/assets/img/resource-icon_axure.svg');
}
&-sketch {
background-image: url('/assets/img/resource-icon_sketch.svg');
}
}
img {
width: 365px;
height: 175px;
}
h1 {
margin: 15px 0 2px;
font-size: 22px;
text-align: center;
}
p {
width: 100%;
text-align: center;
span {
display: inline-block;
padding: 0 5px;
text-align: left;
word-break: break-all;
}
}
}
}
}
.fix-size {
width: 1135px;
height: 100%;
margin: 0 auto;
}
@media (max-width: @screen-sm-width) {
.resource-wrapper {
// height: calc(100vh - 368px);
.fix-size {
width: 720px;
h1 {
font-size: 22px;
}
p {
font-size: 14px;
}
.example-item {
margin-right: 5px;
.icon {
width: 26px;
height: 26px;
}
h1 {
font-size: 18px;
}
img {
width: 350px;
height: 170px;
}
}
}
}
}
@media (max-width: @screen-mobile-width) {
.resource-wrapper {
height: auto;
.fix-size {
width: 100%;
padding: 0 20px;
> div {
display: block;
}
h1 {
font-size: 20px;
}
.example-item {
margin-right: 5px;
.icon {
width: 36px;
height: 36px;
}
h1 {
font-size: 20px;
}
img {
width: 100%;
height: 174px;
}
p {
width: 100%;
}
}
}
}
}