Skip to content

Commit

Permalink
fix img mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
lauralog committed Jun 24, 2024
1 parent 8d30de9 commit 3aac2c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/sass/lib/_mixins.sass
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
box-shadow: 0px 10px 13px -7px rgba(0,0,0,0.08)

//IMAGES
@mixin img_cover()
@apply overflow-hidden
@mixin img_cover() // hay que ponérsela al padre de la etiqueta <img>
@apply overflow-hidden flex
img
@apply h-full w-full object-cover

Expand Down
3 changes: 2 additions & 1 deletion app/sass/partials/_team.sass
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

.mate_img
@apply max-h-[230px]
@Iinclude img_cover()
a
@include img_cover()


.mate_info
Expand Down
2 changes: 1 addition & 1 deletion constants/team.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const myteam = {
position: "IP1",
translationKey: "",
// "description":"description",
photo: "/assets/img/team/avatar.png",
photo: "./../assets/img/team/avatar.png",
// "github":"github",
// "email": "mail",
center: "UC3M",
Expand Down

0 comments on commit 3aac2c6

Please sign in to comment.