Skip to content
This repository has been archived by the owner on Jan 3, 2018. It is now read-only.

Render specific blockquotes as Bootstrap panels #182

Closed
wants to merge 1 commit into from
Closed

Render specific blockquotes as Bootstrap panels #182

wants to merge 1 commit into from

Conversation

pbanaszkiewicz
Copy link
Member

Blockquotes that have a header (with class "callout", "challenge",
"prereq", "objectives") as their first element will get rendered as
<div>s. Their structure will resemble Bootstrap's panel:
http://getbootstrap.com/components/#panels-alternatives

There's currently an issue with pandoc: the header nested under the
blockquote will never have assigned attributes. This is causing the
panel's heading to look enormous. I'll fix it in
carpentries/styles#11.

Previews:

BTW: glyphicons won't render correctly unless 'fonts' directory gets
moved up one level to the 'css' directory. I'll fix that in
carpentries/styles#11 too.

Blockquotes that have a header (with class "callout", "challenge",
"prereq", "objectives") as their first element will get rendered as
<div>s.  Their structure will resemble Bootstrap's panel:
http://getbootstrap.com/components/#panels-alternatives

There's currently an issue with pandoc: the header nested under the
blockquote will never have assigned attributes.  This is causing the
panel's heading to look enormous.  I'll fix it in
carpentries/styles#11.

BTW: glyphicons won't render correctly unless 'fonts' directory gets
moved up one level to the 'css' directory. I'll fix that in
carpentries/styles#11 too.
@@ -1,6 +1,7 @@
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="css/bootstrap/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="css/bootstrap/bootstrap-theme.css" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fmichonneau please take a look at my previews (#182 (comment)) and decide whichever looks nicer: with Bootstrap theme or without.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I see. bootstrap-theme looks better. We'll need to add it to the style repo though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'll land in carpentries/styles#11

@fmichonneau
Copy link
Contributor

BTW: glyphicons won't render correctly unless 'fonts' directory gets
moved up one level to the 'css' directory. I'll fix that in
carpentries/styles#11 too.

This is already fixed in my branch that will be merged soon into style. We can't change the location of the fonts directory (we need everything in a single directory). Instead, I updated the path in the CSS file.

@pbanaszkiewicz
Copy link
Member Author

This is already fixed in my branch that will be merged soon into style. We can't change the location of the fonts directory (we need everything in a single directory). Instead, I updated the path in the CSS file.

Alright, I'll rewrite history (again) in carpentries/styles#11 to get rid of my commit which moves the font directory around.

@fmichonneau
Copy link
Contributor

Thanks for your work @pbanaszkiewicz !

@pbanaszkiewicz
Copy link
Member Author

@fmichonneau thank you for reviewing! :-)

@abought
Copy link
Contributor

abought commented Mar 4, 2015

Saw this come up on my radar, and noticed it's been open a while. @pbanaszkiewicz , @fmichonneau - before I review this, are there any remaining known issues that would block a merge?

@pbanaszkiewicz
Copy link
Member Author

@abought well this PR is closely related to the carpentries/styles#11 - and we have some issues merging it. @r-gaia-cs what are your thoughts on these two PRs?

@rgaiacs
Copy link
Contributor

rgaiacs commented Mar 9, 2015

@pbanaszkiewicz Can we wait until the begin of next week? My modem stop working last weekend. =(

@pbanaszkiewicz
Copy link
Member Author

@r-gaia-cs sure, no hurry!

rgaiacs pushed a commit to rgaiacs/swc-styles that referenced this pull request Mar 21, 2015
There's a note in
swcarpentry/DEPRECATED-lesson-template#182
explaining why we need to fix style for panel heading.
@rgaiacs
Copy link
Contributor

rgaiacs commented Mar 21, 2015

I'm closing this in favor of #203.

@rgaiacs rgaiacs closed this Mar 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants