Customizing expansion-panel__header height
up vote
0
down vote
favorite
Working in Vuetify 1.3.0, trying to make thinner expansion panels than the default.
By default it seems to render pretty big ime, but I can't find the right rules to adjust the element height.
I tried tweaking the header style padding (which by default is 12px 24px), but that just changed where my header was in the overall panel content, so clearly something else is setting the parent element height, I just can't seem to track it down.
My component right now is (simplified) like this:
<template>
<section>
<v-expansion-panel>
<v-expansion-panel-content>
<header class='layout row justify-spaces ma-0' slot='header'>
<span class='caption flex' v-text='title'/>
</header>
</v-expansion-panel-content>
</v-expansion-panel>
</section>
</template>
<style>
.v-expansion-panel__header:
padding: 6px 12px;
</style>
Somehow the actual height of the element is being set to 48px, but it's greyed out meaning that it's computed at runtime and I can't find what factors are causing that. Walking up the DOM tree, I set line-heights to much smaller, cleared all margins and padding, etc. No luck.
css vuetify.js
add a comment |
up vote
0
down vote
favorite
Working in Vuetify 1.3.0, trying to make thinner expansion panels than the default.
By default it seems to render pretty big ime, but I can't find the right rules to adjust the element height.
I tried tweaking the header style padding (which by default is 12px 24px), but that just changed where my header was in the overall panel content, so clearly something else is setting the parent element height, I just can't seem to track it down.
My component right now is (simplified) like this:
<template>
<section>
<v-expansion-panel>
<v-expansion-panel-content>
<header class='layout row justify-spaces ma-0' slot='header'>
<span class='caption flex' v-text='title'/>
</header>
</v-expansion-panel-content>
</v-expansion-panel>
</section>
</template>
<style>
.v-expansion-panel__header:
padding: 6px 12px;
</style>
Somehow the actual height of the element is being set to 48px, but it's greyed out meaning that it's computed at runtime and I can't find what factors are causing that. Walking up the DOM tree, I set line-heights to much smaller, cleared all margins and padding, etc. No luck.
css vuetify.js
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Working in Vuetify 1.3.0, trying to make thinner expansion panels than the default.
By default it seems to render pretty big ime, but I can't find the right rules to adjust the element height.
I tried tweaking the header style padding (which by default is 12px 24px), but that just changed where my header was in the overall panel content, so clearly something else is setting the parent element height, I just can't seem to track it down.
My component right now is (simplified) like this:
<template>
<section>
<v-expansion-panel>
<v-expansion-panel-content>
<header class='layout row justify-spaces ma-0' slot='header'>
<span class='caption flex' v-text='title'/>
</header>
</v-expansion-panel-content>
</v-expansion-panel>
</section>
</template>
<style>
.v-expansion-panel__header:
padding: 6px 12px;
</style>
Somehow the actual height of the element is being set to 48px, but it's greyed out meaning that it's computed at runtime and I can't find what factors are causing that. Walking up the DOM tree, I set line-heights to much smaller, cleared all margins and padding, etc. No luck.
css vuetify.js
Working in Vuetify 1.3.0, trying to make thinner expansion panels than the default.
By default it seems to render pretty big ime, but I can't find the right rules to adjust the element height.
I tried tweaking the header style padding (which by default is 12px 24px), but that just changed where my header was in the overall panel content, so clearly something else is setting the parent element height, I just can't seem to track it down.
My component right now is (simplified) like this:
<template>
<section>
<v-expansion-panel>
<v-expansion-panel-content>
<header class='layout row justify-spaces ma-0' slot='header'>
<span class='caption flex' v-text='title'/>
</header>
</v-expansion-panel-content>
</v-expansion-panel>
</section>
</template>
<style>
.v-expansion-panel__header:
padding: 6px 12px;
</style>
Somehow the actual height of the element is being set to 48px, but it's greyed out meaning that it's computed at runtime and I can't find what factors are causing that. Walking up the DOM tree, I set line-heights to much smaller, cleared all margins and padding, etc. No luck.
css vuetify.js
css vuetify.js
asked Nov 11 at 16:25
Paul
25.9k75991
25.9k75991
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53250747%2fcustomizing-expansion-panel-header-height%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown