detailsView.scss 2.3 KB

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