Skip to content

Commit e12a528

Browse files
committed
Added some slight styling
1 parent dd83299 commit e12a528

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

src/lib/components/form_editor/form_editor.svelte

+34-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
/>
7878

7979
<QuestionListEditor bind:value={questions} />
80-
<QuestionInputEditor bind:data={questions[0]} />
8180
<button type="submit" on:click={handleSumbit}>Submit</button>
8281
</form>
8382

@@ -90,4 +89,38 @@
9089
margin: 0 auto;
9190
max-width: 400px;
9291
}
92+
/* :global(fieldset) {
93+
border: none;
94+
min-width: 0;
95+
margin: 0px;
96+
padding: 0px;
97+
max-width: 100%;
98+
width: 100%;
99+
display: block;
100+
} */
101+
:global(legend) {
102+
font-size: 13px;
103+
font-weight: bold;
104+
margin-bottom: 10px;
105+
font-family: 'Poppins';
106+
}
107+
108+
:global(.question) {
109+
padding: 20px 15px;
110+
width: calc(100% - 30px);
111+
margin: 10px auto;
112+
background-color: #ffffff;
113+
border-radius: 10px;
114+
border-color: #c5c8c9;
115+
border-width: 0;
116+
border-style: solid;
117+
}
118+
119+
/* :global(label) {
120+
display: flex;
121+
} */
122+
123+
/* :global(input) {
124+
display: flex;
125+
} */
93126
</style>

src/lib/components/questions/boolean/boolean_question_input_editor.svelte

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
/>
3838
<details>
3939
<summary>Sample</summary>
40-
<BooleanQuestionInput bind:data />
40+
<div class="question">
41+
<BooleanQuestionInput bind:data />
42+
</div>
4143
</details>
4244
</BaseEditor>

src/lib/components/questions/color/color_question_input_editor.svelte

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
<input type="color" name="color-" bind:value={data.value} />
1414
<details>
1515
<summary>Sample</summary>
16-
<ColorQuestionInput bind:data />
16+
<div class="question">
17+
<ColorQuestionInput bind:data />
18+
</div>
1719
</details>
1820
</BaseEditor>

0 commit comments

Comments
 (0)