aboutsummaryrefslogtreecommitdiff
path: root/src/public
diff options
context:
space:
mode:
Diffstat (limited to 'src/public')
-rw-r--r--src/public/styles.css74
1 files changed, 50 insertions, 24 deletions
diff --git a/src/public/styles.css b/src/public/styles.css
index 7a27e82..aa2fff1 100644
--- a/src/public/styles.css
+++ b/src/public/styles.css
@@ -2,6 +2,7 @@
2 2
3body { 3body {
4 font-family: 'Inter', sans-serif; 4 font-family: 'Inter', sans-serif;
5 overflow-x: hidden;
5} 6}
6 7
7main { 8main {
@@ -14,6 +15,7 @@ main {
14.header { 15.header {
15 display: flex; 16 display: flex;
16 flex-direction: row; 17 flex-direction: row;
18 justify-content: center;
17} 19}
18 20
19.footer { 21.footer {
@@ -33,10 +35,17 @@ nav {
33.post, .comments-container, .hero, .header, .footer { 35.post, .comments-container, .hero, .header, .footer {
34 padding: 0.3rem; 36 padding: 0.3rem;
35 flex: 1 1 95%; 37 flex: 1 1 95%;
36 font-size: 1rem;
37 width: 100%; 38 width: 100%;
38} 39}
39 40
41.post {
42 font-size: 1rem;
43}
44
45.comments-container {
46 font-size: 0.8rem;
47}
48
40.info-container, .comment-info-container, .more { 49.info-container, .comment-info-container, .more {
41 color: #777; 50 color: #777;
42 font-size: 0.8rem; 51 font-size: 0.8rem;
@@ -45,26 +54,13 @@ nav {
45 54
46.domain { 55.domain {
47 color: #777; 56 color: #777;
48 font-size: 0.6rem; 57 font-size: 0.8rem;
49} 58}
50 59
51.info-item, .header-item, .footer-item { 60.info-item, .header-item, .footer-item {
52 margin-right: 14px; 61 margin-right: 14px;
53} 62}
54 63
55.header-item, .footer-item {
56 position: relative; /* Needed for positioning the pseudo-element */
57}
58
59.header-item:not(:last-child)::after {
60 content: "ยท"; /* Middle dot as the separator */
61 position: absolute;
62 right: -10px; /* Adjust position as needed */
63 top: 50%;
64 transform: translateY(-50%); /* Center vertically */
65 color: #888; /* Separator color */
66 font-size: 20px; /* Adjust size of the separator */
67}
68 64
69.media-preview img { 65.media-preview img {
70 object-fit: cover; 66 object-fit: cover;
@@ -84,13 +80,18 @@ nav {
84 .post, .comments-container, .hero, .header, .footer { 80 .post, .comments-container, .hero, .header, .footer {
85 flex: 1 1 90%; 81 flex: 1 1 90%;
86 width: 90%; 82 width: 90%;
87 font-size: 1rem; 83 }
84 .post {
85 font-size: 1.3rem;
86 }
87 .comments-container {
88 font-size: 1.1rem;
88 } 89 }
89 .info-container, .comment-info-container, .more { 90 .info-container, .comment-info-container, .more {
90 font-size: 0.9rem; 91 font-size: 1rem;
91 } 92 }
92 .domain { 93 .domain {
93 font-size: 0.9rem; 94 font-size: 1rem;
94 } 95 }
95 .media-preview img, 96 .media-preview img,
96 .media-preview video 97 .media-preview video
@@ -107,13 +108,18 @@ nav {
107 .post, .comments-container, .hero, .header, .footer { 108 .post, .comments-container, .hero, .header, .footer {
108 flex: 1 1 50%; 109 flex: 1 1 50%;
109 width: 50%; 110 width: 50%;
110 font-size: 1rem; 111 }
112 .post {
113 font-size: 1.3rem;
114 }
115 .comments-container {
116 font-size: 1.1rem;
111 } 117 }
112 .info-container, .comment-info-container, .more { 118 .info-container, .comment-info-container, .more {
113 font-size: 0.9rem; 119 font-size: 1rem;
114 } 120 }
115 .domain { 121 .domain {
116 font-size: 0.9rem; 122 font-size: 1rem;
117 } 123 }
118 .media-preview img, 124 .media-preview img,
119 .media-preview video 125 .media-preview video
@@ -154,14 +160,16 @@ nav {
154} 160}
155 161
156.post-container { 162.post-container {
157 align-self: stretch;
158 display: flex; 163 display: flex;
164 flex-direction: row;
165 align-items: center;
159} 166}
160 167
161.post-text { 168.post-text {
169 display: flex;
162 flex-direction: column; 170 flex-direction: column;
163 align-items: stretch; 171 align-items: stretch;
164 justify-content: space-between; 172 justify-content: space-evenly;
165} 173}
166 174
167.media-preview { 175.media-preview {
@@ -178,6 +186,7 @@ nav {
178 display: block; 186 display: block;
179 margin: 0 auto; 187 margin: 0 auto;
180 max-width: 85%; 188 max-width: 85%;
189 padding: 5px;
181} 190}
182 191
183.title-container,.info-container, .comment-info-container { 192.title-container,.info-container, .comment-info-container {
@@ -211,7 +220,7 @@ pre, code {
211} 220}
212 221
213pre { 222pre {
214 padding: 10px; 223 padding: 10px 0px 10px 10px;
215 width: 100%; 224 width: 100%;
216 overflow: auto; 225 overflow: auto;
217} 226}
@@ -242,3 +251,20 @@ a {
242 overflow-wrap: break-word; 251 overflow-wrap: break-word;
243} 252}
244 253
254.gallery {
255 display: flex;
256 overflow-x: auto;
257 scroll-snap-type: x mandatory;
258 padding: 5px;
259}
260
261.gallery-item {
262 flex: 0 0 auto;
263 scroll-snap-align: start;
264 margin-right: 10px;
265}
266
267.gallery img {
268 width: auto;
269 height: 300px;
270}