snort/packages/app/src/Pages/ProfilePage.css

255 lines
3.9 KiB
CSS
Raw Normal View History

2022-12-27 23:46:13 +00:00
.profile {
2023-01-25 18:08:53 +00:00
display: flex;
2023-01-13 22:48:24 +00:00
flex-direction: column;
2023-01-25 18:08:53 +00:00
align-items: flex-start;
2023-01-13 22:48:24 +00:00
}
.profile .banner {
2023-01-25 18:08:53 +00:00
width: 100%;
height: 160px;
object-fit: cover;
margin-bottom: -60px;
z-index: 0;
}
2023-02-05 22:44:31 +00:00
.profile .profile-actions {
position: absolute;
2023-02-06 21:42:47 +00:00
top: 72px;
2023-02-05 22:44:31 +00:00
right: 0;
display: flex;
flex-direction: row;
align-items: center;
}
.profile .icon-actions {
display: flex;
flex-direction: row;
align-items: center;
}
.profile .profile-actions button:not(:last-child) {
margin-right: 8px;
}
.profile .profile-actions button.icon:not(:last-child) {
margin-right: 0;
}
@media (min-width: 520px) {
.profile .banner {
width: 100%;
max-width: 720px;
2023-02-06 21:42:47 +00:00
height: 280px;
2023-02-05 22:44:31 +00:00
}
.profile .profile-actions button.icon:not(:last-child) {
margin-right: 2px;
}
}
2023-01-25 18:08:53 +00:00
.profile .profile-wrapper {
margin: 0 16px;
width: calc(100% - 32px);
display: flex;
flex-direction: column;
align-items: flex-start;
position: relative;
2023-02-06 21:42:47 +00:00
overflow: hidden;
2022-12-27 23:46:13 +00:00
}
2023-01-04 10:47:41 +00:00
.profile p {
white-space: pre-wrap;
2023-01-04 10:47:41 +00:00
}
2023-02-07 13:32:32 +00:00
.details-wrapper > .name > h2 {
2023-01-26 06:51:38 +00:00
margin: 12px 0 0 0;
font-weight: 600;
font-size: 19px;
line-height: 23px;
2023-01-13 22:48:24 +00:00
}
2023-01-25 18:08:53 +00:00
.profile .nip05 {
display: flex;
2023-01-26 06:51:38 +00:00
font-size: 16px;
margin: 0 0 12px 0;
2023-01-25 18:08:53 +00:00
}
2023-02-07 13:32:32 +00:00
.profile-wrapper > .avatar-wrapper {
2023-01-25 18:08:53 +00:00
z-index: 1;
2023-01-10 07:09:09 +00:00
}
2023-02-07 13:32:32 +00:00
.profile-wrapper > .avatar-wrapper .avatar {
2023-01-25 18:08:53 +00:00
width: 120px;
height: 120px;
2023-02-06 21:42:47 +00:00
background-image: var(--img-url);
border: 3px solid var(--bg-color);
2023-01-13 22:48:24 +00:00
}
2023-01-25 18:08:53 +00:00
.profile .name {
display: flex;
flex-direction: column;
2023-01-13 22:48:24 +00:00
}
2023-01-10 07:09:09 +00:00
.profile .details {
2023-02-05 22:44:31 +00:00
width: 100%;
color: var(--font-secondary-color);
margin-bottom: 12px;
font-weight: 400;
font-size: 14px;
line-height: 22px;
2023-01-13 22:48:24 +00:00
}
.profile .details p {
word-break: break-word;
2023-01-13 22:48:24 +00:00
}
.profile .details a {
color: var(--highlight);
text-decoration: none;
2023-01-10 07:09:09 +00:00
}
2023-01-15 22:59:28 +00:00
.profile .details a:hover {
text-decoration: underline;
}
.profile .btn-icon {
color: var(--font-color);
padding: 6px;
2023-01-10 07:09:09 +00:00
}
2023-01-13 22:48:24 +00:00
.profile .details-wrapper {
display: flex;
flex-direction: column;
justify-content: space-between;
width: calc(100% - 32px);
2023-01-13 22:48:24 +00:00
}
2023-01-26 06:51:38 +00:00
.profile .details .text {
font-size: 14px;
}
2023-01-25 18:08:53 +00:00
.profile .links {
2023-02-06 21:42:47 +00:00
font-size: 14px;
2023-01-25 18:08:53 +00:00
margin-top: 4px;
margin-left: 2px;
2023-01-26 06:51:38 +00:00
margin-bottom: 12px;
}
2023-01-25 18:08:53 +00:00
.profile .website {
margin: 4px 0;
display: flex;
flex-direction: row;
align-items: center;
}
2023-02-06 21:42:47 +00:00
@media (max-width: 720px) {
.profile .lnurl {
display: none;
}
}
2023-01-25 18:08:53 +00:00
.profile .website a {
color: var(--font-color);
}
2023-01-25 18:08:53 +00:00
.profile .website a {
text-decoration: none;
}
2023-01-25 18:08:53 +00:00
.profile .website a:hover {
text-decoration: underline;
}
2023-01-25 18:08:53 +00:00
.profile .lnurl {
cursor: pointer;
}
2023-01-25 18:08:53 +00:00
.profile .ln-address {
display: flex;
flex-direction: row;
align-items: center;
}
2023-01-25 18:08:53 +00:00
.profile .lnurl:hover {
text-decoration: underline;
}
2023-01-15 22:59:28 +00:00
2023-01-25 18:08:53 +00:00
.profile .lnurl {
overflow: hidden;
text-overflow: ellipsis;
2023-01-15 22:59:28 +00:00
}
2023-01-25 18:08:53 +00:00
.profile .link-icon {
color: var(--highlight);
margin-right: 8px;
2023-01-15 22:59:28 +00:00
}
2023-01-25 18:08:53 +00:00
.profile .link-icon svg {
width: 12px;
height: 12px;
2023-01-15 22:59:28 +00:00
}
2023-01-29 22:11:04 +00:00
.profile .npub {
display: flex;
flex-direction: row;
align-items: center;
}
.qr-modal .modal-body {
width: unset;
2023-02-06 21:42:47 +00:00
margin-top: -120px;
}
.qr-modal .pfp {
flex-direction: column;
align-items: center;
justify-content: center;
}
.qr-modal .pfp .avatar {
width: 48px;
height: 48px;
}
.qr-modal .pfp .avatar-wrapper {
margin: 0 0 8px 0;
}
.qr-modal .pfp .avatar-wrapper .avatar {
border: none;
}
.qr-modal .pfp .username {
text-align: center;
}
.qr-modal canvas {
border-radius: 10px;
2023-01-29 22:11:04 +00:00
}
2023-02-03 21:38:14 +00:00
.profile .zap-amount {
font-weight: normal;
margin-left: 4px;
}
2023-02-10 11:12:11 +00:00
.banner-bg {
width: 1438px;
height: 758px;
position: absolute;
top: -120px;
left: calc(50% - 750px);
background: radial-gradient(circle at top center, rgba(0, 0, 0, 0.7) 0%, #000000 81.25%), var(--img-url);
filter: blur(10px);
z-index: -1;
display: none;
}
2023-02-10 11:12:11 +00:00
.light .banner-bg {
background: radial-gradient(circle at top center, rgba(241, 241, 241, 0.7) 0%, var(--bg-color) 81.25%), var(--img-url);
}
2023-02-10 11:12:11 +00:00
@media (min-width: 1420px) {
.banner-bg {
display: unset;
}
}