6 changed files with 75 additions and 71 deletions
Binary file not shown.
@ -1,59 +0,0 @@ |
|||
.item { |
|||
display: block; |
|||
width: 150px; |
|||
height: 150px; |
|||
overflow: hidden; |
|||
} |
|||
|
|||
.item { |
|||
display: relative; |
|||
background-size: cover !important; |
|||
color: black; |
|||
text-decoration: none; |
|||
overflow: hidden; |
|||
} |
|||
|
|||
.item:hover { |
|||
color: black; |
|||
} |
|||
|
|||
.item img { |
|||
width: 100%; |
|||
height: 100%; |
|||
object-fit: contain; |
|||
} |
|||
|
|||
.item h2 { |
|||
text-align: center; |
|||
} |
|||
|
|||
.item .desc { |
|||
background: rgba(0,100,100,0.75); |
|||
width: 100%; |
|||
height: 100%; |
|||
transition-property: transform; |
|||
transition-duration: 0.2s; |
|||
transition-timing-function: linear; |
|||
border-radius: 5px; |
|||
overflow: hidden; |
|||
} |
|||
|
|||
.item:hover .desc { |
|||
transform: translate(0,-100%); |
|||
} |
|||
|
|||
|
|||
h2 { |
|||
margin: 0; |
|||
} |
|||
|
|||
.flex-container { |
|||
flex-direction: row; |
|||
display: flex; |
|||
flex-wrap: wrap; |
|||
} |
|||
|
|||
.flex-item { |
|||
padding: 10px; |
|||
margin: 0%; |
|||
} |
@ -0,0 +1,58 @@ |
|||
.item { |
|||
display: block; |
|||
width: 150px; |
|||
height: 150px; |
|||
overflow: hidden; |
|||
} |
|||
|
|||
h2 { |
|||
margin: 0; |
|||
} |
|||
|
|||
.flex-container { |
|||
flex-direction: row; |
|||
display: flex; |
|||
flex-wrap: wrap; |
|||
} |
|||
|
|||
.flex-item { |
|||
padding: 10px; |
|||
margin: 0%; |
|||
} |
|||
|
|||
.item { |
|||
display: relative; |
|||
background-size: cover !important; |
|||
color: red; |
|||
text-decoration: none; |
|||
overflow: hidden; |
|||
} |
|||
|
|||
.item:hover { |
|||
color: red; |
|||
} |
|||
|
|||
.item img { |
|||
width: 100%; |
|||
height: 100%; |
|||
object-fit: contain; |
|||
} |
|||
|
|||
.item h2 { |
|||
text-align: center; |
|||
} |
|||
|
|||
.item .desc { |
|||
background: rgba(0, 100, 100, 0.75); |
|||
width: 100%; |
|||
height: 100%; |
|||
transition-property: transform; |
|||
transition-duration: 0.2s; |
|||
transition-timing-function: linear; |
|||
border-radius: 5px; |
|||
overflow: hidden; |
|||
} |
|||
|
|||
.item:hover .desc { |
|||
transform: translate(0, -100%); |
|||
} |
Loading…
Reference in new issue