From d253449ff0e691963bcf14590831aa071b778734 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Tue, 22 May 2018 12:21:50 +0200 Subject: [PATCH] Port upstream's result section headers (fixes #366) --- .../glitch/features/drawer/results/index.js | 6 ++++ .../glitch/styles/components/drawer.scss | 34 +++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/app/javascript/flavours/glitch/features/drawer/results/index.js b/app/javascript/flavours/glitch/features/drawer/results/index.js index f2a79eb59..23dc0e3cf 100644 --- a/app/javascript/flavours/glitch/features/drawer/results/index.js +++ b/app/javascript/flavours/glitch/features/drawer/results/index.js @@ -68,6 +68,8 @@ export default function DrawerResults ({ {accounts && accounts.size ? (
+
+ {accounts.map( accountId => ( +
+ {statuses.map( statusId => ( +
+ {hashtags.map( hashtag => ( section { background: $ui-base-color; + margin-bottom: 20px; + + h5 { + position: relative; + + &::before { + content: ""; + display: block; + position: absolute; + left: 0; + right: 0; + top: 50%; + width: 100%; + height: 0; + border-top: 1px solid lighten($ui-base-color, 8%); + } + + span { + display: inline-block; + background: $ui-base-color; + color: $darker-text-color; + font-size: 14px; + font-weight: 500; + padding: 10px; + position: relative; + z-index: 1; + cursor: default; + } + } + + .account:last-child, + & > div:last-child .status { + border-bottom: 0; + } & > .hashtag { display: block;