A platform for community discussion. Free, open, simple.
DEV: better class names for Flexbox
Arpit Jalan972c1acef8d1
diff --git a/app/assets/stylesheets/embed.scss b/app/assets/stylesheets/embed.scssindex 286570b0814..c4c7046463d 100644--- a/app/assets/stylesheets/embed.scss+++ b/app/assets/stylesheets/embed.scss@@ -196,10 +196,10 @@ div.lightbox-wrapper {}}- .topic-details-flex {+ .topic-column-wrapper {display: flex;- .topic-details-column-1 {+ .topic-column.details-column {flex-direction: column;width: 80%;@@ -225,7 +225,7 @@ div.lightbox-wrapper {}}- .topic-details-column-2 {+ .topic-column.featured-image-column {.topic-featured-image img {max-width: 200px;max-height: 100px;diff --git a/app/views/embed/topics.html.erb b/app/views/embed/topics.html.erbindex 5a4660165a3..2aaf3267969 100644--- a/app/views/embed/topics.html.erb+++ b/app/views/embed/topics.html.erb@@ -4,8 +4,8 @@<div class='topic-list-item'><%- if @template == "complete" %><div class='main-link'>- <div class="topic-details-flex">- <div class='topic-details-column-1'>+ <div class="topic-column-wrapper">+ <div class='topic-column details-column'><div class='topic-title-link'><a target="_parent" href="<%= t.url %>" class="title raw-link raw-topic-link" data-topic-id="<%= t.id %>"><%= t.title %></a></div>@@ -38,7 +38,7 @@</div></div>- <div class='topic-details-column-2'>+ <div class='topic-column featured-image-column'><%- if t.image_url.present? %><div class='topic-featured-image'><img src="<%= t.image_url %>">