Explorar el Código

dev example tweaks

Artur Paikin hace 6 años
padre
commit
6a75cb05d9
Se han modificado 2 ficheros con 7 adiciones y 3 borrados
  1. 6 2
      examples/dev/index.html
  2. 1 1
      examples/dev/main.js

+ 6 - 2
examples/dev/index.html

@@ -14,8 +14,8 @@
 
 
       #upload-form {
       #upload-form {
         max-width: 400px;
         max-width: 400px;
-        margin: auto;
         text-align: left;
         text-align: left;
+        margin: auto;
       }
       }
 
 
       a {
       a {
@@ -37,8 +37,12 @@
       li {
       li {
         margin: 60px;
         margin: 60px;
       }
       }
+
+      .foo a {
+        color: purple;
+      }
     </style>
     </style>
-    <main>
+    <main class="foo">
       <h1>Uppy is here</h1>
       <h1>Uppy is here</h1>
 
 
       <form id="upload-form" action="/">
       <form id="upload-form" action="/">

+ 1 - 1
examples/dev/main.js

@@ -20,7 +20,7 @@ const uppy = Uppy({
   .use(Dashboard, {
   .use(Dashboard, {
     trigger: '#pick-files',
     trigger: '#pick-files',
     // inline: true,
     // inline: true,
-    // target: 'body',
+    target: '.foo',
     metaFields: [
     metaFields: [
       { id: 'license', name: 'License', placeholder: 'specify license' },
       { id: 'license', name: 'License', placeholder: 'specify license' },
       { id: 'caption', name: 'Caption', placeholder: 'add caption' }
       { id: 'caption', name: 'Caption', placeholder: 'add caption' }