snort/src/pages/ProfilePage.css

234 lines
4.4 KiB
CSS
Raw Normal View History

2022-12-27 23:46:13 +00:00
.profile {
2023-01-13 22:48:24 +00:00
flex-direction: column;
}
.profile .banner {
width: 100%;
height: 210px;
2023-01-13 23:24:19 +00:00
margin-bottom: -80px;
2023-01-13 22:48:24 +00:00
object-fit: cover;
mask-image: linear-gradient(to bottom, var(--bg-color), rgba(0,0,0,0));
-webkit-mask-image: linear-gradient(to bottom, var(--bg-color), rgba(0,0,0,0));
z-index: 0;
2022-12-27 23:46:13 +00:00
}
2023-01-13 22:48:24 +00:00
@media (min-width: 720px) {
.profile .banner {
width: 100%;
max-width: 720px;
height: 300px;
margin-bottom: -120px;
}
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 {
margin: 0;
2023-01-13 22:48:24 +00:00
}
@media (min-width: 720px) {
.profile .banner {
width: 100%;
max-width: 720px;
height: 300px;
margin-bottom: -120px;
}
2023-01-06 15:22:02 +00:00
}
2023-01-10 07:09:09 +00:00
.profile .avatar-wrapper {
2023-01-13 22:48:24 +00:00
align-self: flex-start;
z-index: 1;
margin-left: 4px;
2023-01-10 07:09:09 +00:00
}
2022-12-28 14:51:33 +00:00
.profile .avatar {
border-radius: 50%;
2023-01-13 22:48:24 +00:00
height: 210px;
width: 210px;
2023-01-13 15:25:58 +00:00
background-image: var(--img-url), var(--gray-gradient);
border: 4px solid transparent;
background-origin: border-box;
background-clip: content-box, border-box;
2022-12-30 14:01:51 +00:00
background-size: cover;
box-sizing: border-box;
2022-12-27 23:46:13 +00:00
}
2023-01-13 15:25:58 +00:00
.profile .avatar[data-domain="snort.social"] {
background-image: var(--img-url), var(--snort-gradient);
}
.profile .avatar[data-domain="nostrplebs.com"] {
background-image: var(--img-url), var(--nostrplebs-gradient);
}
.profile .avatar[data-domain="nostrpurple.com"] {
background-image: var(--img-url), var(--nostrplebs-gradient);
}
.profile .avatar[data-domain="nostr.fan"] {
background-image: var(--img-url), var(--nostrplebs-gradient);
}
.profile .avatar[data-domain="nostrich.zone"] {
background-image: var(--img-url), var(--nostrplebs-gradient);
}
.profile .avatar[data-domain="nostriches.net"] {
background-image: var(--img-url), var(--nostrplebs-gradient);
}
2023-01-13 22:48:24 +00:00
.profile .name {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.profile .name h2 {
margin: 0;
}
2023-01-10 07:09:09 +00:00
.profile .details {
2023-01-13 22:48:24 +00:00
max-width: 680px;
width: 100%;
2023-01-15 22:34:24 +00:00
margin-top: 12px;
2023-01-13 22:48:24 +00:00
}
.profile .details p {
word-break: break-word;
}
.profile .details a {
color: var(--highlight);
2023-01-10 07:09:09 +00:00
}
.profile .website {
color: var(--highlight);
2023-01-15 22:34:15 +00:00
margin: 6px 0;
}
.profile .lnurl {
2023-01-13 22:48:24 +00:00
color: var(--highlight);
2023-01-15 22:34:15 +00:00
margin: 6px 0;
cursor: pointer;
}
.profile .lnurl:hover {
text-decoration: underline;
}
.profile .btn-icon {
2023-01-13 22:48:24 +00:00
color: var(--font-color);
padding: 6px;
margin-left: 4px;
2023-01-10 07:09:09 +00:00
}
.profile .website::before {
content: '🔗 ';
font-size: 10px;
}
2023-01-13 22:48:24 +00:00
.profile .lnurl {
overflow: hidden;
text-overflow: ellipsis;
2023-01-11 11:33:34 +00:00
}
2023-01-13 22:48:24 +00:00
.profile .details-wrapper {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
position: relative;
width: 100%;
margin-left: 4px;
}
.profile .copy .body { font-size: 12px }
@media (min-width: 360px) {
.profile .copy .body { font-size: 14px }
.profile .details-wrapper, .profile .avatar-wrapper { margin-left: 21px; }
2023-01-15 22:34:24 +00:00
.profile .details { width: calc(100% - 21px); }
2023-01-13 22:48:24 +00:00
}
@media (min-width: 720px) {
.profile .details-wrapper, .profile .avatar-wrapper { margin-left: 30px; }
2023-01-15 22:34:24 +00:00
.profile .details { width: calc(100% - 30px); }
2022-12-29 15:21:03 +00:00
}
2023-01-13 22:48:24 +00:00
.profile .follow-button {
position: absolute;
top: -30px;
right: 20px;
}
.profile .message-button {
position: absolute;
top: -30px;
2023-01-14 13:29:05 +00:00
right: 74px;
}
.profile .no-banner .follow-button {
right: 0px;
}
.profile .no-banner .message-button {
2023-01-14 13:29:05 +00:00
right: 54px;
}
.tabs {
2023-01-13 22:48:24 +00:00
display: flex;
justify-content: flex-start;
width: 100%;
margin: 10px 0;
}
.tabs > div {
margin-right: 0;
}
.tab {
margin: 0;
2023-01-11 12:26:36 +00:00
padding: 8px 0;
border-bottom: 3px solid var(--gray-secondary);
}
.tab.active {
border-bottom: 3px solid var(--highlight);
}
.profile .no-banner {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
}
.profile .no-banner .avatar {
height: 256px;
width: 256px;
margin-bottom: 30px;
}
.profile .no-banner .avatar-wrapper, .profile .no-banner .details-wrapper {
margin: 0 auto;
}
@media (min-width: 720px) {
.profile .no-banner {
width: 100%;
flex-direction: row;
justify-content: space-around;
margin-top: 21px;
}
.profile .no-banner .avatar-wrapper {
margin: auto 10px;
}
.profile .no-banner .details-wrapper {
margin-left: 10px;
margin-top: 21px;
2023-01-14 13:55:20 +00:00
max-width: 420px;
}
}