results.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. table-layout: fixed;
  34. top: 0;
  35. width: 100%;
  36. }
  37. tr {
  38. &.result {
  39. border-bottom: 1px solid $color-border;
  40. * {
  41. cursor: pointer;
  42. }
  43. }
  44. &.template {
  45. display: none;
  46. }
  47. &:hover,
  48. &.current {
  49. background-color: nc-darken($color-main-background, 3%);
  50. }
  51. td {
  52. padding: 5px 9px;
  53. font-style: normal;
  54. vertical-align: middle;
  55. border-bottom: none;
  56. &.icon {
  57. text-align: right;
  58. width: 40px;
  59. height: 40px;
  60. padding: 5px 0;
  61. background-position: right center;
  62. background-repeat: no-repeat;
  63. }
  64. .has-selection:not(.hidden) ~ &.icon {
  65. width: 50px;
  66. padding-left: 41px;
  67. background-size: 32px;
  68. }
  69. }
  70. .name,
  71. .text,
  72. .path {
  73. white-space: nowrap;
  74. overflow: hidden;
  75. text-overflow: ellipsis;
  76. }
  77. .text {
  78. white-space: normal;
  79. color: #545454;
  80. }
  81. .path {
  82. opacity: 0.5;
  83. }
  84. .text em {
  85. color: #545454;
  86. font-weight: bold;
  87. opacity: 1;
  88. }
  89. }
  90. .hidden {
  91. display: none;
  92. }
  93. &.filter-empty {
  94. /* remove whitespace on bottom when no search results, to fix layout */
  95. margin-top: 0 !important;
  96. }
  97. .status.summary .info {
  98. margin-left: 100px;
  99. }
  100. }