mirror of
https://github.com/ION606/bluesky-client.git
synced 2026-05-14 21:26:54 +00:00
added single post viewing
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
display: inline-block; /* makes each card flow naturally into columns */
|
||||
margin-bottom: 16px; /* adds space between items vertically */
|
||||
width: 100%; /* ensures card takes up the column width */
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
@@ -130,6 +131,7 @@
|
||||
margin-top: 12px;
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* repost section styling */
|
||||
@@ -251,6 +253,7 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 10px;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* individual action buttons */
|
||||
@@ -374,3 +377,16 @@
|
||||
background-color: #ffcc00;
|
||||
color: #4e004e;
|
||||
}
|
||||
|
||||
.external-embed-container img {
|
||||
width: -webkit-fill-available;
|
||||
}
|
||||
|
||||
.notallowed {
|
||||
cursor: not-allowed !important;
|
||||
color: #737373 !important;
|
||||
}
|
||||
|
||||
.notallowed:hover {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
@@ -0,0 +1,228 @@
|
||||
/* General Styles */
|
||||
body, html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: 'Arial', sans-serif;
|
||||
background-color: #1a001a; /* Dark purple background */
|
||||
color: #e6e6ff; /* Light text for readability */
|
||||
}
|
||||
|
||||
#post-container {
|
||||
max-width: 700px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* Card Styles */
|
||||
.post-card, .reply-card, .pinned-card {
|
||||
background: #2a002e; /* Slightly lighter purple for cards */
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
|
||||
padding: 16px;
|
||||
margin-bottom: 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Author Section */
|
||||
.author-section {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.card-avatar {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid #ffcc00; /* Golden border */
|
||||
}
|
||||
|
||||
.author-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.author-name {
|
||||
font-weight: bold;
|
||||
font-size: 1.1rem;
|
||||
color: #ffcc00; /* Golden for emphasis */
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.author-handle {
|
||||
font-size: 0.9rem;
|
||||
color: #b399ff; /* Muted light purple */
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Post Content */
|
||||
.post-text {
|
||||
margin: 16px 0;
|
||||
font-size: 1rem;
|
||||
line-height: 1.5;
|
||||
word-wrap: break-word;
|
||||
color: #e6e6ff; /* Standard text color */
|
||||
}
|
||||
|
||||
/* Media Embeds */
|
||||
.post-image, .reply-image {
|
||||
max-width: 100%;
|
||||
border-radius: 8px;
|
||||
margin-top: 12px;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.post-video {
|
||||
max-width: 100%;
|
||||
border-radius: 8px;
|
||||
margin-top: 12px;
|
||||
outline: none;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
/* External Links */
|
||||
.external-embed-container {
|
||||
margin-top: 12px;
|
||||
padding: 10px;
|
||||
border-radius: 8px;
|
||||
background: #3d1c3d;
|
||||
color: #e6e6ff;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.external-embed-title {
|
||||
font-weight: bold;
|
||||
color: #ffcc00;
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
|
||||
.external-embed-description {
|
||||
font-size: 0.9rem;
|
||||
margin: 0 0 8px;
|
||||
color: #b399ff;
|
||||
}
|
||||
|
||||
.external-embed-link {
|
||||
color: #ffcc00;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.external-embed-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.external-embed-container img {
|
||||
width: -webkit-fill-available;
|
||||
}
|
||||
|
||||
/* Interaction buttons */
|
||||
.interaction-section {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.interaction-button {
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 1rem;
|
||||
color: #b399ff; /* Muted light purple for buttons */
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
transition: color 0.3s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
.interaction-button:hover {
|
||||
color: #ffcc00; /* Golden hover effect for buttons */
|
||||
transform: scale(1.1); /* Slightly enlarge button on hover */
|
||||
}
|
||||
|
||||
/* Replies */
|
||||
.reply-card {
|
||||
margin-left: 20px;
|
||||
border-left: 2px solid #4e004e; /* Accent line for threading */
|
||||
padding-left: 16px;
|
||||
background-color: #3d1c3d;
|
||||
}
|
||||
|
||||
/* Pinned Posts */
|
||||
.pinned-card {
|
||||
border: 2px solid #ffcc00; /* Highlight pinned posts */
|
||||
background: #3d1c3d;
|
||||
}
|
||||
|
||||
.pinned-label {
|
||||
font-size: 0.9rem;
|
||||
font-weight: bold;
|
||||
color: #ffcc00;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* Reposts or Shared Posts */
|
||||
.repost-section {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
background: #3d1c3d;
|
||||
padding: 10px;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 12px;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.repost-avatar {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.repost-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.repost-author {
|
||||
font-size: 1rem;
|
||||
font-weight: bold;
|
||||
color: #ffcc00;
|
||||
}
|
||||
|
||||
.repost-text {
|
||||
font-size: 0.85rem;
|
||||
color: #b399ff;
|
||||
}
|
||||
|
||||
/* Threads */
|
||||
.reply-thread {
|
||||
margin-left: 20px;
|
||||
padding-left: 10px;
|
||||
border-left: 2px solid #4e004e;
|
||||
}
|
||||
|
||||
#back-button-container {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
left: 20px;
|
||||
z-index: 1000; /* Ensures it stays on top */
|
||||
}
|
||||
|
||||
#back-button {
|
||||
display: inline-block;
|
||||
padding: 10px 20px;
|
||||
background-color: #4e004e; /* Dark purple background */
|
||||
color: #ffcc00; /* Golden text for contrast */
|
||||
font-size: 1rem;
|
||||
font-weight: bold;
|
||||
border: 2px solid #ffcc00;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
#back-button:hover {
|
||||
background-color: #ffcc00; /* Golden hover effect */
|
||||
color: #4e004e; /* Dark purple text on hover */
|
||||
transform: scale(1.05); /* Slight zoom effect */
|
||||
}
|
||||
+6
-2
@@ -1,10 +1,9 @@
|
||||
|
||||
/* zoom container styles */
|
||||
.zoom-container {
|
||||
top: 5vh;
|
||||
position: fixed;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
/* overflow: hidden; */
|
||||
cursor: pointer;
|
||||
max-height: 90vh;
|
||||
max-width: 90vw;
|
||||
@@ -12,6 +11,10 @@
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* initial image styling */
|
||||
.zoom-video, .zoom-image {
|
||||
max-height: 88vh;
|
||||
@@ -20,6 +23,7 @@
|
||||
cursor: pointer;
|
||||
border-radius: 8px;
|
||||
border: solid 2px lightblue;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
/* styles for full-screen zoomed view */
|
||||
|
||||
Reference in New Issue
Block a user