diff --git a/app/assets/stylesheets/collections.css b/app/assets/stylesheets/collections.css deleted file mode 100644 index 4d0ad7245..000000000 --- a/app/assets/stylesheets/collections.css +++ /dev/null @@ -1,40 +0,0 @@ -@layer components { - .collection { - inline-size: min(35ch, 40%); - line-height: 1.2; - - mark { - background-color: transparent; - color: var(--color-link); - text-decoration: underline; - } - } - - .collections { - --gap: 2cqi; - --hover-size: 0; - --column-gap: var(--gap); - --row-gap: var(--gap); - - list-style: none; - padding: var(--gap); - } - - .collection__button { - position: absolute; - inset: calc((var(--btn-size) * -1) - 2cqi) 1cqi auto auto; - } - - .collection__cards { - --border-radius: 1.5em; - - margin-block: 0; - max-inline-size: 100%; - padding: 1cqi; - } - - .cards__container { - aspect-ratio: 18 / 9; - container-type: inline-size; - } -} diff --git a/app/views/collections/_collection.html.erb b/app/views/collections/_collection.html.erb deleted file mode 100644 index fc36376ba..000000000 --- a/app/views/collections/_collection.html.erb +++ /dev/null @@ -1,27 +0,0 @@ -
  • - <%= link_to cards_path(collection_ids: [ collection ]), - class: "border border-radius margin-block-end-half cards__container flex justify-center align-center position-relative", - aria: { hidden: true }, tabindex: -1 do %> -
    - <% collection.cards.active.published_or_drafted_by(Current.user).ordered_by_activity.limit(10).each do |card| %> -
    " style="--card-color: <%= card.color %>; <%= card_rotation(card) %>" - data-card-size-target="card" - data-activity-score="<%= card.activity_score %>" - data-activity-score-at="<%= card.activity_score_at.to_i %>"> - -
    - <% end %> -
    - <% end %> - -
    - <%= link_to cards_path(collection_ids: [ collection ]), class: "txt-ink flex flex-column" do %> - <%= collection.name %> - <% end %> - - <%= link_to edit_collection_path(collection), class: "btn txt-small collection__button" do %> - <%= icon_tag "settings" %> - Settings for <%= collection.name %> - <% end %> -
    -
  • diff --git a/app/views/filters/_filter.html.erb b/app/views/filters/_filter.html.erb deleted file mode 100644 index 29e4a9862..000000000 --- a/app/views/filters/_filter.html.erb +++ /dev/null @@ -1,28 +0,0 @@ -<% cache_if filter.cacheable?, filter do %> -
  • - <%= link_to cards_path(**filter.as_params), - class: "border border-radius margin-block-end-half cards__container flex justify-center align-center position-relative", - aria: { hidden: true }, tabindex: -1 do %> -
    - <% filter.cards.ordered_by_activity.limit(10).each do |card| %> -
    " style="--card-color: <%= card.color %>; <%= card_rotation(card) %>" - data-card-size-target="card" - data-activity-score="<%= card.activity_score %>" - data-activity-score-at="<%= card.activity_score_at.to_i %>"> - -
    - <% end %> -
    - <% end %> - -
    - <%= link_to cards_path(**filter.as_params), class: "txt-ink" do %> - <%= icon_tag "filter", class: "flex-inline", style: "vertical-align: bottom" %> <%= filter.summary %> - <% end %> - <%= button_to filter_path(filter), method: :delete, class: "btn txt-small btn--negative collection__button", data: { turbo_confirm: "Are you sure you want to delete this filter?" } do %> - <%= icon_tag "minus" %> - Delete - <% end %> -
    -
  • -<% end %>