fix: Update broken styles in the editor (#5183)

This commit is contained in:
Sivin Varghese 2022-08-03 15:04:32 +05:30 committed by GitHub
parent f7d4f39b5c
commit 262458f07d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 16 deletions

View file

@ -157,4 +157,12 @@ export default {
color: var(--s-600); color: var(--s-600);
} }
} }
.input-container::v-deep {
margin: 0 0 var(--space-normal);
input {
margin-bottom: 0;
}
}
</style> </style>

View file

@ -117,6 +117,8 @@ export default {
color: var(--r-500); color: var(--r-500);
} }
.input-group { .input-group {
display: flex;
align-items: baseline;
border-bottom: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
margin-bottom: var(--space-smaller); margin-bottom: var(--space-smaller);
margin-top: var(--space-smaller); margin-top: var(--space-smaller);
@ -126,6 +128,7 @@ export default {
background: transparent; background: transparent;
font-size: var(--font-size-mini); font-size: var(--font-size-mini);
font-weight: var(--font-weight-bold); font-weight: var(--font-weight-bold);
padding-left: 0;
} }
.input-group-field::v-deep input { .input-group-field::v-deep input {
margin-bottom: 0; margin-bottom: 0;

View file

@ -1,5 +1,5 @@
<template> <template>
<label class="container"> <label class="input-container">
<span v-if="label">{{ label }}</span> <span v-if="label">{{ label }}</span>
<input <input
:value="value" :value="value"
@ -64,20 +64,10 @@ export default {
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.container { .help-text {
margin: 0 0 var(--space-normal); margin-top: var(--space-micro);
input { font-size: var(--font-size-mini);
margin: 0; color: var(--s-600);
} font-style: normal;
.page-sub-title {
color: var(--s-600);
}
.help-text {
margin-top: var(--space-micro);
font-size: var(--font-size-mini);
color: var(--s-600);
font-style: normal;
}
} }
</style> </style>