crawlnicle/frontend/css/styles.css

186 lines
2.6 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;
}
/* 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;
}
/* 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;
grid-column: 3 / 4;
2023-07-08 05:05:49 +00:00
}
ul#add-feed-messages {
list-style: none;
padding: 0;
margin: 0;
overflow-x: hidden;
white-space: nowrap;
}
ul#add-feed-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;
}