fridge_bites/assets/css/admin.css
2025-06-29 12:27:12 +02:00

344 lines
6.4 KiB
CSS

:root {
--panel-text: #008b70;
--input-background: #f7f7f7;
--input-border: #b3b3b3;
--input-placeholder: #b3b3b3;
--panel-background: #eaf8eb;
--input-text-color: #000;
--title-color: #015847;
--meta-color: #727272;
--common-text: #000;
--panel-title-color: #000;
--button-primary: #0DBB99;
--button-secondary: #ECECEC;
--title-font: 'Roboto Slab', sans-serif;
--common-font: 'Roboto Condensed', serif;
}
* {
box-sizing: border-box;
}
body {
min-height: 100vh;
font-family: var(--common-font);
font-size: 14px;
color: var(--common-text);
}
.wrapper-admin {
display: flex;
min-height: calc(100vh - 64px);
}
.wrapper-admin__content {
width: 100%;
}
.header-admin {
height: 80px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px 10px;
}
.header-admin__control {
display: flex;
}
.header-admin__control .username {
color: var(--common-text);
font-size: 16px;
font-weight: 500;
font-family: var(--common-font);
margin-right: 10px;
}
.header-admin__control .username span {
color: var(--title-color);
}
.header-admin__control .links a {
text-decoration: none;
font-size: 16px;
font-weight: 500;
font-family: var(--common-font);
color: var(--common-text);
}
.admin-sidebar {
width: 100%;
max-width: 314px;
flex-shrink: 0;
background: var(--panel-background);
}
.admin-sidebar .btn {
display: block;
margin: 20px 20px 20px 20px;
}
.admin-sidebar__list {
list-style: none;
}
.admin-sidebar__list a {
display: block;
padding: 10px 20px;
color: var(--panel-text);
font-size: 20px;
text-decoration: none;
}
.admin-sidebar__list a:hover,
.admin-sidebar__list a.active {
color: #000;
}
.admin-sidebar__list a i {
width: 34px;
}
.admin-sidebar__list a span {
background: #f00;
padding: 2px 7px;
font-size: 15px;
border-radius: 100%;
}
.admin-container {
margin: 0 auto;
width: 100%;
max-width: 1100px;
padding: 22px 30px;
}
.admin-container h2 {
font-size: 24px;
margin-bottom: 20px;
}
.admin-container section {
margin-bottom: 25px;
}
#dashboard-stats {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
.dashboard-stats__item {
display: flex;
align-items: center;
color: var(--common-text);
background: var(--panel-background);
border-radius: 5px;
padding: 12px 20px;
}
.dashboard-stats__item .icon {
font-size: 36px;
margin-right: 20px;
flex-shrink: 0;
}
.dashboard-stats__item .value {
font-size: 24px;
font-weight: 700;
}
.dashboard-stats__item.top-sales .icon {
color: #FF7B00;
}
.dashboard-stats__item.new-users .icon {
color: #00A3E8;
}
.dashboard-stats__item.orders .icon {
color: #BA00E8;
}
.dashboard-stats__item.profit .icon {
color: #00E842;
}
#quicktools {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 22px;
background: var(--panel-background);
border-radius: 10px;
}
.admin-table {
color: var(--common-text);
margin-bottom: 15px;
font-size: 14px;
width: 100%;
text-align: center;
border-radius: 5px;
overflow: hidden;
}
.admin-table thead {
background: #0DBB99;
color: #eaf8eb;
}
.admin-table td,
.admin-table th {
padding: 15px 10px;
}
.admin-table a{
color: var(--title-color);
}
.admin-block__content .admin-block__table {
border-radius: 5px;
overflow: hidden;
margin-bottom: 10px;
}
.admin-table tbody tr:nth-child(odd),
.admin-block__table .row:nth-child(odd) {
background: #eaf8eb;
}
.admin-table tbody tr:nth-child(even),
.admin-block__table .row:nth-child(even) {
background: #b6f1ba;
}
.admin-block__table {
color: var(--common-text);
}
.admin-block__table .row {
display: flex;
justify-content: space-between;
}
.admin-single {
display: grid;
grid-template-columns: 1fr 320px;
gap: 20px;
}
.admin-block {
overflow: hidden;
border-radius: 5px;
border: 1px solid #015847;
margin-bottom: 20px;
background: #f1fff2
}
.admin-block__content {
padding: 10px;
}
.admin-block__title {
font-size: 18px;
font-family: var(--common-font);
background-color: #015847;
padding: 10px 10px;
color: #eaf8eb;
}
.admin-block__table .row {
padding: 10px;
}
.admin-block__table a{
color: var(--title-color);
}
.admin-container.delete {
text-align: center;
}
.admin-container.delete .meta-text {
font-size: 18px;
margin-bottom: 15px;
}
.admin-container.delete .btn-control {
justify-content: space-around;
}
.order-stat {
display: flex;
align-items: center;
margin-bottom: 5px !important;
font-size: 18px;
justify-content: space-between;
}
.order-content .admin-block__table {
margin-top: 15px;
}
.order-stat span:first-child {
color: var(--common-text);
font-weight: 400;
font-family: var(--common-font);
}
.order-stat span:last-child {
color: var(--title-color);
}
.header-admin{
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
background-color: var(--panel-background);
}
.logo-admin{
color: var(--title-color);
font-family: var(--title-font);
font-size: 20px;
font-weight: 700;
}
.input-admin input{
background: var(--input-background);
border: 1px solid var(--input-border);
color: var(--input-text-color);
padding: 10px;
font-size: 16px;
border-radius: 10px;
box-sizing: border-box;
}
.input-admin button{
border: 1px solid var(--input-border);
}
.admin-container .title{
text-align: start;
}
.input-admin button{
padding: 10px;
border-radius: 10px;
}
.admin-block__content .btn-control {
display: flex;
justify-content: space-between;
}
input:disabled{
background-color: #e9ecef;
color: #6c757d;
}
.admin-single__form select{
padding: 6px;
border-radius: 10px;
margin-bottom: 20px;
}
.admin-single__form img{
height: 260px;
width: 350;
border-radius: 10px;
margin-bottom: 20px;
}
.admin-single__form #instruction{
width: 400px;
padding: 5px;
}
.admin-single__form input[type="file"]{
margin-bottom: 20px;
}
.recipe-author{
color: var(--title-color);
}
.admin-single__form label{
display: inline-block;
margin-bottom: 5px;
}
.admin-single__form .input-checkbox{
accent-color: #0DBB99;
}