crawlnicle/frontend/css/styles.css

289 lines
3.9 KiB
CSS
Raw Normal View History

/* Global */
html {
font-size: 18px;
line-height: 1.6em;
2023-07-08 05:05:49 +00:00
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body {
display: flex;
flex-direction: column;
margin: 8px;
height: calc(100vh - 16px);
}
main#main-content {
flex-grow: 1;
margin: 0px 8px;
}
2023-09-02 18:01:18 +00:00
.htmx-indicator {
display: none;
}
.htmx-request .list-loading {
display: block;
}
.htmx-request.list-loading {
display: block;
}
.list-loading {
margin: 24px auto;
}
img.loading {
filter: invert(100%);
max-width: 64px;
}
/* Header */
header.header nav {
display: flex;
flex-direction: row;
align-items: baseline;
}
header.header nav h1 {
margin: 0;
}
header.header nav a {
text-decoration: none;
}
header.header nav ul {
display: flex;
flex-direction: row;
list-style: none;
margin: 0;
padding: 0;
}
header.header nav ul li {
margin-left: 16px;
}
2023-09-25 05:35:26 +00:00
header.header nav .auth {
margin-left: auto;
}
2023-09-02 00:13:44 +00:00
/* Footer */
footer.footer {
text-align: center;
margin-top: 64px;
margin-bottom: 8px;
2023-09-02 00:13:44 +00:00
}
footer.footer hr {
width: 64px;
margin-bottom: 16px;
}
/* Home */
ul.entries {
list-style: none;
margin: 24px 8px;
padding: 0;
2023-07-06 01:14:31 +00:00
font-size: 16px;
}
li.entry {
margin-bottom: 8px;
}
2023-06-27 18:03:52 +00:00
a.entry-link {
2023-07-08 05:05:49 +00:00
text-decoration: none;
}
em.entry-link-domain {
2023-06-27 18:03:52 +00:00
margin-left: 8px;
color: rgba(0, 0, 0, 0.75);
}
/* Log */
pre#log {
font-size: 12px;
line-height: 1.2em;
}
/* Entry */
article {
max-width: 35em;
2023-07-08 05:05:49 +00:00
margin: 24px auto;
font-size: 18px;
}
2023-08-30 03:36:05 +00:00
article .title {
line-height: 1.3;
}
article span.published {
font-size: 16px;
line-height: 1.2em;
}
article img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
}
2023-07-08 05:05:49 +00:00
/* Feeds */
span.error {
color: crimson;
}
div.feeds {
display: grid;
grid-template-columns: minmax(auto, 1fr) minmax(200px, 500px);
grid-template-areas: 'feeds add-feed';
grid-gap: 24px;
}
@media (max-width: 768px) {
div.feeds {
grid-template-columns: minmax(0, 1fr);
grid-template-areas: 'feeds' 'add-feed';
}
}
2023-07-15 06:12:59 +00:00
.feeds-list {
2023-07-08 05:05:49 +00:00
grid-area: 'feeds';
list-style: none;
padding: 0;
margin-left: 8px;
}
ul#feeds li {
margin-bottom: 8px;
}
ul#feeds li a {
text-decoration: none;
}
div.add-feed {
grid-area: 'add-feed';
}
form.feed-form .form-grid {
2023-07-08 05:05:49 +00:00
display: grid;
grid-template-columns: fit-content(100%) minmax(100px, 400px);
grid-gap: 16px;
width: 100%;
margin-bottom: 32px;
2023-07-08 05:05:49 +00:00
}
form.feed-form .form-grid label {
2023-07-08 05:05:49 +00:00
font-size: 16px;
font-weight: bold;
grid-column: 1 / 2;
}
form.feed-form .form-grid input, form.feed-form .form-grid textarea {
2023-07-08 05:05:49 +00:00
font-size: 14px;
grid-column: 2 / 3;
}
form.feed-form .form-grid textarea {
2023-07-08 05:05:49 +00:00
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
resize: vertical;
}
form.feed-form .form-grid button {
2023-07-08 05:05:49 +00:00
font-size: 14px;
2023-07-08 05:58:33 +00:00
padding: 4px 8px;
2023-09-25 05:35:26 +00:00
grid-column: 3 / 3;
2023-07-08 05:05:49 +00:00
}
ul.stream-messages {
list-style: none;
padding: 0;
margin: 0;
overflow-x: hidden;
white-space: nowrap;
}
ul.stream-messages li {
overflow: hidden;
white-space: no-wrap;
text-overflow: ellipsis;
}
/* Feed */
header.feed-header {
display: flex;
flex-direction: row;
align-items: center;
}
header.feed-header button {
font-size: 14px;
2023-07-08 05:58:33 +00:00
padding: 4px 8px;
margin-left: 24px;
}
2023-09-25 05:35:26 +00:00
/* Register & Login */
.center-horizontal {
width: fit-content;
margin: 0px auto;
}
.center-text {
text-align: center;
}
2023-09-25 05:35:26 +00:00
.auth-form-grid {
display: grid;
grid-template-columns: fit-content(100%) minmax(100px, 400px);
grid-gap: 16px;
2023-09-30 00:56:43 +00:00
margin: 16px auto;
2023-09-25 05:35:26 +00:00
margin-bottom: 32px;
2023-09-30 00:56:43 +00:00
width: fit-content;
2023-09-25 05:35:26 +00:00
}
.auth-form-grid label {
font-size: 16px;
font-weight: bold;
grid-column: 1;
text-align: right;
}
.auth-form-grid input {
font-size: 16px;
grid-column: 2;
}
.auth-form-grid button {
font-size: 14px;
padding: 4px 8px;
grid-column: 2;
margin-left: auto;
}
2023-10-13 12:07:38 +00:00
.auth-form-grid .forgot-password {
grid-column: 2;
margin-left: auto;
}
2023-09-25 05:35:26 +00:00
.auth-form-grid span.error {
font-size: 16px;
grid-column: 2 / 3;
}
2023-09-30 03:48:37 +00:00
.readable-width {
max-width: 600px;
}