From 438fe7bd25192b7432b74af4ddee1a779e101edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 22 Apr 2024 18:09:00 +0200 Subject: [PATCH] Fix inner borders in polls administration tables The rows in these tables were using the styles from the `.poll` selector, and the `position: relative` property defined there caused the inner borders to disappear in some browsers (like Firefox). So we're adding the `public` class to the selector; this way, it doesn't affect elements in the admin section. Even though it's only necessary to add the `.public` prefix to the `.poll` selector in one place in order to fix this issue, we're doing it everywhere for consistency. --- app/assets/stylesheets/participation.scss | 2 +- app/assets/stylesheets/polls/poll.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 83c53f89a..bc5148df7 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -1515,7 +1515,7 @@ position: relative; } -.poll, +.public .poll, .poll-question { border: 1px solid $border; margin-bottom: calc(#{$line-height} / 2); diff --git a/app/assets/stylesheets/polls/poll.scss b/app/assets/stylesheets/polls/poll.scss index 501ec968d..2770eb703 100644 --- a/app/assets/stylesheets/polls/poll.scss +++ b/app/assets/stylesheets/polls/poll.scss @@ -1,4 +1,4 @@ -.poll { +.public .poll { &.with-image { @include breakpoint(medium) {