diff --git a/static/css/patch.css b/static/css/patch.css index 91b9fcd..a395932 100644 --- a/static/css/patch.css +++ b/static/css/patch.css @@ -1,13 +1,24 @@ +h2, +h3 { + font-weight: normal; + font-size: 32px; + margin: 0; +} + .instrument { max-height: 100vh; max-width: 100vw; + width: 100%; object-fit: contain; margin: 0 auto; - margin-top: 32px; display: block; position: relative; } +.new-snippet { + display: flex; +} + .snippets { width: 100%; padding: 0; @@ -80,16 +91,21 @@ main { line-height: 1.2; } -.meta { - display: inline-block; +.meta > * { border: 1px solid currentColor; padding: 16px; - margin: 32px 0; - max-width: 40ch; +} + +.meta h2 { + margin: 0; +} + +.meta > * + * { + margin-top: 16px; } .meta .date { - margin-top: 8px; + margin-top: 16px; opacity: 0.5; } @@ -102,3 +118,15 @@ main { background-color: rgba(200, 200, 200, 0.5); max-width: 60ch; } + +.grid { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + gap: 16px; + align-items: flex-start; +} + +.grid .instrument { + grid-column: 2 / span 2; + border: 1px solid currentColor; +} diff --git a/templates/patch.html b/templates/patch.html index c7af26a..21d6256 100644 --- a/templates/patch.html +++ b/templates/patch.html @@ -45,7 +45,24 @@
-
+
+ +
+ +
+

{{patch['name']}}

+
+ +
+ {{patch['description']}} + +
+ {{ patch['created']}} +
+
+ +
+
{{panel|safe}}
@@ -57,26 +74,23 @@ {% endif %}
- -
-
- {{patch['description']}} -
- -
- {{ patch['created']}}
-
- - -
- - - -
- + +
+ +

Snippets

+ + Add new + +
+ + + +
+
+
    {% for snippet in snippets %}
  • @@ -100,24 +114,10 @@ /> -
  • {% endfor %}
-
+
 {{patch['name']}}