diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d48fb99 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +vendor/ +composer.phar +mono-only-*.zip +monocolor-*.zip \ No newline at end of file diff --git a/build b/build new file mode 100755 index 0000000..26a9f3c --- /dev/null +++ b/build @@ -0,0 +1,34 @@ +#! /usr/bin/env php +run(file_get_contents("$file.css"))); +} + +# combine mono and color into a single css file for better gzipping +echo "Making monocolor.min.css ...\n"; +file_put_contents("monocolor.min.css", file_get_contents("mono.min.css").file_get_contents("color.min.css")); + +# create the release zip files +echo "Creating release archives ...\n"; +`zip mono-only-$version.zip mono.min.css light.min.css dark.min.css template-mono-only.html`; +`zip monocolor-$version.zip mono.min.css light.min.css dark.min.css color.min.css template.html`; + +echo "Done.\n"; \ No newline at end of file diff --git a/color.css b/color.css index e2c20d2..e541ff5 100644 --- a/color.css +++ b/color.css @@ -1,13 +1,15 @@ -/* mono/color v1.1 (https://github.com/asvvvad/mono-color) - by asvvvad (https://asvvvad.eu.org) under the MIT license*/ +/* +mono/color (https://github.com/asvvad/mono-color) +Copyright (c) 2020 asvvvad - MIT License +*/ :root { - --gray: #CCC; + --gray: #ccc; --accent: #fa0; --warning: #ffd600; --error: #d50000; --success: #00c853; - --info: #2962ff; + --info: #2962ff } .card { @@ -17,148 +19,142 @@ color: var(--fg) } - -/* Grid */ - @media(min-width:45em) { .col { - display: table-cell; + display: table-cell } .\31 { - width: 5%; + width: 5% } .\33 { - width: 22%; + width: 22% } .\34 { - width: 30%; + width: 30% } .\35 { - width: 40%; + width: 40% } .\32 { - width: 15%; + width: 15% } .row { display: table; - border-spacing: 1em 0; + border-spacing: 1em 0 } } .w-100, .row { - width: 100%; + width: 100% } .w-50 { width: 50% } - -/*Colors*/ - .white { - color: #FFF; + color: #fff } .bg-white { - background: #FFF; + background: #fff } .b-white { - border-color: #FFF; + border-color: #fff } .gray { - color: var(--gray); + color: var(--gray) } .bg-gray { - background: var(--gray); + background: var(--gray) } .b-gray { - border-color: var(--gray); + border-color: var(--gray) } .black { - color: #000; + color: #000 } .bg-black { - background: #000; + background: #000 } .b-black { - border-color: #000; + border-color: #000 } .b-primary { - border-color: var(--p); + border-color: var(--p) } .b-default { - border-color: var(--b); + border-color: var(--b) } .accent { - color: var(--accent); + color: var(--accent) } .bg-accent { - background: var(--accent); + background: var(--accent) } .b-accent { - border-color: var(--accent); + border-color: var(--accent) } .warning { - color: var(--warning); + color: var(--warning) } .bg-warning { - background: var(--warning); + background: var(--warning) } .b-warning { - border-color: var(--warning); + border-color: var(--warning) } .error { - color: var(--error); + color: var(--error) } .bg-error { - background: var(--error); + background: var(--error) } .b-error { - border-color: var(--error); + border-color: var(--error) } .success { - color: var(--success); + color: var(--success) } .bg-success { - background: var(--success); + background: var(--success) } .b-success { - border-color: var(--success); + border-color: var(--success) } .info { - color: var(--info); + color: var(--info) } .bg-info { - background: var(--info); + background: var(--info) } .b-info { - border-color: var(--info); + border-color: var(--info) } .inline { @@ -180,7 +176,7 @@ .pill { border-radius: 2rem; - white-space: nowrap; + white-space: nowrap } .rounded { @@ -204,7 +200,7 @@ } .normal { - font-size: inherit; + font-size: inherit } .vh-100 { diff --git a/color.min.css b/color.min.css index 2218484..cb3a8c1 100644 --- a/color.min.css +++ b/color.min.css @@ -1 +1 @@ -:root{--gray:#CCC;--accent:#fa0;--warning:#ffd600;--error:#d50000;--success:#00c853;--info:#2962ff}.card{padding:1em;margin-top:1rem;background:var(--def);color:var(--fg)}@media(min-width:45em){.col{display:table-cell}.\31{width:5%}.\33{width:22%}.\34{width:30%}.\35{width:40%}.\32{width:15%}.row{display:table;border-spacing:1em 0}}.w-100,.row{width:100%}.w-50{width:50%}.white{color:#FFF}.bg-white{background:#FFF}.b-white{border-color:#FFF}.gray{color:var(--gray)}.bg-gray{background:var(--gray)}.b-gray{border-color:var(--gray)}.black{color:#000}.bg-black{background:#000}.b-black{border-color:#000}.b-primary{border-color:var(--p)}.b-default{border-color:var(--b)}.accent{color:var(--accent)}.bg-accent{background:var(--accent)}.b-accent{border-color:var(--accent)}.warning{color:var(--warning)}.bg-warning{background:var(--warning)}.b-warning{border-color:var(--warning)}.error{color:var(--error)}.bg-error{background:var(--error)}.b-error{border-color:var(--error)}.success{color:var(--success)}.bg-success{background:var(--success)}.b-success{border-color:var(--success)}.info{color:var(--info)}.bg-info{background:var(--info)}.b-info{border-color:var(--info)}.inline{display:inline-block;margin:.5rem 0}.tacenter{text-align:center}.taleft{text-align:left}.taright{text-align:right}.pill{border-radius:2rem;white-space:nowrap}.rounded{border-radius:1rem}.mega{font-size:4rem}.large{font-size:2rem}.small{font-size:1.4rem}.nano{font-size:1.2rem}.normal{font-size:inherit}.vh-100{height:100vh;font-size:1.8rem}.vc{position:relative;top:40%;transform:perspective(.1rem)translateY(-45%)}.vc h1{margin:0}.p{padding:1rem}.p04{padding:.4rem}.ph{padding-left:1rem;padding-right:1rem}.ph04{padding-left:.4rem;padding-right:.4rem}.pv{padding:1rem;padding-bottom:1rem}.pv04{padding-top:.4rem;padding-bottom:.4rem}.m0{margin:0}.m{margin:1rem}.mh{margin-left:1rem;margin-right:1rem}.mv{margin-top:1rem;margin-bottom:1rem}.border{border-style:solid;border-width:.1rem} \ No newline at end of file +:root{--gray:#ccc;--accent:#fa0;--warning:#ffd600;--error:#d50000;--success:#00c853;--info:#2962ff}.card{padding:1em;margin-top:1rem;background:var(--def);color:var(--fg)}@media(min-width:45em){.col{display:table-cell}.\31{width:5%}.\33{width:22%}.\34{width:30%}.\35{width:40%}.\32{width:15%}.row{display:table;border-spacing:1em 0}}.w-100,.row{width:100%}.w-50{width:50%}.white{color:#fff}.bg-white{background:#fff}.b-white{border-color:#fff}.gray{color:var(--gray)}.bg-gray{background:var(--gray)}.b-gray{border-color:var(--gray)}.black{color:#000}.bg-black{background:#000}.b-black{border-color:#000}.b-primary{border-color:var(--p)}.b-default{border-color:var(--b)}.accent{color:var(--accent)}.bg-accent{background:var(--accent)}.b-accent{border-color:var(--accent)}.warning{color:var(--warning)}.bg-warning{background:var(--warning)}.b-warning{border-color:var(--warning)}.error{color:var(--error)}.bg-error{background:var(--error)}.b-error{border-color:var(--error)}.success{color:var(--success)}.bg-success{background:var(--success)}.b-success{border-color:var(--success)}.info{color:var(--info)}.bg-info{background:var(--info)}.b-info{border-color:var(--info)}.inline{display:inline-block;margin:.5rem 0}.tacenter{text-align:center}.taleft{text-align:left}.taright{text-align:right}.pill{border-radius:2rem;white-space:nowrap}.rounded{border-radius:1rem}.mega{font-size:4rem}.large{font-size:2rem}.small{font-size:1.4rem}.nano{font-size:1.2rem}.normal{font-size:inherit}.vh-100{height:100vh;font-size:1.8rem}.vc{position:relative;top:40%;transform:perspective(.1rem) translateY(-45%)}.vc h1{margin:0}.p{padding:1rem}.p04{padding:.4rem}.ph{padding-left:1rem;padding-right:1rem}.ph04{padding-left:.4rem;padding-right:.4rem}.pv{padding:1rem;padding-bottom:1rem}.pv04{padding-top:.4rem;padding-bottom:.4rem}.m0{margin:0}.m{margin:1rem}.mh{margin-left:1rem;margin-right:1rem}.mv{margin-top:1rem;margin-bottom:1rem}.border{border-style:solid;border-width:.1rem} \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..fe76d0c --- /dev/null +++ b/composer.json @@ -0,0 +1,5 @@ +{ + "require": { + "tubalmartin/cssmin": "^4.1" + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..505b69f --- /dev/null +++ b/composer.lock @@ -0,0 +1,71 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" + ], + "content-hash": "b06b0ba3dab3e61652e077d5f7a506b3", + "packages": [ + { + "name": "tubalmartin/cssmin", + "version": "v4.1.1", + "source": { + "type": "git", + "url": "https://github.com/tubalmartin/YUI-CSS-compressor-PHP-port.git", + "reference": "3cbf557f4079d83a06f9c3ff9b957c022d7805cf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tubalmartin/YUI-CSS-compressor-PHP-port/zipball/3cbf557f4079d83a06f9c3ff9b957c022d7805cf", + "reference": "3cbf557f4079d83a06f9c3ff9b957c022d7805cf", + "shasum": "" + }, + "require": { + "ext-pcre": "*", + "php": ">=5.3.2" + }, + "require-dev": { + "cogpowered/finediff": "0.3.*", + "phpunit/phpunit": "4.8.*" + }, + "bin": [ + "cssmin" + ], + "type": "library", + "autoload": { + "psr-4": { + "tubalmartin\\CssMin\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Túbal Martín", + "homepage": "http://tubalmartin.me/" + } + ], + "description": "A PHP port of the YUI CSS compressor", + "homepage": "https://github.com/tubalmartin/YUI-CSS-compressor-PHP-port", + "keywords": [ + "compress", + "compressor", + "css", + "cssmin", + "minify", + "yui" + ], + "time": "2018-01-15T15:26:51+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [] +} diff --git a/dark.css b/dark.css index 2b56d4a..5267a10 100644 --- a/dark.css +++ b/dark.css @@ -1,11 +1,14 @@ -/* mono/color v1.1 (https://github.com/asvvvad/mono-color) - by asvvvad (https://asvvvad.eu.org) under the MIT license*/ +/* +mono/color (https://github.com/asvvad/mono-color) +Copyright (c) 2020 asvvvad - MIT License +*/ + :root { font-size: 62.5%; - --fg: #aaa; /* forground color */ - --h: #efefef; /* headers color */ - --bg: #000; /* background color */ - --b: #333; /* border color */ - --p: #eee; /* primary color */ - --def: #121212; /* default color */ + --fg: #aaa; + --h: #efefef; + --bg: #000; + --b: #333; + --p: #eee; + --def: #121212 } \ No newline at end of file diff --git a/index.html b/index.html index db3ccd2..9819e18 100644 --- a/index.html +++ b/index.html @@ -5,33 +5,34 @@ mono/color - - + + - + - - - + + + + - - + + - - - - + + + + @@ -53,13 +53,13 @@ text-align: center; font-size: .8em; letter-spacing: .1rem; - margin: .8em 0; + margin: .8em 0 } .example-grid .col { background: var(--p); color: var(--def); - padding: .3em; + padding: .3em } footer { @@ -74,7 +74,17 @@ top: 2rem; left: 100%; z-index: 999; - display: block; + display: block + } + + .switch>.hidden, + .switch:hover>.shown { + display: none; + cursor: pointer + } + + .switch:hover>.hidden { + display: inline } @@ -83,9 +93,9 @@

mono/color

-

Small, responsive, dual-themed CSS-only framework

+

Very small, responsive, dual-themed CSS-only framework

- +
@@ -94,84 +104,59 @@

mono/color


-

mono/colorv1.1

-

mono/color is a small yet full-featured, simple and beautiful CSS-only framework built with responsivity, readability, modularity, and a dual-theme in mind.

+

mono/colorv1.2

+

mono/color is a very small yet full-featured, simple and beautiful CSS-only framework built with responsivity, readability, modularity, and a dual-theme in mind.

It's perfect for a blog or a documentation site and can be used for anything else as well.
It's very responsive and looks neat on any resolution.
Based on Starveling and lit, providing only necessary elements while still looking great.

mono/color is also hosted on Github and you can contribute to it or fork it and make your own style as you like!

- Star + Star Fork

mono/color is split into two:

-

mono.css 1.5kb

+

mono.css 630b + +

dark.css 83b

light.css 83b

-
total 1.6kb
+
total 796b + +

Can be used alone, it includes dark & light theme with no colors, only default html elements with a basic button.

-

color.css 1.9kb

-
total 3.5kb
+

color.css + + 736b + +

+
total 1.3kb + +

Adds grids, cards, colors, useful utilities and badges.

-
-
Note!
These are the minified sizes only and they're not gzipped. The sizes should be even smaller when compressed. +
Note! These are gzipped sizes. Hover to see the minified size

Usage:

-

Light/Dark theming with mono/color is made easy! The themes are made into two separate CSS files so that you can use it the way you like!

-

Examples

-

Automatic with fallback to light for unsupported browsers support

-

It uses the new CSS media prefers-color-scheme which automatically sets the theme based on what the user have in their system.

-
Tip!
Switch the dark in (prefers-color-scheme: dark) with light and dark.css with light.css to default the fallback to dark theme
-
<link rel="stylesheet" href="light.css" media="">
-<link rel="stylesheet" href="dark.css" media="(prefers-color-scheme: dark)">
-
-

Javascript

-

Make the media attribute empty for the theme you want to be default

-
<link rel="stylesheet" href="light.css" media="">
-<link rel="stylesheet" href="dark.css" media="none">
-

Now the javascript should be something like this that is called by clicking a button for example

-
function toggleTheme() {
-    var dark = document.getElementById("dark-theme");
-    var light = document.getElementById("light-theme");
-    if (light.media == "none") {
-        light.media = ""
-        dark.media = "none"
-    } else {
-        light.media = "none"
-        dark.media = ""
-    }
-}
-

Server side

-

This is very basic, you set a variable theme for example that contains the current theme. And let a user submit a request that can toggle it for example.

-

For example, this is how it would be done in PHP

-
<?php
-    $theme = "dark";
-    echo "<link rel='stylesheet' href='".$theme.".css'>"; 
-

Note this is just to give you the idea, use a templating system like Plates to render your html as it will make it easier.

-

Only one theme

-

You can always use a one theme by just linking its file only. You can also have multiple themes on different pages. Whatever you like :3

-

Basic HTML structure

-
Without color:
+

The following code snippets will use jsDelivr CDN but you can download and host the css files whereever you like. If you download the zip the following templates comes with + it. +

+ mono only
<!DOCTYPE html>
 <html>
-
 <head>
     <meta charset="utf-8">
     <title>my awesome webpage</title>
     <meta name="viewport" content="width=device-width, initial-scale=1">
-    <!-- or any of these methods: https://asvvvad.github.io/mono-color/#usage -->
-    <link rel="stylesheet" href="light.css" media="">
-    <link rel="stylesheet" href="dark.css" media="(prefers-color-scheme: dark)">
-    <link rel="stylesheet" href="mono.css">
+    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/asvvvad/mono-color@1.2/light.min.css" media="">
+    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/asvvvad/mono-color@1.2/dark.min.css" media="(prefers-color-scheme: dark)">
+    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/asvvvad/mono-color@1.2/mono.min.css">
 </head>
-
 <body>
     <div class="container">
         <div class="content">
@@ -184,31 +169,29 @@ 
Without color:
</nav> </header> <p> - This is the content which is inthe content wrapper of the container. It's meant for main content like an article. It's more indented than the container. On smaller screens, the container's margin will be removed so the horizontal line (and everything outside content) will touch the screen. It's recommended to center the text that's outside to prevent that. + This is the content which is in the content wrapper of the container. It's meant for main content like an article. It's more indented than the container. On smaller screens, the container's margin will be removed so everything + outside content will touch the screen. It's recommended to center the text that's outside to prevent that. </p> <footer><a href="https://github.com/asvvvad/mono-color">mono/color</a> by <a href="https://asvvvad.eu.org">asvvvad</a>/2020</footer> </div> </div> </body> - </html>
-
With color:
+
+ mono+color
<!DOCTYPE html>
 <html>
-
 <head>
     <meta charset="utf-8">
     <title>my awesome webpage</title>
     <meta name="viewport" content="width=device-width, initial-scale=1">
-    <!-- or any of these methods: https://asvvvad.github.io/mono-color/#usage -->
-    <link rel="stylesheet" href="light.css" media="">
-    <link rel="stylesheet" href="dark.css" media="(prefers-color-scheme: dark)">
-    <link rel="stylesheet" href="mono.css">
-    <link rel="stylesheet" href="color.css">
+    <!-- or any of these methods: https://asvvvad.github.io/mono-color/#switching-theme -->
+    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/asvvvad/mono-color@1.2/light.min.css" media="">
+    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/asvvvad/mono-color@1.2/dark.min.css" media="(prefers-color-scheme: dark)">
+    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/asvvvad/mono-color@1.2/monocolor.min.css">
 </head>
-
 <body>
     <div class="container">
         <header class="tacenter">
@@ -222,39 +205,61 @@ 
With color:
<hr> <div class="content"> <p> - This is the content which is inthe content wrapper of the container. It's meant for main content like an article. It's more indented than the container. On smaller screens, the container's margin will be removed so the horizontal line (and everything outside content) will touch the screen. It's recommended to center the text that's outside to prevent that. + This is the content which is in the content wrapper of the container. It's meant for main content like an article. It's more indented than the container. On smaller screens, the container's margin will be removed so everything + outside content) will touch the screen. It's recommended to center the text that's outside to prevent that. </p> </div> <footer class="default tacenter p"><a href="https://github.com/asvvvad/mono-color">mono/color</a> by <a href="https://asvvvad.eu.org">asvvvad</a>/2020</footer> </div> </body> - </html>
-

Now you can explore the components of each part. The container/content divs are neccessary if you want the page to be responsive and have your content centered

-

Components:

-

mono

-
-

Container

-

Containers add margin to the sides of your content and center it. This website has one main container and content wrapper that wraps everything.

-
-
-
-

Header

- -
-
-

- This is the content which is inthe content wrapper of the container. It's meant for main content like an article. It's more indented than the container. On smaller screens, the container's margin will be removed so the horizontal line (and everything - outside content) will touch the screen. It's recommended to center the text that's outside to prevent that.

-
-
-
-
<div class="container">
+            
+
+ + Switching Dark/Light theme: The templates above use one method but mono/color allows many others! + +

Light/Dark theming with mono/color is made easy! The themes are made into two separate CSS files so that you can use it the way you like!

+

Automatic with fallback to light for unsupported browsers support

+

It uses the new CSS media prefers-color-scheme which automatically sets the theme based on what the user have in their system.

+
Tip!
Switch the dark in (prefers-color-scheme: dark) with light and dark.css with light.css to default the fallback to dark theme
+
<link rel="stylesheet" href="light.min.css" media="">
+<link rel="stylesheet" href="dark.min.css" media="(prefers-color-scheme: dark)">
+
+

Javascript

+

Make the media attribute empty for the theme you want to be default

+
<link rel="stylesheet" href="light.min.css" media="">
+<link rel="stylesheet" href="dark.min.css" media="none">
+

Now the javascript should be something like this that is called by clicking a button for example

+
function toggleTheme() {
+    var dark = document.getElementById("dark-theme");
+    var light = document.getElementById("light-theme");
+    if (light.media == "none") {
+        light.media = ""
+        dark.media = "none"
+    } else {
+        light.media = "none"
+        dark.media = ""
+    }
+}
+

Server side

+

This is very basic, you set a variable theme for example that contains the current theme. And let a user submit a request that can toggle it for example.

+

For example, this is how it would be done in PHP

+
<?php
+    $theme = "dark";
+    echo "<link rel='stylesheet' href='".$theme.".css'>"; 
+

Note this is just to give you the idea, use a templating system like Plates to render your html as it will make it easier.

+

Only one theme

+

You can always use a one theme by just linking its file only. You can also have multiple themes on different pages. Whatever you like :3

+
+
+

Components:

+
+

mono

+
+

Container

+

Containers add margin to the sides of your content and center it. This website has one main container and content wrapper that wraps everything.

+
<div class="container">
     <div class="content">
         <header>
             <h1>Header</h1>
@@ -266,21 +271,21 @@ 

Header

</header> <hr> <p> - This is the content which is inthe content wrapper of the container. It's meant for main content like an article. It's more indented than the container. On smaller screens, the container's margin will be removed so the horizontal line (and everything outside content) will touch the screen. It's recommended to center the text that's outside to prevent that. + This is the content which is in the content wrapper of the container. It's meant for main content like an article. It's more indented than the container. On smaller screens, the container's margin will be removed so everything outside content) will touch the screen. It's recommended to center the text that's outside to prevent that. </p> <hr> </div> </div>
-

Typography

-

Heading 1

-

Heading 2

-

Heading 3

-

Heading 4

-
Heading 5
-
Heading 6
-

This is a paragraph. The font family is monospace and for the headings 1 to 3 it's Sans-Serif. - Some bold text. Italics also looks nice. You can underline things you feel are important. has styles that override the default heading styles, including margin.

-
<h1>Heading</h1>
+                

Typography

+

Heading 1

+

Heading 2

+

Heading 3

+

Heading 4

+
Heading 5
+
Heading 6
+

This is a paragraph. The font family is monospace and for the headings 1 to 3 it's Sans-Serif. + Some bold text. Italics also looks nice. You can underline things you feel are important. has styles that override the default heading styles, including margin.

+
<h1>Heading</h1>
 <h2>Heading</h2>
 <h3>Heading</h3>
 <h2>Heading</h2>
@@ -290,73 +295,73 @@ 
Heading 6
<b>Some bold text.</b> <i>Italics also looks nice.</i> You can <u>underline</u> things you feel are important. mono has styles that override the default heading styles, including margin.</p>
-

Code Block

-

inline code; inline samp; and kbd: ctrl+c

-

Code blocks are code tags wrapped with pre tags. They automatically overflow to become scrollable on smaller displays

-
<pre><code>
+                

Code Block

+

inline code; inline samp; and kbd: ctrl c

+

Code blocks are code tags wrapped with pre tags. They automatically overflow to become scrollable on smaller displays

+
<pre><code>
 <h2>Code Block Example</h2>
 </code></pre>
-

Samp blocks are similar but intended for output moslty so mono/color sets the line-height tighter to show it better (for example, ASCII art)

-
                /\  (hi i'm v dude)
+                

Samp blocks are similar but intended for output moslty so mono/color sets the line-height tighter to show it better (for example, ASCII art)

+
                /\  (hi i'm v dude)
    __  ____  __/\/\__  __   ___
   /  \/ __ \ \ _  _ / /  \ |   \
  / /\ \__ \ \/\'  '/\/ /\ \|    | 
 /_/  \____/\__/\__/\__/  \_____/
-

Blockquote

-
You're not a fucking moron if you use default browser styles you can do what ever the fuck you want who cares -
— Eleanor Roosevelt -
This is a nested quote -
— Me -
Yes, I totally took that from this site. I always used it as a reference. -
— Also me
+

Blockquote

+
You're not a fucking moron if you use default browser styles you can do what ever the fuck you want who cares +
— Eleanor Roosevelt +
This is a nested quote +
— Me +
Yes, I totally took that from this site. I always used it as a reference. +
— Also me
+
-
-
-

Lists

-

Lists are default HTML lists. I tried a few things but figured the defaults are all that's needed (imo). -

-
    -
  • First Item
  • -
  • - Second Item -
      -
    • Sub Item 1
    • -
    • Sub Item 2
    • -
    -
  • -
  • Third Item
  • -
-

Tables

-

Tables looks nice too:

- - - - - - - - - - - - - - - - - - - - - -
NameUsernameemailsecondary email
Lorem Ipsumlorememail@example.comemail@example.org
Lorem Ipsumlorememail@example.comemail@example.org
-

Forms

-

Just like the code blocks the form is also scrollable when the elements take too much horizontal space -
There is also an option to use grids and the card class if you prefer.
color have w-100 and w-50 classes to set the inputs to full and half width respectively. -
To get the connected inputs look use the inline class on the inputs just as in here.

-

This is a regular HTML form:

-
-
diff --git a/template.html b/template.html index eb88c42..40c3a11 100644 --- a/template.html +++ b/template.html @@ -5,11 +5,10 @@ my awesome webpage - - - - - + + + + @@ -24,8 +23,8 @@

Header


-

- This is the content which is inthe content wrapper of the container. It's meant for main content like an article. It's more indented than the container. On smaller screens, the container's margin will be removed so the horizontal line (and everything outside content) will touch the screen. It's recommended to center the text that's outside to prevent that. + This is the content which is in the content wrapper of the container. It's meant for main content like an article. It's more indented than the container. On smaller screens, the container's margin will be removed so everything outside content will touch + the screen. It's recommended to center the text that's outside to prevent that.