Skip to content

Commit 93a4970

Browse files
committed
Simplify css to remove .lastwatched overuse
1 parent 4ded2a8 commit 93a4970

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

app/assets/stylesheets/home.css.scss

+1-5
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,9 @@ p.info {
174174
font-style: italic;
175175
span {
176176
font-style: normal;
177-
color: #222;
177+
color: black;
178178
}
179179
}
180-
span.lastwatched {
181-
color: black;
182-
font-style: normal;
183-
}
184180
a.genre {
185181
@include tagbutton();
186182
}

app/views/actors/show.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<% if movie.lastWatched %>
2323
<p>Last Watched: <span class="lastwatched"><%= movie.lastWatched %></span></p>
2424
<% end %>
25-
<p>Duration: <span class="lastwatched"><%= movie.duration %><% if movie.duration %> minutes<% end %></span></p>
25+
<p>Duration: <span><%= movie.duration %><% if movie.duration %> minutes<% end %></span></p>
2626
<div>
2727
<% movie.genres.each do |genre| %>
2828
<%= link_to genre.name, genre, :class => "genre" %>

app/views/genres/show.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<% if movie.lastWatched %>
2323
<p>Last Watched: <span class="lastwatched"><%= movie.lastWatched %></span></p>
2424
<% end %>
25-
<p>Duration: <span class="lastwatched"><%= movie.duration %><% if movie.duration %> minutes<% end %></span></p>
25+
<p>Duration: <span><%= movie.duration %><% if movie.duration %> minutes<% end %></span></p>
2626
<div>
2727
<% movie.actors.each do |actor| %>
2828
<%= link_to actor.name, actor %><% if actor != movie.actors.last %>, <% end %>

app/views/movies/index.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<% if movie.lastWatched %>
8383
<p>Last Watched: <span class="lastwatched"><%= movie.displayLastWatched %></span></p>
8484
<% end %>
85-
<p>Duration: <span class="lastwatched"><%= movie.duration %><% if movie.duration %> minutes<% end %></span></p>
85+
<p>Duration: <span><%= movie.duration %><% if movie.duration %> minutes<% end %></span></p>
8686
<div>
8787
<% movie.actors.each do |actor| %>
8888
<%= link_to actor.name, actor %><% if actor != movie.actors.last %>, <% end %>

app/views/movies/show.html.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<% if @movie.lastWatched %>
2121
<p>Last Watched: <span class="lastwatched"><%= @movie.displayLastWatched %></span></p>
2222
<% end %>
23-
<p>Times viewed: <span class="lastwatched"><%= @movie.times_viewed %></span></p>
24-
<p>Duration: <span class="lastwatched"><%= @movie.duration %><% if @movie.duration %> minutes<% end %></span></p>
23+
<p>Times viewed: <span><%= @movie.times_viewed %></span></p>
24+
<p>Duration: <span><%= @movie.duration %><% if @movie.duration %> minutes<% end %></span></p>
2525
<ul>
2626
<% @movie.actors.each do |actor| %>
2727
<li><%= link_to actor.name, actor %></li>

0 commit comments

Comments
 (0)