breadcrumb.md 1.6 KB
Newer Older
C
chomik 已提交
1 2 3
---
title: Breadcrumb
menu: docs.breadcrumb
M
Martyna 已提交
4
description: Breadcrumbs are used to show the current website or app location and reduce the number of actions users have to take. Thanks to breadcrumbs, they can easily navigate within the website hierarchy and better understand its structure.
C
codecalm 已提交
5
bootstrap-link: components/breadcrumb/
C
chomik 已提交
6 7 8
---


C
codecalm 已提交
9
## Default markup
C
codecalm 已提交
10

M
Martyna 已提交
11
Add the `:before` pseudo-element in `li` tags to use the default separators. The `active` modifier in a `li` tag will help you indicate the current page location and facilitate navigation within your website or app. 
C
codecalm 已提交
12

C
codecalm 已提交
13
{% capture code %}
C
chomik 已提交
14
{% include ui/breadcrumb.html %}
C
codecalm 已提交
15
{% endcapture %}
C
codecalm 已提交
16
{% include example.html code=code centered=true %}
C
chomik 已提交
17

C
codecalm 已提交
18

C
codecalm 已提交
19
## Breadcrumb variations
C
codecalm 已提交
20

M
Martyna 已提交
21
If you wish to use different separators, modify the `$breadcrumb-variants` variable in the Tabler config. Depending on the aesthetics of your design, you can choose dots, bullets or arrows.
C
chomik 已提交
22

C
codecalm 已提交
23
{% capture code %}
C
chomik 已提交
24
{% include ui/breadcrumb.html class="breadcrumb-dots" %}
C
codecalm 已提交
25
{% endcapture %}
C
codecalm 已提交
26
{% include example.html code=code centered=true %}
C
codecalm 已提交
27

C
codecalm 已提交
28
{% capture code %}
C
chomik 已提交
29
{% include ui/breadcrumb.html class="breadcrumb-arrows" %}
C
codecalm 已提交
30
{% endcapture %}
C
codecalm 已提交
31
{% include example.html code=code centered=true %}
C
codecalm 已提交
32

C
codecalm 已提交
33
{% capture code %}
C
codecalm 已提交
34
{% include ui/breadcrumb.html class="breadcrumb-bullets" %}
C
codecalm 已提交
35
{% endcapture %}
C
codecalm 已提交
36
{% include example.html code=code centered=true %}
C
codecalm 已提交
37

C
codecalm 已提交
38

C
codecalm 已提交
39
## Alternate version
C
codecalm 已提交
40

M
Martyna 已提交
41 42
Use the `breadcrumb-alternate` class to make the breadcrumb colours more neutral, retaining its function of showing the current location within an interface.  

C
codecalm 已提交
43
{% capture code %}
C
codecalm 已提交
44
{% include ui/breadcrumb.html class="breadcrumb-alternate" %}
C
codecalm 已提交
45
{% endcapture %}
C
codecalm 已提交
46
{% include example.html code=code centered=true %}