Skip to content

Commit

Permalink
Merge pull request #116 from happy-software/history_styling_updates
Browse files Browse the repository at this point in the history
History styling updates
  • Loading branch information
hebron-george authored Nov 12, 2024
2 parents 5b2a388 + aa31010 commit 6ead2f3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
23 changes: 19 additions & 4 deletions app/assets/stylesheets/playlist_history.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
body {
background: var(--background-color);
font-family: var(--font);
display: flex;
justify-content: center;
}

/* Timeline Container */
.timeline {
background: var(--primary-color);
margin: 20px auto;
padding: 20px;
display: flex;
justify-contenSort: center;
}

/* Outer Layer with the timeline border */
Expand All @@ -37,6 +36,22 @@ body {
color: gray;
border-radius: 8px;
max-width: 400px;

ul {
list-style-position: inside;
}
li {
margin-bottom: 0.1em;
}

a {
color: orangered; /* Make the link text blend with your theme - suggested by ChatGPT */
text-decoration: none; /* Remove the underline for a cleaner look - suggested by ChatGPT */
}
a:hover {
color: #ff7043; /* A lighter shade of orangered for hover effect - suggested by ChatGPT */
text-decoration: underline; /* Underline links on hover for better visibility - suggested by ChatGPT */
}
}

/* Information about the timeline */
Expand All @@ -48,8 +63,8 @@ body {

/* Title of the card */
.title {
color: orangered;
position: relative;
color: #ff5722; /* Use a color that stands out but isn't too harsh - suggested by ChatGPT */
}

/* Timeline dot */
Expand Down
3 changes: 2 additions & 1 deletion app/views/playlist_history/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<h1>History for <%= @history[:name] %></h1>
<h1 class="title">History for <%= @history[:name] %></h1>
<br />
<div class="timeline" data-controller="load-more" data-load-more-target="timeline">
<div class="outer">
<%= render partial: "delta_card", collection: @history[:changes], as: :delta %>
Expand Down

0 comments on commit 6ead2f3

Please sign in to comment.