1
0

detailsView.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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-left: -15px;
  32. margin-right: -35px; /* 15 + 20 for the close button */
  33. margin-top: -15px;
  34. }
  35. .app-sidebar .thumbnailContainer.large.portrait {
  36. margin: 0; /* if we don't fit the image anyway we give it back the margin */
  37. }
  38. .app-sidebar .large .thumbnail {
  39. width:100%;
  40. display:block;
  41. background-repeat: no-repeat;
  42. background-position: center;
  43. background-size: 100%;
  44. float: none;
  45. margin: 0;
  46. height: auto;
  47. }
  48. .app-sidebar .large .thumbnail .stretcher {
  49. content: '';
  50. display: block;
  51. padding-bottom: 56.25%; /* sets height of .thumbnail to 9/16 of the width */
  52. }
  53. .app-sidebar .large.portrait .thumbnail {
  54. background-position: 50% top;
  55. }
  56. .app-sidebar .large.portrait .thumbnail {
  57. background-size: contain;
  58. }
  59. .app-sidebar .large.text {
  60. overflow-y: scroll;
  61. overflow-x: hidden;
  62. padding-top: 14px;
  63. font-size: 80%;
  64. margin-left: 0;
  65. }
  66. .app-sidebar .thumbnail {
  67. width: 100%;
  68. min-height: 75px;
  69. display: inline-block;
  70. float: left;
  71. margin-right: 10px;
  72. background-size: contain;
  73. background-repeat: no-repeat;
  74. }
  75. .app-sidebar .ellipsis {
  76. white-space: nowrap;
  77. text-overflow: ellipsis;
  78. overflow: hidden;
  79. }
  80. .app-sidebar .fileName {
  81. font-size: 16px;
  82. padding-top: 13px;
  83. padding-bottom: 3px;
  84. }
  85. .app-sidebar .fileName h3 {
  86. width: calc(100% - 42px); /* 36px is the with of the copy link icon, but this breaks so we add some more to be sure */
  87. display: inline-block;
  88. padding: 5px 0;
  89. margin: -5px 0;
  90. }
  91. .app-sidebar .file-details {
  92. color: var(--color-text-maxcontrast);
  93. }
  94. .app-sidebar .action-favorite {
  95. vertical-align: sub;
  96. padding: 10px;
  97. margin: -10px;
  98. }
  99. .app-sidebar .action-favorite > span{
  100. opacity: .7 !important;
  101. }
  102. .app-sidebar .detailList {
  103. float: left;
  104. }
  105. .app-sidebar .close {
  106. position: absolute;
  107. top: 0;
  108. right: 0;
  109. opacity: .5;
  110. z-index: 1;
  111. width: 44px;
  112. height: 44px;
  113. }