MainLayout.razor.css 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. .page
  2. {
  3. position: relative;
  4. display: flex;
  5. flex-direction: column;
  6. }
  7. main
  8. {
  9. flex: 1;
  10. }
  11. .sidebar
  12. {
  13. background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
  14. }
  15. .top-row
  16. {
  17. background-color: #f7f7f7;
  18. border-bottom: 1px solid #d6d5d5;
  19. justify-content: flex-end;
  20. height: 3.5rem;
  21. display: flex;
  22. align-items: center;
  23. }
  24. .top-row ::deep a, .top-row ::deep .btn-link
  25. {
  26. white-space: nowrap;
  27. margin-left: 1.5rem;
  28. text-decoration: none;
  29. }
  30. .top-row ::deep a:hover, .top-row ::deep .btn-link:hover
  31. {
  32. text-decoration: underline;
  33. }
  34. .top-row ::deep a:first-child
  35. {
  36. overflow: hidden;
  37. text-overflow: ellipsis;
  38. }
  39. @media (max-width: 640.98px)
  40. {
  41. .top-row:not(.auth)
  42. {
  43. display: none;
  44. }
  45. .top-row.auth
  46. {
  47. justify-content: space-between;
  48. }
  49. .top-row ::deep a, .top-row ::deep .btn-link
  50. {
  51. margin-left: 0;
  52. }
  53. }
  54. @media (min-width: 641px)
  55. {
  56. .page
  57. {
  58. flex-direction: row;
  59. }
  60. .sidebar
  61. {
  62. width: 250px;
  63. height: 100vh;
  64. position: sticky;
  65. top: 0;
  66. }
  67. .top-row
  68. {
  69. position: sticky;
  70. top: 0;
  71. z-index: 1;
  72. }
  73. .top-row.auth ::deep a:first-child
  74. {
  75. flex: 1;
  76. text-align: right;
  77. width: 0;
  78. }
  79. .top-row, article
  80. {
  81. padding-left: 2rem !important;
  82. padding-right: 1.5rem !important;
  83. }
  84. }