detailsView.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*!
  2. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-FileCopyrightText: 2015-2016 ownCloud, Inc.
  4. * SPDX-License-Identifier: AGPL-3.0-only
  5. */
  6. .app-sidebar .detailFileInfoContainer {
  7. min-height: 50px;
  8. padding: 15px;
  9. }
  10. .app-sidebar .detailFileInfoContainer > div {
  11. clear: both;
  12. }
  13. .app-sidebar .mainFileInfoView .icon {
  14. display: inline-block;
  15. background-size: 16px 16px;
  16. }
  17. .app-sidebar .mainFileInfoView .permalink {
  18. padding: 6px 10px;
  19. vertical-align: top;
  20. opacity: .6;
  21. &:hover,
  22. &:focus {
  23. opacity: 1;
  24. }
  25. }
  26. .app-sidebar .mainFileInfoView .permalink-field>input {
  27. clear: both;
  28. width: 90%;
  29. }
  30. .app-sidebar .thumbnailContainer.large {
  31. margin-inline: -15px -35px; /* 15 + 20 for the close button */
  32. margin-top: -15px;
  33. }
  34. .app-sidebar .thumbnailContainer.large.portrait {
  35. margin: 0; /* if we don't fit the image anyway we give it back the margin */
  36. }
  37. .app-sidebar .large .thumbnail {
  38. width:100%;
  39. display:block;
  40. background-repeat: no-repeat;
  41. background-position: center;
  42. background-size: 100%;
  43. float: none;
  44. margin: 0;
  45. height: auto;
  46. }
  47. .app-sidebar .large .thumbnail .stretcher {
  48. content: '';
  49. display: block;
  50. padding-bottom: 56.25%; /* sets height of .thumbnail to 9/16 of the width */
  51. }
  52. .app-sidebar .large.portrait .thumbnail {
  53. background-position: 50% top;
  54. }
  55. .app-sidebar .large.portrait .thumbnail {
  56. background-size: contain;
  57. }
  58. .app-sidebar .large.text {
  59. overflow-y: scroll;
  60. overflow-x: hidden;
  61. padding-top: 14px;
  62. font-size: 80%;
  63. margin-inline-start: 0;
  64. }
  65. .app-sidebar .thumbnail {
  66. width: 100%;
  67. min-height: 75px;
  68. display: inline-block;
  69. float: left;
  70. margin-inline-end: 10px;
  71. background-size: contain;
  72. background-repeat: no-repeat;
  73. }
  74. .app-sidebar .ellipsis {
  75. white-space: nowrap;
  76. text-overflow: ellipsis;
  77. overflow: hidden;
  78. }
  79. .app-sidebar .fileName {
  80. font-size: 16px;
  81. padding-top: 13px;
  82. padding-bottom: 3px;
  83. }
  84. .app-sidebar .fileName h3 {
  85. width: calc(100% - 42px); /* 36px is the with of the copy link icon, but this breaks so we add some more to be sure */
  86. display: inline-block;
  87. padding: 5px 0;
  88. margin: -5px 0;
  89. }
  90. .app-sidebar .file-details {
  91. color: var(--color-text-maxcontrast);
  92. }
  93. .app-sidebar .action-favorite {
  94. vertical-align: sub;
  95. padding: 10px;
  96. margin: -10px;
  97. }
  98. .app-sidebar .action-favorite > span{
  99. opacity: .7 !important;
  100. }
  101. .app-sidebar .detailList {
  102. float: left;
  103. }
  104. .app-sidebar .close {
  105. position: absolute;
  106. top: 0;
  107. inset-inline-end: 0;
  108. opacity: .5;
  109. z-index: 1;
  110. width: 44px;
  111. height: 44px;
  112. }