From 6c539f60e5803533df745e9b512b80d0e739fb5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Mart=C3=ADn?= Date: Thu, 30 May 2013 17:38:20 +0200 Subject: [PATCH] Design fixes --- minecraftcodex/studio/static/sass/_fixes.sass | 5 +- .../studio/templates/studio/main.html | 88 +++++++++---------- 2 files changed, 44 insertions(+), 49 deletions(-) diff --git a/minecraftcodex/studio/static/sass/_fixes.sass b/minecraftcodex/studio/static/sass/_fixes.sass index 8a9c510..ee63b3c 100644 --- a/minecraftcodex/studio/static/sass/_fixes.sass +++ b/minecraftcodex/studio/static/sass/_fixes.sass @@ -3,8 +3,11 @@ overflow: visible // Dropdownss border radius -.dropdown-toggle +.dropdown-toggle, .btn-round border-radius: 6px !important //.open > .dropdown-menu // min-height: auto !important + +.valing-top + vertical-align: top diff --git a/minecraftcodex/studio/templates/studio/main.html b/minecraftcodex/studio/templates/studio/main.html index bbc87f0..40ff9e3 100644 --- a/minecraftcodex/studio/templates/studio/main.html +++ b/minecraftcodex/studio/templates/studio/main.html @@ -68,6 +68,11 @@ window.onload = function() { var texture = $(this).attr('data-texture') mcstudio.changeTexture(texture) }) + + $('[data-action="toggle"]').click(function() { + var target = $(this).attr('data-target') + $(target).toggle('fast') + }) } {% endblock %} @@ -87,8 +92,7 @@ window.onload = function() { @@ -123,12 +127,11 @@ window.onload = function() {
-
-

Textures

-
+
-
+

Textures

+
{% for item in textures %}
{% endfor %}
+
@@ -149,57 +153,45 @@ window.onload = function() {
-

Camera

-
-
- Type: - -
- - {# - #} +

Camera

+
+
+
+ Type: +
-
+
+
-

Objects

-
- // TODO +

Objects

+
+
+ +
-
+
+
-

Lights

-
- // TODO +

Lights

+
+