From b956944667e18a0f958cf3a4cb9909568bb2888b Mon Sep 17 00:00:00 2001 From: Chad Little Date: Wed, 22 May 2013 15:35:42 -0700 Subject: [PATCH] Make code blocks clear floats in Phriction Summary: In situations where a code block and a ToC are displayed, this clears the float so the code block is always 100% wide. Test Plan: Tested a code block with a ToC, iOS and Chrome Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D6004 --- src/__celerity_resource_map__.php | 2 +- .../css/application/phriction/phriction-document-css.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/__celerity_resource_map__.php b/src/__celerity_resource_map__.php index 4e1a6550e3..c17844ea56 100644 --- a/src/__celerity_resource_map__.php +++ b/src/__celerity_resource_map__.php @@ -3651,7 +3651,7 @@ celerity_register_resource_map(array( ), 'phriction-document-css' => array( - 'uri' => '/res/cc6cefba/rsrc/css/application/phriction/phriction-document-css.css', + 'uri' => '/res/14e08350/rsrc/css/application/phriction/phriction-document-css.css', 'type' => 'css', 'requires' => array( diff --git a/webroot/rsrc/css/application/phriction/phriction-document-css.css b/webroot/rsrc/css/application/phriction/phriction-document-css.css index 899ae2b476..f9fb0fba6a 100644 --- a/webroot/rsrc/css/application/phriction/phriction-document-css.css +++ b/webroot/rsrc/css/application/phriction/phriction-document-css.css @@ -150,3 +150,8 @@ .device-phone .phriction-content .phabricator-remarkup-toc { width: 120px; } + +.phriction-content .phabricator-remarkup .remarkup-code-block { + clear: both; + margin: 20px 0; +}