diff options
| author | Elias Haugsbakk <[email protected]> | 2026-07-22 14:14:24 +0200 |
|---|---|---|
| committer | Elias Haugsbakk <[email protected]> | 2026-07-22 14:14:24 +0200 |
| commit | 5ac83efd59ab85d0bdf82d5847fe9fe0b11232d9 (patch) | |
| tree | d45dde720f638853695940b79a6eb6a2d978ded8 /clams-server/src/main/resources/public/css/posts.css | |
| parent | 8d86458282efae6c3fc26ab8fb4bd61d1a4e01e3 (diff) | |
update article to post on the backend and blog on the frontend
Diffstat (limited to 'clams-server/src/main/resources/public/css/posts.css')
| -rw-r--r-- | clams-server/src/main/resources/public/css/posts.css | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/clams-server/src/main/resources/public/css/posts.css b/clams-server/src/main/resources/public/css/posts.css new file mode 100644 index 0000000..f6b1565 --- /dev/null +++ b/clams-server/src/main/resources/public/css/posts.css @@ -0,0 +1,125 @@ +.intro-text { + text-align: center; + max-width: 40ch; + margin: 0 auto 1.8rem auto; +} + +.posts-section { + margin-bottom: 3.8rem; +} + +.search-form { + text-align: center; + margin-bottom: 2.4rem; +} + +.search-form input { + font-family: var(--font-serif), serif; + padding: 0.4rem 0.6rem; + border: 1px solid var(--border-color); + border-radius: 4px; + background: transparent; + color: var(--text-color); + width: 11.2rem; + font-size: 0.8rem; +} + +.search-form button { + margin-left: 0.2rem; +} + +.year-accordion { + margin-bottom: 1.5rem; + cursor: pointer; +} + +.year-toggle { + font-size: 1.25rem; + font-weight: bold; + list-style: none; + margin-bottom: 0.5rem; + transition: color 0.2s ease; +} + +.year-toggle::-webkit-details-marker { + display: none; +} + +.year-toggle:hover { + color: var(--accent-color) +} + +.post-list { + margin-top: 0.625rem; + padding-left: 2.2rem !important; + border-left: 2px solid var(--border-color); +} + +.post-list-item, +.search-result-item { + margin-bottom: 0.8rem; + font-size: 1rem; + line-height: 1.6; +} + +.post-list a, +.search-result-item a { + font-size: 1rem; + font-weight: normal; +} + +.post-date { + display: inline-block; + font-size: 0.9rem; + color: var(--text-color); + opacity: 0.65; + margin-right: 0.9rem; + min-width: 6.8rem; +} + +.featured-desc { + font-weight: normal; + color: var(--text-color); + opacity: 0.85; +} + +.search-results-container { + max-width: 100%; + margin: 1.8rem 0 0 0; +} + +.search-results-list { + list-style-type: none; + margin: 0; + padding: 0 0 0 2.2rem !important; + border-left: 2px solid var(--border-color); +} + +.search-result-item a { + font-size: 1rem; +} + +.search-result-summary { + font-weight: normal; + color: var(--text-color); + opacity: 0.85; +} + +.no-results { + padding: 1.2rem; + background: #e8e8e4; + border-radius: 4px; + text-align: center; + font-style: italic; +} + +.back-to-posts { + margin-top: 2.4rem; + display: inline-block; +} + +@media (max-width: 768px) { + .search-form input { + width: 250px; + } +} |
