Dateien nach "assets/css" hochladen
This commit is contained in:
233
assets/css/teamcard-frontend.css
Normal file
233
assets/css/teamcard-frontend.css
Normal file
@@ -0,0 +1,233 @@
|
||||
/* Grid-Container für die Teamkarten */
|
||||
.teamcard-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 20px;
|
||||
justify-content: flex-start;
|
||||
margin: 30px 0;
|
||||
}
|
||||
|
||||
/* Basis-Stile für alle Teamkarten */
|
||||
.teamcard {
|
||||
background-color: #fff;
|
||||
border-radius: 8px;
|
||||
padding: 20px;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
overflow: hidden; /* Verhindert, dass abgerundete Ecken vom Bild abgeschnitten werden */
|
||||
}
|
||||
|
||||
.teamcard:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.teamcard-image {
|
||||
text-align: center;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.teamcard-image img {
|
||||
max-width: 120px;
|
||||
height: 120px;
|
||||
object-fit: cover; /* Schneidet Bilder zu, ohne sie zu verzerren */
|
||||
border-radius: 50%;
|
||||
border: 3px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.teamcard-content {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.teamcard-name {
|
||||
font-size: 1.2em;
|
||||
font-weight: 600;
|
||||
margin: 0 0 10px 0;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.teamcard-function {
|
||||
font-size: 1em;
|
||||
font-weight: 500;
|
||||
color: #0073aa;
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
|
||||
.teamcard-responsibility {
|
||||
font-size: 0.9em;
|
||||
color: #666;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Spezifische Stile für die Card-Typen */
|
||||
|
||||
/* Standard Card */
|
||||
.teamcard-standard {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Compact Card */
|
||||
.teamcard-compact {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
text-align: left;
|
||||
}
|
||||
.teamcard-compact .teamcard-image {
|
||||
margin-bottom: 0;
|
||||
margin-right: 15px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.teamcard-compact .teamcard-image img {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
.teamcard-compact .teamcard-content {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
/* Featured Card */
|
||||
.teamcard-featured {
|
||||
border: 2px solid #0073aa;
|
||||
background: linear-gradient(145deg, #ffffff, #f9fbff);
|
||||
}
|
||||
.teamcard-featured .teamcard-image img {
|
||||
border-color: #0073aa;
|
||||
}
|
||||
.teamcard-featured .teamcard-name {
|
||||
color: #0073aa;
|
||||
}
|
||||
|
||||
/* --- NEUE STILE FÜR DIE KARTENTYPEN --- */
|
||||
|
||||
/* Flip Card */
|
||||
.teamcard-flip-container {
|
||||
perspective: 1000px; /* Entfernung zum 3D-Effekt */
|
||||
}
|
||||
|
||||
.teamcard-flipper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 320px; /* Feste Höhe, wichtig für den Flip-Effekt */
|
||||
transition: transform 0.8s;
|
||||
transform-style: preserve-3d;
|
||||
}
|
||||
|
||||
.teamcard-flip-container:hover .teamcard-flipper {
|
||||
transform: rotateY(180deg);
|
||||
}
|
||||
|
||||
.teamcard-flip {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
backface-visibility: hidden; /* Rückseite der Elemente verbergen */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 8px;
|
||||
border: 1px solid #eee;
|
||||
}
|
||||
|
||||
.teamcard-front {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.teamcard-back {
|
||||
background-color: #f8f9fa;
|
||||
color: #333;
|
||||
transform: rotateY(180deg);
|
||||
}
|
||||
|
||||
.teamcard-back .teamcard-content {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.teamcard-back .teamcard-responsibility {
|
||||
font-size: 0.9em;
|
||||
line-height: 1.6;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Profile Card */
|
||||
.teamcard-profile {
|
||||
border-radius: 0;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.teamcard-profile-header {
|
||||
height: 180px;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.teamcard-profile-header::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
|
||||
}
|
||||
|
||||
.teamcard-profile-content {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
padding: 20px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.teamcard-profile .teamcard-name {
|
||||
margin: 0;
|
||||
color: #fff;
|
||||
font-size: 1.4em;
|
||||
}
|
||||
|
||||
.teamcard-profile .teamcard-function {
|
||||
margin: 5px 0 0 0;
|
||||
color: #f0f0f0;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.teamcard-profile-body {
|
||||
padding: 20px;
|
||||
background-color: #fff;
|
||||
color: #333;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.teamcard-profile-body .teamcard-responsibility {
|
||||
margin: 0;
|
||||
font-size: 0.9em;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Responsive Anpassungen */
|
||||
@media (max-width: 768px) {
|
||||
.teamcard-grid {
|
||||
justify-content: center;
|
||||
}
|
||||
.teamcard {
|
||||
flex-basis: 100% !important;
|
||||
max-width: 320px;
|
||||
}
|
||||
/* Anpassung der Höhe für Flip-Cards auf kleinen Bildschirmen */
|
||||
.teamcard-flipper {
|
||||
height: 280px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user