Fix some assets
assets/css/git.css
| 124 | 124 | display: block; | |
| 125 | 125 | margin-left: 1em; | |
| 126 | 126 | margin-right: 1em; | |
| 127 | + | text-align: left; | |
| 127 | 128 | } | |
| 128 | 129 | ||
| 129 | 130 | .links a { |
assets/css/gitile.css
| 389 | 389 | .commit-info .commit-id { | |
| 390 | 390 | margin-left: 1em; | |
| 391 | 391 | border: 1px solid var(--gray); | |
| 392 | - | border-radius: 10px; | |
| 393 | 392 | padding: 0; | |
| 394 | 393 | background: var(--darkerwhite); | |
| 395 | 394 | height: 2.5em; | |
… | |||
| 466 | 465 | background: var(--code-background); | |
| 467 | 466 | padding: 0.15em; | |
| 468 | 467 | display: inline-block; | |
| 469 | - | border-radius: 5px; | |
| 470 | 468 | box-shadow: 1px 1px 1px var(--code-shadow); | |
| 471 | 469 | color: var(--code-color); | |
| 472 | 470 | } | |
assets/js/gitile.js
| 6 | 6 | buttons = document.getElementsByClassName('copy') | |
| 7 | 7 | ||
| 8 | 8 | function mycopy(button) { | |
| 9 | - | alert(button) | |
| 10 | 9 | data = button.dataset.clipboardCopy | |
| 11 | 10 | while(data == undefined) { | |
| 12 | 11 | button = button.parentElement | |
| 13 | 12 | data = button.dataset.clipboardCopy | |
| 14 | 13 | } | |
| 15 | - | alert(data) | |
| 16 | 14 | i = document.createElement('input') | |
| 17 | 15 | i.type = 'text' | |
| 18 | 16 | i.value = data | |
… | |||
| 24 | 22 | button.removeChild(i) | |
| 25 | 23 | } | |
| 26 | 24 | ||
| 27 | - | ||
| 28 | 25 | for(i=0;i<buttons.length;i++) { | |
| 29 | 26 | buttons[i].addEventListener('click', function(e) { | |
| 30 | 27 | mycopy(e.target) | |