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(a)redhat.com>
---
docs/css/main.css | 3 ++-
docs/css/meson.build | 3 ++-
docs/css/mobile-libvirt.css | 17 +++++++++++++++++
docs/css/{mobile.css => mobile-template.css} | 15 +--------------
4 files changed, 22 insertions(+), 16 deletions(-)
create mode 100644 docs/css/mobile-libvirt.css
rename docs/css/{mobile.css => mobile-template.css} (84%)
diff --git a/docs/css/main.css b/docs/css/main.css
index 88e453aca6..74498dd30e 100644
--- a/docs/css/main.css
+++ b/docs/css/main.css
@@ -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);
diff --git a/docs/css/meson.build b/docs/css/meson.build
index a2a2ccfb28..51cf0d6b72 100644
--- a/docs/css/meson.build
+++ b/docs/css/meson.build
@@ -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')
diff --git a/docs/css/mobile-libvirt.css b/docs/css/mobile-libvirt.css
new file mode 100644
index 0000000000..b9e81b0d93
--- /dev/null
+++ b/docs/css/mobile-libvirt.css
@@ -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;
+ }
+}
diff --git a/docs/css/mobile.css b/docs/css/mobile-template.css
similarity index 84%
rename from docs/css/mobile.css
rename to docs/css/mobile-template.css
index 2e223f468e..2f862d58ea 100644
--- a/docs/css/mobile.css
+++ b/docs/css/mobile-template.css
@@ -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;
--
2.43.0