diff --git a/cista-front/src/assets/main.css b/cista-front/src/assets/main.css index 1918b7b..9e21a29 100644 --- a/cista-front/src/assets/main.css +++ b/cista-front/src/assets/main.css @@ -87,8 +87,7 @@ tbody .selection input:checked { opacity: 1 !important; transform: scale(0.5); - top: 0.1rem !important; - left: -0.3rem !important; + left: 0; } } @@ -103,7 +102,7 @@ main { body { background-color: var(--primary-background); font-size: 1rem; - font-family: 'Roboto', sans-serif; + font-family: 'Roboto'; color: var(--primary-color); margin: 0; } @@ -157,8 +156,48 @@ table { display: flex; flex-direction: column; } +nav { + /* Position so that tooltips can appear on top of other positioned elements */ + position: relative; + z-index: 10; +} main { height: calc(100svh - 9rem); /* fill almost the rest of the screen after header */ padding-bottom: 3rem; /* convenience space on the bottom */ overflow-y: scroll; } +[data-tooltip]:hover:after { + z-index: 1000; + content: attr(data-tooltip); + position: absolute; + font-size: 1rem; + text-align: center; + padding: .5rem 1rem; + border-radius: 3rem 0 3rem 0; + box-shadow: 0 0 2rem var(--accent-color); + transform: translate(calc(1rem + -50%), 150%); + background-color: var(--accent-color); + color: var(--primary-color); + white-space: pre; + animation: appearbriefly calc(10 * var(--transition-time)) linear forwards; +} +.modified [data-tooltip]:hover:after { + transform: translate(calc(1rem + 1ex + -100%), calc(-1.5rem + 100%)); +} +@keyframes appearbriefly { + from { + opacity: 0; + } + 30% { + opacity: 0; + } + 40% { + opacity: 1; + } + 90% { + opacity: 1; + } + to { + opacity: 0; + } +} diff --git a/cista-front/src/components/BreadCrumb.vue b/cista-front/src/components/BreadCrumb.vue index 46d2eeb..2fc47a1 100644 --- a/cista-front/src/components/BreadCrumb.vue +++ b/cista-front/src/components/BreadCrumb.vue @@ -34,20 +34,20 @@ const props = defineProps<{ .breadcrumb > a { margin: 0 -0.7rem 0 -0.7rem; padding: 0; - max-width: 8em; - font-size: 1.3em; + max-width: 8rem; + font-size: 1.3rem; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; - height: 1em; + height: 1.5rem; color: var(--breadcrumb-color); - padding: 0.3em 1.5em; - clip-path: polygon(0 0, 1em 50%, 0 100%, 100% 100%, 100% 0, 0 0); + padding: 0.3rem 1.5rem; + clip-path: polygon(0 0, 1rem 50%, 0 100%, 100% 100%, 100% 0, 0 0); transition: all var(--breadcrumb-transtime); } .breadcrumb a:first-child { margin-left: 0; - padding-left: 0; + padding-left: .2rem; clip-path: none; } .breadcrumb a:last-child { diff --git a/cista-front/src/components/FileExplorer.vue b/cista-front/src/components/FileExplorer.vue index 9c35244..c8c93d6 100644 --- a/cista-front/src/components/FileExplorer.vue +++ b/cista-front/src/components/FileExplorer.vue @@ -110,7 +110,7 @@