Skip to content

lk.mirea.ru by 0niel

Details

Author0niel

LicenseNo License

Categoryuserstyles

Created

Updated

Code size23 kB

Code checksum67c63720

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Исправленный UI ЛКС РТУ МИРЭА

Notes

Userstyle doesn't have notes.

Source code

Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link.
/* ==UserStyle==
@name         lk.mirea.ru
@version      20250320.08.41
@namespace    https://userstyles.world/user/Oniel
@description  Исправленный UI ЛКС РТУ МИРЭА
@author       Oniel
==/UserStyle== */

@-moz-document url-prefix("https://lk.mirea.ru/") {
/* Исправленный UI ЛКС РТУ МИРЭА
 * Автор: Oniel
 */
:root {
     --primary: #2a4caa;
     --primary-light: #4668cb;
     --primary-dark: #1e3a8a;
     --secondary: #3f83f8;
     --accent: #6366f1;
     --success: #10b981;
     --warning: #f59e0b;
     --danger: #ef4444;
     --light: #f3f4f6;
     --dark: #1f2937;
     --gray-100: #f3f4f6;
     --gray-200: #e5e7eb;
     --gray-300: #d1d5db;
     --gray-400: #9ca3af;
     --gray-500: #6b7280;
     --gray-600: #4b5563;
     --gray-700: #374151;
     --gray-800: #1f2937;
     --gray-900: #111827;

     /* Типографика */
     --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
     --font-secondary: 'Roboto', system-ui, -apple-system, sans-serif;
     --font-mono: 'JetBrains Mono', 'Consolas', monospace;
     --line-height-tight: 1.35;
     --line-height-normal: 1.65;
     --line-height-relaxed: 1.85;
     --letter-spacing-tight: -0.015em;
     --letter-spacing-normal: 0;
     --letter-spacing-wide: 0.015em;
     --letter-spacing-wider: 0.03em;
     --font-weight-light: 300;
     --font-weight-normal: 400;
     --font-weight-medium: 500;
     --font-weight-semibold: 600;
     --font-weight-bold: 700;
     --text-xs: 0.8125rem;
     --text-sm: 0.9375rem;
     --text-base: 1.0625rem;
     --text-lg: 1.1875rem;
     --text-xl: 1.375rem;
     --text-2xl: 1.625rem;
     --text-3xl: 2rem;
     --text-4xl: 2.5rem;

     --radius-sm: 0.25rem;
     --radius-md: 0.5rem;
     --radius-lg: 1rem;
     --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
     --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
     --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
     --transition: all 0.2s ease-in-out;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* Общие стили */
body {
     font-family: var(--font-main);
     color: var(--gray-800);
     background-color: var(--gray-100) !important;
     transition: var(--transition);
     line-height: var(--line-height-normal);
     font-weight: var(--font-weight-normal);
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
     text-rendering: optimizeLegibility;
     letter-spacing: var(--letter-spacing-normal);
}

/* Улучшенная типографика */
h1,
.h1 {
     font-size: var(--text-3xl);
     font-weight: var(--font-weight-bold);
     line-height: var(--line-height-tight);
     letter-spacing: var(--letter-spacing-tight);
     margin-bottom: 1.25rem;
     color: var(--gray-900);
}

h2,
.h2 {
     font-size: var(--text-2xl);
     font-weight: var(--font-weight-semibold);
     line-height: var(--line-height-tight);
     margin-bottom: 0.875rem;
     color: var(--gray-800);
}

h3,
.h3 {
     font-size: var(--text-xl);
     font-weight: var(--font-weight-semibold);
     margin-bottom: 0.625rem;
     color: var(--gray-800);
}

h4,
.h4 {
     font-size: var(--text-lg);
     font-weight: var(--font-weight-medium);
     margin-bottom: 0.5rem;
     color: var(--gray-700);
}

p {
     margin-bottom: 1.125rem;
     line-height: var(--line-height-normal);
}

.text-xs {
     font-size: var(--text-xs) !important;
     line-height: var(--line-height-relaxed) !important;
}

.text-sm {
     font-size: var(--text-sm) !important;
     line-height: var(--line-height-relaxed) !important;
     letter-spacing: var(--letter-spacing-normal) !important;
}

.text-base {
     font-size: var(--text-base) !important;
     line-height: var(--line-height-normal) !important;
}

.text-lg {
     font-size: var(--text-lg) !important;
     line-height: var(--line-height-normal) !important;
}

.text-xl {
     font-size: var(--text-xl) !important;
     line-height: var(--line-height-normal) !important;
}

.text-2xl {
     font-size: var(--text-2xl) !important;
     line-height: var(--line-height-tight) !important;
}

/* Для больших заголовков */
.lg\:text-3xl {
     font-size: var(--text-3xl) !important;
     line-height: var(--line-height-tight) !important;
     letter-spacing: var(--letter-spacing-tight) !important;
}

.lg\:text-4xl {
     font-size: var(--text-4xl) !important;
     line-height: 1.2 !important;
     letter-spacing: var(--letter-spacing-tight) !important;
}

/* Стили для различных весов шрифта */
.font-light {
     font-weight: var(--font-weight-light) !important;
}

.font-normal {
     font-weight: var(--font-weight-normal) !important;
}

.font-medium {
     font-weight: var(--font-weight-medium) !important;
}

.font-semibold {
     font-weight: var(--font-weight-medium) !important;
}

.font-bold {
     font-weight: var(--font-weight-semibold) !important;
}

.font-extrabold {
     font-weight: 700 !important;
}

/* Межстрочные интервалы */
.leading-tight {
     line-height: var(--line-height-tight) !important;
}

.leading-normal {
     line-height: var(--line-height-normal) !important;
}

.leading-relaxed {
     line-height: var(--line-height-relaxed) !important;
}

/* Межбуквенные интервалы */
.tracking-tight {
     letter-spacing: var(--letter-spacing-tight) !important;
}

.tracking-normal {
     letter-spacing: var(--letter-spacing-normal) !important;
}

.tracking-wide {
     letter-spacing: var(--letter-spacing-wide) !important;
}

.tracking-wider {
     letter-spacing: var(--letter-spacing-wider) !important;
}

/* Моноширинный шрифт для кода */
.font-mono {
     font-family: var(--font-mono) !important;
}

/* Стили для абзацев */
.rich-text p {
     margin-bottom: 1.125rem;
     line-height: var(--line-height-relaxed);
}

.rich-text p:last-child {
     margin-bottom: 0;
}

/* Улучшение читаемости длинных текстов */
.prose {
     max-width: 68ch;
     line-height: var(--line-height-relaxed);
}

.prose p {
     margin-bottom: 1.5em;
}

.prose ul,
.prose ol {
     margin-top: 1em;
     margin-bottom: 1em;
     padding-left: 1.5em;
}

.prose li {
     margin-bottom: 0.5em;
}

.prose blockquote {
     border-left: 4px solid var(--primary-light);
     padding-left: 1rem;
     font-style: italic;
     margin: 1.5rem 0;
     color: var(--gray-600);
}

.bg-persian-blue-800 {
     background-color: var(--primary) !important;
}

.text-persian-blue-800 {
     color: var(--primary) !important;
}

.fill-persian-blue-800 {
     fill: var(--primary) !important;
}

.stroke-persian-blue-800 {
     stroke: var(--primary) !important;
}

/* Исправление ошибки с процентами */
[style*="width: 100>%"] {
     width: 100% !important;
}

/* Улучшение шапки и навигационной панели */
header {
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
     border-bottom: none !important;
     position: sticky !important;
     top: 0;
     z-index: 100;
}

.bg-white {
     background-color: white !important;
}

/* Навигационная панель */
nav.bg-white {
     padding: 0.5rem 0;
     transition: all 0.3s ease;
}

/* Улучшение верхней навигации */
.hidden.lg\:ml-6.lg\:flex.lg\:space-x-8 {
     gap: 1.5rem !important;
}

.hidden.lg\:ml-6.lg\:flex.lg\:space-x-8 a {
     position: relative;
     font-weight: var(--font-weight-medium);
     color: var(--gray-700) !important;
     transition: all 0.2s ease;
     padding: 0.625rem 0.25rem !important;
     border-bottom: 2px solid transparent !important;
}

.hidden.lg\:ml-6.lg\:flex.lg\:space-x-8 a:hover {
     color: var(--primary) !important;
     border-bottom: 2px solid var(--primary) !important;
}

.hidden.lg\:ml-6.lg\:flex.lg\:space-x-8 a::after {
     content: '';
     position: absolute;
     bottom: -2px;
     left: 0;
     width: 0;
     height: 2px;
     background-color: var(--primary);
     transition: width 0.3s ease;
}

.hidden.lg\:ml-6.lg\:flex.lg\:space-x-8 a:hover::after {
     width: 100%;
}

/* Профиль в навбаре */
.inline-flex.items-center.cursor-pointer.select-none {
     background-color: rgba(42, 76, 170, 0.05);
     padding: 0.5rem 1rem;
     border-radius: var(--radius-lg);
     transition: all 0.2s ease;
}

.inline-flex.items-center.cursor-pointer.select-none:hover {
     background-color: rgba(42, 76, 170, 0.1);
}

.h-8.w-8.rounded-full.mr-2.object-center.object-cover {
     border: 2px solid var(--primary);
     transition: all 0.2s ease;
}

.inline-flex.items-center.cursor-pointer.select-none:hover .h-8.w-8.rounded-full.mr-2.object-center.object-cover {
     transform: scale(1.1);
}

/* Улучшение меню пользователя */
#user_menu {
     border-radius: var(--radius-lg);
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
     border: none !important;
     overflow: hidden;
     padding: 1rem !important;
     animation: slideDown 0.3s ease-out;
     background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

#user_menu::before {
     content: '';
     position: absolute;
     top: -8px;
     right: 20px;
     width: 16px;
     height: 16px;
     background-color: white;
     transform: rotate(45deg);
     box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

#user_menu .flex.flex-col.gap-3 {
     margin-top: 0.5rem;
}

#user_menu a {
     padding: 0.625rem 0.75rem;
     border-radius: var(--radius-md);
     transition: all 0.2s ease;
}

#user_menu a:hover {
     background-color: rgba(42, 76, 170, 0.1);
     transform: translateX(5px);
}

#user_menu button[type="submit"] {
     transition: all 0.2s ease;
     transform: scale(1);
}

#user_menu button[type="submit"]:hover {
     transform: scale(1.05);
     box-shadow: 0 4px 12px rgba(42, 76, 170, 0.3);
}

/* Боковая панель */
#default-sidebar {
     background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 100%);
     color: white;
     width: 280px !important;
     box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

#default-sideb...

Reviews

No reviews yet.