css: mobile: Split up libvirt.org specific styles from main template style

Separate the libvirt.org specific stuff from the main template style so
that the latter can be reused in libvirt-wiki without modification.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2024-02-07 10:45:17 +01:00
parent 753a6add46
commit 52145c8997
4 changed files with 22 additions and 16 deletions

View File

@ -1,4 +1,5 @@
@import url(fonts.css);
@import url(generic.css);
@import url(libvirt.css);
@import url(mobile.css);
@import url(mobile-template.css);
@import url(mobile-libvirt.css);

View File

@ -3,7 +3,8 @@ docs_css_files = [
'generic.css',
'libvirt.css',
'main.css',
'mobile.css',
'mobile-template.css',
'mobile-libvirt.css',
]
install_data(docs_css_files, install_dir: docs_html_dir / 'css')

View File

@ -0,0 +1,17 @@
@media (max-width: 1000px) {
#the-virtualization-api > h1,
#the-virtualization-api > h2 {
display: none;
}
#the-virtualization-api section,
#the-virtualization-api .section,
#documentation section,
#documentation .section,
#knowledge-base section,
#knowledge-base .section {
width: 100%;
margin-left: 0px;
float: none;
}
}

View File

@ -1,3 +1,4 @@
/* Style for the page.xsl template */
@media (max-width: 1000px) {
#home {
width: 100%;
@ -20,10 +21,6 @@
#search form {
padding: 5px;
}
#the-virtualization-api > h1,
#the-virtualization-api > h2 {
display: none;
}
#jumplinks {
padding: 0px;
display: block;
@ -88,16 +85,6 @@
#body {
margin-top: 180px;
}
#the-virtualization-api section,
#the-virtualization-api .section,
#documentation section,
#documentation .section,
#knowledge-base section,
#knowledge-base .section {
width: 100%;
margin-left: 0px;
float: none;
}
#advancedsearch {
margin-top: 4em;
border: 0px;