Hide header of public page in fullscreen mode

The standard Nextcloud header is added automatically outside the
"#app-content" element when using the "user" template, so it is
automatically hidden when "#app-content" is set to fullscreen mode. The
public page uses the "base" template, so it has to provide its own
header element; this element appears inside "#app-content" (probably to
make it transparent using CSS rules during a call), so it has to be
explicitly hidden when in fullscreen mode.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2017-10-27 12:46:06 +02:00 коммит произвёл Joas Schilling
Родитель 5744c494ea
Коммит 4efa21ed6a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7076EA9751AACDDA
1 изменённых файлов: 29 добавлений и 0 удалений

Просмотреть файл

@ -518,6 +518,35 @@ video {
top: 0;
}
/* In the public page the header is inside the app-content, so it has to be
hidden explicitly. */
#app-content:-webkit-full-screen #header {
display: none !important;
}
#app-content:-moz-full-screen #header {
display: none !important;
}
#app-content:-ms-fullscreen #header {
display: none !important;
}
#app-content:fullscreen #header {
display: none !important;
}
/* As there is no header the fullscreen button can be moved to the top. */
#app-content:-webkit-full-screen #video-fullscreen.public {
top: 0;
}
#app-content:-moz-full-screen #video-fullscreen.public {
top: 0;
}
#app-content:-ms-fullscreen #video-fullscreen.public {
top: 0;
}
#app-content:fullscreen #video-fullscreen.public {
top: 0;
}
.localmediaerror h2 {
color: red;
font-weight: bold;