admin.css

mail@pastecode.io avatar
unknown
plain_text
a month ago
2.9 kB
1
Indexable
Never
* {
  padding: 0;
  margin: 0;
}

body,
html,
#root {
  height: 100%;
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #DF4B6F;
}

.container {
  background-color: #ffffff;
  width: 100vw;
  height: 100vh;
  display: flex;
  box-sizing: border-box;
}

.admin-page {
  display: flex;
  height: 100vh;
  width: 100%;
}

.navbar {
  background-color: #F2E4CF;
  color: rgb(0, 0, 0);
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  z-index: 1000;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 250px;
  padding: 120px 20px 20px 20px;
  /* Top padding adjusted for navbar */
  background-color: #303030;
  box-shadow: 1px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 999;
  overflow-y: auto;
  box-sizing: border-box;
  flex-shrink: 0;
}

.sidebar a {
  display: block;
  width: 100%;
  padding: 5px;
  font-size: 14px;
  margin: 10px 0;
  color: #ABB5BA;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.sidebar a:hover {
  background-image: linear-gradient(to right, #E55C7B, #F3849E);
  color: #ABB5BA;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  height: 50px;
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.sidebar li svg {
  font-size: 20px;
  color: #ABB5BA;
  transition: color 0.3s ease;
  padding: 10px;
}

.sidebar li a {
  text-decoration: none;
  display: flex;
  border-radius: 10px;
  width: 100%;
  align-items: center;
  padding: 10px;
  color: #ABB5BA;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar li span {
  padding-left: 10px;
}

/* Main Content */
.main-content {
  margin-left: 250px;
  /* Same width as the sidebar */
  margin-top: 100px;
  /* Account for fixed navbar */
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 12px;
  box-sizing: border-box;
  justify-content: flex-start;
  align-items: center;
}

.section {
  display: none;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
  .navbar {
    height: 80px;
  }

  .sidebar {
    width: 150px;
    padding: 100px 20px 20px 20px;
    /* Adjust top padding for smaller screens */
  }

  .main-content {
    margin-left: 150px;
    /* Adjusted for smaller screens */
  }
}

@media (max-width: 480px) {
  .navbar {
    height: 60px;
  }

  .sidebar {
    width: 100px;
    padding: 80px 20px 20px 20px;
    /* Adjust top padding for even smaller screens */
  }

  .main-content {
    margin-left: 100px;
    /* Adjusted for even smaller screens */
  }
}
Leave a Comment