Adjust button sizes
This commit is contained in:
@@ -17,7 +17,7 @@ function openViewSettings() {
|
|||||||
options.forEach(function (opt) {
|
options.forEach(function (opt) {
|
||||||
var b = document.createElement('button');
|
var b = document.createElement('button');
|
||||||
b.type = 'button';
|
b.type = 'button';
|
||||||
b.className = 'btn btn-small';
|
b.className = 'btn';
|
||||||
b.textContent = opt.label;
|
b.textContent = opt.label;
|
||||||
if (state[key] === opt.value) b.classList.add('is-active');
|
if (state[key] === opt.value) b.classList.add('is-active');
|
||||||
b.addEventListener('click', function () {
|
b.addEventListener('click', function () {
|
||||||
|
|||||||
+1
-1
@@ -167,7 +167,7 @@ footer {
|
|||||||
.btn::before { content: "["; color: var(--secondary); }
|
.btn::before { content: "["; color: var(--secondary); }
|
||||||
.btn::after { content: "]"; color: var(--secondary); }
|
.btn::after { content: "]"; color: var(--secondary); }
|
||||||
.btn:hover { color: var(--primary-hover); }
|
.btn:hover { color: var(--primary-hover); }
|
||||||
.btn-small { font-size: 0.65rem; font-weight: normal; vertical-align: middle; }
|
.btn-small { font-size: 0.8rem; font-weight: normal; vertical-align: middle; }
|
||||||
.btn-tool { padding: 0 0.15rem; }
|
.btn-tool { padding: 0 0.15rem; }
|
||||||
.btn-block {
|
.btn-block {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user