Skip to content

Commit 6509e46

Browse files
authored
Merge pull request #158 from Brainhack-Donostia/BHD2025
made images circular now despite if source is square or not
2 parents 02aeec1 + e584466 commit 6509e46

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

_includes/css/agency.css

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -502,20 +502,27 @@ section h3.section-subheading {
502502
}
503503
504504
.timeline>li .timeline-image {
505-
z-index: 100;
506-
position: absolute;
507-
left: 0;
508-
width: 80px;
509-
height: 80px;
510-
margin-left: 0;
511-
border: 7px solid #f1f1f1;
512-
border-radius: 100%;
513-
text-align: justify;
514-
text-align-last:center;
515-
color: #fff;
516-
background-color: #000;
505+
position: absolute;
506+
left: 0;
507+
width: 170px;
508+
height: 170px;
509+
margin-left: 0;
510+
border: 7px solid #f1f1f1;
511+
border-radius: 50%;
512+
background-color: #000;
513+
display: flex;
514+
align-items: center;
515+
justify-content: center;
516+
overflow: hidden;
517+
z-index: 100;}
518+
519+
.timeline>li .timeline-image img {
520+
width: 100%;
521+
height: 100%;
522+
object-fit: cover; /* Crops to fill the circle */
517523
}
518524
525+
519526
.timeline>li .timeline-image h4 {
520527
margin-top: 12px;
521528
font-size: 10px;

0 commit comments

Comments
 (0)