From c59e31abc96642d4e54e56e3aa8167806a35f35e Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Sun, 3 Jun 2018 17:37:29 +0800 Subject: Update buttons and forms docs to Pug templates --- docs/getting-started.html | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'docs/getting-started.html') diff --git a/docs/getting-started.html b/docs/getting-started.html index 0f3f1ff..4d9f7ee 100644 --- a/docs/getting-started.html +++ b/docs/getting-started.html @@ -142,15 +142,15 @@

Download the compiled and minified Spectre CSS file (core ~10KB min+gzip):

Download Spectre.css

Include spectre.css located in /dist in your website or Web app . Also, you can add spectre-icons.css and spectre-exp.css accordingly.

-
<link rel="stylesheet" href="spectre.min.css">
-<link rel="stylesheet" href="spectre-exp.min.css">
-<link rel="stylesheet" href="spectre-icons.min.css">
+            
<link rel="stylesheet" href="spectre.min.css">
+<link rel="stylesheet" href="spectre-exp.min.css">
+<link rel="stylesheet" href="spectre-icons.min.css">
 

Install from CDN

Alternatively, you can use the unpkg or cdnjs CDN to load compiled Spectre.css.

-
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css">
-<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre-exp.min.css">
-<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre-icons.min.css">
+            
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css">
+<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre-exp.min.css">
+<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre-icons.min.css">
 

Install with NPM

npm install spectre.css --save
@@ -191,19 +191,19 @@
             
             
// Example of project-name.scss
 // Define variables to override default ones
-$primary-color: #2e5bec;
-$dark-color: #3e396b;
+$primary-color: #2e5bec;
+$dark-color: #3e396b;
 
 // Import full Spectre source code
-@import "node_modules/spectre.css/src/spectre";
+@import "node_modules/spectre.css/src/spectre";
 

Alternatively, you can create custom _variables.scss and import it to project-name.scss.

// Example of project-name.scss
-@import "variables";
+@import "variables";
 
 // Import only the needed components
-@import "node_modules/spectre.css/src/buttons";
-@import "node_modules/spectre.css/src/forms";
+@import "node_modules/spectre.css/src/buttons";
+@import "node_modules/spectre.css/src/forms";
 

Folder structure

spectre/
@@ -335,14 +335,14 @@
               
  • @mixin button-variant($color: $primary-color);
  • @mixin button-outline-variant($color: $primary-color);
  • -
    <!-- filled button with the success color -->
    -.btn-success {
    -  @include button-variant($success-color);
    +            
    <!-- filled button with the success color -->
    +.btn-success {
    +  @include button-variant($success-color);
     }
     
    -<!-- outlined button with the success color -->
    -.btn-outline-success {
    -  @include button-outline-variant($success-color);
    +<!-- outlined button with the success color -->
    +.btn-outline-success {
    +  @include button-outline-variant($success-color);
     }
     

    Variables - Sizes

    -- cgit v1.3.1-23-gd82d