How to include a horizontal line in the header? - asciidoc

I have the following, custom theme defined:
extends:
- default-with-fallback-font
footer:
recto:
right:
content: '{chapter-title} | *{page-number}*'
verso:
left:
content: '*{page-number}* | {chapter-title}'
header:
height: $base_line_height_length * 4
recto:
center:
content: '{document-title}'
verso:
center:
content: '{document-title}'
Now I would like to separate the header visually a little more by introducing a horizontal line.
In "normal" asciidoc text, I can do a horizontal line/ rule by using '''
When I try to apply this to the header, the header will not be rendered anymore.
header:
height: $base_line_height_length * 4
recto:
center:
content: '{document-title}' '''
verso:
center:
content: '{document-title}' '''
How can I add a horizontal line/ rule to the header section of my asciidoc?

Are you looking for a header border? This creates a horizontal line directly under you header. You can do this in the styling like this:
extends: default
header:
height: 0.75in
border-color: #DDDDDD
border-width: 0.25

Related

How to stretch a chart by width in BIRT

I'm trying to stretch a chart by width in BIRT. I set up the width and height to 100% :
but anyway the chart occupies only about 50% of the area, rather than full width of the page:
And in the result html report the chart is displayed by following rules:
<style type="text/css">
...
.style_5 { height: 100%; width: 100%;}
...
</style>
<div>
<embed class="style_5" id="__bookmark_3" onresize="document.getElementById('__bookmark_3').reload()" type="image/svg+xml" src="image/custom4.svg" alt="" style=" width: 572.25pt; height: 286.125pt;display: block;">
</embed>
</div>
So this style attribute with fixed width override the right style ("style_5"), and if I manually delete this style attribute, I see what I wish - the stretched chart. But how to force BIRT not no add that fucking style attribute?
How to stretch a chart to the full width of the page?
UPD
I tried also to import .css style for the chart with the following content:
.embed {
height: 100%;
width: 100% !important;
}
but anyway it seems to be converted in plain width: 100%; after import.
Seems like setting charts size in %'s makes it default to the embed element.
Try providing the actual value:
.chart {
border-style: solid;
border-width: thin;
border-color: gray;
margin: 5pt;
height: 1000pt;
width: 900pt;
}

ckeditor content jumps, shakes, or shifts up on resize

Hey I could really use some help.
I'm using ckeditor 4 and I've recently noticed whenever i have content and i move cursor to the end of content and hit enter or do a shift enter, the entire content briefly jumps up maybe 10-20px then lands back where it should be. I have autogrow enabled and I'm pretty sure it has something to do with ckeditor's resize method because i tried excluding autogrow and manually writing my own autogrow and the same thing happened. If your cursor is not at the immediate end of the content and you hit enter or shift+enter, there is NO jump in the content which is perplexing...
I thought it might have to do with the css. I use my own customized css file and changed the margin: 20px in the body tag to 0px margin all sides and instead put a left and right padding of 10px, because i noticed in IE if you click the margins of a paragraph nothing happens (no selection is made), but if you switch to padding instead of margin it works great. However when i switched the css back to margin: 20px only i still have the shake
here is config.js
config.removeButtons = '';
config.format_tags = 'p;h1;h2;h3;pre';
config.removeDialogTabs = 'image:advanced;link:advanced';
config.extraPlugins = 'autogrow,liststyle,dialog,panelbutton,colorbutton,justify,indent,indentlist,undo';
config.allowedContent = true;
config.removePlugins = 'resize,elementspath';
config.resize_enabled = false;
and here is the table initialization
replaceElem.html( "<texarea name='nLawTableRow" + uniqueRowId + "' class='cLawTextArea cLawTableRow" + uniqueRowId + "'>" + text + "</textarea>" );
// initialize the editor
var editor = CKEDITOR.replace( "nLawTableRow" + uniqueRowId, {
toolbar: [{ name: 'group1', items: [ 'Bold', 'Italic', 'Underline', /*'Superscript',*/ 'Strike', 'TextColor', 'BGColor' ]}, // temporarily remove superscript
{ name: 'group2', items: [ 'NumberedList', 'Indent', 'Outdent' ]}, // remove ordered list for now
{ name: 'group4', items: [ /*'Undo', 'Redo',*/ 'Maximize' ]},
],
autoGrow_onStartup: true, // grows the editor to fit its content when you ini it
autoGrow_minHeight: 0, // minimum height of the editor, setting it to 0 just means theres no min height, if there is no content height will not be
fillEmptyBlocks: false,
contentsCss: '/www/public/css/ckeditor_more.css', // get styles from this document instead of default
enterMode: 1, // enter creates a paragraph as well
});
and here is the relevant part of the custom css file I use. i modified the body tag style here and created a new p tag style as well. everything else about the css file is identical to the default contents.css
.cke_editable p {
margin-top: 14px !important;
margin-bottom: 14px !important;
}
body.cke_editable
{
/* Font */
font-family: sans-serif, Arial, Verdana, "Trebuchet MS";
font-size: 14px;
/* Text color */
color: #333;
/* Remove the background color to make it transparent */
background-color: #fff;
/* ME: set margins specifically, used to be margin: 20, now left and right 10, no top or bottom because paragraphs already have their own margins */
/* for left and right can't use margin have to use PADDING because in IE if you click on a margin instead of paragraph it doesnt make any selection, which
can make it very difficult to select start of a paragraph or far left of a a sentence. using paddding instead of margin solves that problem, hope it doesnt cause
other problems because the default is to use margin for left right which seems to work fine in Chrome but not IE I*/
margin-left: 0px !important;
margin-right: 0px !important;
padding-left: 10px !important;
padding-right: 10px !important;
margin-top: 0px !important;
margin-bottom: 0px !important;
overflow: hidden !important; /* ME: permantently prevents any scrollbars which can happen sometimes with page resize , maybe a bug */
}
Thanks a lot for the help.
PS I found a link https://dev.ckeditor.com/ticket/10981
where someone seems to describe the same or similar issue but there is no solution.

kendoUI Bar chart not rendering specified padding

I have a bar chart that is not accepting the padding that should be placed around the plotArea as specified.
The expectation is to have a graph that has a few pixels between the bars and the axis lines. Everything is set up and renders as expected except the padding.
Here is a fiddle of what I have so far
http://jsfiddle.net/itanex/KdfUv/
plotArea: {
background: "none",
padding: {
left: 2,
bottom: 2
}
},
The arrows point to the padding that I want to apply between the axis lines and the graph bars
Okay, the works, but not so as you expect:
http://jsfiddle.net/fool/KdfUv/7/
plotArea: {
background: "yellow",
padding: 10
},

Code to disable vertical scroll bar in jScroll Pane

Have seen that this piece of code could solve my problems but I don't know how or where to apply it to make it work correctly
JScrollPane.setVerticalScrollBarPolicy(VERTICAL_SCROLLBAR_NEVER);
If your aim is to hide the vertical scroll bar then use the following CSS property...
overflow-y: hidden;
In your CSS (RRD.css), you have...
.scroll-pane
{
width: 100%;
height: 670px;
overflow: hidden;
}
Try changing it to...
.scroll-pane
{
width: 100%;
height: 670px;
overflow-y: hidden;
}
More changes
And in your includes/jquery.jscrollpane.css change...
.jspPane
{
position: absolute;
width: 9660px;
}
to...
.jspPane
{
position: absolute;
width: 5880px;
}
This will remove the extended scrolling that is happening. And make sure your content-holder width is 5880px to match the jspPane scrolling ...
<div id="content-holder" style="width:5880px;">
The vertical scrollbar will not appear as long the content-holder div width is not less than the width of the content inside it. Think all your images in the content-holder div adds up to 5680px + you need to add the padding you apply as well.

How to use layout vertical?

I am developing an iOS app using Appcelerator.
In this app I got a main wrapper view and some subviews. I need them to be placed under each other using the layout vertical property but they all stack in a pile (not on separate "rows").
What is wrong with the code below?
// Create the padding view
container = Ti.UI.createView({
top: 0,
left: 0,
width: 320,
height: 460,
backgroundColor: '#000'
});
// Create the padding view
wrapper = Ti.UI.createView({
top: 0,
left: 0,
width: 320,
height: 'auto',
layout: 'vertical'
});
// Create the padding view
label = Ti.UI.createLabel({
text: e.label,
color: e.color,
font:{fontSize:36,fontWeight: 'normal'},
top: 10,
width: 'auto',
height: 'auto'
});
// Create the padding view
perks_label = Ti.UI.createLabel({
text: 'Lorem Ipsum is',
color: '#fff',
font:{fontSize:26,fontWeight: 'normal'},
top: 10,
left: 10,
width: 'auto',
height: 'auto'
});
// Create the padding view
perks_data = Ti.UI.createLabel({
text: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer',
color: '#fff',
font:{fontSize:12,fontWeight: 'normal'},
top: 10,
left: 10,
width: 'auto',
height: 'auto'
});
// Add label to wrapper
wrapper.add(label);
// Add label to wrapper
wrapper.add(perks_label);
// Add label to wrapper
wrapper.add(perks_data);
// Add wrapper to container
container.add(wrapper);
// Return the row
return container;
It seems like the top and left of perks_label and perks_data should be different. Try setting the perks_data to top:50.
Thanks,
I've hit this wall before. Have you set the layout for the current window to 'vertical'? So, from the window that you add the container to, set its layout to vertical:
var win = Titanium.UI.currentWindow;
win.layout = 'vertical';

Resources