From 6986d56b71ef2f136714f677361e433252a65ee9 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 16 Jul 2017 18:20:30 -0700 Subject: [PATCH] Fix CSS so #left and #right don't overlap. So that the elements in left don't go underneath right. --- frontends/etiquette_flask/templates/tags.html | 44 +++++++++++-------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/frontends/etiquette_flask/templates/tags.html b/frontends/etiquette_flask/templates/tags.html index 9103e69..916464a 100644 --- a/frontends/etiquette_flask/templates/tags.html +++ b/frontends/etiquette_flask/templates/tags.html @@ -17,55 +17,59 @@ body { display:flex; } -#left +#content_body { - height:100%; + flex: 1; } #left { flex: 1; height: auto; + padding: 8px; +} +#description_text +{ + padding: 8px; + background-color: rgba(0, 0, 0, 0.1); + font-family: initial; } #right +{ + width: 316px; +} +#right_inner { display: flex; flex-direction: column; justify-content: center; align-items: center; + flex: 1; + position: fixed; + top: 30px; right: 8px; bottom: 8px; - top: 30px; - width: 300px; - padding: 8px; - background-color: rgba(0, 0, 0, 0.1); -} -#description_text -{ - font-family: initial; padding: 8px; background-color: rgba(0, 0, 0, 0.1); } #editor_area { display: flex; - flex: 1; flex-direction: row; justify-content center; align-items: center; + flex: 1; } #message_area { display: flex; - flex: 2; flex-direction: column; justify-content center; align-items: center; + flex: 2; - width: 100%; - height: 100%; overflow-y: auto; background-color: rgba(0, 0, 0, 0.1); @@ -116,11 +120,13 @@ body