From 78de8f1a1f423a86c05f361e87012a8ea1f1211b Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Sat, 1 Jul 2017 15:33:02 +0800 Subject: IMPORTANT: Replace all rem units to px --- src/pagination.less | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pagination.less') diff --git a/src/pagination.less b/src/pagination.less index 3d74037..e79f873 100644 --- a/src/pagination.less +++ b/src/pagination.less @@ -3,18 +3,18 @@ display: flex; .page-item { - margin: 1rem .1rem; + margin: 10px 1px; span { display: inline-block; - padding: .6rem .4rem; + padding: 6px 4px; } a { border-radius: @border-radius; color: @gray-color-dark; display: inline-block; - padding: .6rem .8rem; + padding: 6px 8px; text-decoration: none; &:focus, &:hover { -- cgit v1.3.1-26-gb76a From ad7ee1b9af6a081b83369efacb088150d42f03a3 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 19 Jul 2017 18:29:23 +0800 Subject: New Docs experience --- docs/components.html | 840 +++++++++++++++++++++++++++------------------- docs/css/docs.css | 51 ++- docs/dist/spectre.css | 19 +- docs/dist/spectre.min.css | 2 +- docs/elements.html | 274 ++++++++++++--- docs/experimentals.html | 273 ++++++++++++--- docs/index.html | 263 ++++++++++++--- docs/layout.html | 263 ++++++++++++--- docs/src/docs.less | 76 +++-- docs/utilities.html | 272 ++++++++++++--- src/accordions.less | 10 +- src/menus.less | 6 +- src/pagination.less | 3 +- 13 files changed, 1718 insertions(+), 634 deletions(-) (limited to 'src/pagination.less') diff --git a/docs/components.html b/docs/components.html index c8e7392..e303146 100644 --- a/docs/components.html +++ b/docs/components.html @@ -27,80 +27,233 @@ -
+
-
@@ -664,9 +664,9 @@
-
+

Badges support button and avatars elements as well.

-
+
<span class="badge">
@@ -686,13 +686,13 @@
 </figure>
 
-
+ -
-

Bars

-
+
+

Bars

+

Bars represent the progress of a task or the value within the known range. Bars are custom components for displaying HTML5 progress, meter and input range elements.

-
+
@@ -717,10 +717,10 @@
-
+

Add a container element with the bar class. And add child elements with the bar-item class. The width percentage value is needed for every bar-item.

There is the bar-sm class for thinner Bars. Also, you could use Tooltips for any bar-item.

-
+
<div class="bar bar-sm">
@@ -734,7 +734,7 @@
 </div>
 
-

Slider bars

+

Slider bars

@@ -757,10 +757,10 @@
-
+

You can add the bar-slider class to the Bars container. And add child elements with the bar-item class and bar-slider-btn inside bar-item. You need to set the bar-item width manually to have the slider point.

If there are two bar-item divs in one bar-slider, you will have a range slider.

-
+
<!-- slider -->
@@ -781,10 +781,10 @@
 </div>
 
-
+ - + -
-

Cards

-
+
+

Cards

+

Cards are flexible content containers.

-
+
@@ -953,9 +953,9 @@
-
+

Add a container element with the card class. And add child elements with the card-image, card-header, card-body and/or card-footer classes. The card-image can be placed in any position.

-
+
<div class="card">
@@ -975,13 +975,13 @@
 </div>
 
-
+ -
-

Chips

-
+
+

Chips

+

Chips are complex entities in small blocks.

-
+
-
+

Add a container element with the chip class. And add child text element, buttons or avatars with the avatar class.

-
+
<label class="chip">
@@ -1033,13 +1033,13 @@
 </label>
 
-
+ - + -
-

Modals

-
+
+

Modals

+

Modals are flexible dialog prompts.

-
+
Open Modal @@ -1272,10 +1270,10 @@
-
+

Add a container element with the modal class. And add a real container modal-container and overlay modal-overlay inside it. You can add child elements with the modal-header, modal-content and modal-footer - any or all of them.

Spectre.css does not include JavaScript code, you will need to implement your JS to interact with modals. To make a modal appear, add the active class to the modal container.

-
+
<div class="modal active">
@@ -1297,7 +1295,7 @@
 </div>
 
-

Modal sizes

+

Modal sizes

-
+

Add the modal-sm class for a smaller modal dialog.

-
+
<div class="modal modal-sm">
@@ -1369,10 +1367,10 @@
 </div>
 
-
+ -
-

Pagination

+
<ul class="pagination">
-  <li class="page-item">
-    <a href="#" disabled tabindex="-1">Previous</a>
+  <li class="page-item disabled">
+    <a href="#" tabindex="-1">Previous</a>
   </li>
   <li class="page-item active">
     <a href="#">1</a>
@@ -1500,10 +1498,10 @@
 </ul>
 
-
+ - + -
-

Popovers

-
+
+

Popovers

+

Popovers are small overlay content containers. Popovers component is built entirely in CSS.

-
+
@@ -1664,10 +1662,10 @@
-
+

Wrap an element by a container with the popover class. And add a container with the popover-container next to the element. You can use Cards component inside the popover-container.

Also, you can add the popover-right, popover-bottom or popover-left class to define the position. By default, the popovers appear above the element.

-
+
<div class="popover popover-right">
@@ -1688,13 +1686,13 @@
 </div>
 
-
+ -
-

Steps

-
+
+

Steps

+

Steps are progress indicators of a sequence of task steps.

-
+
    @@ -1729,9 +1727,9 @@
-
+

Add a container element with the step class. And add child elements with the step-item class. The step-item with the active class will be highlighted and indicate the current state of progress.

-
+
<ul class="step">
@@ -1750,13 +1748,13 @@
 </ul>
 
-
+ -
-

Tabs

-
+
+

Tabs

+

Tabs enable quick switch between different views.

-
+
    @@ -1802,9 +1800,9 @@
-
+

Add a container element with the tab class. And add child elements with the tab-item class. You can add the tab-block class for a full-width tab. The tab-item or its child <a> with the active class will be highlighted.

-
+
<ul class="tab tab-block">
@@ -1863,9 +1861,9 @@
               
             
           
-          
+

If you need badges on tabs, you can add badge class to the element within tab-item.

-
+
<ul class="tab tab-block">
@@ -1910,9 +1908,9 @@
               
             
           
-          
+

You could add a search box or buttons inside a tab. Add the tab-action class to the tab-item.

-
+
<ul class="tab">
@@ -1930,13 +1928,13 @@
 </ul>
 
-
+ -
-

Tiles

-
+
+

Tiles

+

Tiles are repeatable or embeddable information blocks.

-
+
@@ -1973,10 +1971,10 @@
-
+

Add a container with the tile class. And add child elements with the tile-icon, tile-content or/and tile-action classes. The tile-icon and tile-action are optional.

There are tile-title and tile-subtitle classes for title and subtitle text styles.

-
+
<div class="tile">
@@ -1995,11 +1993,11 @@
 </div>
 
-

Compact tiles

-
+

Compact tiles

+

There is compact version of Tiles component, which is often used as contact and file info blocks.

Add the tile-centered class to the container tile. The tile-icon, tile-content and tile-action will be vertically centered.

-
+
@@ -2038,13 +2036,13 @@ </div> -
+ -
-

Toasts

-
+
+

Toasts

+

Toasts are used to show alert or information to users.

-
+
@@ -2059,9 +2057,9 @@
-
+

Add a container element with the toast class. You can add any text within the container, and even icons. You may also add a close button with the btn-clear class if you need.

-
+
@@ -2082,9 +2080,9 @@
-
+

And you can add the toast-primary, toast-success, toast-warning or toast-error class for additional toast colors.

-
+
<div class="toast">
@@ -2097,13 +2095,13 @@
 </div>
 
-
+ -
-

Tooltips

-
+
+

Tooltips

+

Tooltips provide context information labels that appear on hover and focus.

-
+
@@ -2118,19 +2116,19 @@
-
+

Tooltips component is built entirely in CSS.

Add the tooltip class and the data-tooltip attribute, which contains the tooltip content, to non self closing elements. And add the tooltip-right, tooltip-bottom or tooltip-left class to define the position of a tooltip. By default, the tooltip appears above the element.

-
+
<button class="btn tooltip" data-tooltip="Lorem ipsum dolor sit amet">top tooltip</button>
 <button class="btn tooltip tooltip-right" data-tooltip="Lorem ipsum dolor sit amet">right tooltip</button>
 
-
+ -
+
  • @@ -2146,18 +2144,18 @@
-
+ -
-
+ +