SASS进展跟踪器

一个 HTML 组件,用于说明多步骤流程中的各个步骤,如多步骤表单、时间轴或测验。「A HTML component to illustrate the steps in a multi step process e.g. a multi step form, a timeline or a quiz.」

Github星跟蹤圖

SASS Progress Tracker

A HTML component to illustrate the steps in a multi step process e.g. a multi step form, a timeline or a quiz.

View demo

Installation

$ npm install progress-tracker --save

Import

After installation you can import it into your Sass files with the statement below.

@import "node_modules/progress-tracker/src/styles/progress-tracker.scss";

The JS that is part of this site is just for demonstration purposes, add your own JS as needed to toggle the classes for the step states.

Markup

Follow the HTML code example below for basic usage; each demo sets the first two steps as complete, the third step as active and the last two steps as inactive.

For additional styles add modifier classes and additional markup as needed in the examples below. You can add multiple modifier classes to achieve additional styles that those shown below.

<ul class="progress-tracker">
  <li class="progress-step is-complete">
    <div class="progress-marker"></div>
  </li>
  <li class="progress-step is-complete">
    <div class="progress-marker"></div>
  </li>
  <li class="progress-step is-active">
    <div class="progress-marker"></div>
  </li>
  <li class="progress-step">
    <div class="progress-marker"></div>
  </li>
  <li class="progress-step">
    <div class="progress-marker"></div>
  </li>
</ul>

Demo site

Clone or download from Github.

    $ npm install
    $ gulp serve

License

MIT © Nigel O Toole

主要指標

概覽
名稱與所有者NigelOToole/progress-tracker
主編程語言CSS
編程語言HTML (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2016-06-08 15:53:03
推送於2025-05-17 15:07:58
最后一次提交2025-05-17 16:07:41
發布數14
最新版本名稱3.0.1 (發布於 2025-05-17 16:07:57)
第一版名稱v1.0.0 (發布於 2016-06-16 12:47:56)
用户参与
星數479
關注者數17
派生數58
提交數80
已啟用問題?
問題數15
打開的問題數0
拉請求數16
打開的拉請求數0
關閉的拉請求數12
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?