2024-06-06 19:48:28 +02:00
|
|
|
/*!
|
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-FileCopyrightText: 2012-2016 ownCloud, Inc.
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
2022-05-04 09:56:06 +02:00
|
|
|
@use 'variables';
|
|
|
|
|
2022-09-12 13:56:32 +02:00
|
|
|
$footer-height: 65px;
|
2022-10-03 15:37:14 +02:00
|
|
|
$footer-padding-height: 16px;
|
2022-09-12 13:56:32 +02:00
|
|
|
$download-button-section-height: 200px;
|
|
|
|
|
2012-10-24 13:09:05 +02:00
|
|
|
#preview {
|
2013-11-21 13:33:04 +01:00
|
|
|
text-align: center;
|
2013-10-28 20:22:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#preview .notCreatable {
|
|
|
|
display: none;
|
2012-10-23 23:57:55 +02:00
|
|
|
}
|
2012-10-24 13:09:05 +02:00
|
|
|
|
|
|
|
#noPreview {
|
|
|
|
display:none;
|
2014-01-16 21:06:14 +05:30
|
|
|
padding-top:80px;
|
2012-10-23 23:57:55 +02:00
|
|
|
}
|
2012-10-24 13:09:05 +02:00
|
|
|
|
|
|
|
#imgframe {
|
2014-01-16 15:56:18 +01:00
|
|
|
height:75%;
|
2013-10-06 23:38:24 +05:30
|
|
|
padding-bottom:32px;
|
|
|
|
padding-top:32px;
|
2014-01-16 15:56:18 +01:00
|
|
|
width:80%;
|
|
|
|
margin:0 auto;
|
2012-10-23 23:57:55 +02:00
|
|
|
}
|
2012-10-24 13:09:05 +02:00
|
|
|
|
2022-07-25 20:17:15 +02:00
|
|
|
#imgframe #viewer {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2016-07-28 11:49:08 +02:00
|
|
|
|
2018-01-22 10:58:23 +01:00
|
|
|
#imgframe img {
|
2022-10-03 15:37:14 +02:00
|
|
|
max-height: calc(100vh - var(--header-height) - #{$footer-height} - #{$download-button-section-height} - #{$footer-padding-height}) !important;
|
2016-07-28 11:49:08 +02:00
|
|
|
max-width: 100% !important;
|
2022-09-12 13:56:32 +02:00
|
|
|
width: unset !important;
|
|
|
|
}
|
|
|
|
|
2022-09-29 16:08:40 +02:00
|
|
|
#imgframe :not(#viewer) img {
|
|
|
|
min-width: 100px;
|
|
|
|
}
|
|
|
|
|
2022-09-12 13:56:32 +02:00
|
|
|
#imgframe video {
|
2022-10-03 15:37:14 +02:00
|
|
|
max-height: calc(100vh - var(--header-height) - #{$footer-height} - #{$download-button-section-height} - #{$footer-padding-height});
|
2016-07-28 11:49:08 +02:00
|
|
|
}
|
2013-02-11 12:35:39 +01:00
|
|
|
|
2022-12-27 16:31:11 +01:00
|
|
|
#imgframe .plyr:fullscreen video {
|
|
|
|
max-height: unset;
|
|
|
|
}
|
|
|
|
|
2019-06-27 13:33:22 +02:00
|
|
|
#imgframe audio {
|
|
|
|
display: block;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
2022-09-14 11:11:43 +02:00
|
|
|
#imgframe #viewer[data-handler=audios] {
|
2022-09-13 16:38:47 +02:00
|
|
|
// for speed settings
|
|
|
|
margin-top: 400px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#imgframe .plyr {
|
|
|
|
top: 0px !important;
|
|
|
|
}
|
|
|
|
|
2015-04-16 15:28:04 +02:00
|
|
|
#imgframe .text-preview {
|
|
|
|
display: inline-block;
|
2015-04-18 22:11:36 +02:00
|
|
|
position: relative;
|
2015-04-16 15:28:04 +02:00
|
|
|
text-align: left;
|
|
|
|
white-space: pre-wrap;
|
2022-09-12 13:56:32 +02:00
|
|
|
overflow-y: scroll;
|
2015-04-16 15:28:04 +02:00
|
|
|
height: auto;
|
|
|
|
min-height: 200px;
|
|
|
|
max-height: 800px;
|
2015-04-18 22:11:36 +02:00
|
|
|
}
|
|
|
|
|
2015-04-23 18:15:11 +02:00
|
|
|
#imgframe .ellipsis {
|
|
|
|
font-size: 1.2em;
|
2015-04-16 15:28:04 +02:00
|
|
|
}
|
|
|
|
|
2022-07-25 20:17:15 +02:00
|
|
|
#imgframe .viewer__file {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#imgframe .plyr {
|
|
|
|
max-height: 100%;
|
|
|
|
}
|
|
|
|
|
2022-10-03 15:37:14 +02:00
|
|
|
|
|
|
|
.app-files_sharing #app-content footer {
|
|
|
|
position: sticky !important;
|
|
|
|
}
|
|
|
|
|
2014-08-19 15:51:10 +02:00
|
|
|
/* fix multiselect bar offset on shared page */
|
2014-01-23 15:35:30 +01:00
|
|
|
thead {
|
2014-08-19 15:51:10 +02:00
|
|
|
left: 0 !important;
|
2013-02-11 12:35:39 +01:00
|
|
|
}
|
2013-06-25 12:24:14 +02:00
|
|
|
|
|
|
|
#data-upload-form {
|
|
|
|
position: relative;
|
|
|
|
right: 0;
|
2013-10-29 16:08:11 +01:00
|
|
|
height: 32px;
|
2013-06-25 12:24:14 +02:00
|
|
|
overflow: hidden;
|
|
|
|
padding: 0;
|
|
|
|
float: right;
|
|
|
|
display: inline;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2014-04-17 16:58:57 +02:00
|
|
|
/* keep long file names in one line to not overflow download button on mobile */
|
2015-07-06 13:37:14 +02:00
|
|
|
.directDownload #downloadFile {
|
2014-04-17 16:58:57 +02:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
max-width: 90%;
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2021-09-01 18:44:27 +05:30
|
|
|
margin-top: 16px;
|
2014-04-17 16:58:57 +02:00
|
|
|
}
|
|
|
|
|
2017-09-26 14:09:09 +02:00
|
|
|
.download-size {
|
|
|
|
opacity: .5;
|
|
|
|
}
|
|
|
|
|
2017-01-22 17:25:02 +01:00
|
|
|
/* header buttons */
|
|
|
|
#details {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
#details button,
|
|
|
|
#details input,
|
|
|
|
#details .button {
|
|
|
|
margin: 0 5px;
|
|
|
|
line-height: normal;
|
|
|
|
}
|
|
|
|
#details button:hover,
|
|
|
|
#details input:hover,
|
|
|
|
#details .button:hover {
|
|
|
|
/* No */
|
|
|
|
border-color: rgba(0,0,0,0.3) !important;
|
|
|
|
}
|
|
|
|
|
2024-11-08 14:12:41 +01:00
|
|
|
// Header note prior 31
|
|
|
|
#notemenu .icon-comment-white.menutoggle {
|
|
|
|
filter: var(--background-invert-if-dark);
|
|
|
|
}
|
|
|
|
|
2016-06-09 17:45:16 +02:00
|
|
|
#public-upload .avatardiv {
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
2022-07-22 16:11:01 +02:00
|
|
|
.emptycontent {
|
2018-10-03 09:40:22 +02:00
|
|
|
&.has-note {
|
|
|
|
margin-top: 5vh;
|
|
|
|
}
|
2016-09-08 09:13:59 +02:00
|
|
|
}
|
|
|
|
|
2022-07-22 16:11:01 +02:00
|
|
|
#public-upload .emptycontent h2 {
|
2016-06-09 12:05:02 +02:00
|
|
|
margin: 10px 0 5px 0;
|
|
|
|
}
|
|
|
|
|
2022-07-22 16:11:01 +02:00
|
|
|
#public-upload .emptycontent h2+p {
|
2016-06-09 12:05:02 +02:00
|
|
|
margin-bottom: 30px;
|
|
|
|
}
|
|
|
|
|
2022-07-22 16:11:01 +02:00
|
|
|
#public-upload .emptycontent .icon-folder {
|
2016-06-09 12:05:02 +02:00
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
background-size: 16px;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: text-top;
|
|
|
|
margin-bottom: 0;
|
2016-06-09 17:45:16 +02:00
|
|
|
margin-right: 5px;
|
2016-06-09 12:05:02 +02:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2022-07-22 16:11:01 +02:00
|
|
|
#public-upload .emptycontent #displayavatar .icon-folder {
|
2020-03-12 17:38:18 +01:00
|
|
|
height: 48px;
|
|
|
|
width: 48px;
|
|
|
|
background-size: 48px;
|
|
|
|
}
|
|
|
|
|
2022-07-22 16:11:01 +02:00
|
|
|
#public-upload .emptycontent .button {
|
2016-10-24 23:26:56 +02:00
|
|
|
display: inline-block;
|
|
|
|
height: auto;
|
|
|
|
width: auto;
|
2016-06-09 17:45:16 +02:00
|
|
|
background-size: 16px;
|
|
|
|
background-position: 16px;
|
2016-06-09 12:05:02 +02:00
|
|
|
opacity: .7;
|
|
|
|
font-size: 20px;
|
2016-10-24 23:26:56 +02:00
|
|
|
line-height: initial;
|
2016-06-09 12:05:02 +02:00
|
|
|
margin: 20px;
|
|
|
|
padding: 10px 20px;
|
2016-06-09 17:45:16 +02:00
|
|
|
padding-left: 42px;
|
2016-06-09 12:05:02 +02:00
|
|
|
}
|
|
|
|
|
2022-07-22 16:11:01 +02:00
|
|
|
#public-upload .emptycontent ul {
|
2020-03-31 14:21:28 +00:00
|
|
|
width: 230px;
|
2020-03-31 17:47:22 +00:00
|
|
|
margin: 5px auto 5vh;
|
2016-06-09 17:45:16 +02:00
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2022-07-22 16:11:01 +02:00
|
|
|
#public-upload .emptycontent li {
|
2016-06-09 17:45:16 +02:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
padding: 7px 0;
|
|
|
|
}
|
|
|
|
|
2022-07-22 16:11:01 +02:00
|
|
|
#public-upload .emptycontent li img {
|
2016-06-09 17:45:16 +02:00
|
|
|
margin-right: 5px;
|
2018-12-29 11:53:51 +01:00
|
|
|
position: relative;
|
|
|
|
top: 2px;
|
2016-06-09 17:45:16 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 14:21:28 +00:00
|
|
|
#drop-upload-progress-indicator span.icon-loading-small {
|
2016-06-09 17:45:16 +02:00
|
|
|
padding-left: 18px;
|
|
|
|
margin-right: 7px;
|
|
|
|
}
|
2016-09-08 09:13:59 +02:00
|
|
|
|
2020-03-31 14:21:28 +00:00
|
|
|
#drop-uploaded-files li #drop-upload-name {
|
|
|
|
float: left;
|
|
|
|
max-width: 180px;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
#drop-uploaded-files li #drop-upload-status {
|
|
|
|
float: right;
|
2020-03-31 10:56:59 +00:00
|
|
|
}
|
|
|
|
|
2018-10-03 09:40:22 +02:00
|
|
|
.disclaimer,
|
|
|
|
.note {
|
|
|
|
margin: 0 auto 30px;
|
2016-09-08 09:13:59 +02:00
|
|
|
max-width: 400px;
|
|
|
|
text-align: left;
|
2016-09-08 20:11:21 +02:00
|
|
|
}
|
2017-07-21 18:28:36 +02:00
|
|
|
|
2018-08-24 16:45:40 +02:00
|
|
|
#note-content {
|
|
|
|
padding: 5px;
|
|
|
|
display:inline-block;
|
|
|
|
width: 350px;
|
|
|
|
.content {
|
|
|
|
overflow: auto;
|
|
|
|
max-height: 200px;
|
|
|
|
}
|
2018-07-12 16:58:36 +02:00
|
|
|
}
|
2018-08-24 15:45:39 +02:00
|
|
|
|
2018-10-28 14:58:21 +01:00
|
|
|
#show-terms-dialog {
|
|
|
|
cursor: pointer;
|
2018-11-06 10:55:32 +01:00
|
|
|
font-weight: bold;
|
2018-10-28 14:58:21 +01:00
|
|
|
}
|
|
|
|
|
2018-11-06 18:02:47 +01:00
|
|
|
// hide the download entry on the menu
|
|
|
|
// on public share when NOT on mobile
|
2022-05-04 09:56:06 +02:00
|
|
|
@media only screen and (min-width: variables.$breakpoint-mobile + 1) {
|
2018-11-06 18:02:47 +01:00
|
|
|
#body-public {
|
|
|
|
.header-right {
|
|
|
|
#header-actions-menu {
|
|
|
|
> ul > li#download {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-24 15:45:39 +02:00
|
|
|
// hide the primary on public share on mobile
|
2022-05-04 09:56:06 +02:00
|
|
|
@media only screen and (max-width: variables.$breakpoint-mobile) {
|
2018-08-24 15:45:39 +02:00
|
|
|
#body-public {
|
|
|
|
.header-right {
|
|
|
|
#header-primary-action {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-10-01 11:49:16 +02:00
|
|
|
}
|