🔧 Updated kevin powell defaults
This commit is contained in:
parent
b0f27dabe0
commit
4d20c4c986
2 changed files with 53 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
/* Kevin Powell's root recommendation for '*''
|
/* Kevin Powell's root recommendation for '*''
|
||||||
* and also some bare bones defaults*/
|
* and also some bare bones defaults*/
|
||||||
*,
|
*,
|
||||||
*::before,
|
*::before,
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* kevin uses html here,
|
/* kevin uses html here,
|
||||||
* but mdn recommends root */
|
* but mdn recommends root */
|
||||||
:root {
|
:root {
|
||||||
color-scheme: light dark;
|
color-scheme: light dark;
|
||||||
|
|
@ -18,7 +18,7 @@ body {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* main container within body,
|
/* main container within body,
|
||||||
* sometimes called .container, etc. */
|
* sometimes called .container, etc. */
|
||||||
main {
|
main {
|
||||||
width: min(70ch, 100% - 4rem);
|
width: min(70ch, 100% - 4rem);
|
||||||
|
|
@ -32,13 +32,37 @@ video {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TheoGG recommends this under '*',
|
/* TheoGG recommends this under '*',
|
||||||
* but kevin says differently */
|
* but kevin says differently */
|
||||||
input,
|
input,
|
||||||
textarea {
|
textarea {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
text-wrap: balance;
|
||||||
|
}
|
||||||
|
|
||||||
|
p,
|
||||||
|
li,
|
||||||
|
figcaption {
|
||||||
|
text-wrap: pretty;
|
||||||
|
max-width: 65ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
header,
|
||||||
|
footer,
|
||||||
|
main,
|
||||||
|
section,
|
||||||
|
article {
|
||||||
|
container-type: inline-size;
|
||||||
|
}
|
||||||
|
|
||||||
/* background image specific, courtesy wittcode*/
|
/* background image specific, courtesy wittcode*/
|
||||||
/*
|
/*
|
||||||
body {
|
body {
|
||||||
|
|
|
||||||
26
scripts/kcss
26
scripts/kcss
|
|
@ -43,5 +43,29 @@ body {
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
text-wrap: balance;
|
||||||
|
}
|
||||||
|
|
||||||
|
p,
|
||||||
|
li,
|
||||||
|
figcaption {
|
||||||
|
text-wrap: pretty;
|
||||||
|
max-width: 65ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
header,
|
||||||
|
footer,
|
||||||
|
main,
|
||||||
|
section,
|
||||||
|
article {
|
||||||
|
container-type: inline-size;
|
||||||
|
}
|
||||||
*/
|
*/
|
||||||
EOM
|
EOM
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue