From 7e9433762f51be2c4938481c9c33589982118033 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 11 Jun 2021 13:31:07 +0200 Subject: Goodbye, Bootstrap & added a button component --- .../client/src/components/RepositoryTreeTree.vue | 62 +++++++++++++++------- 1 file changed, 43 insertions(+), 19 deletions(-) (limited to 'packages/client/src/components/RepositoryTreeTree.vue') diff --git a/packages/client/src/components/RepositoryTreeTree.vue b/packages/client/src/components/RepositoryTreeTree.vue index 376cafc..21f9570 100644 --- a/packages/client/src/components/RepositoryTreeTree.vue +++ b/packages/client/src/components/RepositoryTreeTree.vue @@ -10,7 +10,7 @@ + class="flex-center">
.. @@ -20,7 +20,7 @@ - + @use "../scss/colors"; -@import "../scss/bootstrap"; -#tree { +table { border-spacing: 0; + width: 100%; + margin-bottom: 1rem; + tbody { + vertical-align: inherit; + tr { + &:hover { + background-color: lighten(colors.$background, 5%); + } + td { + padding-bottom: 1em; + &:nth-child(2) a, &:nth-child(3) { + font-weight: 300; + } + padding-top: 5px; + padding-bottom: 5px; + padding-right: 2vw; + } + } + } + thead { + vertical-align: bottom; + } th { - padding-bottom: 5px; - color: colors.$secondary; text-align: start; - padding-right: 20px; - } - tbody tr:hover { - background-color: lighten(colors.$background, 10%); + padding-bottom: 1em; + color: colors.$secondary; } - td { - padding-top: 5px; - padding-bottom: 5px; - padding-right: 2vw; - &:nth-child(2) a, &:nth-child(3) { - font-weight: 300; - } + > :not(caption) > * > * { + padding: 0.2rem 1rem; + border-bottom-width: 1px; } .tree-entry-padding, svg { width: 18px; padding-right: 5px; } - a { - padding-right: 18px; +} + +#log { + padding-left: 0; +} + +@media (max-width: 576px) { + table > :not(caption) > * > * { + padding: 0.1rem; } } +.flex-center { + display: flex; + align-items: center; +} -- cgit v1.2.3-18-g5258