From ca70118f609b7363e0c82c7e9adf2096df684f39 Mon Sep 17 00:00:00 2001 From: Vrifox Date: Fri, 9 Oct 2020 14:31:22 +0200 Subject: [PATCH] button not usable if --- .gitignore | 1 + public/css/theme-backend.css | 13 +++++++-- public/css/theme-frontend.css | 18 +++++++++++-- source/import/repository.scss | 50 +++++++++++++++++++++++++++++------ 4 files changed, 70 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 5f75873..f31406d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ deploy.sh +*.kate-swp diff --git a/public/css/theme-backend.css b/public/css/theme-backend.css index 7dc42d3..accd55e 100644 --- a/public/css/theme-backend.css +++ b/public/css/theme-backend.css @@ -262,12 +262,12 @@ body > .full.height::first-line, fill: #d7d7e1; } .repository .container .table tbody tr .jumpable-path { color: #d7d7e1 !important; } - .repository .container .table .commit-list .sha.label { + .repository .container .table .commit-list th .sha.label { background: #464669; border: 0 !important; color: #f5f5ff; transition: background .2s, color .2s; } - .repository .container .table .commit-list .sha.label:hover { + .repository .container .table .commit-list th .sha.label:hover { background: #3c3c5a; color: white; } @@ -433,6 +433,15 @@ body > .full.height::first-line, .repository.commits .container .header form .checkbox label { color: #f5f5ff; } +.repository.commits .container .table .very.basic.table .commit-list tr .sha.label { + background: #464669; + border: 0 !important; + color: #f5f5ff; + transition: background .2s, color .2s; } + .repository.commits .container .table .very.basic.table .commit-list tr .sha.label:hover { + background: #3c3c5a; + color: white; } + /* repository: branches */ .repository.branches .container .table tbody tr:hover { background: #1e1e2d; } diff --git a/public/css/theme-frontend.css b/public/css/theme-frontend.css index 164a735..4428ac9 100644 --- a/public/css/theme-frontend.css +++ b/public/css/theme-frontend.css @@ -309,14 +309,16 @@ body > .full.height::first-line, width: 10px; } .repository .container .table tbody tr .jumpable-path { color: #d7d7e1 !important; } - .repository .container .table .commit-list .sha.label { + .repository .container .table .commit-list th .sha.label { background: #464669; border: 0 !important; color: #f5f5ff; transition: background .2s, color .2s; } - .repository .container .table .commit-list .sha.label:hover { + .repository .container .table .commit-list th .sha.label:hover { background: #3c3c5a; color: white; } + .repository .container .table .commit-list th .commit-summary .commit-button { + display: none; } .repository .container .non-diff-file-content { color: #f5f5ff; } @@ -502,6 +504,18 @@ body > .full.height::first-line, .repository.commits .container .header form .checkbox label { color: #f5f5ff; } +.repository.commits .container .table .very.basic.table .commit-list tr .sha.label { + background: #464669; + border: 0 !important; + color: #f5f5ff; + transition: background .2s, color .2s; } + .repository.commits .container .table .very.basic.table .commit-list tr .sha.label:hover { + background: #3c3c5a; + color: white; } + +.repository.commits .container .table .very.basic.table .commit-list tr .message .commit-button { + display: none; } + /* repository: branches */ .repository.branches .container .table tbody tr:hover { background: #1e1e2d; } diff --git a/source/import/repository.scss b/source/import/repository.scss index 22cf95f..430935d 100644 --- a/source/import/repository.scss +++ b/source/import/repository.scss @@ -342,14 +342,23 @@ } } .commit-list { - .sha.label { - background: rgb(70, 70, 105); - border: 0 !important; - color: rgb(245, 245, 255); - transition: background .2s, color .2s; - &:hover { - background: rgb(60, 60, 90); - color: rgb(255, 255, 255); + th { + .sha.label { + background: rgb(70, 70, 105); + border: 0 !important; + color: rgb(245, 245, 255); + transition: background .2s, color .2s; + &:hover { + background: rgb(60, 60, 90); + color: rgb(255, 255, 255); + } + } + .commit-summary { + .commit-button { + @if $nojavascript == true { + display: none; + } + } } } } @@ -683,6 +692,31 @@ } } } + .table { + .very.basic.table { + .commit-list { + tr { + .sha.label { + background: rgb(70, 70, 105); + border: 0 !important; + color: rgb(245, 245, 255); + transition: background .2s, color .2s; + &:hover { + background: rgb(60, 60, 90); + color: rgb(255, 255, 255); + } + } + .message { + .commit-button { + @if $nojavascript == true { + display: none; + } + } + } + } + } + } + } } }