Niedzielski has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/378999 )

Change subject: PoC: Update: adjust the padding and margins
......................................................................

PoC: Update: adjust the padding and margins

Adjust the padding and margins of components by halving them so that
they appear correctly even when they're a first child, middle child,
last child, or only child.

Change-Id: I78635f111caf95ec08e307293269e03b3f630195
---
M src/client/index.css
M src/common/components/paper/paper.css
2 files changed, 6 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/marvin refs/changes/99/378999/1

diff --git a/src/client/index.css b/src/client/index.css
index a1676b9..5e8e52c 100644
--- a/src/client/index.css
+++ b/src/client/index.css
@@ -46,6 +46,10 @@
   font-size: var(--font-size-h4);
 }
 
+blockquote, p, ol, ul {
+  margin: calc(var(--space) / 2) 0;
+}
+
 h1, h2, h3, h4, h5, h6 {
   font-weight: normal;
   line-height: 1.25;
diff --git a/src/common/components/paper/paper.css 
b/src/common/components/paper/paper.css
index 6495ff9..3b65c2e 100644
--- a/src/common/components/paper/paper.css
+++ b/src/common/components/paper/paper.css
@@ -5,12 +5,11 @@
   box-shadow: var(--box-shadow-paper);
 
   /* Spacing */
-  padding: var(--space);
-  margin-bottom: var(--space);
+  padding: calc(var(--space) / 2) var(--space);
 }
 
 .Paper-separator {
   height: 1px;
   background-color: var(--wmui-color-base80);
-  margin: var(--space) calc(-1*var(--space));
+  margin: calc(var(--space) / 2) calc(-1 * var(--space));
 }
\ No newline at end of file

-- 
To view, visit https://gerrit.wikimedia.org/r/378999
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I78635f111caf95ec08e307293269e03b3f630195
Gerrit-PatchSet: 1
Gerrit-Project: marvin
Gerrit-Branch: master
Gerrit-Owner: Niedzielski <sniedziel...@wikimedia.org>
Gerrit-Reviewer: Sniedzielski <sniedziel...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to