From eb25815fb91687b42181c7ed8525c7afbf16dbbb Mon Sep 17 00:00:00 2001 From: Victoria Bialas Date: Fri, 28 Jul 2017 12:32:53 -0700 Subject: [PATCH] Better examples to show Compose file structure, expand/collapse accordion (#3967) * better examples to show Compose file structure Signed-off-by: Victoria Bialas * cleaned up leading spaces in Compose file example Signed-off-by: Victoria Bialas * cleaned up leading spaces, added a test file Signed-off-by: Victoria Bialas * expand/collapse accordion full implementation, explanation in test.md Signed-off-by: Victoria Bialas * delete temporary test file from PR Signed-off-by: Victoria Bialas * fix accordion to work on mobile (cursor style) Signed-off-by: Victoria Bialas * verified fix for mobile worked, added same to test.md, updated notes and content Signed-off-by: Victoria Bialas * Clarifed details on test page, fixed references for FontAwesome icons Signed-off-by: Victoria Bialas --- _scss/_utilities.scss | 27 +++++ compose/compose-file/index.md | 192 +++++++++++++++++++++++++++++++--- compose/overview.md | 2 +- test.md | 80 ++++++++++++++ 4 files changed, 285 insertions(+), 16 deletions(-) diff --git a/_scss/_utilities.scss b/_scss/_utilities.scss index 726f652b0b..0a4695c38a 100755 --- a/_scss/_utilities.scss +++ b/_scss/_utilities.scss @@ -58,10 +58,37 @@ i.fa.fa-outdent { padding: 0px 15px 10px 15px; } + +/* +* +* Inline graphics and icons (like the whale menu icon in d4mac, d4win) +* +*/ + img.inline { display: inline; } + +/* +* +* Bootstrap expand/collapse accordions +* +*/ + +.panel-heading .chevron:after { + content: "\f0d8"; +} + +.panel-heading.collapsed .chevron:after { + content: "\f0d7"; +} + +.panel-heading:hover{ + background: #fafdfe; +} + + /* * Search ********************************************************************* * diff --git a/compose/compose-file/index.md b/compose/compose-file/index.md index 7891dc6336..ca2c1e622e 100644 --- a/compose/compose-file/index.md +++ b/compose/compose-file/index.md @@ -31,10 +31,6 @@ a section in the configuration file such as `build`, `deploy`, `depends_on`, sub-topics. This maps to the `: