You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

82 lines
1.4 KiB

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