422 lines
No EOL
7.8 KiB
CSS
422 lines
No EOL
7.8 KiB
CSS
/* Generic Default Theme for pds-dash */
|
|
|
|
:root {
|
|
/* Color overrides, edit to whatever you want */
|
|
--link-color: #3b82f6;
|
|
--link-hover-color: #2563eb;
|
|
--time-color: #8b5cf6;
|
|
--background-color: #f9fafb;
|
|
--header-background-color: #ffffff;
|
|
--content-background-color: #ffffff;
|
|
--text-color: #1f2937;
|
|
--border-color: #e5e7eb;
|
|
--indicator-inactive-color: #d1d5db;
|
|
--indicator-active-color: #6366f1;
|
|
--card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
--hover-bg: #f3f4f6;
|
|
--button-bg: #f9fafb;
|
|
--button-hover: #f3f4f6;
|
|
}
|
|
|
|
|
|
body {
|
|
margin: 0;
|
|
display: flex;
|
|
place-items: center;
|
|
min-width: 320px;
|
|
min-height: 100vh;
|
|
background-color: var(--background-color);
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
|
|
font-size: 18px;
|
|
line-height: 1.5;
|
|
color: var(--text-color);
|
|
border-color: var(--border-color);
|
|
overflow-wrap: break-word;
|
|
word-break: break-word;
|
|
hyphens: none;
|
|
}
|
|
|
|
a {
|
|
font-weight: 500;
|
|
color: var(--link-color);
|
|
text-decoration: none;
|
|
transition: color 0.15s ease;
|
|
}
|
|
a:hover {
|
|
color: var(--link-hover-color);
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2.5em;
|
|
line-height: 1.2;
|
|
font-weight: 700;
|
|
}
|
|
|
|
#app {
|
|
max-width: 1400px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
padding: 0;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Post Component */
|
|
#postContainer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-color);
|
|
background-color: var(--content-background-color);
|
|
margin-bottom: 20px;
|
|
overflow-wrap: break-word;
|
|
overflow: hidden;
|
|
box-shadow: var(--card-shadow);
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
#postContainer:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
#postHeader {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: start;
|
|
background-color: var(--header-background-color);
|
|
padding: 12px 16px;
|
|
height: 60px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
font-weight: 600;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
#displayName {
|
|
display: block;
|
|
color: var(--text-color);
|
|
font-size: 1.1em;
|
|
padding: 0;
|
|
margin: 0 0 2px 0;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
width: 100%;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
#handle {
|
|
display: flex;
|
|
align-items: center;
|
|
color: #6b7280;
|
|
font-size: 0.85em;
|
|
font-weight: 400;
|
|
padding: 0;
|
|
margin: 0;
|
|
gap: 8px;
|
|
}
|
|
|
|
#postLink {
|
|
color: var(--time-color);
|
|
font-size: 0.85em;
|
|
padding: 0;
|
|
margin: 0;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
#postContent {
|
|
display: flex;
|
|
text-align: start;
|
|
flex-direction: column;
|
|
padding: 16px;
|
|
background-color: var(--content-background-color);
|
|
color: var(--text-color);
|
|
overflow-wrap: break-word;
|
|
white-space: pre-line;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
#replyingText, #quotingText {
|
|
font-size: 0.8em;
|
|
margin: 0;
|
|
padding: 0 0 10px 0;
|
|
color: #6b7280;
|
|
}
|
|
|
|
#postText {
|
|
margin: 0 0 8px 0;
|
|
padding: 0;
|
|
overflow-wrap: break-word;
|
|
word-break: break-word;
|
|
hyphens: none;
|
|
font-size: 1.05em;
|
|
}
|
|
|
|
#headerText {
|
|
margin-left: 12px;
|
|
font-size: 0.9em;
|
|
text-align: start;
|
|
word-break: break-word;
|
|
max-width: 80%;
|
|
max-height: 95%;
|
|
overflow: hidden;
|
|
align-self: flex-start;
|
|
margin-top: auto;
|
|
margin-bottom: auto;
|
|
}
|
|
|
|
#carouselContainer {
|
|
position: relative;
|
|
width: 100%;
|
|
margin-top: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#carouselControls {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
max-width: 500px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
#carouselIndicators {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.indicator {
|
|
width: 6px;
|
|
height: 6px;
|
|
background-color: var(--indicator-inactive-color);
|
|
border-radius: 50%;
|
|
transition: background-color 0.2s ease, transform 0.2s ease;
|
|
}
|
|
|
|
.indicator.active {
|
|
background-color: var(--indicator-active-color);
|
|
transform: scale(1.3);
|
|
}
|
|
|
|
#prevBtn,
|
|
#nextBtn {
|
|
background-color: var(--button-bg);
|
|
color: var(--text-color);
|
|
border: 1px solid var(--border-color);
|
|
width: 32px;
|
|
height: 32px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: background-color 0.15s ease, transform 0.15s ease;
|
|
font-size: 16px;
|
|
}
|
|
|
|
#prevBtn:hover:not(:disabled),
|
|
#nextBtn:hover:not(:disabled) {
|
|
background-color: var(--button-hover);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
#prevBtn:disabled,
|
|
#nextBtn:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
#embedVideo {
|
|
width: 100%;
|
|
max-width: 500px;
|
|
margin-top: 12px;
|
|
align-self: center;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#embedImages {
|
|
min-width: min(100%, 500px);
|
|
max-width: min(100%, 500px);
|
|
max-height: 500px;
|
|
object-fit: contain;
|
|
margin: 0;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* Account Component */
|
|
#accountContainer {
|
|
display: flex;
|
|
text-align: start;
|
|
align-items: center;
|
|
background-color: var(--content-background-color);
|
|
padding: 12px;
|
|
margin-bottom: 15px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
transition: background-color 0.15s ease;
|
|
}
|
|
|
|
#accountContainer:hover {
|
|
background-color: var(--hover-bg);
|
|
}
|
|
|
|
#accountName {
|
|
margin-left: 12px;
|
|
font-size: 0.95em;
|
|
max-width: 80%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-weight: 500;
|
|
}
|
|
|
|
#avatar {
|
|
width: 48px;
|
|
height: 48px;
|
|
margin: 0;
|
|
object-fit: cover;
|
|
border-radius: 50%;
|
|
border: 2px solid white;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* App.Svelte Layout */
|
|
#Content {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background-color: var(--background-color);
|
|
color: var(--text-color);
|
|
gap: 24px;
|
|
}
|
|
|
|
#Feed {
|
|
overflow-y: auto;
|
|
width: 65%;
|
|
height: 100vh;
|
|
padding-right: 16px;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
#spacer {
|
|
padding: 0;
|
|
margin: 0;
|
|
height: 10vh;
|
|
width: 100%;
|
|
}
|
|
|
|
#Account {
|
|
width: 35%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: 1px solid var(--border-color);
|
|
background-color: var(--content-background-color);
|
|
max-height: 80vh;
|
|
padding: 24px;
|
|
margin-left: 16px;
|
|
border-radius: 12px;
|
|
box-shadow: var(--card-shadow);
|
|
}
|
|
|
|
#accountsList {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
height: 100%;
|
|
width: 100%;
|
|
padding: 8px 0;
|
|
margin: 0;
|
|
}
|
|
|
|
#Header {
|
|
text-align: center;
|
|
font-size: 1.8em;
|
|
margin-bottom: 16px;
|
|
font-weight: 700;
|
|
background: linear-gradient(to right, #3b82f6, #8b5cf6);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
/* Mobile Styles */
|
|
@media screen and (max-width: 768px) {
|
|
#Content {
|
|
flex-direction: column;
|
|
width: auto;
|
|
padding: 12px;
|
|
margin-top: 0;
|
|
}
|
|
|
|
#Account {
|
|
width: calc(100% - 32px);
|
|
padding: 16px;
|
|
margin-bottom: 20px;
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
height: auto;
|
|
order: -1;
|
|
}
|
|
|
|
#Feed {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow-y: visible;
|
|
}
|
|
|
|
#spacer {
|
|
height: 5vh;
|
|
}
|
|
|
|
body {
|
|
font-size: 16px;
|
|
}
|
|
|
|
#postHeader {
|
|
padding: 10px;
|
|
height: auto;
|
|
min-height: 50px;
|
|
}
|
|
}
|
|
|
|
/* Scrollbar Styles */
|
|
::-webkit-scrollbar {
|
|
width: 0px;
|
|
background: transparent;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: transparent;
|
|
border-radius: 0;
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
border-radius: 0;
|
|
}
|
|
::-webkit-scrollbar-corner {
|
|
background: transparent;
|
|
border-radius: 0;
|
|
}
|
|
::-webkit-scrollbar-button {
|
|
background: transparent;
|
|
border-radius: 0;
|
|
}
|
|
|
|
* {
|
|
scrollbar-width: none;
|
|
scrollbar-color: transparent transparent;
|
|
-ms-overflow-style: none; /* IE and Edge */
|
|
-webkit-overflow-scrolling: touch;
|
|
-webkit-scrollbar: none; /* Safari */
|
|
} |