_search.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. // styles for admin user search
  2. .admin-user-page {
  3. .search-typeahead {
  4. .search-clear {
  5. top: 7px;
  6. right: 4px;
  7. }
  8. }
  9. }
  10. // layout
  11. .on-search {
  12. .page-wrapper {
  13. padding-bottom: unset;
  14. }
  15. .search-control-include-options {
  16. .card-body {
  17. padding: 5px 10px;
  18. }
  19. }
  20. .search-result-list {
  21. .search-result-list-scroll {
  22. // subtract the height of GrowiNavbar + (SearchControl component + other factors)
  23. height: calc(100vh - (($grw-navbar-height + $grw-navbar-border-width) + 110px));
  24. overflow-y: scroll;
  25. @include media-breakpoint-down(sm) {
  26. height: calc(100vh - (($grw-navbar-height + $grw-navbar-border-width + $grw-navbar-bottom-height) + 123px));
  27. }
  28. }
  29. .search-result-keyword {
  30. font-size: 17.5px;
  31. font-weight: bold;
  32. }
  33. .search-result-select-group {
  34. > select {
  35. max-width: 8rem;
  36. }
  37. }
  38. // list group
  39. .page-list {
  40. // not show top label in search result list
  41. .page-list-meta {
  42. .top-label {
  43. display: none;
  44. }
  45. }
  46. }
  47. }
  48. .search-result-content {
  49. .search-result-content-nav {
  50. min-height: $grw-subnav-search-preview-min-height;
  51. overflow: auto;
  52. .grw-subnav {
  53. min-height: inherit;
  54. }
  55. }
  56. .search-result-content {
  57. height: calc(100vh - ($grw-navbar-height + $grw-navbar-border-width));
  58. > h2 {
  59. margin-right: 10px;
  60. font-size: 22px;
  61. line-height: 1em;
  62. }
  63. &:first-child > h2 {
  64. margin-top: 0;
  65. }
  66. .search-result-content-body-container {
  67. overflow-y: auto;
  68. .wiki {
  69. padding: 16px;
  70. font-size: 13px;
  71. }
  72. }
  73. }
  74. }
  75. }
  76. // support for your search
  77. .grw-search-table {
  78. caption {
  79. display: table-header-group;
  80. }
  81. }
  82. @include media-breakpoint-down(sm) {
  83. .grw-search-table {
  84. th {
  85. text-align: right;
  86. }
  87. td {
  88. overflow-wrap: anywhere;
  89. white-space: normal !important;
  90. }
  91. @include media-breakpoint-down(xs) {
  92. th,
  93. td {
  94. display: block;
  95. }
  96. th {
  97. text-align: left;
  98. }
  99. td {
  100. padding-top: 0 !important;
  101. border-top: none !important;
  102. }
  103. }
  104. }
  105. }
  106. // style to apply when displaying search page
  107. .on-search {
  108. // set sidebar height shown in search page
  109. $search-page-sidebar-height: calc(100vh - ($grw-navbar-height + $grw-navbar-border-width));
  110. .grw-sidebar {
  111. height: $search-page-sidebar-height;
  112. .data-layout-container {
  113. height: 100%;
  114. }
  115. }
  116. }