[www] person card style updated and optimized for tablet
This commit is contained in:
1 parent
dbcd89ac7f
commit
31a345b182
1 file changed
+18
-4
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
.PersonCard {
|
.PersonCard {
|
||||||
--person-card-width: 30%;
|
--person-card-width: 30%;
|
||||||
|
--person-card-height: 24em;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -9,7 +10,7 @@
|
|||||||
margin: var(--single-margin) 0;
|
margin: var(--single-margin) 0;
|
||||||
|
|
||||||
width: var(--person-card-width);
|
width: var(--person-card-width);
|
||||||
min-width: 15em;
|
min-width: 10em;
|
||||||
max-width: 30em;
|
max-width: 30em;
|
||||||
|
|
||||||
//border: 1px solid #ccc;
|
//border: 1px solid #ccc;
|
||||||
@@ -18,7 +19,7 @@
|
|||||||
& > a {
|
& > a {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 100%;
|
// height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,11 +27,11 @@
|
|||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 24em;
|
height: var(--person-card-height);
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 24em;
|
height: var(--person-card-height);
|
||||||
|
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
@@ -55,6 +56,7 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//Animation
|
//Animation
|
||||||
|
|
||||||
.PersonCard-Picture {
|
.PersonCard-Picture {
|
||||||
@@ -74,6 +76,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Tablet
|
||||||
|
|
||||||
|
@media screen and (min-width: $tablet-min-width) and (max-width: $tablet-max-width) {
|
||||||
|
.PersonCard {
|
||||||
|
--person-card-height: 20em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (orientation: portrait) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Mobile
|
// Mobile
|
||||||
|
|
||||||
@media (max-width: $mobile-width) {
|
@media (max-width: $mobile-width) {
|
||||||
|
|||||||
Reference in new issue
Block a user