results.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /*
  2. * @copyright Copyright (c) 2018 Jan-Christoph Borchardt <hey@jancborchardt.net>
  3. *
  4. * @author John Molakvoæ <skjnldsv@protonmail.com>
  5. * @author Jan-Christoph Borchardt <hey@jancborchardt.net>
  6. *
  7. * @license GNU AGPL version 3 or any later version
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU Affero General Public License as
  11. * published by the Free Software Foundation, either version 3 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU Affero General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Affero General Public License
  20. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. *
  22. */
  23. #searchresults {
  24. overflow-x: hidden;
  25. text-overflow: ellipsis;
  26. padding-top: 51px; /* table row is 51px height */
  27. box-sizing: border-box;
  28. z-index: 75;
  29. /* account for margin-bottom in files list */
  30. margin-top: -250px;
  31. table {
  32. border-spacing: 0;
  33. padding-left: 41px;
  34. table-layout: fixed;
  35. top: 0;
  36. width: 100%;
  37. }
  38. tr {
  39. &.result {
  40. border-bottom: 1px solid var(--color-border);
  41. * {
  42. cursor: pointer;
  43. }
  44. }
  45. &.template {
  46. display: none;
  47. }
  48. &:hover,
  49. &.current {
  50. background-color: var(--color-primary-light);
  51. }
  52. td {
  53. padding: 5px 9px;
  54. font-style: normal;
  55. vertical-align: middle;
  56. border-bottom: none;
  57. &.icon {
  58. text-align: right;
  59. width: 40px;
  60. height: 40px;
  61. padding: 5px 0;
  62. background-position: right center;
  63. background-repeat: no-repeat;
  64. }
  65. .has-selection:not(.hidden) ~ &.icon {
  66. width: 50px;
  67. padding-left: 41px;
  68. background-size: 32px;
  69. }
  70. }
  71. .name,
  72. .text,
  73. .path {
  74. white-space: nowrap;
  75. overflow: hidden;
  76. text-overflow: ellipsis;
  77. }
  78. .text {
  79. white-space: normal;
  80. color: var(--color-primary-text);
  81. }
  82. .path {
  83. opacity: 0.5;
  84. }
  85. .text em {
  86. color: var(--color-primary-text);
  87. font-weight: bold;
  88. opacity: 1;
  89. }
  90. }
  91. .hidden {
  92. display: none;
  93. }
  94. &.filter-empty {
  95. /* remove whitespace on bottom when no search results, to fix layout */
  96. margin-top: 0 !important;
  97. }
  98. .status.summary .info {
  99. margin-left: 100px;
  100. }
  101. }