mirror of
https://github.com/HandBrake/HandBrake-docs.git
synced 2025-12-11 13:54:49 -06:00
template: Add document type, lang, and charset to article tag.
Removes document type class from body tag, encapsulating more information within the article tag for embedded output.
This commit is contained in:
parent
7a9f15fb2e
commit
f4c5717a5e
@ -6,7 +6,7 @@
|
|||||||
{{ template.title }}
|
{{ template.title }}
|
||||||
{{ template.styles }}
|
{{ template.styles }}
|
||||||
</head>
|
</head>
|
||||||
<body class="{{ document.type }}">
|
<body>
|
||||||
{{ template.document }}
|
{{ template.document }}
|
||||||
{{ template.scripts }}
|
{{ template.scripts }}
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@ -71,14 +71,14 @@ article.docs nav .breadcrumbs {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.credits article.docs nav .breadcrumbs .language-separator,
|
article.docs.credits nav .breadcrumbs .language-separator,
|
||||||
.credits article.docs nav .breadcrumbs .language,
|
article.docs.credits nav .breadcrumbs .language,
|
||||||
.credits article.docs nav .breadcrumbs .version-separator,
|
article.docs.credits nav .breadcrumbs .version-separator,
|
||||||
.credits article.docs nav .breadcrumbs .version,
|
article.docs.credits nav .breadcrumbs .version,
|
||||||
.license article.docs nav .breadcrumbs .language-separator,
|
article.docs.license nav .breadcrumbs .language-separator,
|
||||||
.license article.docs nav .breadcrumbs .language,
|
article.docs.license nav .breadcrumbs .language,
|
||||||
.license article.docs nav .breadcrumbs .version-separator,
|
article.docs.license nav .breadcrumbs .version-separator,
|
||||||
.license article.docs nav .breadcrumbs .version {
|
article.docs.license nav .breadcrumbs .version {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -152,7 +152,7 @@ article.docs nav .navigation h2 {
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.js article.docs nav .navigation h2:before {
|
article.docs.js nav .navigation h2:before {
|
||||||
content: "+ "
|
content: "+ "
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -177,7 +177,7 @@ article.docs nav .navigation ul {
|
|||||||
line-height: 1.42857;
|
line-height: 1.42857;
|
||||||
}
|
}
|
||||||
|
|
||||||
.js article.docs nav .navigation > ul {
|
article.docs.js nav .navigation > ul {
|
||||||
display: none;
|
display: none;
|
||||||
max-height: 300px;
|
max-height: 300px;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
@ -318,7 +318,7 @@ article.docs footer {
|
|||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.license article.docs footer {
|
article.docs.license footer {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -345,12 +345,12 @@ article.docs li > ul {
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.license article.docs li {
|
article.docs.license li {
|
||||||
margin-top: 1.33333em;
|
margin-top: 1.33333em;
|
||||||
margin-bottom: 1.33333em;
|
margin-bottom: 1.33333em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.credits article.docs img {
|
article.docs.credits img {
|
||||||
max-width: 30%;
|
max-width: 30%;
|
||||||
max-height: 6em;
|
max-height: 6em;
|
||||||
}
|
}
|
||||||
@ -541,7 +541,7 @@ article.docs .footnotes + footer {
|
|||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.js.article article.docs {
|
article.docs.article.js {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-left: 350px;
|
padding-left: 350px;
|
||||||
padding-right: 50px;
|
padding-right: 50px;
|
||||||
@ -552,7 +552,7 @@ article.docs .footnotes + footer {
|
|||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.js.article article.docs nav {
|
article.docs.article.js nav {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-left: 350px;
|
padding-left: 350px;
|
||||||
padding-right: 50px;
|
padding-right: 50px;
|
||||||
@ -569,7 +569,7 @@ article.docs .footnotes + footer {
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.js.article article.docs nav .navigation {
|
article.docs.article.js nav .navigation {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<article class="docs">
|
<article class="docs {{ document.type }}" lang="{{ document.language-code }}" charset="{{ document.text-encoding }}">
|
||||||
{{ template.header }}
|
{{ template.header }}
|
||||||
{{ template.notice }}
|
{{ template.notice }}
|
||||||
{{ document.content }}
|
{{ document.content }}
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
$.featherlight.autoBind = false;
|
$.featherlight.autoBind = false;
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('body').addClass('js');
|
$('article.docs').addClass('js');
|
||||||
|
|
||||||
if ($('body').hasClass("article")){
|
if ($('article.docs').hasClass("article")){
|
||||||
var header = $('article.docs header').first();
|
var header = $('article.docs header').first();
|
||||||
var navigation_headings = $('article.docs nav .navigation > h2');
|
var navigation_headings = $('article.docs nav .navigation > h2');
|
||||||
var navigation_sections = navigation_headings.next('ul');
|
var navigation_sections = navigation_headings.next('ul');
|
||||||
|
|||||||
@ -9,6 +9,6 @@ Document: document.html
|
|||||||
Footer: footer.html
|
Footer: footer.html
|
||||||
Redirect: redirect.html
|
Redirect: redirect.html
|
||||||
Fonts: fonts/opensans-bold-1.10.woff, fonts/opensans-bold-1.10.woff2, fonts/opensans-bolditalic-1.10.woff, fonts/opensans-bolditalic-1.10.woff2, fonts/opensans-italic-1.10.woff, fonts/opensans-italic-1.10.woff2, fonts/opensans-regular-1.10.woff, fonts/opensans-regular-1.10.woff2, fonts/ropasans-italic-1.002.ttf, fonts/ropasans-italic-1.002.woff, fonts/ropasans-italic-1.002.woff2, fonts/ropasans-regular-1.002.ttf, fonts/ropasans-regular-1.002.woff, fonts/ropasans-regular-1.002.woff2
|
Fonts: fonts/opensans-bold-1.10.woff, fonts/opensans-bold-1.10.woff2, fonts/opensans-bolditalic-1.10.woff, fonts/opensans-bolditalic-1.10.woff2, fonts/opensans-italic-1.10.woff, fonts/opensans-italic-1.10.woff2, fonts/opensans-regular-1.10.woff, fonts/opensans-regular-1.10.woff2, fonts/ropasans-italic-1.002.ttf, fonts/ropasans-italic-1.002.woff, fonts/ropasans-italic-1.002.woff2, fonts/ropasans-regular-1.002.ttf, fonts/ropasans-regular-1.002.woff, fonts/ropasans-regular-1.002.woff2
|
||||||
Scripts: js/vendor/jquery/jquery-2.2.3.min.js, js/vendor/js-cookie/js-cookie-2.1.1.min.js, js/vendor/featherlight/featherlight-1.4.0.min.js, js/scripts.js?2016082101
|
Scripts: js/vendor/jquery/jquery-2.2.3.min.js, js/vendor/js-cookie/js-cookie-2.1.1.min.js, js/vendor/featherlight/featherlight-1.4.0.min.js, js/scripts.js?2016090701
|
||||||
Styles: css/vendor/featherlight/featherlight-1.4.0.min.css, css/fonts.css?2016051301, css/style.css?2016082102
|
Styles: css/vendor/featherlight/featherlight-1.4.0.min.css, css/fonts.css?2016051301, css/style.css?2016090701
|
||||||
...
|
...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user