Skip to content

What's the connection between layouts/*.vue and styles/*.css #612

Answered by x-zheng16
x-zheng16 asked this question in Q&A
Discussion options

You must be logged in to vote

I found that I can directly modify the file styles/layouts.css to manually design the layout of the cover page as following.

.slidev-layout.cover,
.slidev-layout.intro {
    @apply grid h-full;

    h1 {
        color: inherit;
        @apply text-6xl leading-20;
    }

    .grid-container {
        @apply grid h-[30rem] grid-rows-[30%,40%,30%];
    }

    .grid-container .title {
        grid-row: 2;
    }

    .grid-container .author {
        grid-row: 3;
    }
}

And my understanding about the layouts/cover.vue is to provide slot. Actually slot has been mentioned in Guide/Markdown Syntax/Slot. Once a slot is set, styles/layouts.css can be used to customize the layout within that slot, …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by x-zheng16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant