mysociety/alaveteli

View on GitHub
app/assets/stylesheets/responsive/_sidebar_layout.scss

Summary

Maintainability
Test Coverage
/* Display of sidebars */
.sidebar {
  h2 {
    margin-bottom: 0.875em;
  }
  .link_button_green {
    width: 100%;
  }
  .report-this-request {
    width: 100%;
  }

  .sidebar__section {
    margin-bottom: 3.5em;

    .houdini-label {
      color: #2688dc;
      text-decoration: underline;
      &:hover,
      &:active,
      &:focus {
        color: #000;
      }
    }
  }
}

.new-request-cta {
  .new-request__title {
    margin-top: 0;
  }
}

.act_link {
  margin-bottom: 0.5em;
}

.sidebar__section.citations {
  .citations-list {
    overflow-wrap: break-word;
  }
}

/* TODO: Not sure this is still used – we use the request header action bar for
   tracks */
/* #track-request .feed_link is here to override specificity in the request sidebar,
   normally .feed_link should be enough */
#track-request .feed_link,
.feed_link {
  .track-request-action {
    margin-bottom: 1em;
    display: inline-block;
  }
}

/* TODO: Why is this in the layout file for the request page sidebar? */
.authority__body__sidebar {
  .feed_link_sidebar {
    .track-request-action {
      margin-top: 1em;
    }
  }
}

/* TODO: I think this is only used in _request_listing_short_via_event, which is
   only used in search_ahead */
.request_short_listing {
  time {
    display: block;
  }
}