generated from inherentlee/11ty
basic styling, some metadata
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
export default {
|
export default {
|
||||||
title: "",
|
title: "District Dharma Collective",
|
||||||
description: "",
|
description: "",
|
||||||
url: "",
|
url: "",
|
||||||
author: "Lee Cattarin",
|
author: "Lee Cattarin",
|
||||||
|
|||||||
@ -2,6 +2,12 @@
|
|||||||
layout: base.njk
|
layout: base.njk
|
||||||
---
|
---
|
||||||
|
|
||||||
|
{% if hero %}
|
||||||
|
<img id="hero" src="{{ hero.src }}" alt="{{ hero.alt }}">
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<div id="content">
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
|
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
|
</div>
|
||||||
|
|||||||
79
css/main.css
79
css/main.css
@ -3,58 +3,79 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* numbered components are from https://www.joshwcomeau.com/css/custom-css-reset/ */
|
/* numbered components are from https://www.joshwcomeau.com/css/custom-css-reset/ */
|
||||||
/* 1. Use a more-intuitive box-sizing model */
|
|
||||||
*, *::before, *::after {
|
*, *::before, *::after {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box; /* 1. Use a more-intuitive box-sizing model */
|
||||||
|
}
|
||||||
|
|
||||||
|
#root, #__next {
|
||||||
|
isolation: isolate; /* 10. Create a root stacking context */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 2. Remove default margin */
|
|
||||||
*:not(dialog) {
|
*:not(dialog) {
|
||||||
margin: 0;
|
margin: 0; /* 2. Remove default margins */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 3. Enable keyword animations */
|
|
||||||
@media (prefers-reduced-motion: no-preference) {
|
@media (prefers-reduced-motion: no-preference) {
|
||||||
html {
|
html {
|
||||||
interpolate-size: allow-keywords;
|
interpolate-size: allow-keywords; /* 3. Enable keyword animations */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
/* 4. Increase line-height */
|
line-height: 1.5; /* 4. Increase line-height */
|
||||||
line-height: 1.5;
|
-webkit-font-smoothing: antialiased; /* 5. Improve text rendering */
|
||||||
/* 5. Improve text rendering */
|
font-family: sans-serif;
|
||||||
-webkit-font-smoothing: antialiased;
|
}
|
||||||
|
|
||||||
|
#content {
|
||||||
|
width: 65%;
|
||||||
|
max-width: 1800px;
|
||||||
|
margin-inline: auto;
|
||||||
|
margin-block-end: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1050px) {
|
||||||
|
#content {
|
||||||
|
width: 85%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 650px) {
|
||||||
|
#content {
|
||||||
|
width: 92%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 6. Improve media defaults */
|
|
||||||
img, picture, video, canvas, svg {
|
img, picture, video, canvas, svg {
|
||||||
display: block;
|
display: block; /* 6. Improve media defaults */
|
||||||
max-width: 100%;
|
max-width: 100%; /* 6. Improve media defaults */
|
||||||
height: auto;
|
height: auto; /* 6. Improve media defaults */
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 7. Inherit fonts for form controls */
|
|
||||||
input, button, textarea, select {
|
input, button, textarea, select {
|
||||||
font: inherit;
|
font: inherit; /* 7. Inherit fonts for form controls */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 8. Avoid text overflows */
|
h1, h2, h3, h4, h5, h6, p {
|
||||||
p, h1, h2, h3, h4, h5, h6 {
|
overflow-wrap: break-word; /* 8. Avoid text overflows */
|
||||||
overflow-wrap: break-word;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 9. Improve line wrapping */
|
|
||||||
p {
|
|
||||||
text-wrap: pretty;
|
|
||||||
}
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
text-wrap: balance;
|
text-wrap: balance; /* 9. Improve line wrapping */
|
||||||
|
font-family: serif;
|
||||||
|
margin-block-start: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
h1 {
|
||||||
10. Create a root stacking context
|
text-align: center;
|
||||||
*/
|
}
|
||||||
#root, #__next {
|
|
||||||
isolation: isolate;
|
p {
|
||||||
|
text-wrap: pretty; /* 9. Improve line wrapping */
|
||||||
|
}
|
||||||
|
|
||||||
|
#hero {
|
||||||
|
aspect-ratio: 40 / 9;
|
||||||
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "11ty",
|
"name": "district-dharma",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "",
|
"name": "district-dharma",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user