diff --git a/render_event.go b/render_event.go index 0b6c71e..da3f5b0 100644 --- a/render_event.go +++ b/render_event.go @@ -270,7 +270,7 @@ func renderEvent(w http.ResponseWriter, r *http.Request) { err = OtherTemplate.Render(w, &OtherPage{ HeadCommonPartial: HeadCommonPartial{IsProfile: false}, DetailsPartial: DetailsPartial{ - HideDetails: true, + HideDetails: false, CreatedAt: data.createdAt, KindDescription: data.kindDescription, KindNIP: data.kindNIP, diff --git a/static/styles.css b/static/styles.css index 3fb6b54..dabc648 100644 --- a/static/styles.css +++ b/static/styles.css @@ -37,57 +37,6 @@ body { color: #000000 !important; } } -@media (max-width: 580px) { - body.lock { - overflow: hidden; - } -} - -h1, -h2, -h3 { - font-weight: 300; - line-height: 1.1em; - margin-bottom: 0.5em; -} - -.theme--default h2 { - color: #e32a6d; -} -.theme--dark h2 { - color: #e32a6d; -} - -.theme--default a { - color: #373737; -} -.theme--dark a { - color: #fafafa; -} - -p { - margin-top: 0.5em; - text-align: justify; -} -@media (max-width: 580px) { - p { - text-align: left; - } -} - -iframe { - width: 100%; - height: 500px; -} -@media (max-width: 580px) { - iframe { - height: 250px; - } -} - -.h { - display: none; -} .background { position: fixed; @@ -216,33 +165,6 @@ iframe { margin-top: 0rem; } } -.columnA .info-wrapper { - display: none; - font-size: 1.6rem; - margin-bottom: 0.6em; - text-align: center; -} -.columnA .info-wrapper .display { - display: block; - font-size: 1.2rem; -} -.theme--default .columnA .info-wrapper .display { - color: #c9c9c9; -} -.theme--dark .columnA .info-wrapper .display { - color: #969696; -} -@media (max-width: 580px) { - .columnA .info-wrapper { - display: block; - text-align: left; - margin-bottom: 0; - flex-basis: 64%; - max-width: 64%; - overflow: hidden; - font-size: 1.6rem; - } -} .columnA .last_update { font-size: 0.8em; margin-top: 0.5rem; @@ -265,32 +187,6 @@ iframe { flex-shrink: 0; word-wrap: break-word; } -.column_content .info-wrapper { - font-size: 1.6rem; -} -.column_content .info-wrapper h1 { - font-size: 1.6rem; -} -.theme--default .column_content .info-wrapper .display { - color: #c9c9c9; -} -.theme--dark .column_content .info-wrapper .display { - color: #969696; -} -.column_content .info-wrapper .npub { - font-size: 1rem; -} -.theme--default .column_content .info-wrapper .npub { - color: #c9c9c9; -} -.theme--dark .column_content .info-wrapper .npub { - color: #969696; -} -@media (max-width: 580px) { - .column_content .info-wrapper { - display: none; - } -} .column_content .separator { height: 6px; width: 30%; @@ -549,16 +445,6 @@ iframe { .theme--dark .column_content .field.last_notes a.note .header .is_reply { color: #969696; } -.column_content .field.last_notes a.note .content { - flex-basis: 100%; - margin-top: 0.2rem; - max-height: 160px; - overflow: hidden; -} -.column_content .field.last_notes a.note .content.gradient { - -webkit-mask-image: linear-gradient(to bottom, rgb(0, 0, 0) 50%, rgba(0, 0, 0, 0) 100%); - mask-image: linear-gradient(to bottom, rgb(0, 0, 0) 50%, rgba(0, 0, 0, 0) 100%); -} .column_content .field.last_notes a:hover { padding-left: 1rem; margin-left: -1.5rem; @@ -659,13 +545,6 @@ iframe { border-bottom: 1px solid rgba(250, 250, 250, 0.24); padding-bottom: 0.1rem; } -.column_content .field.content, .column_content .field.about { - line-height: 1.4rem; -} -.column_content .field.content img, .column_content .field.about img { - max-width: 100%; - margin: 1rem 0; -} .column_content .field .json { font-family: "Courier New", Courier, monospace; font-size: 0.9rem; @@ -930,31 +809,6 @@ body.other .column_content .profile_intro a { margin-bottom: -0.5rem; } } -body.note .column_content .profile_intro .info-wrapper, -body.other .column_content .profile_intro .info-wrapper { - flex-grow: 1; -} -@media (max-width: 580px) { - body.note .column_content .profile_intro .info-wrapper, - body.other .column_content .profile_intro .info-wrapper { - display: block; - } -} -@media print { - body.note .column_content .profile_intro .info-wrapper, - body.other .column_content .profile_intro .info-wrapper { - font-size: 1rem; - } -} -@media (max-width: 580px) { - body.note .column_content .profile_intro .info-wrapper .name, - body.note .column_content .profile_intro .info-wrapper .npub, - body.other .column_content .profile_intro .info-wrapper .name, - body.other .column_content .profile_intro .info-wrapper .npub { - display: block-inline; - font-size: 0.9rem; - } -} body.note .column_content .published_at, body.note .column_content .reply_of, body.other .column_content .published_at, @@ -993,16 +847,6 @@ body.other .column_content .reply_of { margin-top: 0.2rem; } -.footer { - margin-top: 2rem; - color: #9a9a9a; - font-size: 0.8rem; - text-align: center; -} -.footer a { - color: #9a9a9a; -} - @media print { @page { margin: 2cm 3cm; diff --git a/static/styles.scss b/static/styles.scss index ce7111f..329aad2 100644 --- a/static/styles.scss +++ b/static/styles.scss @@ -116,45 +116,6 @@ body { margin: 0; color: #000000 !important; } - &.lock { - @media (max-width: 580px) { - overflow: hidden; - } - } -} -h1, -h2, -h3 { - font-weight: 300; - line-height: 1.1em; - margin-bottom: 0.5em; -} -h2 { - @include themed() { - color: t($accent1); - } -} -a { - @include themed() { - color: t($base7); - } -} -p { - margin-top: 0.5em; - text-align: justify; - @media (max-width: 580px) { - text-align: left; - } -} -iframe { - width: 100%; - height: 500px; - @media (max-width: 580px) { - height: 250px; - } -} -.h { - display: none; } .background { position: fixed; @@ -262,28 +223,6 @@ iframe { align-items: center; margin-top: 0rem; } - .info-wrapper { - display: none; - font-size: 1.6rem; - margin-bottom: 0.6em; - text-align: center; - .display { - display: block; - font-size: 1.2rem; - @include themed() { - color: t($base4); - } - } - @media (max-width: 580px) { - display: block; - text-align: left; - margin-bottom: 0; - flex-basis: 64%; - max-width: 64%; - overflow: hidden; - font-size: 1.6rem; - } - } .last_update { font-size: 0.8em; margin-top: 0.5rem; @@ -302,26 +241,6 @@ iframe { flex-shrink: 0; word-wrap: break-word; - .info-wrapper { - font-size: 1.6rem; - h1 { - font-size: 1.6rem; - } - .display { - @include themed() { - color: t($base4); - } - } - .npub { - font-size: 1rem; - @include themed() { - color: t($base4); - } - } - @media (max-width: 580px) { - display: none; - } - } .separator { height: 6px; width: 30%; @@ -517,24 +436,6 @@ iframe { } } } - .content { - flex-basis: 100%; - margin-top: 0.2rem; - max-height: 160px; - overflow: hidden; - &.gradient { - -webkit-mask-image: linear-gradient( - to bottom, - rgba(0, 0, 0, 1) 50%, - rgba(0, 0, 0, 0) 100% - ); - mask-image: linear-gradient( - to bottom, - rgba(0, 0, 0, 1) 50%, - rgba(0, 0, 0, 0) 100% - ); - } - } } } a:hover { @@ -619,14 +520,6 @@ iframe { } } } - &.content, - &.about { - line-height: 1.4rem; - img { - max-width: 100%; - margin: 1rem 0; - } - } .json { font-family: 'Courier New', Courier, monospace; font-size: 0.9rem; @@ -848,22 +741,6 @@ body.other { margin-bottom: -0.5rem; } } - .info-wrapper { - flex-grow: 1; - @media (max-width: 580px) { - display: block; - } - @media print { - font-size: 1rem; - } - .name, - .npub { - @media (max-width: 580px) { - display: block-inline; - font-size: 0.9rem; - } - } - } } .published_at, .reply_of { @@ -886,16 +763,6 @@ body.other { } } -.footer { - margin-top: 2rem; - color: $color-base5; - font-size: 0.8rem; - text-align: center; - a { - color: $color-base5; - } -} - @media print { @page { margin: 2cm 3cm; diff --git a/templates/archive.html b/templates/archive.html index 54893af..88e5883 100644 --- a/templates/archive.html +++ b/templates/archive.html @@ -17,22 +17,18 @@ class="flex w-full sm:w-9/12 px-4 justify-between overflow-visible gap-10 lg:gap-20 print:w-full" >
-
- {{.Title}} -   -
+
{{.Title}}
-
-

{{.Title}}

+
+

{{.Title}}

-
{{range $element := .Data }} -
{{$element}}
+
{{$element}}
{{end}}
diff --git a/templates/clients.html b/templates/clients.html index 0343a8e..7b5cc26 100644 --- a/templates/clients.html +++ b/templates/clients.html @@ -1,6 +1,6 @@