www/src/layouts/partials/package-thumbnail.html

104 lines
1.9 KiB
HTML
Raw Normal View History

<div class="card card-thumbnail" style="width: 100%">
2022-09-15 23:13:19 +03:00
<img src="/Images/package-thumb-1.jpg" class="card-img-top" alt="..." style="width:100%; height:100%;">
<div class="card-body thumbnail-body">
2022-09-27 19:30:39 +03:00
<div class="card-text-container">
<p class="card-text">V2.35 >45 installs</p>
</div>
2022-09-15 23:13:19 +03:00
{{- partial "detail-btn.html" . -}}
</div>
2022-09-26 19:34:04 +03:00
<div class="card-body thumbnail-body-mobile">
<button href="#" class="detail-btn-mobile"><i class="icon-enter-arrow"></i>details</button>
</div>
2022-09-15 23:13:19 +03:00
</div>
<style>
@media only screen and (min-width: 576px) {
.card-thumbnail{
2022-09-15 23:13:19 +03:00
background: none;
border-radius: 0px !important;
border: 1px solid #949494;
2022-09-16 19:18:34 +03:00
padding: 1.674vw;
2022-09-15 23:13:19 +03:00
}
.thumbnail-body{
2022-09-15 23:13:19 +03:00
border-radius: 0px !important;
2022-09-16 19:18:34 +03:00
padding: 0vw;
2022-09-15 23:13:19 +03:00
}
.card-img-top{
border-radius: 0px;
2022-09-16 19:18:34 +03:00
margin-bottom: 1.674vw;
2022-09-15 23:13:19 +03:00
}
.card-text{
2022-09-16 19:18:34 +03:00
font-size: 0.781vw;
2022-09-15 23:13:19 +03:00
float:left;
position: relative;
2022-09-16 19:18:34 +03:00
top:0.502vw;
2022-09-15 23:13:19 +03:00
}
2022-09-27 19:30:39 +03:00
.card-text-container{
float:left;
position: relative;
width:48%;
}
.thumbnail-body-mobile{
display: none;
}
}
@media only screen and (max-width: 576px) {
.card-thumbnail{
background: none;
border-radius: 0px !important;
border: none;
}
.thumbnail-body{
border-radius: 0px !important;
padding: 0vw;
2022-09-26 19:34:04 +03:00
display:none;
}
2022-09-26 19:34:04 +03:00
.thumbnail-body-mobile{
background-color: #8000ff;
}
2022-09-26 19:34:04 +03:00
.card-img-top{
border-radius: 0px;
margin-bottom: 0vw;
}
.detail-btn-mobile{
background:none;
border:none;
color: white;
font-family: "pp-neue-machina", sans-serif;
font-size: 5vw;
width: 100%;
height: 100%;
text-transform: uppercase;
padding-top: 2vw !important;
}
.detail-btn-mobile .icon-enter-arrow{
display: inline-block;
position: relaitve;
margin-right: 2vw;
transition: 0.2s ease-in-out;
}
.detail-btn-mobile:hover .icon-enter-arrow{
display: inline-block;
transform: rotate(-45deg) !important;
}
}
2022-09-15 23:13:19 +03:00
</style>