From bcde27c4d168d6ed058f489d0d59e11010d4cd47 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Tue, 12 Nov 2024 15:26:16 -0600 Subject: [PATCH] New grid layout and addition of features menu --- app/assets/images/tag.svg | 1 + app/assets/stylesheets/bubbles.css | 14 ++++++- app/assets/stylesheets/comments.css | 1 - app/assets/stylesheets/layout.css | 6 +++ app/views/bubbles/_assignments.html.erb | 2 +- app/views/bubbles/_color.html.erb | 2 +- app/views/bubbles/_date.html.erb | 2 +- app/views/bubbles/_image.html.erb | 2 +- app/views/bubbles/_pop_toggle.html.erb | 8 ++-- app/views/bubbles/_tags.html.erb | 2 +- app/views/bubbles/show.html.erb | 43 ++++++++++++++++---- app/views/bubbles/stage_pickers/new.html.erb | 2 +- 12 files changed, 64 insertions(+), 21 deletions(-) create mode 100644 app/assets/images/tag.svg diff --git a/app/assets/images/tag.svg b/app/assets/images/tag.svg new file mode 100644 index 000000000..76591fe36 --- /dev/null +++ b/app/assets/images/tag.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/assets/stylesheets/bubbles.css b/app/assets/stylesheets/bubbles.css index 0b8140b00..48b6fcff0 100644 --- a/app/assets/stylesheets/bubbles.css +++ b/app/assets/stylesheets/bubbles.css @@ -136,7 +136,7 @@ &.bubble__assignee { aspect-ratio: 1; - font-size: 4.5 cqi; + font-size: 4.5cqi; inset: -2cqi auto auto 26cqi; padding: 0.4em; @@ -307,6 +307,15 @@ } } +.bubble__container { + inline-size: min(67ch, 75vw); + max-inline-size: 100vw; + + @media (max-width: 70ch) { + inline-size: min(67ch, 100vw); + } +} + .bubble__image { border: none; border-radius: var(--bubble-shape); @@ -347,7 +356,8 @@ } .bubble__perma { - block-size: 65cqb; + block-size: 100%; + max-block-size: 65dvh; max-inline-size: 100%; } diff --git a/app/assets/stylesheets/comments.css b/app/assets/stylesheets/comments.css index b23f6c15a..df2a2689c 100644 --- a/app/assets/stylesheets/comments.css +++ b/app/assets/stylesheets/comments.css @@ -3,7 +3,6 @@ --comment-padding-block: 1.2em; --comment-padding-inline: 1.5em; - font-size: clamp(1rem, 1.6cqi, 2rem); max-inline-size: 70ch; row-gap: var(--comment-padding-block); diff --git a/app/assets/stylesheets/layout.css b/app/assets/stylesheets/layout.css index 2fdbecf69..eccf7dcab 100644 --- a/app/assets/stylesheets/layout.css +++ b/app/assets/stylesheets/layout.css @@ -23,6 +23,12 @@ body { text-justify: distribute; widows: 2; } + + &:has(.bubble__perma) { + display: grid; + grid-template-columns: 1fr minmax(min-content, auto) 1fr; + gap: var(--inline-space); + } } :where(#footer) { diff --git a/app/views/bubbles/_assignments.html.erb b/app/views/bubbles/_assignments.html.erb index a1851b038..143c6fa07 100644 --- a/app/views/bubbles/_assignments.html.erb +++ b/app/views/bubbles/_assignments.html.erb @@ -1,4 +1,4 @@ -"> + id="new-assignee" class="bubble__bubble bubble__meta bubble__assignee <%= "bubble__assignee--new" if bubble.assignees.none? %>"> <%= form_with url: bucket_bubble_assignments_path(bubble.bucket, bubble), data: { controller: "form" } do |form| %>