mirror of
https://github.com/milligram/milligram.git
synced 2024-11-13 16:54:22 +00:00
387 lines
15 KiB
HTML
387 lines
15 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="author" content="CJ Patoilo" />
|
|
<meta
|
|
name="description"
|
|
content="Milligram provides a minimal setup of styles for a fast and clean starting point. Specially designed for better performance and higher productivity with fewer properties to reset resulting in cleaner code."
|
|
/>
|
|
<title>Milligram | A minimalist CSS framework.</title>
|
|
<link rel="icon" href="https://milligram.io/images/icon.png" />
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic"
|
|
/>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css"
|
|
/>
|
|
<link rel="stylesheet" href="../dist/milligram.min.css" />
|
|
<link rel="stylesheet" href="https://milligram.io/styles/main.css" />
|
|
</head>
|
|
<body>
|
|
<main class="wrapper">
|
|
<nav class="navigation">
|
|
<section class="container">
|
|
<a class="navigation-title" href="https://milligram.io/">
|
|
<svg class="img" version="1.1" viewBox="0 0 463 669">
|
|
<g
|
|
transform="translate(0.000000,669.000000) scale(0.100000,-0.100000)"
|
|
>
|
|
<path
|
|
d="M2303 6677c-11-13-58-89-393-627-128-206-247-397-265-425-18-27-85-135-150-240-65-104-281-451-480-770-358-575-604-970-641-1032-10-18-45-74-76-126-47-78-106-194-107-212-1-3-11-26-24-53-60-118-132-406-157-623-19-158-8-491 20-649 82-462 291-872 619-1213 192-199 387-340 646-467 335-165 638-235 1020-235 382 0 685 70 1020 235 259 127 454 268 646 467 328 341 537 751 619 1213 28 158 39 491 20 649-25 217-97 505-157 623-13 27-23 50-23 53 0 16-57 127-107 210-32 52-67 110-77 128-37 62-283 457-641 1032-199 319-415 666-480 770-65 105-132 213-150 240-18 28-137 219-265 425-354 570-393 630-400 635-4 3-12-1-17-8zm138-904c118-191 654-1050 1214-1948 148-236 271-440 273-452 2-13 8-23 11-23 14 0 72-99 125-212 92-195 146-384 171-598 116-974-526-1884-1488-2110-868-205-1779 234-2173 1046-253 522-257 1124-10 1659 45 97 108 210 126 225 4 3 9 13 13 22 3 9 126 209 273 445 734 1176 1102 1766 1213 1946 67 108 124 197 126 197 2 0 59-89 126-197zM1080 3228c-75-17-114-67-190-243-91-212-128-368-137-580-34-772 497-1451 1254-1605 77-15 112-18 143-11 155 35 212 213 106 329-32 36-62 48-181 75-223 50-392 140-552 291-115 109-178 192-242 316-101 197-136 355-128 580 3 111 10 167 30 241 30 113 80 237 107 267 11 12 20 26 20 32 0 6 8 22 17 36 26 41 27 99 3 147-54 105-142 149-250 125z"
|
|
></path>
|
|
</g>
|
|
</svg>
|
|
|
|
<h1 class="title">Milligram</h1>
|
|
</a>
|
|
<ul class="navigation-list float-right">
|
|
<li class="navigation-item">
|
|
<a class="navigation-link" href="#popover-grid" data-popover
|
|
>Docs</a
|
|
>
|
|
<div class="popover" id="popover-grid">
|
|
<ul class="popover-list">
|
|
<li class="popover-item">
|
|
<a
|
|
class="popover-link"
|
|
href="#getting-started"
|
|
title="Getting Started"
|
|
>Getting Started</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a
|
|
class="popover-link"
|
|
href="#typography"
|
|
title="Typography"
|
|
>Typography</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a
|
|
class="popover-link"
|
|
href="#blockquotes"
|
|
title="Blockquotes"
|
|
>Blockquotes</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a class="popover-link" href="#buttons" title="Buttons"
|
|
>Buttons</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a class="popover-link" href="#lists" title="Lists"
|
|
>Lists</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a class="popover-link" href="#forms" title="Forms"
|
|
>Forms</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a class="popover-link" href="#tables" title="Tables"
|
|
>Tables</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a class="popover-link" href="#grids" title="Grids"
|
|
>Grids</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a class="popover-link" href="#code" title="Code">Code</a>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a class="popover-link" href="#utilities" title="Utilities"
|
|
>Utilities</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a class="popover-link" href="#tips" title="Tips">Tips</a>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a
|
|
class="popover-link"
|
|
href="#browser-support"
|
|
title="Browser Support"
|
|
>Browser Support</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a class="popover-link" href="#examples" title="Examples"
|
|
>Examples</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a
|
|
class="popover-link"
|
|
href="#contributing"
|
|
title="Contributing"
|
|
>Contributing</a
|
|
>
|
|
</li>
|
|
<style>
|
|
.switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 55px;
|
|
height: 28px;
|
|
margin-left: 32px;
|
|
}
|
|
|
|
.switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: #ccc;
|
|
-webkit-transition: .4s;
|
|
transition: .4s;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 20px;
|
|
width: 20px;
|
|
left: 4px;
|
|
bottom: 4px;
|
|
background-color: white;
|
|
-webkit-transition: .4s;
|
|
transition: .4s;
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: #2196F3;
|
|
}
|
|
|
|
input:focus + .slider {
|
|
box-shadow: 0 0 1px #2196F3;
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
-webkit-transform: translateX(26px);
|
|
-ms-transform: translateX(26px);
|
|
transform: translateX(26px);
|
|
}
|
|
|
|
/* Rounded sliders */
|
|
.slider.round {
|
|
border-radius: 34px;
|
|
}
|
|
|
|
.slider.round:before {
|
|
border-radius: 50%;
|
|
}
|
|
.dark-mode {
|
|
background-color: black;
|
|
color: white;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
function myFunction() {
|
|
var element = document.body;
|
|
element.classList.toggle("dark-mode");
|
|
}
|
|
</script>
|
|
</ul>
|
|
</div>
|
|
</li>
|
|
<li class="navigation-item">
|
|
<a class="navigation-link" href="#popover-support" data-popover
|
|
>Support</a
|
|
>
|
|
<label class="switch">
|
|
<input type="checkbox" onclick="myFunction()"checked>
|
|
<span class="slider round"></span>
|
|
</label>
|
|
<div class="popover" id="popover-support">
|
|
<ul class="popover-list">
|
|
<li class="popover-item">
|
|
<a
|
|
class="popover-link"
|
|
target="blank"
|
|
href="https://github.com/milligram/milligram"
|
|
title="On Github"
|
|
>On Github</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a
|
|
class="popover-link"
|
|
target="blank"
|
|
href="https://codepen.io/milligramcss"
|
|
title="On Codepen"
|
|
>On Codepen</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a
|
|
class="popover-link"
|
|
target="blank"
|
|
href="https://facebook.com/milligramcss"
|
|
title="On Facebook"
|
|
>On Facebook</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a
|
|
class="popover-link"
|
|
target="blank"
|
|
href="https://twitter.com/milligramcss"
|
|
title="On Twitter"
|
|
>On Twitter</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a
|
|
class="popover-link"
|
|
target="blank"
|
|
href="https://github.com/milligram/milligram/issues/new"
|
|
title="Need help?"
|
|
>Need help?</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a
|
|
class="popover-link"
|
|
target="blank"
|
|
href="https://github.com/milligram/milligram#license"
|
|
title="License"
|
|
>License</a
|
|
>
|
|
</li>
|
|
<li class="popover-item">
|
|
<a
|
|
class="popover-link"
|
|
target="blank"
|
|
href="https://github.com/milligram/milligram/releases"
|
|
title="Versions"
|
|
>Versions</a
|
|
>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
<a
|
|
href="https://github.com/milligram/milligram"
|
|
title="Milligram on Github"
|
|
target="_blank"
|
|
>
|
|
<svg class="octocat" viewBox="0 0 250 250">
|
|
<path
|
|
d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"
|
|
></path>
|
|
<path
|
|
class="octocat-arm"
|
|
d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
|
|
></path>
|
|
<path
|
|
class="octocat-body"
|
|
d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
|
|
></path>
|
|
</svg>
|
|
</a>
|
|
</section>
|
|
</nav>
|
|
|
|
<section class="container" id="examples">
|
|
<h5 class="title">Examples</h5>
|
|
<p>You can view more examples of using Milligram.</p>
|
|
<ul>
|
|
<li>
|
|
<a
|
|
href="https://milligram.io/#getting-started"
|
|
title="Getting Started"
|
|
>Getting Started</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a href="https://milligram.io/#typography" title="Typography"
|
|
>Typography</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a href="https://milligram.io/#blockquotes" title="Blockquotes"
|
|
>Blockquotes</a
|
|
>
|
|
</li>
|
|
<li>
|
|
<a href="https://milligram.io/#buttons" title="Buttons">Buttons</a>
|
|
</li>
|
|
<li><a href="https://milligram.io/#lists" title="Lists">Lists</a></li>
|
|
<li><a href="https://milligram.io/#forms" title="Forms">Forms</a></li>
|
|
<li>
|
|
<a href="https://milligram.io/#tables" title="Tables">Tables</a>
|
|
</li>
|
|
<li><a href="https://milligram.io/#grids" title="Grids">Grids</a></li>
|
|
<li><a href="https://milligram.io/#code" title="Code">Code</a></li>
|
|
<li>
|
|
<a href="https://milligram.io/#utilities" title="Utilities"
|
|
>Utilities</a
|
|
>
|
|
</li>
|
|
<li><a href="https://milligram.io/#tips" title="Tips">Tips</a></li>
|
|
<li>
|
|
<a
|
|
href="https://milligram.io/#browser-support"
|
|
title="Browser Support"
|
|
>Browser Support</a
|
|
>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<section class="container" id="contributing">
|
|
<h5 class="title">Contributing</h5>
|
|
<p>
|
|
Want to contribute? Follow these
|
|
<a
|
|
href="https://github.com/milligram/milligram/blob/master/.github/contributing.md"
|
|
title="Contributing"
|
|
>recommendations</a
|
|
>.
|
|
</p>
|
|
</section>
|
|
|
|
<footer class="footer">
|
|
<section class="container">
|
|
<p>
|
|
Designed with ♥ by
|
|
<a
|
|
target="_blank"
|
|
href="https://twitter.com/cjpatoilo"
|
|
title="CJ Patoilo"
|
|
>CJ Patoilo</a
|
|
>. Licensed under the
|
|
<a
|
|
target="_blank"
|
|
href="https://github.com/milligram/milligram#license"
|
|
title="MIT License"
|
|
>MIT License</a
|
|
>.
|
|
</p>
|
|
</section>
|
|
</footer>
|
|
</main>
|
|
|
|
<script src="https://milligram.io/scripts/main.js"></script>
|
|
</body>
|
|
</html>
|