From 68432c18eb7c6325af1e4d10ecc311bb8df6d559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 7 Dec 2018 10:41:55 +0100 Subject: [PATCH] style: add support for no-bottom-margin cell class (#28410) --- gadjo/static/css/_portal.scss | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/gadjo/static/css/_portal.scss b/gadjo/static/css/_portal.scss index 90f13b4..45ba74a 100644 --- a/gadjo/static/css/_portal.scss +++ b/gadjo/static/css/_portal.scss @@ -1,3 +1,5 @@ +$cell-border-radius: 3px; + div.cell.shown-because-admin { opacity: 0.5; background-image: repeating-linear-gradient(-45deg, #eee 0px, #eee 14px, transparent 15px, transparent 30px); @@ -15,7 +17,7 @@ div#portal-agent-content { background: white; padding: 1rem; margin-bottom: 1rem; - border-radius: 3px; + border-radius: $cell-border-radius; &.transparent { background: transparent; } @@ -26,6 +28,27 @@ div#portal-agent-content { color: white; } } + &.no-bottom-margin { + margin-bottom: 0; + border-radius: $cell-border-radius $cell-border-radius 0 0; + border-bottom: 0; + p:last-child { + margin-bottom: 0; + padding-bottom: 1ex; + } + + div { + margin-top: 0; + border-radius: 0 0 $cell-border-radius $cell-border-radius; + border-top: 0; + &.no-bottom-margin { + border-radius: 0; + } + p:first-child { + margin-top: 0; + padding-top: 1ex; + } + } + } } } -- 2.20.0.rc2