Skip to content

Commit

Permalink
Improve VCard design
Browse files Browse the repository at this point in the history
  • Loading branch information
brachkow committed Nov 28, 2023
1 parent 01534a8 commit fd8aed3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/components/VCard/VCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@
<template>
<component
:is="tag"
class="overflow-hidden rounded bg-white dark:bg-darkmode-layer2 p-16 shadow phone:px-24 tablet:px-32">
:class="{
'overflow-hidden rounded bg-white p-24 pt-16 border border-gray ': true,
'dark:border-darkmode-border dark:bg-darkmode-layer2': true,
}">
<slot />
<footer
class="grow-children mt-32 flex flex-wrap justify-end gap-8 border-t border-gray border-opacity-20 pt-16 empty:hidden phone:gap-16 phone:pt-24 phone:pb-16">
:class="{
'grow-children mt-32 flex flex-wrap justify-end gap-8 empty:hidden phone:gap-16 ': true,
'dark:border-darkmode-white dark:border-opacity-100': true,
}">
<slot name="footer" />
</footer>
</component>
Expand Down
2 changes: 1 addition & 1 deletion src/views/VHomeworkAnswerView/VHomeworkAnswerView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<div v-if="question !== undefined && answer !== undefined">
<section class="mb-64 flex flex-col gap-24">
<VHeading tag="h1">{{ question.name }}</VHeading>
<VCard tag="details">
<VCard tag="details" class="pt-24">
<summary>Показать задание</summary>
<VHtmlContent :content="question.text" class="mt-16" />
</VCard>
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const config: Config = {
'darkmode-red': { DEFAULT: '#fb4934' },
black: { DEFAULT: '#000000' },
blue: { DEFAULT: '#3f5dff', hover: '#0024de' },
gray: { DEFAULT: '#9a9a9a' },
gray: { DEFAULT: 'rgb(218, 216, 206)' },
green: { DEFAULT: 'rgb(35, 207, 104)' },
lightblue: { DEFAULT: '#ADD8E6', hover: '#0024de' },
lightgray: { DEFAULT: '#e3e3e3' },
Expand Down

0 comments on commit fd8aed3

Please sign in to comment.