mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Make nav sticky for blog template
This commit is contained in:
@@ -35,8 +35,7 @@ SECURITY DEFINER;
|
||||
GRANT EXECUTE ON FUNCTION api.upload_file (BYTEA) TO authenticated_user;
|
||||
|
||||
-- migrate:down
|
||||
|
||||
DROP FUNCTION api.upload_file(BYTEA);
|
||||
DROP FUNCTION api.upload_file (BYTEA);
|
||||
|
||||
CREATE FUNCTION api.upload_file (BYTEA, OUT file_id UUID)
|
||||
AS $$
|
||||
@@ -72,3 +71,4 @@ LANGUAGE plpgsql
|
||||
SECURITY DEFINER;
|
||||
|
||||
GRANT EXECUTE ON FUNCTION api.upload_file (BYTEA) TO authenticated_user;
|
||||
|
||||
|
||||
@@ -3,12 +3,29 @@
|
||||
inline-size: min(100% - var(--space-m), 75ch);
|
||||
}
|
||||
|
||||
nav {
|
||||
position: sticky;
|
||||
block-size: var(--space-xl);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
inset-block-start: 0;
|
||||
background-color: var(--bg-primary);
|
||||
border-block-end: var(--border-primary);
|
||||
}
|
||||
|
||||
header > .container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-s);
|
||||
}
|
||||
|
||||
header img {
|
||||
inline-size: 100%;
|
||||
block-size: 300px;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
}
|
||||
|
||||
nav,
|
||||
header,
|
||||
main,
|
||||
@@ -34,3 +51,7 @@ footer {
|
||||
.table-of-contents {
|
||||
margin-block-end: var(--space-s);
|
||||
}
|
||||
|
||||
section {
|
||||
scroll-margin-block-start: var(--space-xl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user