Files
nostrly.app/public/global.css
mleku 75efd175b3 Implement media handling and theme management enhancements
- Added functions to extract and render media content (images, audio, video) within event posts, improving user engagement with rich media.
- Introduced a theme toggle feature in App.svelte, allowing users to switch between light and dark themes, with preferences saved to localStorage.
- Updated CSS styles for media blocks to ensure responsive design and consistent presentation across different media types.
- Refined event loading logic in NostrFeed to enhance user experience when scrolling through events.
- Improved overall code structure for better maintainability and readability.
2025-10-12 14:29:33 +01:00

80 lines
1.2 KiB
CSS

html, body {
position: relative;
width: 100%;
height: 100%;
}
body {
color: #333;
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Noto Sans",-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
a {
color: rgb(0,100,200);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:visited {
color: rgb(0,80,160);
}
label {
display: block;
}
input, button, select, textarea {
font-family: inherit;
font-size: inherit;
-webkit-padding: 0.4em 0;
padding: 0.4em;
margin: 0 0 0.5em 0;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 2px;
}
input:disabled {
color: #ccc;
}
button {
color: #333;
background-color: #f4f4f4;
outline: none;
}
button:disabled {
color: #999;
}
button:not(:disabled):active {
background-color: #ddd;
}
button:focus {
border-color: #666;
}
/* Global media constraints for @html rendered content */
.image-block img,
.video-block video {
max-width: 32em !important;
width: 100% !important;
height: auto !important;
object-fit: fill !important;
box-sizing: border-box !important;
}
.media-block {
max-width: 32em !important;
width: 100% !important;
box-sizing: border-box !important;
}