Last active
February 3, 2021 15:55
-
-
Save cmaas/a4d2e87976c2f8d4ce0b to your computer and use it in GitHub Desktop.
HTML5 Page Templates: Basic & Social
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
<link rel="stylesheet" href="css/style.css"> | |
<link rel="icon" type="image/png" href="favicon.png"> | |
</head> | |
<body> | |
<h1></h1> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */ | |
*,::after,::before{box-sizing:border-box}:root{-moz-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji'}hr{height:0;color:inherit}abbr[title]{text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item} | |
/* MINSTYLE | |
* - uses CSS variables | |
* - dark mode enabled | |
*/ | |
:root { | |
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
--color-bg: #fff; | |
--color-text: #262626; | |
--color-contrast: #fff; | |
--color-link: #186ce8; | |
--color-link-hover: #1943a5; | |
--color-link-visited: #8e61ec; | |
--color-line: #D1D5DB; | |
--color-primary: #CB0072; | |
--color-secondary: #1fa5bc; | |
--color-gray-50: #F9FAFB; | |
--color-gray-100: #F3F4F6; | |
--color-gray-600: #4B5563; | |
--color-gray-700: #3F3F46; | |
} | |
@media (prefers-color-scheme: dark) { | |
:root { | |
--color-bg: #000; | |
--color-text: #FAFAFA; | |
--color-contrast: #000; | |
} | |
} | |
/* BASIC PAGE STRUCTURE | |
* - <body><main><article></article></main><footer></footer></body> | |
* - sticky footer always at the bottom of the page | |
*/ | |
body { | |
background-color: var(--color-bg); | |
font-family: var(--font-sans); | |
font-size: 16px; | |
color: var(--color-text); | |
/* sticky footer at the bottom */ | |
display: flex; | |
flex-direction: column; | |
min-height: 100vh; | |
line-height: 1.5; | |
box-sizing: border-box; | |
} | |
main { | |
flex: 1; | |
} | |
footer { | |
margin: 0 auto; | |
max-width: 50rem; | |
text-align: center; | |
} | |
article { | |
margin: 0 auto; | |
max-width: 50rem; | |
padding-top: 0.4rem; | |
} | |
/* ARTICLE STYLES */ | |
a { | |
color: var(--color-link); | |
} | |
a:hover { | |
color: var(--color-link-hover); | |
} | |
a:visited { | |
color: var(--color-link-visited); | |
} | |
hr { | |
border: 0; | |
background-color: var(--color-line); | |
height: 1px; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment