mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-09-20 16:42:58 +00:00
add named aliases for first-letter drop-cap style
This commit is contained in:
@@ -115,13 +115,14 @@ body { counter-reset : phb-page-numbers; }
|
|||||||
font-size : 0.987cm;
|
font-size : 0.987cm;
|
||||||
-webkit-column-span : all;
|
-webkit-column-span : all;
|
||||||
-moz-column-span : all;
|
-moz-column-span : all;
|
||||||
& + p::first-letter {
|
}
|
||||||
float : left;
|
.first-letter, .drop-cap,
|
||||||
font-family : 'Solberry';
|
h1 + p::first-letter {
|
||||||
font-size : 10em;
|
float : left;
|
||||||
line-height : 0.795em;
|
font-family : 'Solberry';
|
||||||
color : #222222;
|
font-size : 10em;
|
||||||
}
|
line-height : 0.795em;
|
||||||
|
color : #222222;
|
||||||
}
|
}
|
||||||
h2 { font-size : 0.705cm; }
|
h2 { font-size : 0.705cm; }
|
||||||
h3 {
|
h3 {
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
.note table tbody tr:nth-child(odd) { background : #FFFFFF; }
|
.note table tbody tr:nth-child(odd) { background : #FFFFFF; }
|
||||||
|
|
||||||
/* DROP CAP */
|
/* DROP CAP */
|
||||||
|
.first-letter, .drop-cap
|
||||||
h1 + p::first-letter {
|
h1 + p::first-letter {
|
||||||
color : black;
|
color : black;
|
||||||
background-image : unset;
|
background-image : unset;
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ export default [
|
|||||||
name : 'Tweak Drop Cap',
|
name : 'Tweak Drop Cap',
|
||||||
icon : 'fas fa-sliders-h',
|
icon : 'fas fa-sliders-h',
|
||||||
gen : dedent`/* Drop Cap settings */
|
gen : dedent`/* Drop Cap settings */
|
||||||
|
.page .first-letter, .page .drop-cap,
|
||||||
.page h1 + p::first-letter {
|
.page h1 + p::first-letter {
|
||||||
font-family: SolberaImitationRemake;
|
font-family: SolberaImitationRemake;
|
||||||
font-size: 3.5cm;
|
font-size: 3.5cm;
|
||||||
|
|||||||
+16
-15
@@ -85,23 +85,24 @@
|
|||||||
line-height : 1em;
|
line-height : 1em;
|
||||||
-webkit-column-span : all;
|
-webkit-column-span : all;
|
||||||
-moz-column-span : all;
|
-moz-column-span : all;
|
||||||
& + p::first-letter {
|
|
||||||
float : left;
|
|
||||||
padding-bottom : 2px;
|
|
||||||
padding-left : 40px; //Allow background color to extend into margins
|
|
||||||
margin-top : -0.3cm;
|
|
||||||
margin-bottom : -20px;
|
|
||||||
margin-left : -40px;
|
|
||||||
font-family : 'SolberaImitationRemake';
|
|
||||||
font-size : 3.5cm;
|
|
||||||
line-height : 1em;
|
|
||||||
color : rgba(0, 0, 0, 0);
|
|
||||||
background-image : linear-gradient(-45deg, #322814, #998250, #322814);
|
|
||||||
-webkit-background-clip : text;
|
|
||||||
background-clip : text;
|
|
||||||
}
|
|
||||||
& + p::first-line { font-variant : small-caps; }
|
& + p::first-line { font-variant : small-caps; }
|
||||||
}
|
}
|
||||||
|
.first-letter, .drop-cap,
|
||||||
|
h1 + p::first-letter {
|
||||||
|
float : left;
|
||||||
|
padding-bottom : 2px;
|
||||||
|
padding-left : 40px; //Allow background color to extend into margins
|
||||||
|
margin-top : -0.3cm;
|
||||||
|
margin-bottom : -20px;
|
||||||
|
margin-left : -40px;
|
||||||
|
font-family : 'SolberaImitationRemake';
|
||||||
|
font-size : 3.5cm;
|
||||||
|
line-height : 1em;
|
||||||
|
color : rgba(0, 0, 0, 0);
|
||||||
|
background-image : linear-gradient(-45deg, #322814, #998250, #322814);
|
||||||
|
-webkit-background-clip : text;
|
||||||
|
background-clip : text;
|
||||||
|
}
|
||||||
h2 {
|
h2 {
|
||||||
//margin-top : 0px; //Font is misaligned. Shift up slightly
|
//margin-top : 0px; //Font is misaligned. Shift up slightly
|
||||||
//margin-bottom : 0.05cm;
|
//margin-bottom : 0.05cm;
|
||||||
|
|||||||
@@ -80,21 +80,22 @@
|
|||||||
font-size : 0.89cm;
|
font-size : 0.89cm;
|
||||||
font-variant : small-caps;
|
font-variant : small-caps;
|
||||||
line-height : 1em;
|
line-height : 1em;
|
||||||
& + p::first-letter {
|
|
||||||
float : left;
|
|
||||||
padding-top : 0.3em;
|
|
||||||
padding-bottom : 2px;
|
|
||||||
padding-left : 40px; //Allow background color to extend into margins
|
|
||||||
margin-top : -0.3cm;
|
|
||||||
margin-right : 0.1em;
|
|
||||||
margin-bottom : -20px;
|
|
||||||
margin-left : -40px;
|
|
||||||
font-family : 'FrederickaTheGreat';
|
|
||||||
font-size : 1.9em;
|
|
||||||
line-height : 1em;
|
|
||||||
}
|
|
||||||
& + p::first-line { font-variant : small-caps; }
|
& + p::first-line { font-variant : small-caps; }
|
||||||
}
|
}
|
||||||
|
.first-letter, .drop-cap,
|
||||||
|
h1 + p::first-letter {
|
||||||
|
float : left;
|
||||||
|
padding-top : 0.3em;
|
||||||
|
padding-bottom : 2px;
|
||||||
|
padding-left : 40px; //Allow background color to extend into margins
|
||||||
|
margin-top : -0.3cm;
|
||||||
|
margin-right : 0.1em;
|
||||||
|
margin-bottom : -20px;
|
||||||
|
margin-left : -40px;
|
||||||
|
font-family : 'FrederickaTheGreat';
|
||||||
|
font-size : 1.9em;
|
||||||
|
line-height : 1em;
|
||||||
|
}
|
||||||
h2 {
|
h2 {
|
||||||
font-size : 0.62cm;
|
font-size : 0.62cm;
|
||||||
line-height : 0.988em; //Font is misaligned. Shift up slightly
|
line-height : 0.988em; //Font is misaligned. Shift up slightly
|
||||||
|
|||||||
Reference in New Issue
Block a user