GrowiNavbar.module.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. @use '~/styles/variables' as var;
  2. @use '~/styles/bootstrap/init' as bs;
  3. @use '~/styles/mixins';
  4. .grw-navbar :global {
  5. .confidential {
  6. font-weight: bold;
  7. }
  8. }
  9. .grw-navbar :global {
  10. top: #{-1 * var.$grw-navbar-height} !important;
  11. z-index: var.$grw-navbar-z-index !important;
  12. max-height: var.$grw-navbar-height + var.$grw-navbar-border-width;
  13. border-top: 0;
  14. border-right: 0;
  15. border-bottom: var.$grw-navbar-border-width solid;
  16. border-left: 0;
  17. .grw-app-title {
  18. @include mixins.variable-font-size(24px);
  19. }
  20. .grw-navbar-search {
  21. position: absolute;
  22. left: 50%;
  23. transform: translate(-50%, 0%);
  24. }
  25. .nav-link,
  26. .nav-item.confidential {
  27. display: flex;
  28. align-items: center;
  29. min-height: var.$grw-navbar-height;
  30. padding: 0 1rem;
  31. }
  32. .nav-link {
  33. &:hover {
  34. background: rgba(0, 0, 0, 0.1);
  35. }
  36. &:focus {
  37. background: rgba(0, 0, 0, 0);
  38. }
  39. }
  40. .nav-item.confidential {
  41. :not(i) {
  42. @include mixins.variable-font-size(14px);
  43. }
  44. @include bs.media-breakpoint-only(md) {
  45. max-width: 100px;
  46. }
  47. max-width: 120px;
  48. max-height: var.$grw-navbar-height;
  49. overflow: hidden;
  50. background: rgba(0, 0, 0, 0.2);
  51. }
  52. .grw-email-sm {
  53. font-size: 0.75em;
  54. }
  55. .grw-notification-dropdown {
  56. .dropdown-menu {
  57. max-width: 70vw;
  58. }
  59. }
  60. }
  61. // layout for GlobalSearch
  62. .grw-navbar :global {
  63. .grw-global-search-container {
  64. // centering on navbar
  65. top: var.$grw-navbar-height / 2;
  66. left: 50vw;
  67. z-index: bs.$zindex-fixed + 1;
  68. transform: translate(-50%, -50%);
  69. .rbt-input.form-control {
  70. width: 200px;
  71. transition: 0.3s ease-out;
  72. // focus
  73. &.focus {
  74. width: 300px;
  75. }
  76. @include bs.media-breakpoint-up(md) {
  77. width: 300px;
  78. }
  79. @include bs.media-breakpoint-up(lg) {
  80. // focus
  81. &.focus {
  82. width: 400px;
  83. }
  84. }
  85. @include bs.media-breakpoint-up(xl) {
  86. width: 350px;
  87. // focus
  88. &.focus {
  89. width: 450px;
  90. }
  91. }
  92. }
  93. }
  94. }
  95. .grw-notification-badge {
  96. position: absolute;
  97. top: 6px;
  98. right: 3.5px;
  99. }