Lekcja matmy - dodawanie 1

This commit is contained in:
Sebastian Molenda
2026-05-26 21:19:14 +02:00
parent 204375dd39
commit d406f10206
12 changed files with 830 additions and 20 deletions
+265 -20
View File
@@ -1101,24 +1101,269 @@ body {
margin-bottom: 24px;
}
@media (max-width: 640px) {
body {
padding: 16px;
}
.app-title {
font-size: 28px;
}
.app-subtitle {
font-size: 16px;
}
.category-grid {
grid-template-columns: 1fr;
}
.test-config-grid {
grid-template-columns: 1fr;
}
/* Nowe style dla strony z lekcjami */
.lesson-header {
display: flex;
align-items: center;
padding: 1rem;
background-color: #f8f9fa;
border-bottom: 1px solid #dee2e6;
}
.lesson-header .back-button {
margin-right: 1rem;
font-size: 1.5rem;
text-decoration: none;
color: #333;
align-self: center;
}
.header-content {
flex-grow: 1;
}
.lesson-title {
margin: 0;
font-size: 1.5rem;
}
.progress-bar-container {
display: flex;
align-items: center;
margin-top: 0.5rem;
}
.progress-bar {
width: 100%;
height: 10px;
background-color: #e9ecef;
border-radius: 5px;
overflow: hidden;
margin-right: 0.5rem;
}
.progress {
height: 100%;
background-color: #28a745;
transition: width 0.3s ease-in-out;
}
.progress-label {
font-size: 0.8rem;
white-space: nowrap;
}
/* Dropdown Menu */
.lesson-dropdown {
position: relative;
display: inline-block;
margin-left: auto;
align-self: center;
}
.dropdown-button {
background: none;
border: 1px solid #ccc;
border-radius: 4px;
padding: 0.5rem 0.75rem;
font-size: 1rem;
cursor: pointer;
}
.dropdown-content {
display: none;
position: absolute;
right: 0;
background-color: #f1f1f1;
min-width: 250px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
border-radius: 4px;
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown-content a:hover {
background-color: #ddd;
}
.dropdown-content a.active {
background-color: #28a745;
color: white;
}
.show {
display: block;
}
.lesson-container {
padding: 1rem;
}
.lesson-selector details {
margin-bottom: 1rem;
border: 1px solid #ddd;
border-radius: 8px;
}
.lesson-selector summary {
padding: 1rem;
cursor: pointer;
list-style: none;
display: flex;
flex-direction: column;
}
.lesson-selector summary::-webkit-details-marker {
display: none;
}
.lesson-selector summary h2 {
margin: 0;
font-size: 1.2rem;
}
.lesson-selector summary p {
margin: 0.25rem 0 0;
font-size: 0.9rem;
color: #666;
}
.lesson-content {
padding: 0 1rem 1rem;
border-top: 1px solid #ddd;
}
.lesson-content-main {
padding: 1rem;
}
.parent-guide {
background-color: #fdfdea;
border: 1px solid #fce58a;
border-radius: 8px;
padding: 0.5rem 1rem;
margin: 1.5rem 0;
}
.parent-guide h3 {
color: #c39100;
font-size: 1.1rem;
}
.interactive-exercise {
margin-bottom: 2rem;
}
.icon-group {
font-size: 2rem;
margin: 0.5rem 0;
}
.icon-group .plus-sign {
margin: 0 0.5rem;
color: #888;
}
.start-and-jump {
display: flex;
align-items: center;
gap: 1rem;
margin: 1rem 0;
}
.start-number {
font-size: 2.5rem;
font-weight: bold;
padding: 1rem;
background-color: #e9ecef;
border-radius: 8px;
}
.jumps {
display: flex;
gap: 0.5rem;
}
.jump-btn {
font-size: 1.5rem;
width: 50px;
height: 50px;
border: 2px solid #007bff;
background-color: white;
color: #007bff;
border-radius: 50%;
cursor: pointer;
transition: background-color 0.2s;
}
.jump-btn:hover {
background-color: #e7f3ff;
}
.jump-btn.activated {
background-color: #007bff;
color: white;
border-color: #0056b3;
}
.jump-feedback {
margin-top: 0.5rem;
font-size: 1.1rem;
font-weight: 500;
color: #555;
min-height: 2rem;
}
.retry-button {
display: block;
margin: 1rem auto;
padding: 0.75rem 1.5rem;
font-size: 1rem;
font-weight: 500;
color: #fff;
background-color: #6c757d;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s;
}
.retry-button:hover {
background-color: #5a6268;
}
.lesson-footer {
text-align: center;
padding: 2rem 1rem;
border-top: 1px solid #eee;
}
.button-next {
display: inline-block;
padding: 1rem 2.5rem;
font-size: 1.2rem;
font-weight: bold;
text-decoration: none;
color: #fff;
background-color: #28a745;
border-radius: 8px;
transition: background-color 0.2s;
}
.button-next:hover {
background-color: #218838;
}
.interactive-example {
margin-top: 1rem;
padding: 1rem;
background-color: #f9f9f9;
border-radius: 4px;
}