HasanXLD

style.css

Mar 27th, 2025
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. /* Import Google font - Poppins */
  2. @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
  3. * {
  4. margin: 0;
  5. padding: 0;
  6. box-sizing: border-box;
  7. font-family: "Poppins", sans-serif;
  8. }
  9. body {
  10. min-height: 100vh;
  11. background: #eef5fe;
  12. }
  13. /* Pre css */
  14. .flex {
  15. display: flex;
  16. align-items: center;
  17. }
  18. .nav_image {
  19. display: flex;
  20. min-width: 55px;
  21. justify-content: center;
  22. }
  23. .nav_image img {
  24. height: 35px;
  25. width: 35px;
  26. border-radius: 50%;
  27. object-fit: cover;
  28. }
  29.  
  30. /* Sidebar */
  31. .sidebar {
  32. position: fixed;
  33. top: 0;
  34. left: 0;
  35. height: 100%;
  36. width: 270px;
  37. background: #fff;
  38. padding: 15px 10px;
  39. box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
  40. transition: all 0.4s ease;
  41. }
  42. .sidebar.close {
  43. width: calc(55px + 20px);
  44. }
  45. .logo_items {
  46. gap: 8px;
  47. }
  48. .logo_name {
  49. font-size: 22px;
  50. color: #333;
  51. font-weight: 500px;
  52. transition: all 0.3s ease;
  53. }
  54. .sidebar.close .logo_name,
  55. .sidebar.close #lock-icon,
  56. .sidebar.close #sidebar-close {
  57. opacity: 0;
  58. pointer-events: none;
  59. }
  60. #lock-icon,
  61. #sidebar-close {
  62. padding: 10px;
  63. color: #4070f4;
  64. font-size: 25px;
  65. cursor: pointer;
  66. margin-left: -4px;
  67. transition: all 0.3s ease;
  68. }
  69. #sidebar-close {
  70. display: none;
  71. color: #333;
  72. }
  73. .menu_container {
  74. display: flex;
  75. flex-direction: column;
  76. justify-content: space-between;
  77. margin-top: 40px;
  78. overflow-y: auto;
  79. height: calc(100% - 82px);
  80. }
  81. .menu_container::-webkit-scrollbar {
  82. display: none;
  83. }
  84. .menu_title {
  85. position: relative;
  86. height: 50px;
  87. width: 55px;
  88. }
  89. .menu_title .title {
  90. margin-left: 15px;
  91. transition: all 0.3s ease;
  92. }
  93. .sidebar.close .title {
  94. opacity: 0;
  95. }
  96. .menu_title .line {
  97. position: absolute;
  98. left: 50%;
  99. transform: translateX(-50%);
  100. height: 3px;
  101. width: 20px;
  102. border-radius: 25px;
  103. background: #aaa;
  104. transition: all 0.3s ease;
  105. }
  106. .menu_title .line {
  107. opacity: 0;
  108. }
  109. .sidebar.close .line {
  110. opacity: 1;
  111. }
  112. .item {
  113. list-style: none;
  114. }
  115. .link {
  116. text-decoration: none;
  117. border-radius: 8px;
  118. margin-bottom: 8px;
  119. color: #707070;
  120. }
  121. .link:hover {
  122. color: #fff;
  123. background-color: #4070f4;
  124. }
  125. .link span {
  126. white-space: nowrap;
  127. }
  128. .link i {
  129. height: 50px;
  130. min-width: 55px;
  131. display: flex;
  132. font-size: 22px;
  133. align-items: center;
  134. justify-content: center;
  135. border-radius: 4px;
  136. }
  137.  
  138. .sidebar_profile {
  139. padding-top: 15px;
  140. margin-top: 15px;
  141. gap: 15px;
  142. border-top: 2px solid rgba(0, 0, 0, 0.1);
  143. }
  144. .sidebar_profile .name {
  145. font-size: 18px;
  146. color: #333;
  147. }
  148. .sidebar_profile .email {
  149. font-size: 15px;
  150. color: #333;
  151. }
  152.  
  153. /* Navbar */
  154. .navbar {
  155. max-width: 500px;
  156. width: 100%;
  157. position: fixed;
  158. top: 0;
  159. left: 60%;
  160. transform: translateX(-50%);
  161. background: #fff;
  162. padding: 10px 20px;
  163. border-radius: 0 0 8px 8px;
  164. justify-content: space-between;
  165. }
  166. #sidebar-open {
  167. font-size: 30px;
  168. color: #333;
  169. cursor: pointer;
  170. margin-right: 20px;
  171. display: none;
  172. }
  173. .search_box {
  174. height: 46px;
  175. max-width: 500px;
  176. width: 100%;
  177. border: 1px solid #aaa;
  178. outline: none;
  179. border-radius: 8px;
  180. padding: 0 15px;
  181. font-size: 18px;
  182. color: #333;
  183. }
  184. .navbar img {
  185. height: 40px;
  186. width: 40px;
  187. margin-left: 20px;
  188. }
  189.  
  190. /* Responsive */
  191. @media screen and (max-width: 1100px) {
  192. .navbar {
  193. left: 65%;
  194. }
  195. }
  196. @media screen and (max-width: 800px) {
  197. .sidebar {
  198. left: 0;
  199. z-index: 1000;
  200. }
  201. .sidebar.close {
  202. left: -100%;
  203. }
  204. #sidebar-close {
  205. display: block;
  206. }
  207. #lock-icon {
  208. display: none;
  209. }
  210. .navbar {
  211. left: 0;
  212. max-width: 100%;
  213. transform: translateX(0%);
  214. }
  215. #sidebar-open {
  216. display: block;
  217. }
  218. }
Advertisement
Add Comment
Please, Sign In to add comment