mejoras de estilos, lo voy a pushear y creo una branch nueva

pull/12/head
Borja Robert 2 years ago
parent ab3eaad3a8
commit bfb58294f7

@ -6,7 +6,7 @@
} }
:root { :root {
font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, font-family: Ubuntu, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
--font-mono: 'Fira Mono', monospace; --font-mono: 'Fira Mono', monospace;
--pure-white: #ffffff; --pure-white: #ffffff;

@ -59,7 +59,7 @@
display: grid; display: grid;
grid-template-columns: repeat(3, min-content); grid-template-columns: repeat(3, min-content);
align-items: center; align-items: center;
justify-content: center; justify-content: start;
} }
.organization { .organization {

@ -93,22 +93,30 @@
<div id="editor" on:click={getContent}> <div id="editor" on:click={getContent}>
<div on:click={getContent} on:keyup={getContent} bind:this={editor} /> <div on:click={getContent} on:keyup={getContent} bind:this={editor} />
</div> </div>
</div>
<div class="form-group"> <div class="form-group when">
<label for="date">Fecha</label> <div class="daymonthhour">
<label for="date">Fecha y hora</label>
<input bind:value={$date} type="datetime-local" name="date" /> <input bind:value={$date} type="datetime-local" name="date" />
</div> </div>
<div class="dayname">
<div class="form-group">
<label for="weekday">Día de la semana</label> <label for="weekday">Día de la semana</label>
<input bind:value={$weekday} type="text" name="weekday" /> <input bind:value={$weekday} type="text" name="weekday" placeholder="Ej. Lunes" />
</div> </div>
</div>
<div class="form-group"> <div class="form-group">
<label for="address">Dirección</label> <label for="address">Dirección</label>
<textarea bind:value={$address} type="text" name="address" /> <textarea
</div> bind:value={$address}
type="text"
name="address"
placeholder="Ej. Calle del Abeto, 4
Albacete"
/>
</div> </div>
<div class="form-group "> <div class="form-group ">
<label for="organizedBy">Organiza:</label> <label for="organizedBy">Organiza:</label>
<Organized /> <Organized />
@ -116,6 +124,7 @@
<Colabs /> <Colabs />
</div> </div>
</form> </form>
<button on:click|preventDefault={downloadCanvas}>Descargar</button> <button on:click|preventDefault={downloadCanvas}>Descargar</button>
<style> <style>
@ -128,12 +137,16 @@
display: block; display: block;
} }
.form-group {
display: block;
}
input { input {
display: block; display: block;
width: 100%; width: 100%;
font-size: 0.8rem; font-size: 0.8rem;
font-family: sans-serif; font-family: sans-serif;
padding: 0.45rem; padding: 0.5rem;
} }
textarea { textarea {
@ -164,4 +177,10 @@
font-size: 1.1rem; font-size: 1.1rem;
cursor: pointer; cursor: pointer;
} }
.form-group.when {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 0.25rem;
}
</style> </style>

@ -57,9 +57,9 @@
<style> <style>
.form-organized-by { .form-organized-by {
display: grid; display: grid;
grid-template-columns: repeat(5, min-content); grid-template-columns: repeat(3, min-content);
align-items: center; align-items: center;
justify-content: center; justify-content: start;
} }
.organization { .organization {
position: relative; position: relative;
@ -87,7 +87,6 @@
cursor: pointer; cursor: pointer;
background-color: white; background-color: white;
padding: 0 0.25rem; padding: 0 0.25rem;
z-index: 2;
} }
input { input {
@ -96,7 +95,7 @@
} }
button { button {
display: block; display: inline-block;
padding: 0.5rem; padding: 0.5rem;
cursor: pointer; cursor: pointer;
margin: 1rem; margin: 1rem;

@ -1,19 +1,20 @@
<header> <header>
<h1>Cartelería DMD</h1> <h1>Carteles dmd</h1>
</header> </header>
<style> <style>
header { header {
max-height: 4rem; max-height: 4rem;
margin: 0; margin: 0;
padding: 0.5rem; padding: 0.5rem 1rem;
} }
h1 { h1 {
font-size: 2rem; text-align: left;
font-weight: 500; font-size: 2rem;
color: firebrick; font-weight: 700;
font-family: 'Gill Sans', sans-serif; color: firebrick;
font-variant: small-caps; font-family: 'Ubuntu', sans-serif;
} /* font-family: 'Gill Sans', sans-serif; */
/* font-variant: small-caps; */
}
</style> </style>

@ -96,4 +96,5 @@
</div> </div>
<style> <style>
/* @import url(`'${template}.css'`); */
</style> </style>

@ -1,6 +1,8 @@
<script> <script>
import Form from '$lib/form/Form.svelte'; import Form from '$lib/form/Form.svelte';
import Preview from '$lib/preview/Preview.svelte'; import Preview from '$lib/preview/Preview.svelte';
let template = 'verde';
</script> </script>
<svelte:head> <svelte:head>

Loading…
Cancel
Save