) where part of the header
is styled differently. */
/* 80% looks right in normal text. 60% in H1. ? in H3 */
/* 3 issues: size; bold/not; (also underline, italics); and spacing. */
.header1small { font-weight:normal; font-size:60%;}
.headersmall { font-weight:normal; font-size:80%;}
/* Headercont is for normal text on same line as header.
Almost like a subheading / subtitle for an essay */
.headercont { font-weight:normal; font-size:medium;}
.headercont::before { content:"\00a0 \00a0 \00a0 \00a0 \00a0 \00a0 "; }
/* I need a style/CSS approach to headings (esp.
) where part of the header
is styled differently.
May also be what is wanted for having # anchor in small print beside larger print.
Eg1: apr.html
Assessment by pairwise ranking
(a.k.a. "ACJ")
Eg2: mhealth.html
Petr Slovak: Protective factor boosting, ...
#petr
*/
/* General common properties for .mottos */
div.motto, div.motto1, div.motto2, div.mottoPanel {
border: 5px double gray; width:58%;
margin-top: 1em; /* Space (LF) above, but not below. */
margin-left: auto; margin-right:auto; font-size:110%;
text-align: center;
border-radius:1em;
qbox-shadow: 1px 1px 1px 1px black;
padding: 13px;
}
div.motto::before, div.mottotitle::before
{ content:"Slogan";
text-decoration:underline; font-weight: bold;
display:block; /* does afterwards, in effect */
margin-bottom: 1em; /* makes that
*/
}
/*
*/
/*
*/
div.motto, div.motto1 { background-color: #ffd; }
div.motto2 {border: 2px solid gray; width:80%; } /* and not title */
div.mottobg { background-color: #dfd; }
div.mottoPanel { text-align: left; width:90%; }
/* TYPES OF MOTTO CLASS
motto: for simple motto, just give the text and it adds "Slogan"
(motto1: Not used: same as motto)
motto2: Give text, and a header using e.g. "
Slogan
". Wider.
mottobg: motto plus a different bg colour.
mottoPanel: Panel is for, not a single phrase,
but a block e.g. summary made prominent over rest of document.
e.g.
*/
div.motto3, span.motto3 {border: 1px solid blue; font-size:"110%;" }
div.motto h1, div.motto h2, div.motto h3, div.motto h4,
div.motto1 h1, div.motto1 h2, div.motto1 h3, div.motto1 h4
{qcolor: blue;
qfont-size: 99%; /* size same as surroundings */
text-align: center; text-decoration:underline; font-weight: bold;
margin-left:auto; margin-right:auto;
margin-bottom: 1em; margin-top: 0em;
}
/* ---- */
span.bigcap { font-size:140%; color: red; }
.mypre { white-space: pre-wrap; qcolor:red; font-size:140%; }
/* class for DIV a bit like
for using LFs to break lines */
.plainbox {
Qbackground-color: LightGreen; Qmargin: 3em; Qborder-radius:25px;
padding: 1em;
width: 95%; margin-left: auto; margin-right:auto;
border: 1px solid green;
}
div.box {
background-color: LightGreen; qmargin: 3em; padding: 1em;
width: 80%; margin-left: auto; margin-right:auto;
border: 1px solid gray; border-radius:25px;
qfont-size:100%;
}
ul.none > li, ol.none > li { qcolor: green; margin-top: 1em; margin-bottom: 1em; }
ul.none {list-style-type: none; padding:0; qmargin:0; }
/* to give me the use of lists using by using LI (can then add
color or other changes just to
*/
ul, ol { margin-top: 0; qcolor: red;}
p + ul {margin-top: -1em; qcolor: green;}
p + ol {margin-top: -1em; qcolor: yellow;}
li > ul {margin-top: 0; qcolor: blue;}
li > ol {margin-top: 0; qcolor: blue;}
/* Cancel indents in bullet lists: obey page left margin */
.lm { Qmargin-left: 5em; }
.lm { padding-left: 1.2em; }
/* .lm { padding-left: 0; } /* gets rid of bullets too. */
.nogap { margin-top: -1em; }
ul.nogap, ol.nogap, li.nogap { margin-top: -1em; }
/* OR:
local fix */
/* Lists with an LF (
) between each point. */
ul.sp, ol.sp { qcolor: green; margin-top: auto; margin-bottom: auto; }
ul.sp > li, ol.sp > li { qcolor: green; margin-top: 1em; margin-bottom: 1em; }
/* Lists with square brackets [3] as the bullet. */
ol.square { counter-reset: o-counter 0; list-style-type: none; }
ol.square li { text-indent: -1.3em; }
ol.square li:before {
content: '[' counter(o-counter) '] ';
counter-increment: o-counter;
}
/* trying to get text to justify both margins
div.justify p:after { content: ""; display: inline-block; width: 100%; }
*/
/* My bad habit of having some
not inside
means the last rules can
be triggered when I don't want, because the LI never ends. Unless for them I
do
*/
/*
Order matters here.
It's the last one that matches that fires
p + ul,ol {margin-top: -1em; color: brown;} bad syntax
*/
h1,h2 { margin-left:auto; margin-right:auto; } /* centered */
h2,h3,h4,table,form {margin-bottom: 0; }
li > .clear { margin-top: -1em; }
.clear { clear: both; Qborder: 1px solid green; }
.clear:before,
.clear:after { Qvisibility: hidden; display: table; content: " "; }
.clear:after { clear: both; }
.picbind:after { clear: both; }
hr {border: 1px solid gray; background-color: gray; clear: both; }
hr.green {border: 1px solid green; background-color: green; clear: both; }
/* will stop wrap of text round IMGs. But may want to put in a
with this
anyway.*/
/* would allow old HTML4 w/o css
to work. */
hr.faint {border: 1px dotted #aaa;
border-style: dotted none;
background-color:inherit; Qwidth: 100% }
/* But if dotted/dashed, need to set background-color not to same as border,
but to "inherit". */
/* Perhaps need fix to get 100% width of page inside lists */
/* */
/* fixes unwanted blank line before first
s */
/* fixes unwanted blank line after titles */
/*
*{border: 0px solid gray;}
would be good BUT prevents old HTML syntax e.g.