snort/src/Pages/ProfilePage.css

221 lines
3.4 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;
mask-image: linear-gradient(to bottom, var(--bg-color) 60%, rgba(0,0,0,0));
-webkit-mask-image: linear-gradient(to bottom, var(--bg-color) 60%, rgba(0,0,0,0));
z-index: 0;
}
.profile .profile-wrapper {
margin: 0 16px;
width: calc(100% - 32px);
display: flex;
flex-direction: column;
align-items: flex-start;
position: relative;
2022-12-27 23:46:13 +00:00
}
2023-01-04 10:47:41 +00:00
.profile p {
white-space: pre-wrap;
}
2023-01-06 15:22:02 +00:00
.profile .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
}
.profile .nip05 .nick {
font-weight: normal;
color: var(--gray-light);
2023-01-06 15:22:02 +00:00
}
2023-01-10 07:09:09 +00:00
.profile .avatar-wrapper {
2023-01-25 18:08:53 +00:00
z-index: 1;
2023-01-10 07:09:09 +00:00
}
2023-01-25 18:08:53 +00:00
.profile .avatar-wrapper .avatar {
width: 120px;
height: 120px;
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-01-13 22:48:24 +00:00
width: 100%;
2023-01-15 22:34:24 +00:00
margin-top: 12px;
2023-01-25 18:08:53 +00:00
background-color: var(--note-bg);
padding: 12px 16px;
border-radius: 16px;
2023-01-26 06:51:38 +00:00
margin: 0 auto;
margin-bottom: 12px;
2023-01-13 22:48:24 +00:00
}
.profile .details p {
word-break: break-word;
}
.profile .details a {
color: var(--highlight);
2023-01-15 22:59:28 +00:00
text-decoration: none;
2023-01-10 07:09:09 +00:00
}
2023-01-15 22:59:28 +00:00
.profile .details a:hover {
2023-01-15 22:34:15 +00:00
text-decoration: underline;
}
.profile .btn-icon {
2023-01-13 22:48:24 +00:00
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;
2023-01-25 18:08:53 +00:00
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 {
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 h3 {
color: var(--font-secondary-color);
font-size: 10px;
letter-spacing: .11em;
font-weight: 600;
line-height: 12px;
text-transform: uppercase;
2023-01-26 06:51:38 +00:00
margin-left: 12px;
}
2023-01-25 18:08:53 +00:00
.profile .website {
margin: 4px 0;
display: flex;
flex-direction: row;
align-items: center;
}
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-25 18:08:53 +00:00
.profile .profile-actions {
position: absolute;
top: 80px;
right: 0;
2023-01-29 22:11:04 +00:00
display: flex;
flex-direction: row;
align-items: center;
}
.profile .icon-actions {
display: flex;
flex-direction: row;
align-items: center;
2023-01-15 22:59:28 +00:00
}
2023-01-25 18:08:53 +00:00
@media (min-width: 520px) {
.profile .profile-actions {
top: 120px;
}
2023-01-15 22:59:28 +00:00
}
2023-01-25 18:08:53 +00:00
.profile .profile-actions button:not(:last-child) {
margin-right: 8px;
2023-01-15 22:59:28 +00:00
}
2023-01-29 22:11:04 +00:00
.profile .profile-actions button.icon:not(:last-child) {
margin-right: 0;
}
2023-01-25 18:08:53 +00:00
@media (min-width: 520px) {
.profile .banner {
width: 100%;
max-width: 720px;
height: 300px;
margin-bottom: -100px;
}
2023-01-29 22:11:04 +00:00
.profile .profile-actions button.icon:not(:last-child) {
margin-right: 2px;
}
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-03 21:38:14 +00:00
.profile .zap-amount {
font-weight: normal;
margin-left: 4px;
}