localgovdrupal / localgov_events

Events for LocalGov Drupal.
GNU General Public License v2.0
1 stars 0 forks source link

Events image is fixed size and float by stylesheet #59

Open andybroomfield opened 2 years ago

andybroomfield commented 2 years ago

Localgov_events includes some default styling to fix the size of the image and float it to the left. As its fixed to the class, it's harder to override in a generic way. Kind of feel this needs to move the localgov_base anyway @markconroy?

(BHCC has a smaller image thumbnail and floats to the right, and the aim is to do this generically).

.views-field-localgov-event-image img,
.media--view-mode-localgov-event-thumbnail img {
  float: left;
  width: 200px;
  height: auto;
  margin: 0 1.5rem 1rem 0;
}
markconroy commented 2 years ago

This is one of those reasons why I'd really like us to be using the node--teaser.html.twig template for these views results instead of fields in views.

I'll look into it.