diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index 56f9a8106..5403551bd 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -58,10 +58,6 @@ $sidebar-active: #f4fcd0; box-shadow: 0 2px 2px #eee; } - [class^="icon-"]:not(.icon-circle) { - font-size: $base-font-size; - } - @include breakpoint(small only) { .top-bar-left ul { @@ -96,6 +92,10 @@ $sidebar-active: #f4fcd0; display: none; } } + + [class^="icon-"]:not(.icon-circle) { + font-size: $base-font-size; + } } .menu .menu-text { diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index c9858accb..94ef4a7a9 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -2655,6 +2655,28 @@ table { .card { border: 0; + overflow: visible; + + a { + + img { + transition-duration: 0.3s; + transition-property: transform; + } + } + + a:hover { + box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.2); + text-decoration: none; + + img { + transform: scale(1.1); + } + } + + p { + padding: 0 $line-height / 4; + } } h3 { @@ -2667,6 +2689,21 @@ table { padding: $line-height / 2 0; } } + + .figure-card { + + figcaption { + z-index: 3; + } + + .gradient { + background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 1) 100%); + height: 100%; + position: absolute; + width: 100%; + z-index: 2; + } + } } .feeds-list { diff --git a/app/views/welcome/_card.html.erb b/app/views/welcome/_card.html.erb index de8f143cf..71e3a9407 100644 --- a/app/views/welcome/_card.html.erb +++ b/app/views/welcome/_card.html.erb @@ -1,6 +1,7 @@
<%= link_to card.link_url do %>
+
<% if card.image.present? %> <%= image_tag(card.image_url(:large), alt: card.image.title) %> <% end %> diff --git a/db/dev_seeds/images/debate_background.jpg b/db/dev_seeds/images/debate_background.jpg index 15687d1ce..81a746236 100644 Binary files a/db/dev_seeds/images/debate_background.jpg and b/db/dev_seeds/images/debate_background.jpg differ diff --git a/db/dev_seeds/images/header_background.jpg b/db/dev_seeds/images/header_background.jpg index 89043e83d..cf4dca120 100644 Binary files a/db/dev_seeds/images/header_background.jpg and b/db/dev_seeds/images/header_background.jpg differ