<template>
|
<div style="display: flex;" class="link-box">
|
<!-- <a href="#" target="_blank" class="no-underline"> -->
|
<a href="#" class="no-underline">
|
<div class="thumb">
|
<img width="200" height="200" src="https://cdn.jsdelivr.net/gh/Musenxi/CDN/长野.jpg" alt="长野 の BLOG">
|
</div>
|
<div class="content">
|
<p class="title">
|
长野 の BLOG
|
</p>
|
</div>
|
</a>
|
<a href="#" class="no-underline">
|
<div class="thumb">
|
<img width="200" height="200" src="https://cdn.jsdelivr.net/gh/Musenxi/CDN/长野.jpg" alt="长野 の BLOG">
|
</div>
|
<div class="content">
|
<p class="title">
|
长野 の BLOG
|
</p>
|
</div>
|
</a>
|
<a href="#" class="no-underline">
|
<div class="thumb">
|
<img width="200" height="200" src="https://cdn.jsdelivr.net/gh/Musenxi/CDN/长野.jpg" alt="长野 の BLOG">
|
</div>
|
<div class="content">
|
<p class="title">
|
长野 の BLOG
|
</p>
|
</div>
|
</a>
|
|
</div>
|
</template>
|
|
<script>
|
</script>
|
|
</script>
|
|
<style lang="less">
|
.myFriend {
|
a {
|
padding: 10px;
|
}
|
}
|
|
.link-box a {
|
width: 33.75rem;
|
background: #fff;
|
float: left;
|
margin: 0 0 4.375rem;
|
color: #2E2E2E;
|
text-decoration: none;
|
border-bottom: none;
|
border-radius: .25rem;
|
overflow: hidden;
|
-webkit-touch-callout: none;
|
-webkit-user-select: none;
|
-moz-user-select: none;
|
-ms-user-select: none;
|
user-select: none;
|
// -moz-box-shadow: 0 0.0625rem 0.0625rem rgba(0, 0, 0, 0.1);
|
-webkit-box-shadow: 0 3px.0625rem 0.0625rem #0000001a;
|
-moz-box-shadow: 0 3px 0.0625rem #0000001a;
|
box-shadow: 0 3px 0.0625rem #0000001a;
|
-webkit-transform: translate3d(0, 0, 0);
|
-moz-transform: translate3d(0, 0, 0);
|
-ms-transform: translate3d(0, 0, 0);
|
-o-transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
-webkit-transition: .3s;
|
-moz-transition: .3s;
|
-ms-transition: .3s;
|
-o-transition: .3s;
|
transition: .3s;
|
}
|
|
.link-box a:hover:after {
|
left: 0;
|
width: 100%;
|
-webkit-transition: width 350ms;
|
-moz-transition: width 350ms;
|
-ms-transition: width 350ms;
|
-o-transition: width 350ms;
|
transition: width 350ms;
|
}
|
|
.link-box a .thumb {
|
font-size: 0;
|
overflow: hidden;
|
background-color: #fff;
|
margin: 0;
|
border-top-left-radius: .25rem;
|
border-top-right-radius: .25rem;
|
}
|
|
.link-box a .thumb img {
|
width: 100%;
|
height: auto;
|
position: relative;
|
margin: 0;
|
padding: 0;
|
-webkit-transition: .4s;
|
-moz-transition: .4s;
|
-ms-transition: .4s;
|
-o-transition: .4s;
|
transition: .4s;
|
}
|
|
.link-box a .content {
|
text-align: center;
|
background-color: #fff;
|
}
|
|
.link-box a .content .title {
|
text-align: center;
|
padding: 1rem .25rem;
|
font-weight: 500;
|
color: #333;
|
white-space: nowrap;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
margin: 0;
|
}
|
|
.link-box a:hover,
|
.link-box a:active {
|
-webkit-box-shadow: 0 1.375rem 2.6875rem rgba(0, 0, 0, 0.15);
|
-moz-box-shadow: 0 1.375rem 2.6875rem rgba(0, 0, 0, 0.15);
|
box-shadow: 0 1.375rem 2.6875rem rgba(0, 0, 0, 0.15);
|
-webkit-transform: translateY(-0.25rem);
|
-moz-transform: translateY(-0.25rem);
|
-ms-transform: translateY(-0.25rem);
|
-o-transform: translateY(-0.25rem);
|
transform: translateY(-0.25rem);
|
-moz-transform: none;
|
}
|
|
@media screen and (min-width: 1600px) {
|
.link-box a {
|
margin: 0 0.9375rem 3.75rem;
|
width: -webkit-calc(200% / 5 - 1.875rem);
|
width: calc(200% / 5 - 1.875rem);
|
}
|
}
|
|
@media screen and (max-width: 1599px) and (min-width: 768px) {
|
.link-box a {
|
margin: 0 0.9375rem 3.75rem;
|
width: -webkit-calc(150% / 4 - 1.875rem);
|
width: calc(150% / 4 - 1.875rem);
|
}
|
}
|
|
|
|
@media screen and (max-width: 500px) and (min-width: 319px) {
|
.link-box a {
|
margin: 0 0.75rem 1.5rem;
|
width: -webkit-calc(50% - 1.5rem);
|
width: calc(50% - 1.5rem);
|
}
|
}
|
|
@media screen and (max-width: 767px) and (min-width: 501px) {
|
.link-box a {
|
margin: 0 0.9375rem 3.75rem;
|
width: -webkit-calc(100% / 3 - 1.875rem);
|
width: calc(100% / 3 - 1.875rem);
|
}
|
}
|
</style>
|