nanom commited on
Commit
f8732f2
1 Parent(s): 0a0a388

Added btn-sm css button style

Browse files
Files changed (3) hide show
  1. css/.gitignore +1 -0
  2. css/style.css +6 -0
  3. modules/m_htmlrender.py +1 -1
css/.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ bootstrap-5.0.2-dist/
css/style.css CHANGED
@@ -219,4 +219,10 @@ h6, .h6 {
219
  color: #fff;
220
  background-color: #343a40;
221
  border-color: #343a40;
 
 
 
 
 
 
222
  }
 
219
  color: #fff;
220
  background-color: #343a40;
221
  border-color: #343a40;
222
+ }
223
+
224
+ .btn-sm, .btn-group-sm > .btn {
225
+ padding: 0.25rem 0.5rem;
226
+ font-size: 0.875rem;
227
+ border-radius: 0.2rem;
228
  }
modules/m_htmlrender.py CHANGED
@@ -34,7 +34,7 @@ class HtmlRender:
34
  ) -> str:
35
 
36
  html = f"""
37
- <span type="button" title="{category}" class="btn btn-{color}">
38
  <b>{text}</b><br>
39
  <span class="badge badge-pill badge-light">{category}</span>
40
  </span>
 
34
  ) -> str:
35
 
36
  html = f"""
37
+ <span type="button" title="{category}" class="btn btn-{color} btn-sm">
38
  <b>{text}</b><br>
39
  <span class="badge badge-pill badge-light">{category}</span>
40
  </span>