User:HINK/common.css: Difference between revisions
Jump to navigation
Jump to search
Tag: Undo |
(Replaced content with ".diamond-image { position: relative; width: 150px; →Adjust the width as needed: height: 150px; →Adjust the height as needed: overflow: hidden; margin: 20px; →Adjust the margin as needed: transform: rotate(45deg); →Rotate the container: box-sizing: border-box; border: 2px solid black; →Border width and color: } .diamond-image .thumbinner { width: 100%; height: 100%; overflow: hidden; transform: rotat...") Tag: Replaced |
||
Line 1: | Line 1: | ||
.diamond-image { | .diamond-image { | ||
position: relative; | position: relative; | ||
Line 1,631: | Line 5: | ||
overflow: hidden; | overflow: hidden; | ||
margin: 20px; /* Adjust the margin as needed */ | margin: 20px; /* Adjust the margin as needed */ | ||
transform: rotate(45deg); | transform: rotate(45deg); /* Rotate the container */ | ||
box-sizing: border-box; | box-sizing: border-box; | ||
border: 2px solid black; /* Border width and color */ | border: 2px solid black; /* Border width and color */ | ||
Line 1,637: | Line 11: | ||
.diamond-image .thumbinner { | .diamond-image .thumbinner { | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
overflow: hidden; | overflow: hidden; | ||
transform: rotate(-45deg); /* Rotate the inner container back */ | |||
} | } | ||
Line 1,647: | Line 21: | ||
height: 100%; | height: 100%; | ||
object-fit: cover; /* Ensures the image covers the container */ | object-fit: cover; /* Ensures the image covers the container */ | ||
transform: rotate(0deg); /* Ensure the image remains upright */ | |||
} | } |
Revision as of 21:03, 21 June 2024
.diamond-image {
position: relative;
width: 150px; /* Adjust the width as needed */
height: 150px; /* Adjust the height as needed */
overflow: hidden;
margin: 20px; /* Adjust the margin as needed */
transform: rotate(45deg); /* Rotate the container */
box-sizing: border-box;
border: 2px solid black; /* Border width and color */
}
.diamond-image .thumbinner {
width: 100%;
height: 100%;
overflow: hidden;
transform: rotate(-45deg); /* Rotate the inner container back */
}
.diamond-image .thumbinner img {
width: 100%;
height: 100%;
object-fit: cover; /* Ensures the image covers the container */
transform: rotate(0deg); /* Ensure the image remains upright */
}