lowkeywicked

topbar

Aug 1st, 2024 (edited)
2,527
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. /* we use a media query so this only displays on larger screens -- it will revert to sidebar for mobile view */
  2. @media (min-width: 768px) {
  3.  
  4. /* set the row that holds the sidebar/content divs to display as column */
  5. .row.row-offcanvas.row-offcanvas-left {
  6. flex-direction: column;
  7. }
  8.  
  9. /* make the content area full width of the page and give it a little extra padding */
  10. #content {
  11. flex: 0 0 100%;
  12. max-width: 100%;
  13. padding: 30px 40px 20px 40px;
  14. margin: 0px auto;
  15. }
  16.  
  17. /* set the sidebar to be full width of the page, give it a little padding and set the sidenav properties */
  18. #sidebar {
  19. flex: 0 0 100%;
  20. max-width: 100%;
  21. text-align: center;
  22. padding: .25rem;
  23. }
  24.  
  25. /* set sidenav links to display next to each other */
  26. .side-nav li {
  27. display: inline-block;
  28. line-height: 1;
  29. }
  30.  
  31. /* controls the border radius for the subheader blocks on character profiles */
  32. .side-nav li.subheader {
  33. border-radius: 1rem;
  34. padding: .25rem;
  35. }
  36.  
  37. /* controls the border radius for the user/character icons */
  38. .side-nav li.character-name .display-character img, .side-nav li .display-user img {
  39. border-radius: 1rem;
  40. }
  41.  
  42. /* adjust padding on sidenav links to they're a little closer together */
  43. .side-nav li>a {
  44. padding: .25rem .5rem;
  45. }
  46.  
  47. /* make the icons next to sidebar links a little closer to the link */
  48. .side-nav li .sidebar-icon {
  49. margin-right: .25rem;
  50. }
  51.  
  52. /* shift the shape of the sidebar stats so they look a bit nicer */
  53. .side-nav li .sidebar-stat {
  54. padding: 0 .25rem;
  55. margin-left: .2rem;
  56. border-radius: 1rem;
  57. }
  58.  
  59. /* fix padding on the character link for character profiles */
  60. .side-nav .display-character a {
  61. padding: .25rem .5rem;
  62. }
  63.  
  64. /* fix padding on the user link for user profiles */
  65. .side-nav .display-user a {
  66. padding: .25rem .75rem .25rem 0px;
  67. }
  68.  
  69. /* move sidenav sub link icons a bit closer to the link */
  70. .sidebar-sub-icon {
  71. margin-left: .2rem;
  72. }
  73. li.subnavigation-link i.fa-fw.mr-2{
  74. margin-right: .2rem !important;
  75. }
  76.  
  77. /* get rid of some subheader margin we don't need */
  78. .side-nav li.subheader.subheader-margin {
  79. margin-top: 0px; margin-bottom: 0px;
  80. }
  81.  
  82. /* hide the header, the sideblurb as it wont fit, the username on character profiles, the divider lines, fix the display for the favs button */
  83. li.header, li.blurb, li.subnavigation-header, li.user-name, li.divider, .hide {
  84. display: none !important;
  85. }
  86.  
  87. /* get rid of default bottom margin on sidenav container so our sidebar is an even height
  88. -- as a bonus i changed the display to flex so if you're feeling ambitious you can use the order property */
  89. .side-nav {
  90. display:flex:
  91. flex-direction: row;
  92. justify-content: center;
  93. margin-bottom: 0px;
  94. }
  95.  
  96.  
  97. /* i give the header a little extra padding... cuz i think it looks better */
  98. #header {padding: 5px 0px;}
  99. }
Advertisement
Add Comment
Please, Sign In to add comment