Hamburger menu z obstoječimi opcijami (skrij tipkovnico in velike/male črke). #4

This commit is contained in:
2026-03-19 21:45:54 +01:00
parent 8c5fa82b2e
commit 4afc5e30d9
4 changed files with 126 additions and 40 deletions

View File

@@ -70,19 +70,88 @@ body {
white-space: nowrap;
}
.toggle-keypad-btn {
display: none;
background-color: #333;
color: #fff;
border: none;
border-radius: 8px;
padding: 8px 12px;
font-size: 15px;
cursor: pointer;
.menu-container {
position: relative;
}
.toggle-keypad-btn:hover {
filter: brightness(1.08);
.menu-toggle {
background: transparent;
border: none;
cursor: pointer;
padding: 10px;
display: flex;
align-items: center;
justify-content: center;
}
.hamburger-icon {
position: relative;
width: 24px;
height: 2px;
background-color: #fff;
display: block;
}
.hamburger-icon::before,
.hamburger-icon::after {
content: '';
position: absolute;
width: 24px;
height: 2px;
background-color: #fff;
left: 0;
}
.hamburger-icon::before {
top: -8px;
}
.hamburger-icon::after {
bottom: -8px;
}
.menu-dropdown {
display: none;
position: absolute;
top: 100%;
right: 0;
background-color: #222;
border: 1px solid #444;
border-radius: 8px;
min-width: 200px;
z-index: 1000;
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
overflow: hidden;
}
.menu-dropdown.show {
display: block;
}
.menu-item {
display: block;
width: 100%;
padding: 12px 16px;
background: transparent;
border: none;
color: #fff;
text-align: left;
font-size: 16px;
cursor: pointer;
border-bottom: 1px solid #333;
}
.menu-item:last-child {
border-bottom: none;
}
.menu-item:hover {
background-color: #333;
}
.menu-item.active {
background-color: #444;
font-weight: bold;
}
/* glavni prikaz besedila */
@@ -173,16 +242,9 @@ body {
font-size: 20px;
}
/* AAaa */
.btn-dark {
background-color: #8b4513;
color: #ffffff;
font-size: 20px;
}
.btn-dark.active {
outline: 2px solid #ffffff;
outline-offset: -2px;
/* Placeholder for removed AAaa button */
.keypad-placeholder {
visibility: hidden;
}
/* C */
@@ -209,8 +271,7 @@ body {
.btn-action:hover,
.btn-dark:hover,
.btn-clear:hover,
.btn-enter:hover,
.toggle-keypad-btn:hover {
.btn-enter:hover {
filter: brightness(1.08);
}
}
@@ -281,9 +342,6 @@ body {
/* veliki ekrani */
@media (min-width: 901px) {
.toggle-keypad-btn {
display: inline-block;
}
.keypad {
width: fit-content;