mirror of
https://github.com/ivabus/www
synced 2025-06-08 10:50:25 +03:00
Some styling for package labels
This commit is contained in:
parent
044c0a5fe7
commit
60c0fcc784
2 changed files with 71 additions and 29 deletions
|
@ -41,4 +41,4 @@
|
|||
grid-template-columns: auto auto auto auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<figure class="card-img-top" >
|
||||
<img src="{{- .thumb_image_url -}}" alt="{{- .name -}}" style="width:100%; height:100%;">
|
||||
<article class="card-thumb-label">
|
||||
<img src="/Images/tea-logo-no-bg.svg" width="26" alt="tea"/>
|
||||
<i class="icon-tea-logo-iconasset-1"></i>
|
||||
<h3>{{- .name -}}</h3>
|
||||
{{ if not (eq .maintainer "") }}
|
||||
<h4>• {{- .maintainer -}}</h4>
|
||||
|
@ -13,8 +13,8 @@
|
|||
<div class="card-text-container">
|
||||
<p class="card-text">
|
||||
<span class="package-version-no">V {{- .version -}}</span>
|
||||
<!--
|
||||
TODO: uncomment once install counts are not disappointing anymore
|
||||
<!--
|
||||
TODO: uncomment once install counts are not disappointing anymore
|
||||
<br>
|
||||
<span class="package-install-no">>{{- .installs -}} installs</span> -->
|
||||
</p>
|
||||
|
@ -29,37 +29,48 @@
|
|||
</div>
|
||||
|
||||
<style>
|
||||
|
||||
div.card.card-thumbnail{
|
||||
background-color: #1a1a1a;
|
||||
}
|
||||
|
||||
.card-img-top {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.card-thumb-label {
|
||||
position: absolute;
|
||||
background: rgba(255,255,255,0.9);
|
||||
left: 0;
|
||||
bottom: 10px;
|
||||
padding: 10px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.card-thumb-label h3 {
|
||||
color: black;
|
||||
font-size: 1.1em;
|
||||
line-height: 1.1em;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.card-thumb-label h4 {
|
||||
color: black;
|
||||
font-size: 0.9em;
|
||||
line-height: 0.9em;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 576px) {
|
||||
|
||||
.card-thumb-label i{
|
||||
font-size: 1.5vw;
|
||||
}
|
||||
|
||||
.card-thumb-label {
|
||||
position: absolute;
|
||||
background: rgba(255,255,255,0.9);
|
||||
left: 0;
|
||||
bottom: 1.116vw;
|
||||
padding: 1.116vw;
|
||||
text-align: left;
|
||||
width: 90%;
|
||||
height: 60%;
|
||||
}
|
||||
|
||||
.card-thumb-label h3 {
|
||||
color: black;
|
||||
font-size: 1.8vw;
|
||||
line-height: 1.8vw;
|
||||
margin: 0px 0px 0.5vw 0vw;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.card-thumb-label h4 {
|
||||
color: black;
|
||||
font-size: .9vw;
|
||||
line-height: 1vw;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.card-thumbnail{
|
||||
background: none;
|
||||
border-radius: 0px !important;
|
||||
|
@ -99,6 +110,37 @@
|
|||
|
||||
@media only screen and (max-width: 576px) {
|
||||
|
||||
.card-thumb-label i{
|
||||
font-size: 5vw;
|
||||
}
|
||||
|
||||
.card-thumb-label {
|
||||
position: absolute;
|
||||
background: rgba(255,255,255,0.9);
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
padding: 3vw;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
height: 50%;
|
||||
}
|
||||
|
||||
.card-thumb-label h3 {
|
||||
color: black;
|
||||
font-size: 6.8vw;
|
||||
line-height: 6.8vw;
|
||||
margin: 0px 0px 1vw 0vw;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.card-thumb-label h4 {
|
||||
color: black;
|
||||
font-size: 3vw;
|
||||
line-height: 3vw;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.card-thumbnail{
|
||||
background: none;
|
||||
border-radius: 0px !important;
|
||||
|
|
Loading…
Reference in a new issue