Moving the rules of authors card to a dedicated css comopoent
This commit is contained in:
parent
1c15d03265
commit
3ca2f0c851
|
|
@ -4,53 +4,7 @@
|
|||
.container {
|
||||
@apply px-0;
|
||||
}
|
||||
.author-card {
|
||||
@apply bg-white p-8 border border-carhop-green-700 mb-0 flex flex-col;
|
||||
|
||||
&--director {
|
||||
@apply bg-primary;
|
||||
p,
|
||||
.author-card__name a,
|
||||
.author-card__bio {
|
||||
@apply text-white;
|
||||
}
|
||||
|
||||
.author-card__email {
|
||||
@apply bg-white text-primary;
|
||||
&:hover {
|
||||
@apply bg-carhop-green-900;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__profile-picture {
|
||||
@apply w-full h-32 object-cover mb-6 border border-carhop-green-700 relative bg-white;
|
||||
|
||||
/* img {
|
||||
@apply object-cover object-center;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
width: calc(100% - 16px);
|
||||
height: calc(100% - 16px);
|
||||
} */
|
||||
}
|
||||
|
||||
&__name {
|
||||
@apply text-2xl font-medium mb-0 uppercase;
|
||||
}
|
||||
|
||||
&__email {
|
||||
@apply mt-4 text-lg;
|
||||
|
||||
&:hover {
|
||||
@apply cta--primary;
|
||||
}
|
||||
}
|
||||
|
||||
&__bio {
|
||||
@apply text-base text-primary text-center leading-relaxed;
|
||||
}
|
||||
}
|
||||
.comity-type {
|
||||
@apply pt-12;
|
||||
|
||||
|
|
|
|||
46
resources/css/components/author-card.css
Normal file
46
resources/css/components/author-card.css
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
.author-card {
|
||||
@apply bg-white p-8 border border-carhop-green-700 mb-0 flex flex-col;
|
||||
|
||||
&--director {
|
||||
@apply bg-primary;
|
||||
p,
|
||||
.author-card__name a,
|
||||
.author-card__bio {
|
||||
@apply text-white;
|
||||
}
|
||||
|
||||
.author-card__email {
|
||||
@apply bg-white text-primary;
|
||||
&:hover {
|
||||
@apply bg-carhop-green-900;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__profile-picture {
|
||||
@apply w-full h-32 object-cover mb-6 border border-carhop-green-700 relative bg-white;
|
||||
}
|
||||
|
||||
&__name {
|
||||
@apply text-2xl font-medium !mb-0 !pb-0 uppercase text-primary;
|
||||
a {
|
||||
@apply !text-primary;
|
||||
}
|
||||
}
|
||||
|
||||
&__email {
|
||||
@apply mt-4 text-lg !normal-case;
|
||||
|
||||
&:is(a) {
|
||||
@apply !text-primary;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@apply !text-white;
|
||||
}
|
||||
}
|
||||
|
||||
&__bio {
|
||||
@apply text-base text-primary text-center leading-relaxed;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user