]> git.openstreetmap.org Git - rails.git/commitdiff
Update diary entry styling
authorAnton Khorev <tony29@yandex.ru>
Tue, 8 Aug 2023 14:36:02 +0000 (17:36 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 11 Aug 2023 22:30:53 +0000 (01:30 +0300)
user_<id> class was kept because
https://github.com/openstreetmap/openstreetmap-website/pull/2266

app/assets/stylesheets/common.scss
app/views/diary_entries/_diary_entry.html.erb

index 5a033bd0b6a3ed8e26cecf1c9d33930f8b29e89a..abee14c392b565d7d9ee9dda11b76ec3e9438616 100644 (file)
@@ -1047,19 +1047,6 @@ tr.turn:hover {
   width: 100%;
 }
 
   width: 100%;
 }
 
-/* Rules for the diary list page */
-
-.diary_post {
-  position: relative;
-  padding-top: $lineheight;
-  padding-bottom: $lineheight/2;
-  border-top: 1px solid $grey;
-
-  &.deleted {
-    background-color: #fee;
-  }
-}
-
 /* Rules for the diary entry page */
 
 .diary_entries {
 /* Rules for the diary entry page */
 
 .diary_entries {
index 37420cdf1dfa41bc58abbb37fdca786057d1c1a8..52f500b1c8e245b4efb543721b70c9d55ea45a7d 100644 (file)
@@ -1,4 +1,4 @@
-<div class='diary_post<%= " text-muted px-3 deleted" unless diary_entry.visible %> user_<%= diary_entry.user.id %>'>
+<div class='diary_post border-top border-grey pt-3 pb-2<%= " text-muted px-3 bg-danger bg-opacity-10" unless diary_entry.visible %> user_<%= diary_entry.user.id %>'>
   <div class='mb-3'>
     <% if @user %>
       <h2><%= link_to diary_entry.title, diary_entry_path(diary_entry.user, diary_entry) %></h2>
   <div class='mb-3'>
     <% if @user %>
       <h2><%= link_to diary_entry.title, diary_entry_path(diary_entry.user, diary_entry) %></h2>