:root{ --main-color: #4A74C2; --color-dark: #1D2231; --text-grey: #8390A2; } *{ padding: 0; margin: 0; box-sizing: border-box; list-style-type: none; text-decoration: none; font-family: 'Varela Round', sans-serif; } body,html{ overflow-x: hidden; overflow-y: auto; } .sidebar{ width: 345px; position: fixed; left: 0; top: 0; height: 100%; background: var(--main-color); z-index: 100; transition: width 300ms; } .sidebar-brand{ height: 90px; padding: 1rem 0rem 1rem 2rem; color: #fff } .sidebar-brand span{ display: inline-block; padding-right: 1rem; } .sidebar-menu{ margin-top: 1rem } .sidebar-menu li{ width: 100%; margin-bottom: 1.7rem; padding-left: 1rem; } .sidebar-menu a{ padding-left: 1rem; display: block; color: #fff; font-size: 1.1rem; } .sidebar-menu a span:first-child{ font-size: 1.5rem; padding-right: 1rem; } .main-content{ transition: margin-left 300ms; margin-left: 345px; } .sidebar-menu a.active{ background: #fff; padding-top: 1rem; padding-bottom: 1rem; color: var(--main-color); border-radius: 30px 0px 0px 30px; } header{ display: flex; justify-content: space-between; padding: 1rem; box-shadow: 2px 2px 10px rgba(0,0,0,0.1); background-color: #fff; position: fixed; left: 345px; width: calc(100% - 345px); top: 0; z-index: 100; transition: width 300ms; } #nav-toggle{ display: none; } header h2{ color: #222; } header label span{ font-size: 1.7rem; padding-right: 0.5rem } .search-wrapper{ border: 1px solid #f0f0f0; border-radius: 30px; height: 50px; display: flex; align-items: center; overflow-x: hidden; } .search-wrapper span{ display: inline-block; padding: 0rem 1rem; font-size: 1.5rem } .search-wrapper input{ height: 100%; padding: .5rem; border: none; outline: none; } .user-wrapper{ display: flex; align-items: center; } .user-wrapper img{ border-radius: 50%; margin: 1rem; } .user-wrapper small{ display: inline-block; color: var(--text-grey); margin-top: -3px !important; } main{ margin-top: 85px; padding: 2rem 1.5rem; background: #f1f5f9; min-height: calc(100vh - 90px); } .cards{ display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 2rem; margin-top: 1rem; } .card-single{ display: flex; justify-content: space-between; background: #fff; padding: 2rem; border-radius: 2px; } .card-single div:last-child span{ font-size: 3rem; color: var(--main-color) } .card-single div:first-child span{ color: var(--text-grey) } table{ border-collapse: collapse; } .recent-grid{ margin-top: 3.5rem; grid-gap: 2rem; display: grid; grid-template-columns:55% 43%; } .card{ background: #fff; border-radius: 5px; } .card-body, .card-head{ padding: 1rem; } .card-header{ padding: 1rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f0f0f0; } .card-header button{ background: var(--main-color); border-radius: 10px; color: #fff; font-size: .8rem; padding: .5rem 1rem; border: 1px solid var(--main-color) } .card-header button:hover{ background: #5c7fbe; cursor: pointer; } .card-header button:active{ background: #6c88bd; } thead tr{ border-top: 1px solid #f0f0f0; border-bottom: 2px solid #f0f0f0; } thead td{ font-weight: 700 } td{ padding: .5rem 1rem; font-size: .9rem; color: #222 } .table-responsive{ width: 80%; } .plugin{ display: flex; justify-content: space-between; align-items: center; padding: .5rem 1rem; } .plugin img{ border-radius: 50%; margin-right: 1rem; } .plugin h4{ font-size: .8rem; font-weight: 600; color: #222; } .plugin small{ font-weight: 600; color: var(--text-grey); max-width: 270px; } .startbtn{ display: inline-flex; height: 40px; margin-top: 1rem; padding: 0; background: #0c6ddb; border: none; outline: none; border-radius: 5px; overflow: hidden; font-size: 14px; font-weight: 400; cursor: pointer; } .startbtn:hover{ background: #0772ec; } .startbtn:active{ background: #0077ff; } .stopbtn{ display: inline-flex; height: 40px; margin-top: 1rem; margin-left: .5rem; padding: 0; background: #f02f2f; border: none; outline: none; border-radius: 5px; overflow: hidden; font-size: 14px; font-weight: 400; cursor: pointer; } .stopbtn:hover{ background: rgb(240, 70, 70); } .stopbtn:active{ background: rgb(235, 113, 113); } .button__icon{ display: inline-flex; align-items: center; padding: 0 15px; color: #fff; height: 100%; color: #fff; } .button__icon{ font-size: 1.5em; background: rgba(0, 0, 0, 0.08); } .togglebtn{ background: var(--main-color); border-radius: 10px; color: #fff; font-size: .8rem; padding: .5rem 1rem; border: 1px solid var(--main-color) } .togglebtn:hover{ background: #5c7fbe; cursor: pointer } .togglebtn:active{ background: #6c88bd; } .togglebtn:hover:after{ background: rgb(230, 157, 157); } .poweralert{ display: flex; align-items: center; color: var(--text-grey); font-size: 1rem } .toast { top: 0; left: 0; right: 0; margin: auto; max-width: 400px; padding: 6px; font-family: sans-serif; text-align: center; } .container{ margin: 0; padding: 0; box-shadow: border-box; } body{ overflow: hidden; } .wrapper{ position: fixed; overflow: hidden; background: #74f540; position: absolute; top: 20px; left: 0px; right: 0px; margin: auto; max-width: 100px; animation:show_toast 0.5s ease forwards; } @keyframes show_toast { 40%,60%{ top: 10px; left: -100px; right: 0px; margin: auto; max-width: 100px; } 80%,100%{ top: 20px; left: 0px; right: 0px; margin: auto; max-width: 100px; } } .wrapper.hide{ animation: hide_toast 1s ease forwards; } @keyframes hide_toast { 80%,100%{ opacity: 0; pointer-events: none; top: -20px; } } .wrapper .toast{ padding: 20px 15px 20px 20px; border-radius: 10px; box-shadow: 1px 7px 14px -5px rgba(0,0,0,0.15); width: 100px; display: flex; align-items: center; justify-content: space-between; } @media only screen and (max-width: 1200px){ .sidebar{ width: 70px; } .sidebar .sidebar-brand h2 span:last-child, .sidebar li span:last-child{ display: none } .sidebar .sidebar-brand, .sidebar li{ padding-left: 1rem; text-align: center; } .sidebar li a{ padding-left: 0rem; } .main-content{ margin-left: 70px; } .main-content header{ width: calc(100%-70px); left: 70px; } .sidebar:hover{ width: 345px; } .sidebar:hover .sidebar-brand h2 span:last-child, .sidebar:hover li span:last-child{ display: inline } .sidebar:hover .sidebar-brand, .sidebar:hover li{ padding-left: 1rem; text-align: center; } .sidebar:hover li a{ padding-left: 0rem; } } @media only screen and (max-width: 960px){ .cards{ grid-template-columns: repeat(3,1fr) } .recent-grid{ grid-template-columns: 50% 50%; } } @media only screen and (max-width: 768px){ .cards{ grid-template-columns: repeat(2,1fr) } .recent-grid{ grid-template-columns: 100%; } .search-wrapper{ display: none; } .sidebar{ left: -100%; } header h2{ display: flex; align-items: center; } header h2 label{ display: inline-block; text-align: center; background: var(--main-color); padding-right: 0rem; margin-right: 1rem; height: 40px; width: 40px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; } header h2 span{ text-align: center; padding-right: 0rem; } .main-content{ width: 100%; margin-left: 0rem; } header{ width: 100%; left: 0; } }