MainLayout.razor.css 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. .page {
  2. position: relative;
  3. display: flex;
  4. flex-direction: column;
  5. }
  6. .main {
  7. flex: 1;
  8. background-color: #B5CBD8;
  9. }
  10. .sidebar {
  11. /*background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);*/
  12. background-color: rgba(181, 203, 215, 1);
  13. }
  14. .top-row {
  15. /*background-color: #f7f7f7;*/
  16. background-color: rgba(181, 203, 215, 1);
  17. border-bottom: 1px solid #d6d5d5;
  18. justify-content: flex-end;
  19. height: 3.5rem;
  20. display: flex;
  21. align-items: center;
  22. }
  23. .top-row ::deep a, .top-row .btn-link {
  24. white-space: nowrap;
  25. margin-left: 1.5rem;
  26. }
  27. .top-row a:first-child {
  28. overflow: hidden;
  29. text-overflow: ellipsis;
  30. }
  31. @media (max-width: 640.98px) {
  32. .top-row:not(.auth) {
  33. display: none;
  34. }
  35. .top-row.auth {
  36. justify-content: space-between;
  37. }
  38. .top-row a, .top-row .btn-link {
  39. margin-left: 0;
  40. }
  41. }
  42. @media (min-width: 641px) {
  43. .page {
  44. flex-direction: row;
  45. }
  46. .sidebar {
  47. width: 250px;
  48. height: 100vh;
  49. position: sticky;
  50. top: 0;
  51. }
  52. .top-row {
  53. position: sticky;
  54. top: 0;
  55. z-index: 1;
  56. }
  57. .main > div {
  58. padding-left: 2rem !important;
  59. padding-right: 1.5rem !important;
  60. }
  61. }