ant-design/site/theme/static/preview-img.less

157 lines
2.3 KiB
Plaintext
Raw Normal View History

2016-03-02 17:12:43 +08:00
.preview-image-boxes {
float: right;
2016-10-20 21:00:36 +08:00
margin: 0 0 70px 20px;
2016-05-20 13:23:51 +08:00
width: 608px;
2016-03-15 17:40:31 +08:00
clear: both;
2016-03-17 10:43:50 +08:00
&-with-carousel {
width: 420px;
2016-03-17 15:00:06 +08:00
.preview-image-box img {
2016-03-17 10:43:50 +08:00
padding: 0;
}
}
2016-03-02 17:12:43 +08:00
}
.preview-image-boxes + .preview-image-boxes {
2016-03-15 17:40:31 +08:00
margin-top: -35px;
2016-03-02 17:12:43 +08:00
}
.preview-image-box {
width: 100%;
float: left;
padding: 0 8px;
}
.preview-image-wrapper {
background: #f4f4f4;
padding: 16px;
display: inline-block;
text-align: center;
width: 100%;
position: relative;
}
2016-03-15 17:40:31 +08:00
.preview-image-wrapper.video {
padding: 0;
background: 0;
display: block;
}
.preview-image-wrapper video {
width: 100%;
display: block;
+ svg {
position: absolute;
top: 0;
left: 0;
}
}
2016-03-02 17:12:43 +08:00
.preview-image-wrapper.good:after {
content: '';
width: 100%;
height: 3px;
background: #2db7f5;
display: block;
position: absolute;
bottom: 0;
left: 0;
}
.preview-image-wrapper.bad:after {
content: '';
width: 100%;
height: 3px;
background: #f50;
display: block;
position: absolute;
bottom: 0;
left: 0;
}
.preview-image-title {
font-size: 12px;
margin-top: 5px;
color: #666;
}
.preview-image-description {
font-size: 12px;
margin-top: 2px;
color: #999;
line-height: 1.5;
}
.preview-image-description hr {
margin: 2px 0;
border: 0;
background: none;
}
.preview-image-box img {
cursor: pointer;
max-width: 100%;
transition: all 0.3s ease;
background: #fff;
padding: 12px;
border-radius: 6px;
2016-05-20 13:23:51 +08:00
&.no-padding {
padding: 0;
background: none;
}
2016-03-02 17:12:43 +08:00
}
.preview-image-boxes.pack img {
padding: 0;
box-shadow: 0 1px 0 0 #ddd, 0 3px 0 0 #fff, 0 4px 0 0 #ddd, 0 6px 0 0 #fff, 0 7px 0 0 #ddd;
}
.preview-image-box img:hover {
box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
2016-03-02 17:58:06 +08:00
}
.image-modal {
text-align: center;
2016-03-17 10:43:50 +08:00
&-container {
position: relative;
text-align: center;
}
2016-08-17 18:33:19 +08:00
.ant-carousel {
.slick-slider {
padding-bottom: 24px;
img {
display: inline;
max-width: 100%;
}
}
.slick-dots {
text-align: left;
bottom: -10px;
li {
margin: 0;
}
}
}
2016-05-20 13:23:51 +08:00
2016-08-17 18:33:19 +08:00
.image-modal-single.slick-slider {
padding-bottom: 0;
}
.image-modal-single .slick-dots {
display: none!important;
}
2016-03-02 17:58:06 +08:00
}
2016-03-16 17:46:35 +08:00
.transition-video-player {
float: right;
2016-10-20 21:00:36 +08:00
padding: 0 0 70px 20px;
2016-03-16 17:46:35 +08:00
width: 600px;
.preview-image-wrapper {
padding: 0;
}
2016-05-20 13:23:51 +08:00
}