Files
dandelion/static/main.css
2024-11-08 09:46:19 -08:00

223 lines
4.1 KiB
CSS

@media (prefers-reduced-motion) {
/* styles to apply if a user's device settings are set to reduced motion */
}
:root {
--main-bg-color: white;
--border-color: rgb(132, 136, 138);
--edge-color: rgb(60, 60, 60);
--main-fg-color: black;
--highlight-fg-color: rgb(255, 255, 255);
--link-color: rgb(29, 155, 240);
}
@media (prefers-color-scheme: dark) {
:root {
--main-bg-color: black;
--border-color: rgb(132, 136, 138);
--edge-color: rgb(60, 60, 60);
--main-fg-color: rgb(202, 208, 211);
--highlight-fg-color: rgb(255, 255, 255);
--link-color: rgb(29, 155, 240);
}
}
body {
font-family: sans-serif;
color: var(--main-fg-color);
background-color: var(--main-bg-color);
margin: 0px;
}
hr {
border-color: rgb(60, 60, 60);
}
.form_field {
font-size: medium;
font-family: sans-serif;
background-color: var(--edge-color);
color: var(--main-fg-color);
width: 100%;
box-sizing: border-box;
padding-left: 5px;
padding-right: 5px;
border: 1px solid var(--border-color);
resize: vertical;
border-radius: 20px;
}
#textarea_post {
font-size: medium;
font-family: sans-serif;
background-color: var(--main-bg-color);
color: var(--main-fg-color);
width: 100%;
box-sizing: border-box;
padding-left: 30px;
padding-right: 30px;
padding-top: 10px;
border: 1px solid var(--border-color);
resize: vertical;
border-radius: 40px;
}
.flex-container {
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
padding: 0px;
/* Add some padding around the flex container */
}
.content {
max-width: 600px;
/* Your preferred max width for the content */
flex: 1;
/* Shorthand for flex-grow, flex-shrink and flex-basis */
min-width: 300px;
/* Minimum width the content can shrink to */
padding: 20px;
box-shadow: 0 0 5px var(--edge-color);
text-align: left;
overflow-x: hidden;
/* Hide horizontal overflow inside the flex container */
line-height: 1.3;
}
.embed {
max-width: 800px;
border-color: red;
border: 1px, solid;
padding: 20px;
}
.postImage {
width: 100%;
}
#log {
font-family: monospace;
text-wrap: nowrap;
font-size: 10px;
margin-bottom: 20px;
height: 150px;
width: 100%;
}
.right {
text-align: right;
}
#buttons {
margin-left: 40px;
}
#button_post {
margin-right: 40px;
}
a {
color: var(--link-color);
}
#ddln_logo_button {
width: 32px;
height: 32px;
image-rendering: pixelated;
background-image: url('/static/favicon.ico');
background-repeat: no-repeat;
background-size: cover;
}
@media (prefers-reduced-motion) {
#ddln_logo_button {
width: 32px;
height: 32px;
image-rendering: pixelated;
background-image: url('/static/favicon.ico');
background-repeat: no-repeat;
background-size: cover;
}
}
.logo {
width: 32px;
height: 32px;
image-rendering: pixelated;
background-image: url('/static/favicon.ico');
background-repeat: no-repeat;
background-size: cover;
}
#torrent-content {
border: solid 1px;
width: 800px;
}
.img-button {
cursor: pointer;
}
button,
.button {
font-size: 12px;
background-color: var(--main-bg-color);
border-radius: 10px;
padding-left: 10px;
padding-right: 10px;
padding-top: 5px;
padding-bottom: 5px;
margin-left: 5px;
color: var(--highlight-fg-color);
/* border:solid 1px white; */
border: 1px solid var(--border-color);
color: var(--main-fg-color);
cursor: pointer;
}
.button-big {
font-size: large;
}
video {
width: 100%
}
iframe {
width: 100%;
/* display:none; */
}
.qrcode_image {
background-color: var(--highlight-fg-color);
padding: 10px;
}
#ids {
font-size: xx-small;
}
#peer_display {
width: 100%;
height: 300px;
}
#compose {
display: none
}
.username {
color: var(--main-fg-color);
text-decoration: none;
}
.username:hover {
text-decoration: underline;
}