mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
60938f3e19
Previously, the rounded image border would not scale properly with different aspect ratios as the img object changed its own aspect ratio
51 lines
867 B
CSS
51 lines
867 B
CSS
.buttons,
|
|
.main .profile {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.main .profile {
|
|
align-items: center;
|
|
min-height: calc(100vh - var(--header-height) - var(--footer-height) - (var(--gap) * 2));
|
|
text-align: center;
|
|
}
|
|
|
|
.profile .profile_inner h1 {
|
|
padding: 12px 0;
|
|
}
|
|
|
|
.profile img {
|
|
display: inline-table;
|
|
border-radius: 50%;
|
|
pointer-events: none;
|
|
width: auto;
|
|
height: auto;
|
|
border-radius: 50%;
|
|
pointer-events: none;
|
|
-webkit-border-radius: 50%;
|
|
-moz-border-radius: 50%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.buttons {
|
|
flex-wrap: wrap;
|
|
max-width: 400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.button {
|
|
background: var(--tertiary);
|
|
border-radius: var(--radius);
|
|
margin: 8px;
|
|
padding: 6px;
|
|
transition: transform 0.1s;
|
|
}
|
|
|
|
.button-inner {
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.button:active {
|
|
transform: scale(0.96);
|
|
}
|