From b58354f3101fcb921fac51e10e668fb330da9d79 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 18 Oct 2022 12:57:17 +0200 Subject: [PATCH] css: Keep compatibility with ipl v0.9.0 for now --- public/css/module.less | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/public/css/module.less b/public/css/module.less index d4aad9a..bb651e7 100644 --- a/public/css/module.less +++ b/public/css/module.less @@ -134,6 +134,61 @@ p.load-more { text-align: right; } +// TODO: Remove once ipl-web v0.7.0 is required +.controls:not(.default-layout) { + .box-shadow(0, 0, 0, 1px, @gray-lighter); + + .pagination-control { + float: left; + } + + .sort-control, + .limit-control { + float: right; + margin-left: .5em; + } + + .sort-control { + display: flex; + justify-content: flex-end; + + :not(.form-element) > label { + margin-right: 0; + } + + .control-button { + margin: 0; + } + } + + > :not(:only-child) { + margin-bottom: 0.5em; + } + + .search-suggestions { + margin-bottom: 2.5em; + } + + .search-controls, + .filter { + clear: both; + display: flex; + min-width: 100%; + + .search-bar { + flex: 1 1 auto; + + & ~ .control-button:last-child { + margin-right: -.5em; + } + + & ~ .control-button { + margin-left: .5em; + } + } + } +} + /* Graph colors */ @graphite-graph-bg-color: @body-bg-color;