From d0b7e7ddeb90b76ae11617f734933f68ac0599dc Mon Sep 17 00:00:00 2001 From: Joxit Date: Mon, 24 Dec 2018 19:07:29 +0100 Subject: [PATCH] =?UTF-8?q?[material-button]=C2=A0Add=20material-button=20?= =?UTF-8?q?for=20all=20effective=20buttons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/material-icons.css | 11 ++++- src/style.css | 31 ++++++++---- src/tags/app.tag | 5 ++ src/tags/catalog.tag | 5 +- src/tags/copy-to-clipboard.tag | 4 +- src/tags/remove-image.tag | 84 +++++++++++++++++---------------- src/tags/tag-history-button.tag | 6 +-- src/tags/tag-history.tag | 10 +++- src/tags/taglist.tag | 7 +-- 9 files changed, 96 insertions(+), 67 deletions(-) diff --git a/src/material-icons.css b/src/material-icons.css index ae2b2dd..fff516d 100644 --- a/src/material-icons.css +++ b/src/material-icons.css @@ -11,7 +11,9 @@ url(fonts/MaterialIcons-Regular.ttf) format('truetype'); } -.material-icons { +material-button .content i.material-icons, +material-button[rounded=true] .content i.material-icons, +i.material-icons { font-family: 'Material Icons'; font-weight: normal; font-style: normal; @@ -36,4 +38,9 @@ /* Support for IE. */ font-feature-settings: 'liga'; -} \ No newline at end of file +} + +material-button .content i.material-icons, +material-button[rounded=true] .content i.material-icons { + margin: auto; +} diff --git a/src/style.css b/src/style.css index d3f1951..66e3161 100644 --- a/src/style.css +++ b/src/style.css @@ -175,16 +175,21 @@ material-card table th { text-align: left; } +material-card material-button:hover, material-card table tbody tr:hover { background-color: #eee; } +material-card material-button, +material-card table tbody tr { + transition-duration: .28s; + transition-timing-function: cubic-bezier(.4, 0, .2, 1); + transition-property: background-color; +} + material-card table tbody tr { position: relative; height: 48px; - transition-duration: .28s; - transition-timing-function: cubic-bezier(.4, 0, .2, 1); - transition-property: background-color; } material-card table td { @@ -223,6 +228,7 @@ material-card table th.material-card-th-sorted-descending:before { content: "\e5db"; } +material-button .content i.material-icons, .material-icons { color: #777; } @@ -339,10 +345,6 @@ select { text-align: center; } -.copy-to-clipboard a:hover { - cursor: pointer; -} - tag-history material-card { min-height: auto; } @@ -382,4 +384,17 @@ tag-history-element.id div.value { tag-history-button button { background: none; border: none; -} \ No newline at end of file +} + +material-button { + max-height: 30px; + max-width: 30px; +} + +material-button:hover material-waves { + background: none; +} + +material-card material-button { + background-color: inherit; +} diff --git a/src/tags/app.tag b/src/tags/app.tag index 957b3b6..bd5ef4e 100644 --- a/src/tags/app.tag +++ b/src/tags/app.tag @@ -231,6 +231,11 @@ along with this program. If not, see . const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024))); return Math.ceil(bytes / Math.pow(1024, i)) + ' ' + sizes[i]; }; + + registryUI.taglist.go = function(image) { + route('taglist/' + image); + }; + route.start(true); \ No newline at end of file diff --git a/src/tags/catalog.tag b/src/tags/catalog.tag index c1a1bc4..d31e732 100644 --- a/src/tags/catalog.tag +++ b/src/tags/catalog.tag @@ -27,7 +27,7 @@ along with this program. If not, see .
    -
  • +
  • send { item } @@ -63,9 +63,6 @@ along with this program. If not, see . oReq.open('GET', registryUI.url() + '/v2/_catalog?n=100000'); oReq.send(); }; - registryUI.catalog.go = function(image) { - route('taglist/' + image); - }; registryUI.catalog.display(); diff --git a/src/tags/copy-to-clipboard.tag b/src/tags/copy-to-clipboard.tag index f12f7cc..65ab2c4 100644 --- a/src/tags/copy-to-clipboard.tag +++ b/src/tags/copy-to-clipboard.tag @@ -16,9 +16,9 @@ --> - + content_copy - + diff --git a/src/tags/tag-history-button.tag b/src/tags/tag-history-button.tag index 08ffab6..b0476b8 100644 --- a/src/tags/tag-history-button.tag +++ b/src/tags/tag-history-button.tag @@ -15,13 +15,13 @@ You should have received a copy of the GNU Affero General Public License along with this program. If not, see . --> - + diff --git a/src/tags/taglist.tag b/src/tags/taglist.tag index b1d1e1f..be47e94 100644 --- a/src/tags/taglist.tag +++ b/src/tags/taglist.tag @@ -18,9 +18,9 @@ along with this program. If not, see .
    - + arrow_back - +

    Tags of { registryUI.name() + '/' + registryUI.taglist.name }
    { registryUI.taglist.tags.length } tags
    @@ -116,9 +116,6 @@ along with this program. If not, see . } registryUI.taglist.instance.update(); }; - registryUI.taglist.refresh = function() { - route(registryUI.taglist.name); - }; \ No newline at end of file