0.5.8-panel-upgrade-community-crud-fix
All checks were successful
Deploy on push / deploy (push) Successful in 6s
All checks were successful
Deploy on push / deploy (push) Successful in 6s
This commit is contained in:
266
panel/styles.css
266
panel/styles.css
@@ -1,44 +1,73 @@
|
||||
/**
|
||||
* Основные стили приложения
|
||||
* Global Styles and CSS Variables
|
||||
* Minimal global styling with focus on CSS variables and reset
|
||||
*/
|
||||
|
||||
/* Сброс стилей */
|
||||
/* Global Styles */
|
||||
@import './styles/GlobalVariables.module.css';
|
||||
|
||||
/* CSS Reset and Base Styles */
|
||||
* {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
text-rendering: optimizeLegibility;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
body, html {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
background-color: var(--background-color);
|
||||
color: var(--text-color);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
#root {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.app-container {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* Minimal Accessibility and Utility Styles */
|
||||
.visually-hidden {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
clip: rect(0 0 0 0);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
*:focus-visible {
|
||||
outline: 2px solid var(--primary-color);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Responsive Typography */
|
||||
@media (max-width: 768px) {
|
||||
:root {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Print Styles */
|
||||
@media print {
|
||||
body {
|
||||
background: none;
|
||||
color: #000;
|
||||
}
|
||||
}
|
||||
|
||||
/* Общие стили */
|
||||
:root {
|
||||
/* Основные цвета */
|
||||
--primary-color: #000000;
|
||||
--primary-dark: #333333;
|
||||
--primary-light: #F5F5F5;
|
||||
|
||||
/* Статусные цвета */
|
||||
--success-color: #155724;
|
||||
--success-light: #d4edda;
|
||||
--success-border: #c3e6cb;
|
||||
|
||||
--danger-color: #721c24;
|
||||
--danger-light: #f8d7da;
|
||||
--danger-border: #f5c6cb;
|
||||
|
||||
--warning-color: #856404;
|
||||
--warning-light: #fff3cd;
|
||||
--warning-border: #ffeaa7;
|
||||
|
||||
/* Текст и фон */
|
||||
--text-color: #000000;
|
||||
--text-secondary: #666666;
|
||||
--text-muted: #6b7280;
|
||||
--bg-color: #FFFFFF;
|
||||
--card-bg: #FFFFFF;
|
||||
|
||||
/* Границы и тени */
|
||||
--border-color: #E0E0E0;
|
||||
--border-radius-sm: 4px;
|
||||
@@ -52,11 +81,10 @@
|
||||
--font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
|
||||
|
||||
/* Размеры */
|
||||
--container-max-width: 1200px;
|
||||
--container-max-width: 1400px;
|
||||
--header-height: 60px;
|
||||
|
||||
/* Анимации */
|
||||
--transition-fast: 0.2s ease;
|
||||
--transition-normal: 0.3s ease;
|
||||
|
||||
/* Z-индексы */
|
||||
@@ -83,29 +111,34 @@ body {
|
||||
}
|
||||
|
||||
/* Общие элементы интерфейса */
|
||||
.loading-screen, .loading {
|
||||
.loading-screen {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 200px;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
color: var(--primary-color);
|
||||
min-height: 100vh;
|
||||
background-color: var(--background-color);
|
||||
color: var(--text-color-light);
|
||||
font-size: var(--font-size-lg);
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
border: 4px solid rgba(0, 0, 0, 0.1);
|
||||
border-left-color: var(--primary-color);
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border: 3px solid var(--border-color);
|
||||
border-radius: 50%;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin-bottom: 20px;
|
||||
border-top-color: var(--primary-color);
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to { transform: rotate(360deg); }
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.error-message {
|
||||
@@ -168,34 +201,27 @@ body {
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: var(--primary-color);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: var(--border-radius-md);
|
||||
padding: 10px 16px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
width: 100%;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: var(--primary-dark);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
|
||||
button:focus,
|
||||
input:focus,
|
||||
select:focus,
|
||||
textarea:focus {
|
||||
outline: 2px solid var(--primary-color);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
background-color: #E5E9F2;
|
||||
color: #A0AEC0;
|
||||
button:disabled,
|
||||
input:disabled,
|
||||
select:disabled,
|
||||
textarea:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Стили для страницы входа */
|
||||
@@ -329,7 +355,7 @@ header h1 {
|
||||
}
|
||||
|
||||
main {
|
||||
padding: 20px;
|
||||
padding: 1.5rem 3rem;
|
||||
max-width: var(--container-max-width);
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
@@ -337,7 +363,7 @@ main {
|
||||
}
|
||||
|
||||
/* Таблица пользователей */
|
||||
.users-list {
|
||||
.authors-list {
|
||||
overflow-x: auto;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
@@ -351,6 +377,7 @@ table {
|
||||
overflow: hidden;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
||||
background-color: var(--card-bg);
|
||||
min-width: 900px;
|
||||
}
|
||||
|
||||
thead {
|
||||
@@ -358,10 +385,11 @@ thead {
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 14px 16px;
|
||||
padding: 18px 20px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
font-size: 14px;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
th {
|
||||
@@ -369,7 +397,7 @@ th {
|
||||
color: var(--text-secondary);
|
||||
background-color: #F5F7FA;
|
||||
text-transform: uppercase;
|
||||
font-size: 12px;
|
||||
font-size: 13px;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
@@ -710,12 +738,12 @@ tr:hover {
|
||||
}
|
||||
|
||||
/* Поиск */
|
||||
.users-controls {
|
||||
.authors-controls {
|
||||
margin-bottom: 16px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.search-container {
|
||||
max-width: 500px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -771,7 +799,7 @@ tr:hover {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.users-list {
|
||||
.authors-list {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@@ -1117,7 +1145,7 @@ th.sortable.sorted .sort-icon {
|
||||
padding: 8px 5px;
|
||||
}
|
||||
|
||||
.users-list,
|
||||
.authors-list,
|
||||
.shouts-list table {
|
||||
font-size: 12px;
|
||||
}
|
||||
@@ -1385,99 +1413,7 @@ button:hover,
|
||||
}
|
||||
|
||||
/* Оптимизация для доступности */
|
||||
.visually-hidden {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.focus-visible:focus-visible {
|
||||
outline: 2px solid var(--primary-color);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Убираем скругления и делаем строгий стиль для пагинации и кнопок */
|
||||
button,
|
||||
.pagination,
|
||||
.pagination-button,
|
||||
.pagination-per-page select {
|
||||
border-radius: 0 !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.pagination {
|
||||
background: #ededed;
|
||||
border: 1px solid var(--border-color);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.pagination-button {
|
||||
min-width: 44px;
|
||||
height: 44px;
|
||||
padding: 0;
|
||||
background: #181818;
|
||||
color: #fff;
|
||||
border: 1px solid #222;
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
border-radius: 0 !important;
|
||||
box-shadow: none !important;
|
||||
margin-bottom: 8px;
|
||||
transition: background 0.15s, color 0.15s, border 0.15s;
|
||||
}
|
||||
|
||||
.pagination-button.active {
|
||||
background: #fff;
|
||||
color: #111;
|
||||
border: 2px solid #fff;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.pagination-button:hover:not(:disabled) {
|
||||
background: #333;
|
||||
color: #fff;
|
||||
border-color: #111;
|
||||
transform: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.pagination-button:disabled {
|
||||
background: #aaa;
|
||||
color: #fff;
|
||||
opacity: 0.5;
|
||||
border-color: #888;
|
||||
}
|
||||
|
||||
.pagination-ellipsis {
|
||||
background: transparent;
|
||||
color: #888;
|
||||
min-width: 44px;
|
||||
height: 44px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: none;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.pagination-per-page select {
|
||||
background: #181818;
|
||||
color: #fff;
|
||||
border: 1px solid #222;
|
||||
border-radius: 0 !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.modal-actions {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
justify-content: flex-end;
|
||||
padding: 0;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
Reference in New Issue
Block a user