Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small style cleanups #159

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions arches_lingo/src/arches_lingo/components/scheme/SchemeCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { inject } from "vue";
import { systemLanguageKey } from "@/arches_lingo/constants.ts";
import { routeNames } from "@/arches_lingo/routes.ts";

import Card from "primevue/card";

import type { Language } from "@/arches_vue_utils/types";
import type { SchemeResource, ResourceDescriptor } from "@/arches_lingo/types";

Expand All @@ -28,34 +30,32 @@ if (descriptors) {
</script>

<template>
<RouterLink
:to="schemeURL"
class="scheme-card"
>
<p>{{ schemeDescriptor.name }}</p>
<p>{{ schemeDescriptor.description }}</p>
<RouterLink :to="schemeURL">
<Card>
<template #title>
{{ schemeDescriptor.name }}
</template>
<template #content>
{{ schemeDescriptor.description }}
</template>
</Card>
</RouterLink>
</template>

<style scoped>
p {
text-align: center;
}
.scheme-card {
a {
text-decoration: none;
color: var(--p-text-color);
}

:deep(.p-card) {
background-color: var(--p-button-primary-background);
color: var(--p-button-primary-color);
width: 15rem;
height: 15rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 0.5rem;
border: 1px solid var(--p-menubar-border-color);
background-color: var(--p-primary-400);
}
.scheme-card:hover {
background-color: var(--p-button-primary-hover-background);
cursor: pointer;

:deep(.p-card-body) {
text-align: center;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const showHierarchy = ref(false);
/>
</div>
<Splitter
style="display: flex; height: 100%"
style="height: 100%"
:pt="{
gutter: { style: { display: showHierarchy ? 'flex' : 'none' } },
}"
Expand Down
2 changes: 1 addition & 1 deletion arches_lingo/src/arches_lingo/pages/SchemePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const getRef = (el: object | null, index: number) => {
</script>

<template>
<Splitter>
<Splitter style="height: 100%">
<SplitterPanel
v-if="sectionVisible"
:size="66"
Expand Down
Loading