-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.html
136 lines (126 loc) · 6.49 KB
/
style.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
---
layout: default
title: Style preview
shades: [100, 200, 300, 400, 500, 600, 700, 800, 900]
theme_colors: ["primary", "accent", "action", "utility", "error", "data", "light", "dark"]
button_colors: ["primary", "secondary", "action", "accent"]
heading_levels: [1, 2, 3, 4, 5, 6]
display_levels: [1, 2, 3, 4, 5, 6]
sizes: ["-sm", "", "-lg"]
---
<div class="py-4 py-lg-5">
<div class="container">
<div class="row">
<div class="col-6 col-md-4 col-lg-2 mb-4">
{% for color in page.theme_colors %}
<div class="text-bg-{{ color }} d-block p-2">
{{ color }}
</div>
{% endfor %}
</div>
<div class="col-6 col-md-4 col-lg-2 mb-4">
{% for shade in page.shades %}
<div class="text-bg-gray-{{ shade }} d-block p-2">
gray-{{ shade }}
</div>
{% endfor %}
</div>
</div>
<hr class="my-5">
<div class="row">
<div class="col-lg-6">
{% for level in page.display_levels %}
<p class="display-{{ level }} mb-4">Display {{ level }}</p>
{% endfor %}
</div>
<div class="col-lg-6">
{% for level in page.heading_levels %}
<h{{ level }}>Heading {{ level }}</h{{ level }}>
<p class="mb-4">Lorem Ipsum dolor sit amet. <a href="#">Incidunt temporibus accusantium</a> incidunt dolor. Eum <em>culpa est</em> cum aut. Vel fuga <b>perspiciatis</b> aut temporibus.</p>
{% endfor %}
</div>
</div>
<hr class="my-5">
{% for size in page.sizes %}
<div class="mb-3 mx-n2 d-flex flex-wrap">
{% for color in page.button_colors %}
<button class="btn btn{{ size }} btn-{{ style }}{{ color }} m-2">{{ color|capitalize }}</button>
{% endfor %}
</div>
{% endfor %}
<hr class="my-5">
<div class="row g-lg-5 mb-n5">
{% for size in page.sizes %}
<form class="col-lg-4 mb-5">
<div class="mb-3">
<label for="searchinput{{size}}" class="form-label">Search input</label>
<div class="search-input">
<input type="text" class="form-control form-control{{ size }}" id="searchinput{{size}}" placeholder="Search…">
<button type="button" aria-label="Search">{% include icons/search.svg %}</button>
</div>
</div>
<div class="mb-3">
<label for="searchinputauto{{size}}" class="form-label">Search input</label>
<div class="search-input">
<input type="text" class="form-control form-control{{ size }} awesomplete" id="searchinputauto{{size}}" placeholder="Search…" data-list="January, February, March, April, May, June, July, August, September, October, November, December" aria-describedby="help1{{ size }}">
<button type="button" aria-label="Search">{% include icons/search.svg %}</button>
</div>
<div id="help1{{ size }}" class="form-text">Try typing the name of a month.</div>
</div>
<div class="mb-3">
<label for="input1{{ size }}" class="form-label">Text input</label>
<input type="text" class="form-control form-control{{ size }}" id="input1{{ size }}" aria-describedby="help2{{ size }}">
<div id="help2{{ size }}" class="form-text">This is some help text for the input.</div>
</div>
<div class="mb-3">
<label for="input2{{ size }}" class="form-label">Invalid input</label>
<input type="text" class="form-control form-control{{ size }} is-invalid" id="input2{{ size }}" aria-describedby="help3{{ size }}">
<div id="help3{{ size }}" class="invalid-feedback">This is some help text for the input.</div>
</div>
<div class="mb-3">
<label for="input3{{ size }}" class="form-label">Disabled input</label>
<input type="text" id="input3{{ size }}" class="form-control form-control{{ size }}" disabled>
</div>
<div class="mb-3">
<label for="input4{{ size }}" class="form-label">Disabled input</label>
<select class="form-select form-select{{ size }}" id="input4{{ size }}">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="input5{{ size }}">
<label class="form-check-label" for="input5{{ size }}">Checkbox</label>
</div>
<div class="mb-3">
<div class="form-check">
<input class="form-check-input" type="radio" name="radios" id="input6{{ size }}">
<label class="form-check-label" for="input6{{ size }}">Radio 1</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="radios" id="input7{{ size }}" checked>
<label class="form-check-label" for="input7{{ size }}">Radio 2</label>
</div>
</div>
<button type="submit" class="btn btn{{ size }} btn-primary">Submit</button>
</form>
{% endfor %}
</div>
<hr class="my-5">
<div class="row g-lg-5">
<div class="col-sm-6 col-lg-3">
<div class="p-3 mb-5 bg-light rounded" style="min-height: 10em">No shadow</div>
</div>
<div class="col-sm-6 col-lg-3">
<div class="shadow-sm p-3 mb-5 bg-body rounded" style="min-height: 10em">Small shadow</div>
</div>
<div class="col-sm-6 col-lg-3">
<div class="shadow p-3 mb-5 bg-body rounded" style="min-height: 10em">Regular shadow</div>
</div>
<div class="col-sm-6 col-lg-3">
<div class="shadow-lg p-3 mb-5 bg-body rounded" style="min-height: 10em">Large shadow</div>
</div>
</div>
</div>
</div>