Przeglądaj źródła

Add css capability to the dropbox example, just like in dragdrop

Kevin van Zonneveld 9 lat temu
rodzic
commit
d5728b067f

+ 7 - 0
website/src/examples/dropbox.ejs

@@ -12,6 +12,7 @@ Dropbox
 Here you'll see a demo of how you might set up Dropbox with Uppy:
 </p>
 
+<link rel="stylesheet" href="dropbox/src/css/app.css">
 <% include dropbox/src/html/app.html %>
 <script src="dropbox/static/js/app.js"></script>
 
@@ -28,3 +29,9 @@ Here you'll see a demo of how you might set up Dropbox with Uppy:
 </p>
 
 {% include_code lang:js dropbox/src/js/app.js %}
+
+<p>
+  And the following CSS:
+</p>
+
+{% include_code lang:css dropbox/src/css/app.css %}

+ 5 - 0
website/src/examples/dropbox/src/css/app.css

@@ -0,0 +1,5 @@
+ul#target {
+  border: 1px dashed orange;
+  width: 100%;
+  height: 300px;
+}