diff options
Move Docs to Pug templates
1 files changed, 384 insertions, 657 deletions
| -rw-r--r-- | docs/getting-started.html | 1041 |
diff --git a/docs/getting-started.html b/docs/getting-started.html index b861f36..97c85bc 100644 --- a/docs/getting-started.html +++ b/docs/getting-started.html @@ -1,716 +1,443 @@ <!DOCTYPE html> <html lang="en"> -<head> - <meta charset="utf-8"> - <meta name="robots" content="index, follow"> - <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> - <meta http-equiv="x-ua-compatible" content="ie=edge"> - <meta name="author" content="https://github.com/picturepan2/"> - <title>Getting started - Spectre.css CSS Framework</title> - <link rel="shortcut icon" href="https://picturepan2.github.io/spectre/img/favicons/favicon.ico"> - <link rel="icon" href="https://picturepan2.github.io/spectre/img/favicons/favicon.png"> - <link rel="stylesheet" href="dist/spectre.min.css"> - <link rel="stylesheet" href="dist/spectre-icons.min.css"> - <link rel="stylesheet" href="dist/spectre-exp.min.css"> - <link rel="stylesheet" href="dist/docs.min.css"> -</head> -<body> - <div class="docs-container off-canvas off-canvas-sidebar-show"> - <div class="docs-navbar"> - <a class="off-canvas-toggle btn btn-link btn-action" href="#sidebar"> - <i class="icon icon-menu"></i> - </a> - <a href="https://github.com/picturepan2/spectre" target="_blank" class="btn btn-primary">GitHub</a> - </div> - - <div id="sidebar" class="docs-sidebar off-canvas-sidebar"> - <div class="docs-brand"> - <a href="index.html" class="docs-logo"> - <img src="img/spectre-logo.svg" alt="Spectre.css CSS Framework"> - <h2>SPECTRE</h2> - </a> - </div> - <div class="docs-nav"> - <div class="accordion-container"> - <div class="accordion"> - <input type="checkbox" id="docs-accordion-1" name="docs-accordion-checkbox" hidden checked> - <label class="accordion-header c-hand" for="docs-accordion-1"> - Getting started - </label> - <div class="accordion-body"> - <ul class="menu menu-nav"> - <li class="menu-item"> - <a href="getting-started.html">Introduction</a> - </li> - <li class="menu-item"> - <a href="getting-started.html#installation">Installation</a> - </li> - <li class="menu-item"> - <a href="getting-started.html#custom">Custom version</a> - </li> - <li class="menu-item"> - <a href="getting-started.html#browsers">Browser support</a> - </li> - <li class="menu-item"> - <a href="getting-started.html#whatsnew">What's new</a> - </li> - </ul> + <head> + <title>Getting started - Spectre.css CSS Framework</title> + <meta charset="utf-8"> + <meta name="robots" content="index, follow"> + <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> + <meta http-equiv="x-ua-compatible" content="ie=edge"> + <meta name="author" content="Yan Zhu"> + <link rel="shortcut icon" href="img/favicons/favicon.ico"> + <link rel="icon" href="img/favicons/favicon.png"> + <link rel="stylesheet" href="dist/spectre.min.css"> + <link rel="stylesheet" href="dist/spectre-icons.min.css"> + <link rel="stylesheet" href="dist/spectre-exp.min.css"> + <link rel="stylesheet" href="dist/docs.min.css"> + </head> + <body> + <div class="docs-container off-canvas off-canvas-sidebar-show"> + <div class="docs-navbar"><a class="off-canvas-toggle btn btn-link btn-action" href="#sidebar"><i class="icon icon-menu"></i></a><a class="btn btn-primary" href="https://github.com/picturepan2/spectre" target="_blank">GitHub</a></div> + <div class="docs-sidebar off-canvas-sidebar" id="sidebar"> + <div class="docs-brand"><a class="docs-logo" href="/"><img src="img/spectre-logo.svg" alt="Spectre.css CSS Framework"> + <h2>SPECTRE</h2></a></div> + <div class="docs-nav"> + <div class="accordion-container"> + <div class="accordion"> + <input id="accordion-getting-started" type="checkbox" name="docs-accordion-checkbox" hidden="" checked="checked"/> + <label class="accordion-header c-hand" for="accordion-getting-started">Getting started</label> + <div class="accordion-body"> + <ul class="menu menu-nav"> + <li class="menu-item"><a href="getting-started.html#introduction">Introduction</a></li> + <li class="menu-item"><a href="getting-started.html#installation">Installation</a></li> + <li class="menu-item"><a href="getting-started.html#custom">Custom version</a></li> + <li class="menu-item"><a href="getting-started.html#browsers">Browser support</a></li> + <li class="menu-item"><a href="getting-started.html#whatsnew">What's new</a></li> + </ul> + </div> </div> - </div> - <div class="accordion"> - <input type="checkbox" id="docs-accordion-2" name="docs-accordion-checkbox" hidden> - <label class="accordion-header c-hand" for="docs-accordion-2"> - Elements - </label> - <div class="accordion-body"> - <ul class="menu menu-nav"> - <li class="menu-item"> - <a href="elements.html">Typography</a> - </li> - <li class="menu-item"> - <a href="elements.html#tables">Tables</a> - </li> - <li class="menu-item"> - <a href="elements.html#buttons">Buttons</a> - </li> - <li class="menu-item"> - <a href="elements.html#forms">Forms</a> - </li> - <li class="menu-item"> - <a href="elements.html#icons">Icons</a> - </li> - <li class="menu-item"> - <a href="elements.html#labels">Labels</a> - </li> - <li class="menu-item"> - <a href="elements.html#codes">Codes</a> - </li> - <li class="menu-item"> - <a href="elements.html#media">Media</a> - </li> - </ul> + <div class="accordion"> + <input id="accordion-elements" type="checkbox" name="docs-accordion-checkbox" hidden=""/> + <label class="accordion-header c-hand" for="accordion-elements">Elements</label> + <div class="accordion-body"> + <ul class="menu menu-nav"> + <li class="menu-item"><a href="elements.html#typography">Typography</a></li> + <li class="menu-item"><a href="elements.html#tables">Tables</a></li> + <li class="menu-item"><a href="elements.html#buttons">Buttons</a></li> + <li class="menu-item"><a href="elements.html#forms">Forms</a></li> + <li class="menu-item"><a href="elements.html#icons">Icons</a></li> + <li class="menu-item"><a href="elements.html#labels">Labels</a></li> + <li class="menu-item"><a href="elements.html#codes">Codes</a></li> + <li class="menu-item"><a href="elements.html#media">Media</a></li> + </ul> + </div> </div> - </div> - <div class="accordion"> - <input type="checkbox" id="docs-accordion-3" name="docs-accordion-checkbox" hidden> - <label class="accordion-header c-hand" for="docs-accordion-3"> - Layout - </label> - <div class="accordion-body"> - <ul class="menu menu-nav"> - <li class="menu-item"> - <a href="layout.html">Flexbox grid</a> - </li> - <li class="menu-item"> - <a href="layout.html#responsive">Responsive</a> - </li> - <li class="menu-item"> - <a href="layout.html#navbar">Navbar</a> - </li> - </ul> + <div class="accordion"> + <input id="accordion-layout" type="checkbox" name="docs-accordion-checkbox" hidden=""/> + <label class="accordion-header c-hand" for="accordion-layout">Layout</label> + <div class="accordion-body"> + <ul class="menu menu-nav"> + <li class="menu-item"><a href="layout.html#flexbox">Flexbox grid</a></li> + <li class="menu-item"><a href="layout.html#responsive">Responsive</a></li> + <li class="menu-item"><a href="layout.html#navbar">Navbar</a></li> + </ul> + </div> </div> - </div> - <div class="accordion"> - <input type="checkbox" id="docs-accordion-4" name="docs-accordion-checkbox" hidden> - <label class="accordion-header c-hand" for="docs-accordion-4"> - Components - </label> - <div class="accordion-body"> - <ul class="menu menu-nav"> - <li class="menu-item"> - <a href="components.html">Accordions</a> - </li> - <li class="menu-item"> - <a href="components.html#avatars">Avatars</a> - </li> - <li class="menu-item"> - <a href="components.html#badges">Badges</a> - </li> - <li class="menu-item"> - <a href="components.html#bars">Bars</a> - </li> - <li class="menu-item"> - <a href="components.html#breadcrumbs">Breadcrumbs</a> - </li> - <li class="menu-item"> - <a href="components.html#cards">Cards</a> - </li> - <li class="menu-item"> - <a href="components.html#chips">Chips</a> - </li> - <li class="menu-item"> - <a href="components.html#empty">Empty states</a> - </li> - <li class="menu-item"> - <a href="components.html#menus">Menus</a> - </li> - <li class="menu-item"> - <a href="components.html#modals">Modals</a> - </li> - <li class="menu-item"> - <a href="components.html#navs">Navs</a> - </li> - <li class="menu-item"> - <a href="components.html#pagination">Pagination</a> - </li> - <li class="menu-item"> - <a href="components.html#panels">Panels</a> - </li> - <li class="menu-item"> - <a href="components.html#popovers">Popovers</a> - </li> - <li class="menu-item"> - <a href="components.html#steps">Steps</a> - </li> - <li class="menu-item"> - <a href="components.html#tabs">Tabs</a> - </li> - <li class="menu-item"> - <a href="components.html#tiles">Tiles</a> - </li> - <li class="menu-item"> - <a href="components.html#toasts">Toasts</a> - </li> - <li class="menu-item"> - <a href="components.html#tooltips">Tooltips</a> - </li> - </ul> + <div class="accordion"> + <input id="accordion-components" type="checkbox" name="docs-accordion-checkbox" hidden=""/> + <label class="accordion-header c-hand" for="accordion-components">Components</label> + <div class="accordion-body"> + <ul class="menu menu-nav"> + <li class="menu-item"><a href="components.html#accordions">Accordions</a></li> + <li class="menu-item"><a href="components.html#avatars">Avatars</a></li> + <li class="menu-item"><a href="components.html#badges">Badges</a></li> + <li class="menu-item"><a href="components.html#bars">Bars</a></li> + <li class="menu-item"><a href="components.html#breadcrumbs">Breadcrumbs</a></li> + <li class="menu-item"><a href="components.html#cards">Cards</a></li> + <li class="menu-item"><a href="components.html#chips">Chips</a></li> + <li class="menu-item"><a href="components.html#empty">Empty states</a></li> + <li class="menu-item"><a href="components.html#menus">Menus</a></li> + <li class="menu-item"><a href="components.html#modals">Modals</a></li> + <li class="menu-item"><a href="components.html#navs">Navs</a></li> + <li class="menu-item"><a href="components.html#pagination">Pagination</a></li> + <li class="menu-item"><a href="components.html#panels">Panels</a></li> + <li class="menu-item"><a href="components.html#popovers">Popovers</a></li> + <li class="menu-item"><a href="components.html#steps">Steps</a></li> + <li class="menu-item"><a href="components.html#tabs">Tabs</a></li> + <li class="menu-item"><a href="components.html#tiles">Tiles</a></li> + <li class="menu-item"><a href="components.html#toasts">Toasts</a></li> + <li class="menu-item"><a href="components.html#tooltips">Tooltips</a></li> + </ul> + </div> </div> - </div> - <div class="accordion"> - <input type="checkbox" id="docs-accordion-5" name="docs-accordion-checkbox" hidden> - <label class="accordion-header c-hand" for="docs-accordion-5"> - Utilities - </label> - <div class="accordion-body"> - <ul class="menu menu-nav"> - <li class="menu-item"> - <a href="utilities.html">Colors</a> - </li> - <li class="menu-item"> - <a href="utilities.html#cursors">Cursors</a> - </li> - <li class="menu-item"> - <a href="utilities.html#display">Display</a> - </li> - <li class="menu-item"> - <a href="utilities.html#divider">Divider</a> - </li> - <li class="menu-item"> - <a href="utilities.html#loading">Loading</a> - </li> - <li class="menu-item"> - <a href="utilities.html#position">Position</a> - </li> - <li class="menu-item"> - <a href="utilities.html#shapes">Shapes</a> - </li> - <li class="menu-item"> - <a href="utilities.html#text">Text</a> - </li> - </ul> + <div class="accordion"> + <input id="accordion-utilities" type="checkbox" name="docs-accordion-checkbox" hidden=""/> + <label class="accordion-header c-hand" for="accordion-utilities">Utilities</label> + <div class="accordion-body"> + <ul class="menu menu-nav"> + <li class="menu-item"><a href="utilities.html#colors">Colors</a></li> + <li class="menu-item"><a href="utilities.html#cursors">Cursors</a></li> + <li class="menu-item"><a href="utilities.html#display">Display</a></li> + <li class="menu-item"><a href="utilities.html#divider">Divider</a></li> + <li class="menu-item"><a href="utilities.html#loading">Loading</a></li> + <li class="menu-item"><a href="utilities.html#position">Position</a></li> + <li class="menu-item"><a href="utilities.html#shapes">Shapes</a></li> + <li class="menu-item"><a href="utilities.html#text">Text</a></li> + </ul> + </div> </div> - </div> - <div class="accordion"> - <input type="checkbox" id="docs-accordion-6" name="docs-accordion-checkbox" hidden> - <label class="accordion-header c-hand" for="docs-accordion-6"> - Experimentals - </label> - <div class="accordion-body"> - <ul class="menu menu-nav"> - <li class="menu-item"> - <a href="experimentals.html">Autocomplete</a> - </li> - <li class="menu-item"> - <a href="experimentals.html#calendars">Calendars</a> - </li> - <li class="menu-item"> - <a href="experimentals.html#carousels">Carousels</a> - </li> - <li class="menu-item"> - <a href="experimentals.html#comparison">Comparison sliders</a> - </li> - <li class="menu-item"> - <a href="experimentals.html#filters">Filters</a> - </li> - <li class="menu-item"> - <a href="experimentals.html#meters">Meters</a> - </li> - <li class="menu-item"> - <a href="experimentals.html#off-canvas">Off-canvas</a> - </li> - <li class="menu-item"> - <a href="experimentals.html#parallax">Parallax</a> - </li> - <li class="menu-item"> - <a href="experimentals.html#progress">Progress</a> - </li> - <li class="menu-item"> - <a href="experimentals.html#sliders">Sliders</a> - </li> - <li class="menu-item"> - <a href="experimentals.html#timelines">Timelines</a> - </li> - </ul> + <div class="accordion"> + <input id="accordion-experimentals" type="checkbox" name="docs-accordion-checkbox" hidden=""/> + <label class="accordion-header c-hand" for="accordion-experimentals">Experimentals</label> + <div class="accordion-body"> + <ul class="menu menu-nav"> + <li class="menu-item"><a href="experimentals.html#autocomplete">Autocomplete</a></li> + <li class="menu-item"><a href="experimentals.html#calendars">Calendars</a></li> + <li class="menu-item"><a href="experimentals.html#carousels">Carousels</a></li> + <li class="menu-item"><a href="experimentals.html#comparison">Comparison sliders</a></li> + <li class="menu-item"><a href="experimentals.html#filters">Filters</a></li> + <li class="menu-item"><a href="experimentals.html#meters">Meters</a></li> + <li class="menu-item"><a href="experimentals.html#off-canvas">Off-canvas</a></li> + <li class="menu-item"><a href="experimentals.html#parallax">Parallax</a></li> + <li class="menu-item"><a href="experimentals.html#progress">Progress</a></li> + <li class="menu-item"><a href="experimentals.html#sliders">Sliders</a></li> + <li class="menu-item"><a href="experimentals.html#timelines">Timelines</a></li> + </ul> + </div> </div> </div> </div> - </div> - </div> - - <a class="off-canvas-overlay" href="#close"></a> - - <div id="content" class="docs-content off-canvas-content"> - <div id="introduction" class="container"> - <h3 class="s-title"><a href="#introduction" class="anchor" aria-hidden="true">#</a>Introduction</h3> - <div class="docs-note"> - <p><strong>Spectre.css</strong> is a lightweight, responsive and modern CSS framework for faster and extensible development.</p> - <p>Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.</p> - </div> - </div> - - <div class="container"> - <div class="docs-ad"> - <div class="hide-md"> - <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> - <!-- GitHub-lg --> - <ins class="adsbygoogle" - style="display:inline-block;width:728px;height:90px" - data-ad-client="ca-pub-2225124559530218" - data-ad-slot="9894180784"></ins> - <script> - (adsbygoogle = window.adsbygoogle || []).push({}); - </script> + </div><a class="off-canvas-overlay" href="#close"></a> + <div class="off-canvas-content"> + <div class="docs-content" id="content"> + <div class="container"> + <h3 class="s-title" id="introduction"><a class="anchor" href="#introduction" aria-hidden="true">#</a>Introduction</h3> + <p> <strong>Spectre.css </strong>is a lightweight, responsive and modern CSS framework for faster and extensible development.</p> + <p> + Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.</p> </div> - <div class="show-md"> - <!-- GitHub-sm --> - <ins class="adsbygoogle" - style="display:inline-block;width:300px;height:250px" - data-ad-client="ca-pub-2225124559530218" - data-ad-slot="9278881734"></ins> - <script> - (adsbygoogle = window.adsbygoogle || []).push({}); - </script> - </div> - </div> - </div> - - <div id="installation" class="container"> - <h3 class="s-title"><a href="#installation" class="anchor" aria-hidden="true">#</a>Installation</h3> - <div class="docs-note"> - <p>There are 5 ways to get started with Spectre CSS framework in your projects. You can either install manually, from CDN or use package managers.</p> - </div> - <div class="docs-note"> - <p class="h5">Install manually</p> - <p>Download the compiled and minified <a href="https://github.com/picturepan2/spectre/releases" target="_blank">Spectre CSS file</a> (core ~10KB min+gzip):</p> - <p><a href="https://github.com/picturepan2/spectre/releases" target="_blank" class="btn btn-primary">Download Spectre.css</a></p> - <p>Include <code>spectre.css</code> located in <strong>/dist</strong> in your website or Web app <head>. Also, you can add <code>spectre-icons.css</code> and <code>spectre-exp.css</code> accordingly.</p> - </div> - -<!-- install manually --> -<pre class="code" data-lang="HTML"><code><<span class="tag">link</span> <span class="atn">rel</span>=<span class="atv">"stylesheet"</span> <span class="atn">href</span>=<span class="atv">"spectre.min.css"</span>> -<<span class="tag">link</span> <span class="atn">rel</span>=<span class="atv">"stylesheet"</span> <span class="atn">href</span>=<span class="atv">"spectre-exp.min.css"</span>> -<<span class="tag">link</span> <span class="atn">rel</span>=<span class="atv">"stylesheet"</span> <span class="atn">href</span>=<span class="atv">"spectre-icons.min.css"</span>> -</code></pre> - - <div class="docs-note"> - <p class="h5">Install from CDN</p> - <p>Alternatively, you can use the <a href="https://unpkg.com/" target="_blank">unpkg</a> or <a href="https://cdnjs.com/libraries/spectre.css" target="_blank">cdnjs</a> CDN to load compiled Spectre.css.</p> - </div> - -<!-- install from CDN --> -<pre class="code" data-lang="HTML"><code><<span class="tag">link</span> <span class="atn">rel</span>=<span class="atv">"stylesheet"</span> <span class="atn">href</span>=<span class="atv">"https://unpkg.com/spectre.css/dist/spectre.min.css"</span>> -<<span class="tag">link</span> <span class="atn">rel</span>=<span class="atv">"stylesheet"</span> <span class="atn">href</span>=<span class="atv">"https://unpkg.com/spectre.css/dist/spectre-exp.min.css"</span>> -<<span class="tag">link</span> <span class="atn">rel</span>=<span class="atv">"stylesheet"</span> <span class="atn">href</span>=<span class="atv">"https://unpkg.com/spectre.css/dist/spectre-icons.min.css"</span>> + <div class="container"> + <h3 class="s-title" id="installation"><a class="anchor" href="#installation" aria-hidden="true">#</a>Installation</h3> + <p>There are 5 ways to get started with Spectre CSS framework in your projects. You can either install manually, from CDN or use package managers.</p> + <h4 class="s-subtitle" id="install-manually"><a class="anchor" href="#install-manually" aria-hidden="true">#</a>Install manually</h4> + <p>Download the compiled and minified <a href="https://github.com/picturepan2/spectre/releases" target="_blank">Spectre CSS file</a> (core ~10KB min+gzip):</p> + <p><a class="btn btn-primary" href="https://github.com/picturepan2/spectre/releases" target="_blank">Download Spectre.css</a></p> + <p>Include <code>spectre.css</code> located in <strong>/dist</strong> in your website or Web app <head>. Also, you can add <code>spectre-icons.css</code> and <code>spectre-exp.css</code> accordingly.</p> + <pre class="code" data-lang="HTML"><code><span class="hljs-tag"><<span class="hljs-title">link</span> <span class="hljs-attribute">rel</span>=<span class="hljs-value">"stylesheet"</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">"spectre.min.css"</span>></span> +<span class="hljs-tag"><<span class="hljs-title">link</span> <span class="hljs-attribute">rel</span>=<span class="hljs-value">"stylesheet"</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">"spectre-exp.min.css"</span>></span> +<span class="hljs-tag"><<span class="hljs-title">link</span> <span class="hljs-attribute">rel</span>=<span class="hljs-value">"stylesheet"</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">"spectre-icons.min.css"</span>></span> </code></pre> - - <div class="docs-note"> - <p class="h5">Install with NPM</p> - </div> - -<!-- install with npm --> -<pre class="code" data-lang="Bash"><code><span class="tag">$</span>npm install <span class="atv">spectre.css</span> --save + <h4 class="s-subtitle" id="install-cdn"><a class="anchor" href="#install-cdn" aria-hidden="true">#</a>Install from CDN</h4> + <p>Alternatively, you can use the <a href="https://unpkg.com/" target="_blank">unpkg</a> or <a href="https://cdnjs.com/libraries/spectre.css" target="_blank">cdnjs</a> CDN to load compiled Spectre.css.</p> + <pre class="code" data-lang="HTML"><code><span class="hljs-tag"><<span class="hljs-title">link</span> <span class="hljs-attribute">rel</span>=<span class="hljs-value">"stylesheet"</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">"https://unpkg.com/spectre.css/dist/spectre.min.css"</span>></span> +<span class="hljs-tag"><<span class="hljs-title">link</span> <span class="hljs-attribute">rel</span>=<span class="hljs-value">"stylesheet"</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">"https://unpkg.com/spectre.css/dist/spectre-exp.min.css"</span>></span> +<span class="hljs-tag"><<span class="hljs-title">link</span> <span class="hljs-attribute">rel</span>=<span class="hljs-value">"stylesheet"</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">"https://unpkg.com/spectre.css/dist/spectre-icons.min.css"</span>></span> </code></pre> - - <div class="docs-note"> - <p class="h5">Install with Yarn</p> - </div> - -<!-- install with yarn --> -<pre class="code" data-lang="Bash"><code><span class="tag">$</span>yarn add <span class="atv">spectre.css</span> + <h4 class="s-subtitle" id="install-npm"><a class="anchor" href="#install-npm" aria-hidden="true">#</a>Install with NPM</h4> + <pre class="code" data-lang="Bash"><code>npm install spectre.css --save </code></pre> - - <div class="docs-note"> - <p class="h5">Install with Bower</p> - </div> - -<!-- install with bower --> -<pre class="code" data-lang="Bash"><code><span class="tag">$</span>bower install <span class="atv">spectre.css</span> --save + <h4 class="s-subtitle" id="install-yarn"><a class="anchor" href="#install-yarn" aria-hidden="true">#</a>Install with Yarn</h4> + <pre class="code" data-lang="Bash"><code>yarn add spectre.css </code></pre> + <h4 class="s-subtitle" id="install-bower"><a class="anchor" href="#install-bower" aria-hidden="true">#</a>Install from Bower</h4> + <pre class="code" data-lang="Bash"><code>bower install spectre.css --save</code></pre> + </div> + <div class="container"> + <h3 class="s-title" id="custom"><a class="anchor" href="#custom" aria-hidden="true">#</a>Custom version</h3> + <p>You can customize your version of Spectre.css by editing Sass files in <code>/src</code> directory or removing unneeded components from <code>.scss</code> source files.</p> + <p><a class="btn btn-primary" href="https://github.com/picturepan2/spectre/" target="_blank">Sass Source Code</a></p> + <p>If you are looking for Less version of Spectre.css, please switch to <code>Less</code> branch.</p> + <p><a class="btn" href="https://github.com/picturepan2/spectre/tree/less" target="_blank">Less Branch</a></p> + <h4 class="s-subtitle" id="compiling"><a class="anchor" href="#compiling" aria-hidden="true">#</a>Compiling CSS</h4> + <p>Spectre uses <a href="http://gulpjs.com/" target="_blank">Gulp</a> for compiling CSS. Firstly you need to <a href="https://www.npmjs.com/get-npm" target="_blank">install NPM</a>, which is used to manage Gulp and other dependencies.</p> + <p>Then, you can build the CSS file from the command line:</p> + <ol> + <li>Navigate to the root directory of Spectre.</li> + <li>Run <code>npm install</code>. NPM will install all dev dependencies as listed in package.json.</li> + <li>When completed, run <code>gulp build</code> task to compile Sass to CSS and minify files.</li> + <li>You can find compiled CSS files in <code>/dist</code> directory.</li> + </ol> + <p>All available Gulp tasks:</p> + <ul> + <li><code>gulp build</code> - compile Sass to CSS and minify files (default)</li> + <li><code>gulp docs</code> - compile Docs related files</li> + <li><code>gulp watch</code> - watch file changes and re-compile CSS files</li> + </ul> + <h4 class="s-subtitle" id="importing"><a class="anchor" href="#importing" aria-hidden="true">#</a>Importing Sass</h4> + <p>It is recommended to customize Spectre by importing Sass source files to your projects. In this way, you can keep Spectre up to date without conflicts, since Spectre code and your custom code are separate.</p> + <ul> + <li>First, create your own project and install Spectre via <a href="#installation">NPM or other package managers</a>.</li> + <li>Then create your <code>project-name.scss</code> file in the root folder. You can use <code>project-name.scss</code> to define your variables.</li> + <li>Compile the Sass file to CSS to get the custom version of Spectre.</li> + </ul> + <!-- importing--> + <pre class="code" data-lang="Sass"><code><span class="hljs-comment">// Example of project-name.scss</span> +<span class="hljs-comment">// Define variables to override default ones</span> +<span class="hljs-variable">$primary-color</span><span class="hljs-value">: <span class="hljs-hexcolor">#2e5bec</span>;</span> +<span class="hljs-variable">$dark-color</span><span class="hljs-value">: <span class="hljs-hexcolor">#3e396b</span>;</span> - </div> - - <div class="container"> - <div class="docs-ad docs-ad-sidebar"> - <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=picturepan2githubio" id="_carbonads_js"></script> - </div> - </div> - - <div id="custom" class="container"> - <h3 class="s-title"><a href="#custom" class="anchor" aria-hidden="true">#</a>Custom version</h3> - <div class="docs-note"> - <p>You can customize your version of Spectre.css by editing Sass files in <code>/src</code> directory or removing unneeded components from <code>.scss</code> source files.</p> - <p><a href="https://github.com/picturepan2/spectre/" target="_blank" class="btn btn-primary">Sass Source Code</a></p> - <p>If you are looking for Less version of Spectre.css, please switch to <code>Less</code> branch.</p> - <p><a href="https://github.com/picturepan2/spectre/tree/less" target="_blank" class="btn">Less Branch</a></p> - </div> - <h4 id="compiling" class="s-subtitle">Compiling CSS</h4> - <div class="docs-note"> - <p>Spectre uses <a href="http://gulpjs.com/" target="_blank">Gulp</a> for compiling CSS. Firstly you need to <a href="https://www.npmjs.com/get-npm" target="_blank">install NPM</a>, which is used to manage Gulp and other dependencies.</p> - <p>Then, you can build the CSS file from the command line:</p> - <ol> - <li>Navigate to the root directory of Spectre.</li> - <li>Run <code>npm install</code>. NPM will install all dev dependencies as listed in package.json.</li> - <li>When completed, run <code>gulp build</code> task to compile Sass to CSS and minify files.</li> - <li>You can find compiled CSS files in <code>/dist</code> directory.</li> - </ol> - <p>All available Gulp tasks:</p> - <ul> - <li><code>gulp build</code> - compile Sass to CSS and minify files (default)</li> - <li><code>gulp docs</code> - compile Docs related files</li> - <li><code>gulp watch</code> - watch file changes and re-compile CSS files</li> - </ul> - </div> - <h4 id="importing" class="s-subtitle">Importing Sass</h4> - <div class="docs-note"> - <p>It is recommended to customize Spectre by importing Sass source files to your projects. In this way, you can keep Spectre up to date without conflicts, since Spectre code and your custom code are separate.</p> - <ul> - <li>First, create your own project and install Spectre via <a href="#installation">NPM or other package managers</a>.</li> - <li>Then create your <code>project-name.scss</code> file in the root folder. You can use <code>project-name.scss</code> to define your variables.</li> - <li>Compile the Sass file to CSS to get the custom version of Spectre.</li> - </ul> - -<!-- importing --> -<pre class="code" data-lang="SASS"><code><span class="com">// Example of project-name.scss</span> -<span class="com">// Define variables to override default ones</span> -<span class="tag">$primary-color</span>: <span class="atn"></span>#2e5bec</span>; -<span class="tag">$dark-color</span>: <span class="atn"></span>#3e396b</span>; - -<span class="com">// Import full Spectre source code</span> -<span class="tag">@import</span> "node_modules/spectre.css/src/spectre"; +<span class="hljs-comment">// Import full Spectre source code</span> +<span class="hljs-at_rule">@<span class="hljs-keyword">import</span> <span class="hljs-string">"node_modules/spectre.css/src/spectre"</span>;</span> </code></pre> + <p>Alternatively, you can create custom <code>_variables.scss</code> and import it to <code>project-name.scss</code>.</p> + <!-- custom variables--> + <pre class="code" data-lang="Sass"><code><span class="hljs-comment">// Example of project-name.scss</span> +<span class="hljs-at_rule">@<span class="hljs-keyword">import</span> <span class="hljs-string">"variables"</span>;</span> - <p>Alternatively, you can create custom <code>_variables.scss</code> and import it to <code>project-name.scss</code>. </p> - -<!-- importing --> -<pre class="code" data-lang="SASS"><code><span class="com">// Example of project-name.scss</span> -<span class="tag">@import</span> "variables"; - -<span class="com">// Import only the needed components</span> -<span class="tag">@import</span> "node_modules/spectre.css/src/buttons"; -<span class="tag">@import</span> "node_modules/spectre.css/src/forms"; +<span class="hljs-comment">// Import only the needed components</span> +<span class="hljs-at_rule">@<span class="hljs-keyword">import</span> <span class="hljs-string">"node_modules/spectre.css/src/buttons"</span>;</span> +<span class="hljs-at_rule">@<span class="hljs-keyword">import</span> <span class="hljs-string">"node_modules/spectre.css/src/forms"</span>;</span> </code></pre> - - </div> - - <h4 id="folders" class="s-subtitle">Folder structure</h4> - -<!-- folder structure --> -<pre class="code"><code>spectre/ -├── dist/ <span class="com">// Build folder</span> -│ ├── spectre-exp.css -│ ├── spectre-exp.min.css + <h4 class="s-subtitle" id="folders"><a class="anchor" href="#folders" aria-hidden="true">#</a>Folder structure</h4> + <!-- folder structure--> + <pre class="code"><code>spectre/ +├── <span class="hljs-built_in">dist</span>/ <span class="hljs-comment">// Build folder</span> +│ ├── spectre-<span class="hljs-built_in">exp</span>.css +│ ├── spectre-<span class="hljs-built_in">exp</span>.<span class="hljs-built_in">min</span>.css │ ├── spectre-icons.css -│ ├── spectre-icons.min.css +│ ├── spectre-icons.<span class="hljs-built_in">min</span>.css │ ├── spectre.css -│ └── spectre.min.css +│ └── spectre.<span class="hljs-built_in">min</span>.css │ ├── docs/ -│ ├── dist/ <span class="com">// Pre-built CSS folder</span> -│ │ ├── spectre-exp.css -│ │ ├── spectre-exp.min.css +│ ├── <span class="hljs-built_in">dist</span>/ <span class="hljs-comment">// Pre-built CSS folder</span> +│ │ ├── spectre-<span class="hljs-built_in">exp</span>.css +│ │ ├── spectre-<span class="hljs-built_in">exp</span>.<span class="hljs-built_in">min</span>.css │ │ ├── spectre-icons.css -│ │ ├── spectre-icons.min.css +│ │ ├── spectre-icons.<span class="hljs-built_in">min</span>.css │ │ ├── spectre.css -│ │ └── spectre.min.css -| ├── css/ <span class="com">// Docs CSS file</span> +│ │ └── spectre.<span class="hljs-built_in">min</span>.css +| ├── css/ <span class="hljs-comment">// Docs CSS files</span> │ │ └── docs.css | ├── src/ -│ │ └── docs.scss -│ ├── examples/ <span class="com">// Example tempalte</span> +│ │ ├── scss <span class="hljs-comment">// Docs Sass files</span> +│ │ │ └── docs.scss +│ │ ├── index.pug <span class="hljs-comment">// Docs Pug files</span> +│ │ └── ... +│ ├── examples/ <span class="hljs-comment">// Example tempalte</span> │ │ └── starter.html │ ├── ../ │ ├── index.html │ └── ... │ -├── src/ <span class="com">// Source Sass files</span> +├── src/ <span class="hljs-comment">// Source Sass files</span> │ ├── spectre.scss │ ├── spectre-icons.scss -│ ├── spectre-exp.scss +│ ├── spectre-<span class="hljs-built_in">exp</span>.scss │ ├── _mixins.scss │ ├── _variables.scss │ └── ... │ ├── gulpfile.js -├── package.json +├── <span class="hljs-keyword">package</span>.json └── ... </code></pre> - - <h4 id="variables" class="s-subtitle"><a href="#variables" class="anchor" aria-hidden="true">#</a>Variables</h4> - <div class="docs-note"> - <p>Spectre.css is designed with consistent design language. You can use your own variables to create your new or match existing design. All variables in <code>_variables.scss</code> include <code>!default</code> flag. You can redefine the variables to override the values.</p> - </div> - <h5 id="variables-colors" class="s-subtitle">Colors</h5> - <div class="columns"> - <div class="column col-3 col-md-6"> - <div class="docs-color" style="background:#5755d9;color:#fff;"> - <div class="color-title">#5755d9</div> - <div class="color-subtitle">Primary</div> - </div> - </div> - <div class="column col-3 col-md-6"> - <div class="docs-color" style="background:#f1f1fc;color:#5755d9;"> - <div class="color-title">#f1f1fc</div> - <div class="color-subtitle">Secondary</div> - </div> - </div> - </div> - <div class="columns"> - <div class="column col-3 col-md-6"> - <div class="docs-color" style="background:#32b643;color:#fff;"> - <div class="color-title">#32b643</div> - <div class="color-subtitle">Success</div> - </div> - </div> - <div class="column col-3 col-md-6"> - <div class="docs-color" style="background:#ffb700;color:#fff;"> - <div class="color-title">#ffb700</div> - <div class="color-subtitle">Warning</div> - </div> - </div> - <div class="column col-3 col-md-6"> - <div class="docs-color" style="background:#e85600;color:#fff;"> - <div class="color-title">#e85600</div> - <div class="color-subtitle">Error</div> - </div> - </div> - </div> - <div class="columns"> - <div class="column col-3 col-md-6"> - <div class="docs-color" style="background:#454d5d;color:#fff;"> - <div class="color-title">#454d5d</div> - <div class="color-subtitle">Dark</div> + <h4 class="s-subtitle" id="variables"><a class="anchor" href="#variables" aria-hidden="true">#</a>Variables</h4> + <p>Spectre.css is designed with consistent design language. You can use your own variables to create your new or match existing design. All variables in <code>_variables.scss</code> include <code>!default</code> flag. You can redefine the variables to override the values.</p> + <h4 class="s-subtitle" id="variables-colors"><a class="anchor" href="#variables-colors" aria-hidden="true">#</a>Variables - Colors</h4> + <div class="columns"> + <div class="column col-3 col-md-6"> + <div class="docs-color" style="background:#5755d9;color:#fff;"> + <div class="color-title">#5755d9</div> + <div class="color-subtitle">Primary</div> + </div> + </div> + <div class="column col-3 col-md-6"> + <div class="docs-color" style="background:#f1f1fc;color:#5755d9;"> + <div class="color-title">#f1f1fc</div> + <div class="color-subtitle">Secondary</div> + </div> + </div> </div> - </div> - <div class="column col-3 col-md-6"> - <div class="docs-color" style="background:#727e96;color:#fff;"> - <div class="color-title">#727e96</div> - <div class="color-subtitle">Gray dark</div> - </div> - </div> - <div class="column col-3 col-md-6"> - <div class="docs-color" style="background:#acb3c2;color:#fff;"> - <div class="color-title">#acb3c2</div> - <div class="color-subtitle">Gray</div> + <div class="columns"> + <div class="column col-3 col-md-6"> + <div class="docs-color" style="background:#32b643;color:#fff;"> + <div class="color-title">#32b643</div> + <div class="color-subtitle">Success</div> + </div> + </div> + <div class="column col-3 col-md-6"> + <div class="docs-color" style="background:#ffb700;color:#fff;"> + <div class="color-title">#ffb700</div> + <div class="color-subtitle">Warning</div> + </div> + </div> + <div class="column col-3 col-md-6"> + <div class="docs-color" style="background:#e85600;color:#fff;"> + <div class="color-title">#e85600</div> + <div class="color-subtitle">Error</div> + </div> + </div> </div> - </div> - <div class="column col-3 col-md-6"> - <div class="docs-color" style="background:#e7e9ed;color:#727e96;"> - <div class="color-title">#e7e9ed</div> - <div class="color-subtitle">Gray light</div> + <div class="columns"> + <div class="column col-3 col-md-6"> + <div class="docs-color" style="background:#454d5d;color:#fff;"> + <div class="color-title">#454d5d</div> + <div class="color-subtitle">Dark</div> + </div> + </div> + <div class="column col-3 col-md-6"> + <div class="docs-color" style="background:#727e96;color:#fff;"> + <div class="color-title">#727e96</div> + <div class="color-subtitle">Gray dark</div> + </div> + </div> + <div class="column col-3 col-md-6"> + <div class="docs-color" style="background:#acb3c2;color:#fff;"> + <div class="color-title">#acb3c2</div> + <div class="color-subtitle">Gray</div> + </div> + </div> + <div class="column col-3 col-md-6"> + <div class="docs-color" style="background:#e7e9ed;color:#727e96;"> + <div class="color-title">#e7e9ed</div> + <div class="color-subtitle">Gray light</div> + </div> + </div> + <div class="column col-3 col-md-6"> + <div class="docs-color" style="background:#f0f1f4;color:#727e96;"> + <div class="color-title">#f0f1f4</div> + <div class="color-subtitle">Border</div> + </div> + </div> + <div class="column col-3 col-md-6"> + <div class="docs-color" style="background:#f8f9fa;color:#727e96;"> + <div class="color-title">#f8f9fa</div> + <div class="color-subtitle">Background</div> + </div> + </div> + <div class="column col-3 col-md-6"> + <div class="docs-color" style="background:#fff;color:#727e96;"> + <div class="color-title">#fff</div> + <div class="color-subtitle">Light</div> + </div> + </div> </div> - </div> - <div class="column col-3 col-md-6"> - <div class="docs-color" style="background:#f0f1f4;color:#727e96;"> - <div class="color-title">#f0f1f4</div> - <div class="color-subtitle">Border</div> - </div> - </div> - <div class="column col-3 col-md-6"> - <div class="docs-color" style="background:#f8f9fa;color:#727e96;"> - <div class="color-title">#f8f9fa</div> - <div class="color-subtitle">Background</div> - </div> - </div> - <div class="column col-3 col-md-6"> - <div class="docs-color" style="background:#fff;color:#727e96;"> - <div class="color-title">#fff</div> - <div class="color-subtitle">Light</div> - </div> - </div> - </div> - - <h5 id="variables-buttons" class="s-subtitle">Buttons</h5> - <div class="docs-note"> - <p>There are 2 button variant mixins in <code>_mixins.scss</code> to generate different color variants. </p> - <ul> - <li>@mixin button-variant(<code>$color</code>: $primary-color);</li> - <li>@mixin button-outline-variant(<code>$color</code>: $primary-color);</li> - </ul> - -<!-- button variables --> -<pre class="code" data-lang="SASS"><code><span class="com"><!-- filled button with the success color --></span> -<span class="tag">.btn-success</span> { - <span class="tag">@include</span> button-variant(<span class="atv">$success-color</span>); + <h4 class="s-subtitle" id="variables-buttons"><a class="anchor" href="#variables-buttons" aria-hidden="true">#</a>Variables - Button mixins</h4> + <p>There are 2 button variant mixins in <code>_mixins.scss</code> to generate different color variants.</p> + <ul> + <li>@mixin button-variant(<code>$color</code>: $primary-color);</li> + <li>@mixin button-outline-variant(<code>$color</code>: $primary-color);</li> + </ul> + <!-- button mixins--> + <pre class="code" data-lang="Sass"><code><!-- filled <span class="hljs-tag">button</span> with the success <span class="hljs-attribute">color</span> --> +<span class="hljs-class">.btn-success</span> { + <span class="hljs-at_rule">@<span class="hljs-keyword">include</span><span class="hljs-preprocessor"> button-variant</span>(<span class="hljs-variable">$success-color</span>);</span> } -<span class="com"><!-- outlined button with the success color --></span> -<span class="tag">.btn-outline-success</span> { - <span class="tag">@include</span> button-outline-variant(<span class="atv">$success-color</span>); +<!-- outlined <span class="hljs-tag">button</span> with the success <span class="hljs-attribute">color</span> --> +<span class="hljs-class">.btn-outline-success</span> { + <span class="hljs-at_rule">@<span class="hljs-keyword">include</span><span class="hljs-preprocessor"> button-outline-variant</span>(<span class="hljs-variable">$success-color</span>);</span> } </code></pre> - - </div> - - <h5 id="variables-sizes" class="s-subtitle">Sizes</h5> - <div class="docs-note"> - <p>The default REM (root em) size in Spectre.css is <code>20px</code>. </p> - <p>Please note in the Chinese/Japanese/Korean version, Chrome uses 12px as default minimum font size. That is why Spectre sets rem default html font size to <code>20px</code>, which is relatively easy to calculate. </p> - <p>Spectre uses <code>4px</code> as the unit size. Sizes of components are based on the unit size. </p> - </div> - - <h5 id="variables-custom-prefix" class="s-subtitle">Custom prefix</h5> - <div class="docs-note"> - <p>There is also a way to add custom prefix to all CSS classes. You can use <a href="https://www.npmjs.com/package/gulp-css-prefix" target="_blank">gulp-css-prefix</a> plugin and add a new Gulp task to enable it. </p> - </div> - -<!-- custom prefix --> -<pre class="code"><code><span class="tag">$</span> npm install <span class="atv">gulp-css-prefix</span> + <h4 class="s-subtitle" id="variables-sizes"><a class="anchor" href="#variables-sizes" aria-hidden="true">#</a>Variables - Sizes</h4> + <p>The default REM (root em) size in Spectre.css is <code>20px</code>.</p> + <p>Please note in the Chinese/Japanese/Korean version, Chrome uses 12px as default minimum font size. That is why Spectre sets rem default html font size to <code>20px</code>, which is relatively easy to calculate.</p> + <p>Spectre uses <code>4px</code> as the unit size. Sizes of components are based on the unit size.</p> + <h4 class="s-subtitle" id="variables-custom-prefix"><a class="anchor" href="#variables-custom-prefix" aria-hidden="true">#</a>Variables - Custom prefix</h4> + <p>There is also a way to add custom prefix to all CSS classes. You can use <a href="https://www.npmjs.com/package/gulp-css-prefix" target="_blank">gulp-css-prefix</a> plugin and add a new Gulp task to enable it.</p> + <!-- custom prefix--> + <pre class="code" data-lang="Bash"><code>npm install gulp-css-prefix </code></pre> + <p>To add <code>spectre-</code> to all classes, you can add the Gulp task to <code>gulpfile.js</code> file.</p> + <!-- custom prefix--> + <pre class="code"><code><span class="hljs-keyword">var</span> cssPrefix = <span class="hljs-built_in">require</span>(<span class="hljs-string">'gulp-css-prefix'</span>); - <div class="docs-note"> - <p>To add <code>spectre-</code> to all classes, you can add the Gulp task to <code>gulpfile.js</code> file.</p> - </div> - -<!-- custom prefix --> -<pre class="code"><code>var cssPrefix = require('<span class="atv">gulp-css-prefix</span>'); - -gulp.task('prefix', function() { - gulp.src('./dist/*.css') - .pipe(cssPrefix('<span class="atv">spectre-</span>')) - .pipe(gulp.dest('./dist')) +gulp.task(<span class="hljs-string">'prefix'</span>, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{ + gulp.src(<span class="hljs-string">'./dist/*.css'</span>) + .pipe(cssPrefix(<span class="hljs-string">'spectre-'</span>)) + .pipe(gulp.dest(<span class="hljs-string">'./dist'</span>)) }); </code></pre> - - <div class="docs-note"> - <p>After you compile your version of Spectre in the /dist, run <code>gulp prefix</code> in the directory of Spectre.</p> - </div> - </div> - - <div id="accessibility" class="container"> - <h3 class="s-title"><a href="#accessibility" class="anchor" aria-hidden="true">#</a>Accessibility <small class="label">coming soon</small></h3> - </div> - - <div id="browsers" class="container"> - <h3 class="s-title"><a href="#browsers" class="anchor" aria-hidden="true">#</a>Browser support</h3> - <div class="docs-note"> - <p>Spectre uses <a href="https://github.com/postcss/autoprefixer" target="_blank">Autoprefixer</a> to make most styles compatible with earlier browsers and <a href="https://necolas.github.io/normalize.css/" target="_blank">Normalize.css</a> for CSS resets. Spectre is designed for modern browsers. For best compatibility, these browsers are recommended:</p> - <ul> - <li>Chrome <small class="label label-success">LAST 4</small></li> - <li>Microsoft Edge <small class="label label-success">LAST 4</small></li> - <li>Firefox <small class="label label-success text-uppercase">Extended Support Release</small></li> - <li>Safari <small class="label label-success">LAST 4</small></li> - <li>Opera <small class="label label-success">LAST 4</small></li> - <li>Internet Explorer 10+</li> - </ul> - <p>Spectre supports Internet Explorer 10+, but some HTML5 and CSS3 features are not perfectly supported by Internet Explorer.</p> - </div> - </div> - - <div id="whatsnew" class="container"> - <h3 class="s-title"><a href="#whatsnew" class="anchor" aria-hidden="true">#</a>What's new</h3> - <div class="docs-note"> - <p><strong>September 2017</strong></p> - <ul> - <li> - <a href="experimentals.html#off-canvas">Off-canvas</a>: navigation layout that the sidebar can slide in and out of the viewport <small class="label label-primary">NEW</small> - </li> - </ul> - <p><strong>August 2017</strong></p> - <ul> - <li> - <a href="getting-started.html">Switch to Sass</a> <small class="label label-primary">NEW</small> - </li> - <li> - <a href="getting-started.html">New Docs Experience</a> <small class="label label-primary">NEW</small> - </li> - </ul> - <p><strong>April 2017</strong></p> - <ul> - <li> - <a href="components.html#accordions">Accordions</a>: used to toggle sections of content - </li> - <li> - <a href="experimentals.html#filters">Filters</a>: CSS only content filters - </li> - <li> - <a href="experimentals.html#comparison">Comparison Sliders</a>: sliders for comparing two images - </li> - <li> - <a href="experimentals.html#timelines">Timelines</a>: ordered sequences of activities - </li> - </ul> - <p><strong>March 2017</strong></p> - <ul> - <li> - <a href="elements.html#icons">Icons</a>: single-element, responsive and pure CSS icons - </li> - <li> - <a href="components.html#popovers">Popovers</a>: small overlay content containers - </li> - <li> - <a href="layout.html#panels">Panels</a>: flexible view container layout with auto-expand content section - </li> - <li> - <a href="experimentals.html#carousels">Carousels</a>: slideshows for cycling images - </li> - <li> - <a href="experimentals.html#calendars">Calendars</a>: date or date range picker and events display - </li> - </ul> - <p><strong>February 2017</strong></p> - <ul> - <li>New Documents experience</li> - <li> - <a href="components.html#bars">Bars</a>: represent the progress of a task or the value within the known range - </li> - <li> - <a href="components.html#steps">Steps</a>: progress indicators of a sequence of task steps - </li> - <li> - <a href="components.html#tiles">Tiles</a>: repeatable or embeddable information blocks - </li> - <li> - <a href="experimentals.html">Experimentals</a>: experimental elements and features - </li> - <li> - <a href="experimentals.html#meters">Meters</a>, <a href="experimentals.html#parallax">Parallax</a>, <a href="experimentals.html#progress">Progress</a> and <a href="experimentals.html#sliders">Sliders</a> - </li> - </ul> - <p><strong>March 2016</strong></p> - <ul> - <li>Initial commit</li> - </ul> - <p><a href="https://github.com/picturepan2/spectre/releases" target="_blank" class="btn btn-primary">Releases</a></p> + <p>After you compile your version of Spectre in the /dist, run <code>gulp prefix</code> in the directory of Spectre.</p> + </div> + <div class="container"> + <h3 class="s-title" id="accessibility"><a class="anchor" href="#accessibility" aria-hidden="true">#</a>Accessibility</h3> + </div> + <div class="container"> + <h3 class="s-title" id="browers"><a class="anchor" href="#browers" aria-hidden="true">#</a>Browser support</h3> + <p>Spectre uses <a href="https://github.com/postcss/autoprefixer" target="_blank">Autoprefixer</a> to make most styles compatible with earlier browsers and <a href="https://necolas.github.io/normalize.css/" target="_blank">Normalize.css</a> for CSS resets. Spectre is designed for modern browsers. For best compatibility, these browsers are recommended:</p> + <ul> + <li>Chrome <small class="label label-success">LAST 4</small></li> + <li>Microsoft Edge <small class="label label-success">LAST 4</small></li> + <li>Firefox <small class="label label-success text-uppercase">Extended Support Release</small></li> + <li>Safari <small class="label label-success">LAST 4</small></li> + <li>Opera <small class="label label-success">LAST 4</small></li> + <li>Internet Explorer 10+</li> + </ul> + <p>Spectre supports Internet Explorer 10+, but some HTML5 and CSS3 features are not perfectly supported by Internet Explorer.</p> + </div> + <div class="container"> + <h3 class="s-title" id="whatsnew"><a class="anchor" href="#whatsnew" aria-hidden="true">#</a>What's new</h3> + <p><strong>September 2017</strong></p> + <ul> + <li><a href="experimentals.html#off-canvas">Off-canvas</a>: navigation layout that the sidebar can slide in and out of the viewport <small class="label label-primary">NEW</small></li> + </ul> + <p><strong>August 2017</strong></p> + <ul> + <li><a href="getting-started.html">Switch to Sass </a><small class="label label-primary">NEW</small></li> + <li><a href="getting-started.html">New Docs Experience </a><small class="label label-primary">NEW</small></li> + </ul> + <p><strong>April 2017</strong></p> + <ul> + <li><a href="components.html#accordions">Accordions</a>: used to toggle sections of content</li> + <li><a href="experimentals.html#filters">Filters</a>: CSS only content filters</li> + <li><a href="experimentals.html#comparison">Comparison Sliders</a>: sliders for comparing two images</li> + <li><a href="experimentals.html#timelines">Timelines</a>: ordered sequences of activities</li> + </ul> + <p><strong>March 2017</strong></p> + <ul> + <li><a href="elements.html#icons">Icons</a>: single-element, responsive and pure CSS icons</li> + <li><a href="components.html#popovers">Popovers</a>: small overlay content containers</li> + <li><a href="layout.html#panels">Panels</a>: flexible view container layout with auto-expand content section</li> + <li><a href="experimentals.html#carousels">Carousels</a>: slideshows for cycling images</li> + <li><a href="experimentals.html#calendars">Calendars</a>: date or date range picker and events display</li> + </ul> + <p><strong>February 2017</strong></p> + <ul> + <li>New Documents experience</li> + <li><a href="components.html#bars">Bars</a>: represent the progress of a task or the value within the known range</li> + <li><a href="components.html#steps">Steps</a>: progress indicators of a sequence of task steps</li> + <li><a href="components.html#tiles">Tiles</a>: repeatable or embeddable information blocks</li> + <li><a href="experimentals.html">Experimentals</a>: experimental elements and features</li> + <li><a href="experimentals.html#meters">Meters</a>, <a href="experimentals.html#parallax">Parallax</a>, <a href="experimentals.html#progress">Progress</a> and <a href="experimentals.html#sliders">Sliders</a></li> + </ul> + <p><strong>March 2016</strong></p> + <ul> + <li>Initial commit</li> + </ul> + <p><a class="btn btn-primary" href="https://github.com/picturepan2/spectre/releases" target="_blank">Releases</a></p> + </div> </div> </div> - - <footer class="docs-footer"> - <p><a href="https://github.com/picturepan2/spectre" target="_blank">GitHub</a> | <a href="https://twitter.com/spectrecss" target="_blank">Twitter</a> | <a href="https://www.paypal.me/picturepan2" target="_blank">PayPal Donate</a> | Version <span class="version"></span></p> - <p>Designed and built with <span class="text-error">♥</span> by <a href="https://twitter.com/picturepan2" target="_blank">Yan Zhu</a>. Licensed under the <a href="https://github.com/picturepan2/spectre/blob/master/LICENSE" target="_blank">MIT License</a>.</p> - </footer> - </div> - </div> - - <script> + <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); - + ga('create', 'UA-2702768-8', 'auto'); ga('send', 'pageview'); - </script> -</body> -</html> + </script> + </body> +</html>
\ No newline at end of file |