badges.html 68.5 KB
Newer Older
C
codecalm 已提交
1 2 3
<!doctype html>
<!--
* Tabler - Premium and Open Source dashboard template with responsive and high quality UI.
C
codecalm 已提交
4
* @version 1.0.0-alpha.4
C
codecalm 已提交
5 6 7 8 9 10 11 12 13 14
* @link https://github.com/tabler/tabler
* Copyright 2018-2019 The Tabler Authors
* Copyright 2018-2019 codecalm.net Paweł Kuna
* Licensed under MIT (https://tabler.io/license)
-->
<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>
    <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
C
codecalm 已提交
15 16
    <title>Badges - Documentation - Tabler - Premium and Open Source dashboard template with responsive and high quality UI.</title>
    <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
C
codecalm 已提交
17 18 19 20 21 22 23 24 25 26 27 28
    <meta name="msapplication-TileColor" content="#206bc4"/>
    <meta name="theme-color" content="#206bc4"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="mobile-web-app-capable" content="yes"/>
    <meta name="HandheldFriendly" content="True"/>
    <meta name="MobileOptimized" content="320"/>
    <meta name="robots" content="noindex,nofollow,noarchive"/>
    <link rel="icon" href="../favicon.ico" type="image/x-icon"/>
    <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/>
    <meta name="description" content="A small count and labeling component."/>
    <!-- Libs CSS -->
C
codecalm 已提交
29 30 31 32 33 34 35 36 37
    <link href="../dist/libs/jqvmap/dist/jqvmap.min.css?1582373134" rel="stylesheet"/>
    <link href="../dist/libs/selectize/dist/css/selectize.css?1582373134" rel="stylesheet"/>
    <link href="../dist/libs/fullcalendar/core/main.min.css?1582373134" rel="stylesheet"/>
    <link href="../dist/libs/fullcalendar/daygrid/main.min.css?1582373134" rel="stylesheet"/>
    <link href="../dist/libs/fullcalendar/timegrid/main.min.css?1582373134" rel="stylesheet"/>
    <link href="../dist/libs/fullcalendar/list/main.min.css?1582373134" rel="stylesheet"/>
    <link href="../dist/libs/flatpickr/dist/flatpickr.min.css?1582373134" rel="stylesheet"/>
    <link href="../dist/libs/nouislider/distribute/nouislider.min.css?1582373134" rel="stylesheet"/>
    <link href="https://api.mapbox.com/mapbox-gl-js/v1.8.0/mapbox-gl.css" rel="stylesheet"/>
C
codecalm 已提交
38
    <!-- Tabler Core -->
C
codecalm 已提交
39
    <link href="../dist/css/tabler.min.css?1582373134" rel="stylesheet"/>
C
codecalm 已提交
40
    <!-- Tabler Plugins -->
C
codecalm 已提交
41 42 43 44
    <link href="../dist/css/tabler-flags.min.css?1582373134" rel="stylesheet"/>
    <link href="../dist/css/tabler-payments.min.css?1582373134" rel="stylesheet"/>
    <link href="../dist/css/tabler-buttons.min.css?1582373134" rel="stylesheet"/>
    <link href="../dist/css/demo.min.css?1582373134" rel="stylesheet"/>
C
codecalm 已提交
45 46 47 48 49
    <style>
      body {
      	display: none;
      }
    </style>
C
codecalm 已提交
50
  </head>
51
  <body class="antialiased">
C
codecalm 已提交
52
    <div class="page">
C
codecalm 已提交
53
      <nav class="navbar navbar-expand-lg navbar-light navbar-primary" id="navbar-primary">
C
codecalm 已提交
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
        <div class="container">
          <a href=".." class="navbar-brand navbar-brand-autodark d-none-navbar-horizontal">
            <img src="../static/logo.svg" alt="Tabler" class="navbar-brand-logo navbar-brand-logo-large">
            <img src="../static/logo-small.svg" alt="Tabler" class="navbar-brand-logo navbar-brand-logo-small">
          </a>
          <div class="navbar-collapse collapse">
            <h6 class="navbar-heading">Navigation</h6>
            <ul class="navbar-nav">
              <li class="nav-item">
                <a class="nav-link" href="../index.html" >
                  <span class="nav-link-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
                  </span>
                  <span class="nav-link-title">Home</span>
                </a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="../form-elements.html" >
                  <span class="nav-link-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path></svg>
                  </span>
C
codecalm 已提交
73
                  <span class="nav-link-title">Form elements</span>
C
codecalm 已提交
74 75 76 77 78 79 80 81 82 83
                </a>
              </li>
              <li class="nav-item">
                <a class="nav-link dropdown-toggle" href="#navbar-base" data-toggle="dropdown" role="button"
			   aria-expanded="false" >
                  <span class="nav-link-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>
                  </span>
                  <span class="nav-link-title">Base</span>
                </a>
                <ul class="dropdown-menu dropdown-menu-arrow dropdown-menu-columns  dropdown-menu-columns-2">
C
codecalm 已提交
84 85 86 87 88
                  <li >
                    <a class="dropdown-item" href="../empty.html" >
                      Empty page
                    </a>
                  </li>
C
codecalm 已提交
89 90
                  <li >
                    <a class="dropdown-item" href="../blank.html" >
C
codecalm 已提交
91
                      Blank page
C
codecalm 已提交
92 93 94 95 96 97 98 99 100 101 102 103
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../buttons.html" >
                      Buttons
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../cards.html" >
                      Cards
                    </a>
                  </li>
C
codecalm 已提交
104 105 106 107 108
                  <li >
                    <a class="dropdown-item" href="../modals.html" >
                      Modals
                    </a>
                  </li>
C
codecalm 已提交
109 110 111 112 113 114 115 116 117 118
                  <li >
                    <a class="dropdown-item" href="../maps.html" >
                      Maps
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../maps-vector.html" >
                      Vector maps
                    </a>
                  </li>
C
codecalm 已提交
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
                  <li >
                    <a class="dropdown-item" href="../charts.html" >
                      Charts
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../datatables.html" >
                      Data Tables
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../calendar.html" >
                      Calendar
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../carousel.html" >
                      Carousel
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../lists.html" >
                      Lists
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../users.html" >
                      Users
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../gallery.html" >
                      Gallery
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../profile.html" >
156 157
                      Profile
                    </a>
C
codecalm 已提交
158 159 160 161
                  </li>
                  <li >
                    <a class="dropdown-item" href="../music.html" >
                      Music
162
                    </a>
C
codecalm 已提交
163 164 165 166
                  </li>
                  <li class="dropright">
                    <a class="dropdown-item dropdown-toggle" href="#sidebar-authentication" data-toggle="dropdown" role="button" aria-expanded="false" >
                      Authentication
167
                    </a>
C
codecalm 已提交
168 169 170 171 172 173 174 175 176 177
                    <div class="dropdown-menu">
                      <a href="../sign-in.html" class="dropdown-item">Sign in</a>
                      <a href="../sign-up.html" class="dropdown-item">Sign up</a>
                      <a href="../forgot-password.html" class="dropdown-item">Forgot password</a>
                      <a href="../terms-of-service.html" class="dropdown-item">Terms of service</a>
                    </div>
                  </li>
                  <li class="dropright">
                    <a class="dropdown-item dropdown-toggle" href="#sidebar-error" data-toggle="dropdown" role="button" aria-expanded="false" >
                      Error pages
178
                    </a>
C
codecalm 已提交
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
                    <div class="dropdown-menu">
                      <a href="../400.html" class="dropdown-item">400 page</a>
                      <a href="../401.html" class="dropdown-item">401 page</a>
                      <a href="../403.html" class="dropdown-item">403 page</a>
                      <a href="../404.html" class="dropdown-item">404 page</a>
                      <a href="../500.html" class="dropdown-item">500 page</a>
                      <a href="../503.html" class="dropdown-item">503 page</a>
                      <a href="../maintenance.html" class="dropdown-item">Maintenance page</a>
                    </div>
                  </li>
                </ul>
              </li>
              <li class="nav-item">
                <a class="nav-link dropdown-toggle" href="#navbar-extra" data-toggle="dropdown" role="button"
			   aria-expanded="false" >
                  <span class="nav-link-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg>
                  </span>
                  <span class="nav-link-title">Extra</span>
                </a>
                <ul class="dropdown-menu dropdown-menu-arrow">
                  <li >
                    <a class="dropdown-item" href="../invoice.html" >
                      Invoice
202
                    </a>
C
codecalm 已提交
203 204 205 206
                  </li>
                  <li >
                    <a class="dropdown-item" href="../blog.html" >
                      Blog cards
207
                    </a>
C
codecalm 已提交
208 209 210 211 212 213 214 215 216 217 218
                  </li>
                  <li >
                    <a class="dropdown-item" href="../snippets.html" >
                      Snippets
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../search-results.html" >
                      Search results
                    </a>
                  </li>
C
codecalm 已提交
219 220 221 222 223
                  <li >
                    <a class="dropdown-item" href="../pricing.html" >
                      Pricing cards
                    </a>
                  </li>
C
codecalm 已提交
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
                </ul>
              </li>
              <li class="nav-item active">
                <a class="nav-link dropdown-toggle" href="#navbar-docs" data-toggle="dropdown" role="button"
			   aria-expanded="true" >
                  <span class="nav-link-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline></svg>
                  </span>
                  <span class="nav-link-title">Docs</span>
                </a>
                <ul class="dropdown-menu dropdown-menu-arrow dropdown-menu-columns  dropdown-menu-columns-3">
                  <li >
                    <a class="dropdown-item" href="../docs/index.html" >
                      Introduction
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/alerts.html" >
                      Alerts
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/autosize.html" >
                      Autosize
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/avatars.html" >
                      Avatars
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item active" href="../docs/badges.html" >
                      Badges
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/breadcrumb.html" >
                      Breadcrumb
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/buttons.html" >
                      Buttons
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/cards.html" >
                      Cards
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/carousel.html" >
                      Carousel
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/colors.html" >
                      Colors
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/countup.html" >
                      Countup
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/cursors.html" >
                      Cursors
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/charts.html" >
                      Charts
                    </a>
                  </li>
C
codecalm 已提交
299 300 301 302 303
                  <li >
                    <a class="dropdown-item" href="../docs/dropdowns.html" >
                      Dropdowns
                    </a>
                  </li>
C
codecalm 已提交
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
                  <li >
                    <a class="dropdown-item" href="../docs/divider.html" >
                      Divider
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/empty.html" >
                      Empty states
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/flags.html" >
                      Flags
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/form-elements.html" >
                      Form elements
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/form-helpers.html" >
                      Form helpers
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/input-mask.html" >
                      Form input mask
                    </a>
                  </li>
                  <li >
C
codecalm 已提交
335 336
                    <a class="dropdown-item" href="../docs/modals.html" >
                      Modals
C
codecalm 已提交
337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/progress.html" >
                      Progress
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/payments.html" >
                      Payments
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/range-slider.html" >
                      Range slider
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/ribbons.html" >
                      Ribbons
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/spinners.html" >
                      Spinners
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/steps.html" >
                      Steps
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/tables.html" >
                      Tables
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/tabs.html" >
                      Tabs
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/timelines.html" >
                      Timelines
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/toasts.html" >
                      Toasts
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/tooltips.html" >
                      Tooltips
                    </a>
                  </li>
                  <li >
                    <a class="dropdown-item" href="../docs/typography.html" >
                      Typography
                    </a>
                  </li>
                </ul>
              </li>
C
codecalm 已提交
401 402
              <li class="nav-item d-none-navbar-vertical">
                <a href="#" class="nav-link" data-toggle="modal" data-target="#modal-customize">
C
codecalm 已提交
403 404 405 406 407 408 409
                  <span class="nav-link-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line></svg>
                  </span>
                  <span class="nav-link-title">Customize</span>
                </a>
              </li>
            </ul>
            <h6 class="navbar-heading mt-4">Tools</h6>
C
codecalm 已提交
410 411
            <div class="navbar-side">
              <div class="d-none d-xl-block ml-auto d-none-navbar-vertical-narrow">
C
codecalm 已提交
412 413 414 415 416
                <form action="." method="get">
                  <div class="input-icon">
                    <span class="input-icon-addon">
                      <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
                    </span>
C
codecalm 已提交
417
                    <input type="text" class="form-control" placeholder="Search…">
C
codecalm 已提交
418 419 420
                  </div>
                </form>
              </div>
C
codecalm 已提交
421
              <a href="#" class="btn btn-primary d-none-navbar-horizontal d-none-navbar-vertical-narrow btn-block" data-toggle="modal" data-target="#modal-customize">
C
codecalm 已提交
422 423 424
                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line></svg>
                Customize
              </a>
C
codecalm 已提交
425 426 427
              <a href="#" class="btn btn-primary d-none-navbar-horizontal d-none-navbar-vertical-wide btn-block btn-icon" data-toggle="modal" data-target="#modal-customize" aria-label="Button">
                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line></svg>
              </a>
C
codecalm 已提交
428 429
            </div>
          </div>
C
codecalm 已提交
430 431 432 433 434 435 436 437
        </div>
      </nav>
      <nav class="navbar navbar-light navbar-secondary navbar-expand" id="navbar-secondary">
        <div class="container">
          <a href=".." class="navbar-brand navbar-brand-autodark d-none-navbar-vertical">
            <img src="../static/logo.svg" alt="Tabler" class="navbar-brand-logo navbar-brand-logo-large">
            <img src="../static/logo-small.svg" alt="Tabler" class="navbar-brand-logo navbar-brand-logo-small">
          </a>
C
codecalm 已提交
438
          <form class="form-inline w-50 mr-4 d-none d-md-flex">
C
codecalm 已提交
439
            <div class="input-icon w-100">
C
codecalm 已提交
440 441 442
              <span class="input-icon-addon">
                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
              </span>
C
codecalm 已提交
443
              <input type="text" class="form-control form-control-flush w-100" placeholder="Search…">
C
codecalm 已提交
444 445
            </div>
          </form>
C
codecalm 已提交
446
          <ul class="navbar-nav ml-auto">
C
codecalm 已提交
447
            <li class="nav-item dropdown">
C
codecalm 已提交
448
              <a href="#" class="nav-link px-0" data-toggle="dropdown">
C
codecalm 已提交
449 450 451 452 453 454 455 456 457 458 459 460 461 462 463
                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
              </a>
              <div class="dropdown-menu dropdown-menu-right dropdown-menu-arrow">
                <a class="dropdown-item" href="#">
                  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon dropdown-item-icon"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
                  Action
                </a>
                <a class="dropdown-item" href="#">
                  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon dropdown-item-icon"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg>
                  Another action
                </a>
                <div class="dropdown-divider"></div>
                <a class="dropdown-item" href="#"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon dropdown-item-icon"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
                  Separated link</a>
              </div>
C
codecalm 已提交
464 465
            </li>
            <li class="nav-item dropdown">
C
codecalm 已提交
466 467
              <a href="#" class="nav-link" data-toggle="dropdown">
                <span class="flag flag-country-us mr-1"></span>
C
codecalm 已提交
468
                <span class="d-none d-lg-inline">English</span>
C
codecalm 已提交
469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493
              </a>
              <div class="dropdown-menu dropdown-menu-arrow dropdown-menu-right" style="">
                <a href="#" class="dropdown-item"><span class="flag flag-country-de mr-1"></span>
                  German</a>
                <a href="#" class="dropdown-item"><span class="flag flag-country-pl mr-1"></span>
                  Polish</a>
                <a href="#" class="dropdown-item"><span class="flag flag-country-jp mr-1"></span>
                  Japan</a>
                <a href="#" class="dropdown-item"><span class="flag flag-country-ru mr-1"></span>
                  Russian</a>
              </div>
            </li>
            <li class="nav-item dropdown">
              <a href="#" class="nav-link" data-toggle="dropdown">
                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>
              </a>
              <div class="dropdown-menu dropdown-menu-right dropdown-menu-arrow dropdown-menu-card" style="max-width: 20rem;">
                <div class="card">
                  <div class="card-body">
                    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus ad amet consectetur exercitationem fugiat in ipsa ipsum, natus odio quidem quod repudiandae sapiente. Amet debitis et magni maxime necessitatibus ullam.
                  </div>
                </div>
              </div>
            </li>
            <li class="nav-item dropdown pl-2">
C
codecalm 已提交
494
              <a href="#" class="nav-link d-flex lh-1 text-inherit p-0 text-left" data-toggle="dropdown">
C
codecalm 已提交
495
                <span class="avatar" style="background-image: url(../static/avatars/000m.jpg)"></span>
C
codecalm 已提交
496
                <div class="d-none d-lg-block pl-2">
C
codecalm 已提交
497 498 499
                  <div>Paweł Kuna</div>
                  <div class="mt-1 small text-muted">Founder</div>
                </div>
C
codecalm 已提交
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518
              </a>
              <div class="dropdown-menu dropdown-menu-right dropdown-menu-arrow">
                <a class="dropdown-item" href="#">
                  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon dropdown-item-icon"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
                  Action
                </a>
                <a class="dropdown-item" href="#">
                  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon dropdown-item-icon"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg>
                  Another action
                </a>
                <div class="dropdown-divider"></div>
                <a class="dropdown-item" href="#"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon dropdown-item-icon"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
                  Separated link</a>
              </div>
            </li>
          </ul>
        </div>
      </nav>
      <div class="content">
C
codecalm 已提交
519
        <div class="container">
C
codecalm 已提交
520 521 522 523 524 525 526
          <!-- Page title -->
          <div class="page-header">
            <div class="row align-items-center">
              <div class="col-auto">
                <h2 class="page-title">
                  Documentation
                </h2>
C
codecalm 已提交
527 528
              </div>
            </div>
C
codecalm 已提交
529 530
          </div>
          <div class="row justify-content-center">
C
codecalm 已提交
531 532 533 534 535 536 537
            <div class="d-none d-lg-block col-lg-3 order-lg-1 mb-4">
              <div class="sticky-top">
                <a href="https://github.com/tabler/tabler" class="btn btn-github mb-6 btn-block" target="_blank" rel="noreferrer">
                  <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="icon" fill="currentColor">
                    <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/>
                  </svg>
                  Browse source code
C
codecalm 已提交
538
                </a>
C
codecalm 已提交
539 540 541 542 543 544 545 546 547 548 549 550 551
                <h5 class="subheader">On this page</h5>
                <ul class="list-unstyled">
                  <li class="toc-entry toc-h2"><a href="#default-markup">Default markup</a></li>
                  <li class="toc-entry toc-h2"><a href="#pill-badges">Pill badges</a></li>
                  <li class="toc-entry toc-h2"><a href="#soft-badges">Soft badges</a></li>
                  <li class="toc-entry toc-h2"><a href="#links">Links</a></li>
                  <li class="toc-entry toc-h2"><a href="#empty-badges">Empty badges</a>
                    <ul>
                      <li class="toc-entry toc-h3"><a href="#badge-addons">Badge addons</a></li>
                      <li class="toc-entry toc-h3"><a href="#badge-avatars">Badge avatars</a></li>
                    </ul>
                  </li>
                </ul>
552
              </div>
C
codecalm 已提交
553 554
            </div>
            <div class="col-lg-9">
C
codecalm 已提交
555 556
              <div class="card card-lg">
                <div class="card-body">
C
codecalm 已提交
557
                  <div class="markdown">
C
codecalm 已提交
558 559 560 561 562 563 564 565 566
                    <div class="d-flex">
                      <h2 class="h1 mt-0 mb-3">Badges</h2>
                      <p class="ml-auto">
                        <a href="https://getbootstrap.com/docs/4.4/components/badge/" target="_blank">
                          <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon pr-1 text-blue"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>
                          Bootstrap documentation
                        </a>
                      </p>
                    </div>
C
codecalm 已提交
567
                    <p>A small count and labeling component.</p>
C
codecalm 已提交
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584
                    <h2 id="default-markup">Default markup</h2>
                    <div class="example no_toc_section example-centered">
                      <div class="example-content">
                        <span class="badge bg-blue">blue</span>
                        <span class="badge bg-azure">azure</span>
                        <span class="badge bg-indigo">indigo</span>
                        <span class="badge bg-purple">purple</span>
                        <span class="badge bg-pink">pink</span>
                        <span class="badge bg-red">red</span>
                        <span class="badge bg-orange">orange</span>
                        <span class="badge bg-yellow">yellow</span>
                        <span class="badge bg-lime">lime</span>
                        <span class="badge bg-green">green</span>
                        <span class="badge bg-teal">teal</span>
                        <span class="badge bg-cyan">cyan</span>
                        <span class="badge bg-gray">gray</span>
                      </div>
C
codecalm 已提交
585
                    </div>
C
codecalm 已提交
586 587 588
                    <div class="example-code">
                      <figure class="highlight">
                        <pre><code class="language-html" data-lang="html"><span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-blue"</span><span class="nt">&gt;</span>blue<span class="nt">&lt;/span&gt;</span>
C
codecalm 已提交
589 590 591 592 593 594 595 596 597 598 599 600
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-azure"</span><span class="nt">&gt;</span>azure<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-indigo"</span><span class="nt">&gt;</span>indigo<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-purple"</span><span class="nt">&gt;</span>purple<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-pink"</span><span class="nt">&gt;</span>pink<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-red"</span><span class="nt">&gt;</span>red<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-orange"</span><span class="nt">&gt;</span>orange<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-yellow"</span><span class="nt">&gt;</span>yellow<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-lime"</span><span class="nt">&gt;</span>lime<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-green"</span><span class="nt">&gt;</span>green<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-teal"</span><span class="nt">&gt;</span>teal<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-cyan"</span><span class="nt">&gt;</span>cyan<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-gray"</span><span class="nt">&gt;</span>gray<span class="nt">&lt;/span&gt;</span></code></pre>
C
codecalm 已提交
601
                      </figure>
C
codecalm 已提交
602
                    </div>
C
codecalm 已提交
603
                    <h2 id="pill-badges">Pill badges</h2>
C
codecalm 已提交
604
                    <p>To make a pill bagde (with rounded corners) add <code class="highlighter-rouge">.bagde-pill</code> class.</p>
C
codecalm 已提交
605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620
                    <div class="example no_toc_section example-centered">
                      <div class="example-content">
                        <span class="badge badge-pill bg-blue">1</span>
                        <span class="badge badge-pill bg-azure">2</span>
                        <span class="badge badge-pill bg-indigo">3</span>
                        <span class="badge badge-pill bg-purple">4</span>
                        <span class="badge badge-pill bg-pink">5</span>
                        <span class="badge badge-pill bg-red">6</span>
                        <span class="badge badge-pill bg-orange">7</span>
                        <span class="badge badge-pill bg-yellow">8</span>
                        <span class="badge badge-pill bg-lime">9</span>
                        <span class="badge badge-pill bg-green">10</span>
                        <span class="badge badge-pill bg-teal">11</span>
                        <span class="badge badge-pill bg-cyan">12</span>
                        <span class="badge badge-pill bg-gray">13</span>
                      </div>
C
codecalm 已提交
621
                    </div>
C
codecalm 已提交
622 623 624
                    <div class="example-code">
                      <figure class="highlight">
                        <pre><code class="language-html" data-lang="html"><span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge badge-pill bg-blue"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/span&gt;</span>
C
codecalm 已提交
625 626 627 628 629 630 631 632 633 634 635 636
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge badge-pill bg-azure"</span><span class="nt">&gt;</span>2<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge badge-pill bg-indigo"</span><span class="nt">&gt;</span>3<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge badge-pill bg-purple"</span><span class="nt">&gt;</span>4<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge badge-pill bg-pink"</span><span class="nt">&gt;</span>5<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge badge-pill bg-red"</span><span class="nt">&gt;</span>6<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge badge-pill bg-orange"</span><span class="nt">&gt;</span>7<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge badge-pill bg-yellow"</span><span class="nt">&gt;</span>8<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge badge-pill bg-lime"</span><span class="nt">&gt;</span>9<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge badge-pill bg-green"</span><span class="nt">&gt;</span>10<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge badge-pill bg-teal"</span><span class="nt">&gt;</span>11<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge badge-pill bg-cyan"</span><span class="nt">&gt;</span>12<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge badge-pill bg-gray"</span><span class="nt">&gt;</span>13<span class="nt">&lt;/span&gt;</span></code></pre>
C
codecalm 已提交
637
                      </figure>
C
codecalm 已提交
638
                    </div>
C
codecalm 已提交
639
                    <h2 id="soft-badges">Soft badges</h2>
C
codecalm 已提交
640
                    <p>Creates a soft variant of a corresponding contextual badge variation. You can click <a href="./colors.html">here</a> to see the list of available colors.</p>
C
codecalm 已提交
641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656
                    <div class="example no_toc_section example-centered">
                      <div class="example-content">
                        <span class="badge bg-blue-lt">blue</span>
                        <span class="badge bg-azure-lt">azure</span>
                        <span class="badge bg-indigo-lt">indigo</span>
                        <span class="badge bg-purple-lt">purple</span>
                        <span class="badge bg-pink-lt">pink</span>
                        <span class="badge bg-red-lt">red</span>
                        <span class="badge bg-orange-lt">orange</span>
                        <span class="badge bg-yellow-lt">yellow</span>
                        <span class="badge bg-lime-lt">lime</span>
                        <span class="badge bg-green-lt">green</span>
                        <span class="badge bg-teal-lt">teal</span>
                        <span class="badge bg-cyan-lt">cyan</span>
                        <span class="badge bg-gray-lt">gray</span>
                      </div>
C
codecalm 已提交
657
                    </div>
C
codecalm 已提交
658 659 660
                    <div class="example-code">
                      <figure class="highlight">
                        <pre><code class="language-html" data-lang="html"><span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-blue-lt"</span><span class="nt">&gt;</span>blue<span class="nt">&lt;/span&gt;</span>
C
codecalm 已提交
661 662 663 664 665 666 667 668 669 670 671 672
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-azure-lt"</span><span class="nt">&gt;</span>azure<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-indigo-lt"</span><span class="nt">&gt;</span>indigo<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-purple-lt"</span><span class="nt">&gt;</span>purple<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-pink-lt"</span><span class="nt">&gt;</span>pink<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-red-lt"</span><span class="nt">&gt;</span>red<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-orange-lt"</span><span class="nt">&gt;</span>orange<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-yellow-lt"</span><span class="nt">&gt;</span>yellow<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-lime-lt"</span><span class="nt">&gt;</span>lime<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-green-lt"</span><span class="nt">&gt;</span>green<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-teal-lt"</span><span class="nt">&gt;</span>teal<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-cyan-lt"</span><span class="nt">&gt;</span>cyan<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-gray-lt"</span><span class="nt">&gt;</span>gray<span class="nt">&lt;/span&gt;</span></code></pre>
C
codecalm 已提交
673
                      </figure>
C
codecalm 已提交
674
                    </div>
C
codecalm 已提交
675
                    <h2 id="links">Links</h2>
C
codecalm 已提交
676
                    <p>Make a badge work as a link by putting it into an <code class="highlighter-rouge">&lt;a&gt;</code> element.</p>
C
codecalm 已提交
677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692
                    <div class="example no_toc_section example-centered">
                      <div class="example-content">
                        <a href="#" class="badge bg-blue">blue</a>
                        <a href="#" class="badge bg-azure">azure</a>
                        <a href="#" class="badge bg-indigo">indigo</a>
                        <a href="#" class="badge bg-purple">purple</a>
                        <a href="#" class="badge bg-pink">pink</a>
                        <a href="#" class="badge bg-red">red</a>
                        <a href="#" class="badge bg-orange">orange</a>
                        <a href="#" class="badge bg-yellow">yellow</a>
                        <a href="#" class="badge bg-lime">lime</a>
                        <a href="#" class="badge bg-green">green</a>
                        <a href="#" class="badge bg-teal">teal</a>
                        <a href="#" class="badge bg-cyan">cyan</a>
                        <a href="#" class="badge bg-gray">gray</a>
                      </div>
C
codecalm 已提交
693
                    </div>
C
codecalm 已提交
694 695 696
                    <div class="example-code">
                      <figure class="highlight">
                        <pre><code class="language-html" data-lang="html"><span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-blue"</span><span class="nt">&gt;</span>blue<span class="nt">&lt;/a&gt;</span>
C
codecalm 已提交
697 698 699 700 701 702 703 704 705 706 707 708
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-azure"</span><span class="nt">&gt;</span>azure<span class="nt">&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-indigo"</span><span class="nt">&gt;</span>indigo<span class="nt">&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-purple"</span><span class="nt">&gt;</span>purple<span class="nt">&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-pink"</span><span class="nt">&gt;</span>pink<span class="nt">&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-red"</span><span class="nt">&gt;</span>red<span class="nt">&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-orange"</span><span class="nt">&gt;</span>orange<span class="nt">&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-yellow"</span><span class="nt">&gt;</span>yellow<span class="nt">&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-lime"</span><span class="nt">&gt;</span>lime<span class="nt">&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-green"</span><span class="nt">&gt;</span>green<span class="nt">&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-teal"</span><span class="nt">&gt;</span>teal<span class="nt">&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-cyan"</span><span class="nt">&gt;</span>cyan<span class="nt">&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-gray"</span><span class="nt">&gt;</span>gray<span class="nt">&lt;/a&gt;</span></code></pre>
C
codecalm 已提交
709
                      </figure>
C
codecalm 已提交
710
                    </div>
C
codecalm 已提交
711
                    <h2 id="empty-badges">Empty badges</h2>
C
codecalm 已提交
712
                    <p>If you don’t want your badge to contain any text you can do it by leaving the html element empty.</p>
C
codecalm 已提交
713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728
                    <div class="example no_toc_section example-centered">
                      <div class="example-content">
                        <a href="#" class="badge bg-blue"></a>
                        <a href="#" class="badge bg-azure"></a>
                        <a href="#" class="badge bg-indigo"></a>
                        <a href="#" class="badge bg-purple"></a>
                        <a href="#" class="badge bg-pink"></a>
                        <a href="#" class="badge bg-red"></a>
                        <a href="#" class="badge bg-orange"></a>
                        <a href="#" class="badge bg-yellow"></a>
                        <a href="#" class="badge bg-lime"></a>
                        <a href="#" class="badge bg-green"></a>
                        <a href="#" class="badge bg-teal"></a>
                        <a href="#" class="badge bg-cyan"></a>
                        <a href="#" class="badge bg-gray"></a>
                      </div>
C
codecalm 已提交
729
                    </div>
C
codecalm 已提交
730 731 732
                    <div class="example-code">
                      <figure class="highlight">
                        <pre><code class="language-html" data-lang="html"><span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-blue"</span><span class="nt">&gt;&lt;/a&gt;</span>
C
codecalm 已提交
733 734 735 736 737 738 739 740 741 742 743 744
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-azure"</span><span class="nt">&gt;&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-indigo"</span><span class="nt">&gt;&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-purple"</span><span class="nt">&gt;&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-pink"</span><span class="nt">&gt;&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-red"</span><span class="nt">&gt;&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-orange"</span><span class="nt">&gt;&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-yellow"</span><span class="nt">&gt;&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-lime"</span><span class="nt">&gt;&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-green"</span><span class="nt">&gt;&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-teal"</span><span class="nt">&gt;&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-cyan"</span><span class="nt">&gt;&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"badge bg-gray"</span><span class="nt">&gt;&lt;/a&gt;</span></code></pre>
C
codecalm 已提交
745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779
                      </figure>
                    </div>
                    <h3 id="badge-addons">Badge addons</h3>
                    <p>You can add badge addon by adding <code class="highlighter-rouge">.badge-addon</code> class.</p>
                    <div class="example no_toc_section">
                      <div class="example-content">
                        <span class="badge bg-green">
                          task
                          <span class="badge-addon ">finished</span>
                        </span>
                        <span class="badge bg-purple">
                          bundle
                          <span class="badge-addon ">passing</span>
                        </span>
                        <span class="badge bg-red-lt">
                          CSS gzip size
                          <span class="badge-addon bg-red">20.9kB</span>
                        </span>
                      </div>
                    </div>
                    <div class="example-code">
                      <figure class="highlight">
                        <pre><code class="language-html" data-lang="html"><span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-green"</span><span class="nt">&gt;</span>
  task
  <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge-addon "</span><span class="nt">&gt;</span>finished<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-purple"</span><span class="nt">&gt;</span>
  bundle
  <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge-addon "</span><span class="nt">&gt;</span>passing<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-red-lt"</span><span class="nt">&gt;</span>
  CSS gzip size
  <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge-addon bg-red"</span><span class="nt">&gt;</span>20.9kB<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;/span&gt;</span></code></pre>
                      </figure>
C
codecalm 已提交
780
                    </div>
C
codecalm 已提交
781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838
                    <h3 id="badge-avatars">Badge avatars</h3>
                    <p>If you want to add an avatar to your badge just create <code class="highlighter-rouge">.badge-avatar</code> class.</p>
                    <div class="example no_toc_section">
                      <div class="example-content">
                        <span class="badge bg-blue">
                          <span class="badge-avatar" style="background-image: url(../static/avatars/000m.jpg)"></span>
                          Paweł Kuna
                        </span>
                        <span class="badge bg-blue">
                          <span class="badge-avatar" style="background-image: url(../)">JL</span>
                          Jeffie Lewzey
                        </span>
                        <span class="badge bg-blue">
                          <span class="badge-avatar" style="background-image: url(../static/avatars/002m.jpg)"></span>
                          Mallory Hulme
                        </span>
                        <span class="badge bg-blue">
                          <span class="badge-avatar" style="background-image: url(../static/avatars/003m.jpg)"></span>
                          Dunn Slane
                        </span>
                        <span class="badge bg-blue">
                          <span class="badge-avatar" style="background-image: url(../static/avatars/000f.jpg)"></span>
                          Emmy Levet
                        </span>
                      </div>
                    </div>
                    <div class="example-code">
                      <figure class="highlight">
                        <pre><code class="language-html" data-lang="html"><span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-blue"</span><span class="nt">&gt;</span>
  <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge-avatar"</span> <span class="na">style=</span><span class="s">"background-image: url(...)"</span><span class="nt">&gt;&lt;/span&gt;</span>
  Paweł Kuna
<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-blue"</span><span class="nt">&gt;</span>
  <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge-avatar"</span> <span class="na">style=</span><span class="s">"background-image: url(...)"</span><span class="nt">&gt;</span>JL<span class="nt">&lt;/span&gt;</span>
  Jeffie Lewzey
<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-blue"</span><span class="nt">&gt;</span>
  <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge-avatar"</span> <span class="na">style=</span><span class="s">"background-image: url(...)"</span><span class="nt">&gt;&lt;/span&gt;</span>
  Mallory Hulme
<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-blue"</span><span class="nt">&gt;</span>
  <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge-avatar"</span> <span class="na">style=</span><span class="s">"background-image: url(...)"</span><span class="nt">&gt;&lt;/span&gt;</span>
  Dunn Slane
<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge bg-blue"</span><span class="nt">&gt;</span>
  <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge-avatar"</span> <span class="na">style=</span><span class="s">"background-image: url(...)"</span><span class="nt">&gt;&lt;/span&gt;</span>
  Emmy Levet
<span class="nt">&lt;/span&gt;</span></code></pre>
                      </figure>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <footer class="footer footer-transparent">
          <div class="container">
C
codecalm 已提交
839 840 841 842 843 844 845
            <div class="row text-center align-items-center flex-row-reverse">
              <div class="col-lg-auto ml-lg-auto">
                <ul class="list-inline list-inline-dots mb-0">
                  <li class="list-inline-item"><a href="../docs/index.html" class="link-secondary">Documentation</a></li>
                  <li class="list-inline-item"><a href="../faq.html" class="link-secondary">FAQ</a></li>
                  <li class="list-inline-item"><a href="https://github.com/tabler/tabler" target="_blank" class="link-secondary">Source code</a></li>
                </ul>
C
codecalm 已提交
846
              </div>
C
codecalm 已提交
847
              <div class="col-12 col-lg-auto mt-3 mt-lg-0">
C
codecalm 已提交
848 849 850 851
                Copyright © 2020
                <a href=".." class="link-secondary">Tabler</a>.
                All rights reserved.
              </div>
C
codecalm 已提交
852
            </div>
C
codecalm 已提交
853
          </div>
C
codecalm 已提交
854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915
        </footer>
      </div>
    </div>
    <div class="modal modal-blur fade" id="modal-customize" tabindex="-1" role="dialog" aria-hidden="true">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title">Customize Tabler</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
            </button>
          </div>
          <div class="modal-body">
            <p class="text-muted">Set preferences that will be saved for your live preview.</p>
            <div class="mb-3">
              <label class="form-label">Color scheme</label>
              <div class="form-hint">Light or dark presentation.</div>
              <div class="btn-group w-100">
                <button class="btn btn-secondary" data-theme-toggle="theme:light"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>
                  Light</button>
                <button class="btn btn-secondary" data-theme-toggle="theme:dark"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>
                  Dark</button>
              </div>
            </div>
            <div class="mb-4 text-muted">
              You can use the <code>.theme-dark-auto</code> class to automatically adjust the color version to the system settings.
            </div>
            <div class="mb-3">
              <label class="form-label">Navigation position</label>
              <div class="form-hint">Choose where the main navigation in your project should be located.</div>
              <div class="btn-group w-100">
                <button class="btn btn-secondary" data-theme-toggle="navbar-position:horizontal">Topnav</button>
                <button class="btn btn-secondary" data-theme-toggle="navbar-position:vertical">Sidenav</button>
                <button class="btn btn-secondary" data-theme-toggle="navbar-position:both">Both</button>
              </div>
            </div>
            <div class="mb-3">
              <label class="form-label">Sidebar size</label>
              <div class="form-hint">Standard sidebar width or narrow version with icons only.</div>
              <div class="btn-group w-100">
                <button class="btn btn-secondary" data-theme-toggle="navbar-size:wide">Wide</button>
                <button class="btn btn-secondary" data-theme-toggle="navbar-size:narrow">Narrow</button>
              </div>
            </div>
            <div class="mb-3">
              <label class="form-label">Sidebar position</label>
              <div class="form-hint">Choose whether the sidebar should appear on the left or on the right.</div>
              <div class="btn-group w-100">
                <button class="btn btn-secondary" data-theme-toggle="navbar-side:left">Left</button>
                <button class="btn btn-secondary" data-theme-toggle="navbar-side:right">Right</button>
              </div>
            </div>
            <div>
              <label class="form-label">Navigation color</label>
              <div class="form-hint">Light or dark version of the sidebar </div>
              <div class="btn-group w-100">
                <button class="btn btn-secondary" data-theme-toggle="navbar-color:light">Light</button>
                <button class="btn btn-secondary" data-theme-toggle="navbar-color:dark">Dark</button>
              </div>
            </div>
          </div>
        </div>
C
codecalm 已提交
916 917
      </div>
    </div>
C
codecalm 已提交
918
    <!-- Libs JS -->
C
codecalm 已提交
919 920
    <script src="../dist/libs/bootstrap/dist/js/bootstrap.bundle.min.js?1582373134"></script>
    <script src="../dist/libs/jquery/dist/jquery.slim.min.js?1582373134"></script>
C
codecalm 已提交
921
    <!-- Tabler Core -->
C
codecalm 已提交
922
    <script src="../dist/js/tabler.min.js?1582373134"></script>
C
codecalm 已提交
923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038
    <script>
      (function() {
      	var navbarPrimary = document.getElementById('navbar-primary'),
      		navbarSecondary = document.getElementById('navbar-secondary');
      	var defaults = {
      		theme: 'light',
      		'navbar-position': 'horizontal',
      		'navbar-size': 'wide',
      		'navbar-side': 'left',
      		'navbar-color': 'light',
      	};
      	var eventsClean = {
      		'theme': function () {
      			document.body.classList.remove('theme-dark');
      		},
      		'navbar-position': function () {
      			navbarPrimary.classList.remove('navbar-vertical');
      			navbarSecondary.classList.remove('d-none');
      		},
      		'navbar-size': function () {
      			navbarPrimary.classList.remove('navbar-vertical-narrow');
      		},
      		'navbar-side': function () {
      			navbarPrimary.classList.remove('navbar-right');
      		},
      		'navbar-color': function () {
      			navbarPrimary.classList.remove('navbar-dark');
      			navbarPrimary.classList.add('navbar-light');
      		},
      	};
      	var events = {
      		'theme:light': function () {
      		},
      		'theme:dark': function () {
      			document.body.classList.add('theme-dark');
      		},
      		'navbar-position:vertical': function () {
      			navbarPrimary.classList.add('navbar-vertical');
      			navbarSecondary.classList.add('d-none');
      		},
      		'navbar-position:horizontal': function () {
      		},
      		'navbar-position:both': function () {
      			navbarPrimary.classList.add('navbar-vertical');
      		},
      		'navbar-size:wide': function () {
      		},
      		'navbar-size:narrow': function () {
      			navbarPrimary.classList.add('navbar-vertical-narrow');
      		},
      		'navbar-side:left': function () {
      		},
      		'navbar-side:right': function () {
      			navbarPrimary.classList.add('navbar-right');
      		},
      		'navbar-color:light': function () {
      		},
      		'navbar-color:dark': function () {
      			navbarPrimary.classList.add('navbar-dark');
      			navbarPrimary.classList.remove('navbar-light');
      		},
      	};
      	var updateThemeConfig = function (name) {
      		var key, value;
      		if (name) {
      			[key, value] = name.split(':');
      			setConfig(key, value);
      		}
      		applyConfig();
      	};
      	var disableTransitions = function () {
      		document.body.classList.add('no-transitions');
      		setTimeout(function () {
      			document.body.classList.remove('no-transitions');
      		}, 300);
      	};
      	var getConfig = function () {
      		var config = {};
      		for (var key in defaults) {
      			config[key] = localStorage.getItem('tabler-' + key) || defaults[key];
      		}
      		return config;
      	};
      	var setConfig = function (key, value) {
      		localStorage.setItem('tabler-' + key, value);
      	};
      	var applyConfig = function () {
      		disableTransitions();
      		var config = getConfig();
      		for (var key in config) {
      			var value = config[key];
      			eventsClean[key] && eventsClean[key].call();
      			events[key + ':' + value] && events[key + ':' + value].call();
      			([].slice.call(document.querySelectorAll('[data-theme-toggle^="' + key + '"]'))).map(function (activeTrigger) {
      				activeTrigger.classList.remove('active')
      			});
      			document.querySelector('[data-theme-toggle="' + key + ':' + value + '"]').classList.add('active');
      		}
      	};
      	applyConfig();
      	for (var name in events) {
      		var event = events[name];
      		(function (event, name) {
      			document.querySelector('[data-theme-toggle="' + name + '"]').addEventListener("click", function (e) {
      				updateThemeConfig(name);
      				event.call();
      				e.preventDefault();
      				return false;
      			});
      		})(event, name);
      	}
      })();
    </script>
    <script>
      document.body.style.display = "block"
    </script>
C
codecalm 已提交
1039 1040
  </body>
</html>