diff --git a/agnosticui-css/flexboxgrid.html b/agnosticui-css/flexboxgrid.html index e881ba4f7..d56a9fded 100644 --- a/agnosticui-css/flexboxgrid.html +++ b/agnosticui-css/flexboxgrid.html @@ -16,8 +16,6 @@ } .demo-only { - background: #f9f9f9; - border: 1px solid #eee; padding: 2rem 0; } @@ -30,12 +28,37 @@ +
+

Gutter opt-in.

+

By default, we remove magic gutters. But, + you can opt back in for them when you need them (cards or boxes + are a good example use case) by defining `--agnosticui-gutter-width` in your stylsheet. +

+ +
+
+

xs={12} --agnosticui-gutter-width set

+
+
+

xs={12} --agnosticui-gutter-width set

+
+
+

xs={12} --agnosticui-gutter-width set

+
+
+

xs={12} --agnosticui-gutter-width set

+
+
+

Basic Grid

Check out the demo storybooks in the framework you're interested in (React, Svelte, Vue, etc.).

-

xs = Extra Small. sm = Small. lg = Large.

-

The following breakpoints can be overriden by redefining in your stylesheet and omitting the -default - part:

+

xs = Extra Small. sm = Small. lg = Large. xl = Extra Large.

+

The following breakpoints are used by FlexGrid:

       --agnosticui-default-sm-min: 576px;
       --agnosticui-default-md-min: 768px;
@@ -63,31 +86,6 @@ 

Basic Grid

- -
-

Auto Width with opt-in gutters on 8pt grid.

-

By default, we remove magic gutters. But, - you can opt back in for them when you need them (cards or boxes - are a good example use case) by applying gutter-4, gutter-8, gutter-16, - gutter-24, and finally gutter-32 on the row, and then using auto on the columns. - You can also do col-xs-12 (or col-sm-12 etc.), to ensure stacking on mobile or tablet - if you wish.

-

Here we've used gutter-16 to do so:

-
-
-

xs={12} auto

-
-
-

xs={12} auto

-
-
-

xs={12} auto

-
-
-

xs={12} auto

-
-
-
\ No newline at end of file diff --git a/showcase/public/index.html b/showcase/public/index.html index d0fb44ef0..a3d32f19a 100644 --- a/showcase/public/index.html +++ b/showcase/public/index.html @@ -41,6 +41,9 @@ --hljs-accent-8: #009bac; --hljs-accent-9: #4f79d5; + /* For grid gutters */ + --agnosticui-gutter-width: 48px; + /* For the lofi component cards */ --agnosticui-card-boxshadow1-offset-x: 0px; --agnosticui-card-boxshadow1-offset-y: 1px; diff --git a/showcase/src/partials/Buttons.vue b/showcase/src/partials/Buttons.vue index be1cba24e..44202b933 100644 --- a/showcase/src/partials/Buttons.vue +++ b/showcase/src/partials/Buttons.vue @@ -12,7 +12,7 @@ - +

Maybe you recognize some of these buttons—if so, it's because most of them originally appeared in @@ -26,7 +26,7 @@ - +

If you're using the CSS AgnosticUI package, you can simply apply the global CSS classes you see in the demo below. However, if you're using React, Svelte, or @@ -40,12 +40,12 @@ - +

Core Buttons
- +

@@ -56,7 +56,7 @@ - +


 <button class="btn">Go</button>
 <button class="btn btn-rounded">Go</button>
@@ -67,12 +67,12 @@
         
       
       
-        
+        
           
Primary
- +

@@ -83,7 +83,7 @@ - +


 <button class="btn btn-primary">Go</button>
 <button class="btn btn-primary btn-rounded">Go</button>
@@ -94,12 +94,12 @@
         
       
       
-        
+        
           
Secondary
- +

@@ -110,7 +110,7 @@ - +


 <button class="btn btn-secondary">Go</Button>
 <button class="btn btn-secondary btn-rounded">Go</Button>
@@ -121,19 +121,19 @@
         
       
       
-        
+        
           
Disabled
- +

- +

 <!-- Primary, Secondary, and all variants work the same. Just use the disabled attribute. -->
 <button class="btn" disabled>Disabled</Button>
@@ -141,12 +141,12 @@
         
       
       
-        
+        
           
Sizes
- +

@@ -155,7 +155,7 @@ - +


 <button class="btn btn-small">Small</Button>
 <button class="btn">Regular</Button>
@@ -164,12 +164,12 @@
         
       
       
-        
+        
           
Block
- +

@@ -178,7 +178,7 @@ - +


 <button class="btn btn-block">Go</Button>
 <button class="btn btn-primary btn-block">Go</Button>
@@ -187,12 +187,12 @@
         
       
       
-        
+        
           
Misc
- +

@@ -200,7 +200,7 @@ - +


 <button class="btn-base">Base no skin</button>
 <button class="btn btn-blank">Blank</button>
@@ -208,12 +208,12 @@
         
       
       
-        
+        
           
Button Icons
- +

@@ -334,7 +334,7 @@ - +


 <div class="btn-group" role="group" aria-label="Button group example">
   <button class="btn">One</button>
@@ -355,7 +355,7 @@
         
       
       
-        
+        
           

@@ -376,7 +376,7 @@ - +


 <div class="btn-group" role="group" aria-label="Button group example">
   <button class="btn btn-primary">One</button>
@@ -397,7 +397,7 @@
         
       
       
-        
+        
           

@@ -418,7 +418,7 @@ - +


 <div class="btn-group" role="group" aria-label="Button group example">
   <button class="btn btn-secondary">One</button>
diff --git a/showcase/src/partials/Colors.vue b/showcase/src/partials/Colors.vue
index b5491c71a..3998b6d1b 100644
--- a/showcase/src/partials/Colors.vue
+++ b/showcase/src/partials/Colors.vue
@@ -22,7 +22,7 @@
         
       
       
-        
+        
           

Colors express the main psychic functions of man. @@ -93,7 +93,7 @@ - +


 /**
 * You should override these by simply defining them less the `-default` in
diff --git a/showcase/src/partials/Grid.vue b/showcase/src/partials/Grid.vue
index cd925945a..2cf8dc2ce 100644
--- a/showcase/src/partials/Grid.vue
+++ b/showcase/src/partials/Grid.vue
@@ -90,7 +90,7 @@
         
       
       
-        
+        
           
       
 <div class="flexgrid-container">
@@ -157,8 +157,6 @@ export default {
 }
 
 .demoOnly {
-  background: #f9f9f9;
-  border: 1px solid #eee;
   padding: 2rem 0;
 }
 
diff --git a/showcase/src/partials/Spacing.vue b/showcase/src/partials/Spacing.vue
index ae462ad78..4112fd15f 100644
--- a/showcase/src/partials/Spacing.vue
+++ b/showcase/src/partials/Spacing.vue
@@ -23,7 +23,7 @@
         
       
       
-        
+        
           

 /**
  * agnostic-default- is not used here since these are, essentially, literals for
diff --git a/showcase/src/partials/Typography.vue b/showcase/src/partials/Typography.vue
index 098f889b1..879242789 100644
--- a/showcase/src/partials/Typography.vue
+++ b/showcase/src/partials/Typography.vue
@@ -12,7 +12,7 @@
         
       
       
-        
+        
           

Make it easy to read. @@ -59,7 +59,7 @@ - +


 /**
  * These are only meant to be minimal point of departure to work from. You're encouraged
diff --git a/showcase/src/views/InputCards.vue b/showcase/src/views/InputCards.vue
index 9c9d1858f..920fa0751 100644
--- a/showcase/src/views/InputCards.vue
+++ b/showcase/src/views/InputCards.vue
@@ -6,7 +6,7 @@
       
     
     
-      
+      
         
           
Button
@@ -16,7 +16,7 @@ - +
Input
@@ -26,7 +26,7 @@ - +
Textarea
@@ -36,7 +36,7 @@ - +
Select
@@ -48,7 +48,7 @@ - +
Progress
@@ -58,7 +58,7 @@ - +
Checkbox
@@ -68,7 +68,7 @@ - +
Radio
@@ -78,7 +78,7 @@ - +
Button Select
diff --git a/showcase/src/views/LayoutCards.vue b/showcase/src/views/LayoutCards.vue index 8c17034af..e361b14fe 100644 --- a/showcase/src/views/LayoutCards.vue +++ b/showcase/src/views/LayoutCards.vue @@ -6,7 +6,7 @@ - +
Tabs
@@ -16,7 +16,7 @@ - +
Card
@@ -26,7 +26,7 @@ - +
Header
@@ -36,7 +36,7 @@ - +
Stepper
diff --git a/showcase/src/views/SystemCards.vue b/showcase/src/views/SystemCards.vue index ee00b7a28..95349dabe 100644 --- a/showcase/src/views/SystemCards.vue +++ b/showcase/src/views/SystemCards.vue @@ -6,7 +6,7 @@ - +
Color
@@ -16,7 +16,7 @@ - +
Typography
@@ -26,7 +26,7 @@ - +
Spacing
@@ -36,7 +36,7 @@ - +
Grid
diff --git a/showcase/src/views/TableCards.vue b/showcase/src/views/TableCards.vue index a900c497c..57cd58b27 100644 --- a/showcase/src/views/TableCards.vue +++ b/showcase/src/views/TableCards.vue @@ -6,7 +6,7 @@ - +
Table TBD
@@ -16,7 +16,7 @@ - +
Sorting tbd
@@ -26,7 +26,7 @@ - +
Filters tbd
@@ -36,7 +36,7 @@ - +
Pagination TBD