From ef9a68ec6aa8b6e7390c3e126efc74f4abd51b4e Mon Sep 17 00:00:00 2001 From: Mattia Iavarone Date: Sun, 5 Jan 2020 17:00:27 +0100 Subject: [PATCH] Website improvements --- .../cameraview/engine/Camera2Engine.java | 1 + docs/_config.yml | 1 + docs/_layouts/page.html | 23 ++++++++++++++-- docs/css/main.css | 27 ++++++++++++------- 4 files changed, 41 insertions(+), 11 deletions(-) diff --git a/cameraview/src/main/java/com/otaliastudios/cameraview/engine/Camera2Engine.java b/cameraview/src/main/java/com/otaliastudios/cameraview/engine/Camera2Engine.java index bd65fa72..98f13c82 100644 --- a/cameraview/src/main/java/com/otaliastudios/cameraview/engine/Camera2Engine.java +++ b/cameraview/src/main/java/com/otaliastudios/cameraview/engine/Camera2Engine.java @@ -70,6 +70,7 @@ import com.otaliastudios.cameraview.size.Size; import com.otaliastudios.cameraview.video.Full2VideoRecorder; import com.otaliastudios.cameraview.video.SnapshotVideoRecorder; +import java.io.FileDescriptor; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Callable; diff --git a/docs/_config.yml b/docs/_config.yml index cf95612a..85b86f6d 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -13,6 +13,7 @@ google_site_verification: '4x49i17ABIrSvUl52SeL0-t0341aTnWWaC62-FYCRT4' github: [metadata] # TODO What's this? github_repo: CameraView github_version: 2.6.0 +github_branch: master donateurl: '/extra/donate' # relative URL for donations, used in footer.html baseurl: '/CameraView' # Keep as an empty string if served up at the root sections: [ diff --git a/docs/_layouts/page.html b/docs/_layouts/page.html index b2b2fd29..79227e48 100644 --- a/docs/_layouts/page.html +++ b/docs/_layouts/page.html @@ -4,8 +4,27 @@ layout: main -
+
{{ content }}
+ + diff --git a/docs/css/main.css b/docs/css/main.css index 1898b811..f7c00668 100644 --- a/docs/css/main.css +++ b/docs/css/main.css @@ -77,13 +77,11 @@ footer { /* drawer */ -.drawer-toggle { - background-color: transparent; - border-radius: 50%; -} - -.drawer-toggle:hover { - background-color: rgba(240, 240, 240, 0.25); +@media (hover: hover) { + .drawer-toggle:hover { + background-color: rgba(240, 240, 240, 0.15); + border-radius: 50%; + } } @media (max-width: 768px) { @@ -236,6 +234,13 @@ td { color: var(--color-text-muted); } +.page-footer a { + color: black; + font-family: var(--font-display), cursive; + font-weight: 700; + font-size: 1.2em; +} + /* code */ pre { @@ -252,11 +257,11 @@ pre { font-size: 0.8rem !important; } -.language-java, .language-xml, .language-groovy { +.language-java, .language-xml, .language-kotlin, .language-groovy { position: relative; } -.language-java::after, .language-xml::after, .language-groovy::after { +.language-java::after, .language-xml::after, .language-kotlin::after, .language-groovy::after { position: absolute; top: 0; right: 0; @@ -276,3 +281,7 @@ pre { .language-groovy::after { content: 'groovy'; } + +.language-kotlin::after { + content: 'kotlin'; +}