mirror of
https://github.com/QwIT-Development/firka-extension.git
synced 2026-06-12 03:41:39 +02:00
396 lines
6.7 KiB
CSS
396 lines
6.7 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
color: var(--text-primary);
|
|
background-color: var(--background) !important;
|
|
font-family: "Montserrat", serif !important;
|
|
min-height: 100vh;
|
|
font-size: 16px;
|
|
}
|
|
|
|
h2 {
|
|
background-color: #00000000 !important;
|
|
}
|
|
|
|
.kreta-container {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
|
|
.kreta-main {
|
|
flex: 1;
|
|
padding: clamp(1rem, 3vw, 2rem);
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.grid-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.widget-card {
|
|
background: var(--card-card);
|
|
border-radius: 24px;
|
|
overflow: hidden;
|
|
animation: fadeIn 0.5s ease forwards;
|
|
box-shadow: 0px 1px var(--shadow-blur, 2px) 0px var(--accent-shadow);
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
border: none;
|
|
min-height: 400px;
|
|
}
|
|
|
|
.widget-header {
|
|
padding: 20px 20px 0 20px;
|
|
background: var(--card-card) !important;
|
|
}
|
|
|
|
.widget-card-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
padding-bottom: 16px;
|
|
}
|
|
|
|
.widget-content {
|
|
flex: 1;
|
|
padding: 0 20px;
|
|
background: var(--card-card);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.widget-footer {
|
|
padding: 0px 20px 20px 20px;
|
|
background: var(--card-card);
|
|
}
|
|
|
|
.widget-link {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.card h2 {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
padding: 20px 0 16px 0;
|
|
}
|
|
|
|
.card:last-child {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.widget-item {
|
|
border-radius: 12px;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
border: none;
|
|
background: var(--card-card);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 8px;
|
|
position: relative;
|
|
min-height: 80px;
|
|
}
|
|
|
|
.widget-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
gap: 12px;
|
|
min-height: 40px;
|
|
}
|
|
|
|
.widget-row.grade-row {
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.widget-details {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.widget-details.grade-details {
|
|
flex: 1;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.widget-title {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
line-height: 1.3;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.widget-subtitle {
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.widget-content {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
line-height: 1.4;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.widget-date {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
text-align: right;
|
|
align-self: center;
|
|
}
|
|
|
|
.grade-type-with-date {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
gap: 8px;
|
|
}
|
|
|
|
.grade-type-with-date .grade-type {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.note-author {
|
|
color: var(--text-tertiary);
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.grade-date {
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
font-weight: 400;
|
|
white-space: nowrap;
|
|
text-align: right;
|
|
}
|
|
|
|
|
|
|
|
.widget-author {
|
|
color: var(--text-tertiary);
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.widget-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 4px;
|
|
text-align: right;
|
|
}
|
|
|
|
.widget-empty {
|
|
color: var(--text-secondary);
|
|
font-style: italic;
|
|
text-align: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.grade {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 16px;
|
|
font-weight: 700;
|
|
margin-right: 1rem;
|
|
color: var(--text-primary);
|
|
font-size: 22px;
|
|
}
|
|
|
|
.news-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.news-content {
|
|
font-size: 14px;
|
|
line-height: 1.4;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.exam-type {
|
|
color: var(--accent-accent);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
.more-link {
|
|
margin-top: auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
color: var(--accent-accent);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
padding-top: 16px;
|
|
transition: gap 0.2s ease;
|
|
font-size: clamp(0.875rem, 1.5vw, 1rem);
|
|
}
|
|
@media (hover: hover) {
|
|
.more-link:hover {
|
|
color: var(--accent-secondary);
|
|
gap: 0.75rem;
|
|
}
|
|
}
|
|
.more-link i {
|
|
font-size: 0.875rem;
|
|
}
|
|
.grade-1 {color: var(--grades-1); background-color: var(--grades-background-1);}
|
|
.grade-2 {color: var(--grades-2); background-color: var(--grades-background-2);}
|
|
.grade-3 {color: var(--grades-3); background-color: var(--grades-background-3);}
|
|
.grade-4 {color: var(--grades-4); background-color: var(--grades-background-4);}
|
|
.grade-5 {color: var(--grades-5); background-color: var(--grades-background-5);}
|
|
.grade-Sz {color: var(--grades-3); background-color: var(--grades-background-3);}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
.user-profile {
|
|
position: relative;
|
|
}
|
|
|
|
.user-dropdown-btn {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.user-dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0;
|
|
background: var(--card-card);
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 12px var(--accent-shadow);
|
|
min-width: 200px;
|
|
display: none;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.user-dropdown.active {
|
|
display: block;
|
|
}
|
|
|
|
.dropdown-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
color: var(--text-primary);
|
|
text-decoration: none;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.dropdown-item:hover {
|
|
background-color: var(--accent-15);
|
|
}
|
|
|
|
.dropdown-item svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.news-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.news-content {
|
|
font-size: 14px;
|
|
line-height: 1.4;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.exam-type {
|
|
color: var(--accent-accent);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
.more-link {
|
|
margin-top: auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
color: var(--accent-accent);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
padding-top: 16px;
|
|
transition: gap 0.2s ease;
|
|
font-size: clamp(0.875rem, 1.5vw, 1rem);
|
|
}
|
|
@media (hover: hover) {
|
|
.more-link:hover {
|
|
color: var(--accent-secondary);
|
|
gap: 0.75rem;
|
|
}
|
|
}
|
|
.more-link i {
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.exam-info {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 4px;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.exam-info {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 4px;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
} |