Merge pull request #347 from teaxyz/packages-crash-ios

Packages Crash on iOS
This commit is contained in:
Chris Waters 2023-05-04 17:35:39 -04:00 committed by GitHub
commit 0e5f86aaee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 129 additions and 196 deletions

View file

@ -8,12 +8,6 @@
{{- partial "package-grid.html" . -}} {{- partial "package-grid.html" . -}}
</span> </span>
<!-- Mobile Package Display -->
<span class="swiper-package-display">
{{- partial "swiper.html" . -}}
</span>
<hr> <hr>
<section> <section>
@ -48,6 +42,128 @@
background-position: scroll; background-position: scroll;
border-radius: 10px; border-radius: 10px;
} }
.detail-btn{
width: 100px !important;
height: 30px;
padding:0px;
}
.package-title{
font-size: 1.5rem;
}
div.card.card-thumbnail{
background-color: #1a1a1a;
transition: all .3s;
}
.card-img-top {
position: relative;
}
.detail-btn{
position: relative;
float:right!important;
right: 0;
}
@media only screen and (min-width: 576px) {
.package-image{
box-shadow: 0px 0px 12px #0c0c0c !important;
}
figure{
transition: 0.2s ease-in-out;
}
figure:hover{
transform: scale(1.02);
}
}
.card-thumb-label i{
}
.card-thumb-label {
position: absolute;
background: rgba(255,255,255,0.9);
left: 0;
bottom: 0vw;
padding: 1.116vw;
text-align: left;
width: 90%;
height: 50%;
}
.card-thumb-label h3 {
color: black;
margin: 0px 0px 0.5vw 0vw;
padding: 0px;
}
.card-thumb-label h4 {
color: black;
margin: 0px;
padding: 0px;
}
.card-thumbnail{
background: none;
border-radius: 0px !important;
border: 1px solid #949494;
}
.thumbnail-body{
display: flex;
border-radius: 0px !important;
padding: 0vw;
justify-content: space-between;
}
.card-img-top{
border-radius: 0px;
}
.card-text{
float:left;
position: relative;
font-size: .8rem;
top:2px;
}
.card-text-container{
float:left;
position: relative;
width:48%;
display: flex;
}
.thumbnail-body-mobile{
display: none;
}
@media only screen and (max-width: 576px) {
.card-thumb-label i{
font-size: 28px;
}
.card-thumb-label h3 {
color: black;
font-size: 28px;
line-height: 36px;
}
.card-thumb-label h4 {
color: black;
font-size: 20px;
line-height: 26px;
}
}
</style> </style>

View file

@ -30,6 +30,11 @@
</section> </section>
<style> <style>
.grid-package-display{
display:block;
}
.container.small { .container.small {
padding-top: 1em; padding-top: 1em;
padding-bottom: 1em; padding-bottom: 1em;
@ -63,7 +68,7 @@
} }
@media only screen and (max-width: 576px) { @media only screen and (max-width: 576px) {
#loadMoreSection { #loadMoreSection {
display: none; display: block;
} }
} }

View file

@ -3,7 +3,7 @@
<div class="p-3"> <div class="p-3">
<figure class="card-img-top" > <figure class="card-img-top" >
<img class="package-image" src="{{- .thumb_image_url -}}" alt="{{- .name -}}" style="width:100%; height:100%;"> <img class="package-image" src="{{- .thumb_image_url -}}" alt="{{- .name -}}" style="width:100%; height:100%;">
<article class="card-thumb-label"> <article class="card-thumb-label p-3">
<i class="icon-tea-logo-iconasset-1 lead" style="color:#1a1a1a;"></i> <i class="icon-tea-logo-iconasset-1 lead" style="color:#1a1a1a;"></i>
<h3 class="package-title mb-1">{{- .name -}}</h3> <h3 class="package-title mb-1">{{- .name -}}</h3>
{{ if not (eq .maintainer "") }} {{ if not (eq .maintainer "") }}
@ -33,191 +33,3 @@
</div> </div>
</div> </div>
</div> </div>
<style>
.detail-btn{
width: 100px !important;
height: 30px;
padding:0px;
}
.package-title{
font-size: 1.5rem;
}
div.card.card-thumbnail{
background-color: #1a1a1a;
transition: all .3s;
}
.card-img-top {
position: relative;
}
.detail-btn{
position: relative;
float:right!important;
right: 0;
}
@media only screen and (min-width: 576px) {
.package-image{
box-shadow: 0px 0px 12px #0c0c0c !important;
}
figure{
transition: 0.2s ease-in-out;
}
figure:hover{
transform: scale(1.02);
}
}
.card-thumb-label i{
}
.card-thumb-label {
position: absolute;
background: rgba(255,255,255,0.9);
left: 0;
bottom: 0vw;
padding: 1.116vw;
text-align: left;
width: 90%;
height: 50%;
}
.card-thumb-label h3 {
color: black;
margin: 0px 0px 0.5vw 0vw;
padding: 0px;
}
.card-thumb-label h4 {
color: black;
margin: 0px;
padding: 0px;
}
.card-thumbnail{
background: none;
border-radius: 0px !important;
border: 1px solid #949494;
}
.thumbnail-body{
display: flex;
border-radius: 0px !important;
padding: 0vw;
justify-content: space-between;
}
.card-img-top{
border-radius: 0px;
}
.card-text{
float:left;
position: relative;
font-size: .8rem;
top:2px;
}
.card-text-container{
float:left;
position: relative;
width:48%;
display: flex;
}
.thumbnail-body-mobile{
display: none;
}
@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;
border: none;
}
.thumbnail-body{
border-radius: 0px !important;
padding: 0vw;
display:none;
}
.thumbnail-body-mobile{
background-color: #8000ff;
padding: 1.25vw 0vw !important;
}
.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: 4vw;
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;
}
}
</style>