Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shuttleworth foundation
shuttleworth-foundation-shades-of-green
Commits
808205e2
Unverified
Commit
808205e2
authored
Jan 30, 2020
by
Arthur Attwell
Browse files
Improve default partial, remove unnecessary custom partial
parent
6f8e5fd3
Changes
2
Hide whitespace changes
Inline
Side-by-side
_sass/custom/_pdf-footnotes.scss
deleted
100644 → 0
View file @
6f8e5fd3
// Footnotes
.page-footnote
{
float
:
footnote
;
footnote-style-position
:
inside
;
text-indent
:
-
(
$line-height-default
);
margin-left
:
$line-height-default
;
&
:first-of-type
{
border-top
:
$rule-thickness
solid
$color-text-secondary
;
padding-top
:
$line-height-default
;
}
p
{
font-size
:
9pt
;
margin-bottom
:
0
;
}
}
// The numbers in front of footnote text
*
:
:
footnote-marker
{
float
:
left
;
font-size
:
9pt
;
width
:
0
;
}
_sass/partials/_print-notes.scss
View file @
808205e2
...
...
@@ -9,7 +9,8 @@
$print-notes
:
true
!
default
;
@if
$print-notes
{
// Footnote reference in text
// Footnote reference in text, and see
// *::footnote-call below
.footnote
{
line-height
:
inherit
;
// Ensure footnote refs in headings are small
...
...
@@ -45,14 +46,27 @@ $print-notes: true !default;
// For styling see https://www.princexml.com/doc-prince/#footnote-calls
.page-footnote
{
float
:
footnote
;
font-size
:
$font-size-default
*
$font-size-smaller
;
footnote-style-position
:
inside
;
text-indent
:
-
(
$line-height-default
*
1
.5
);
margin-left
:
$line-height-default
*
1
.5
;
text-indent
:
-
(
$line-height-default
);
margin-left
:
$line-height-default
;
// Rule above
&
:first-of-type
{
border-top
:
$rule-thickness
solid
$color-text-secondary
;
padding-top
:
$line-height-default
;
}
p
{
margin-bottom
:
0
;
text-indent
:
0
;
&
:first-of-type
{
}
}
}
// The numbers in front of footnote text
*
:
:
footnote-marker
{
float
:
left
;
width
:
$line-height-default
*
1
.5
;
font-size
:
$font-size-default
*
$font-size-smaller
;
width
:
0
;
}
// Avoid page-footnotes created by footnotes.js
...
...
@@ -76,9 +90,12 @@ $print-notes: true !default;
// _print-base-typography.scss
*
:
:
footnote-call
{
content
:
counter
(
footnote
);
font-size
:
$font-size-default
*
$font-size-smaller
;
font-size
:
$font-size-default
*
0
.7
;
vertical-align
:
super
;
line-height
:
none
;
// Shift down
top
:
$font-size-default
/
4
;
position
:
relative
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment