Files
Projekcija/web/static/styles.css

311 lines
5.3 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--vh: 100vh;
--container-min-h: 100vh;
--keypad-gap: 10px;
--panel-bg: #111111;
--body-bg: #000000;
--text-main: #ffffff;
--text-muted: #aaaaaa;
}
@supports (height: 100svh) {
:root {
--vh: 100svh;
--container-min-h: 100svh;
}
}
@supports (height: 100dvh) {
:root {
--vh: 100dvh;
}
}
body {
font-family: 'Times New Roman', serif;
background-color: #0a0a0a;
color: #ffffff;
min-height: var(--container-min-h);
overflow: auto;
}
.container {
display: flex;
flex-direction: column;
min-height: var(--vh);
height: var(--vh);
overflow: hidden;
background-color: var(--body-bg);
}
/* skrito vnosno polje - script.js ga še vedno uporablja */
#song-number {
display: none;
}
/* vrstica s stanjem */
.status-bar {
background-color: #111111;
border-bottom: 1px solid #222;
color: #dddddd;
padding: 8px 12px;
flex-shrink: 0;
min-height: 40px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.page-info {
color: #cccccc;
font-size: 20px;
line-height: 1.2;
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;
}
.toggle-keypad-btn:hover {
filter: brightness(1.08);
}
/* glavni prikaz besedila */
.content {
flex: 1;
display: flex;
align-items: flex-start;
justify-content: center;
padding: 20px 16px;
overflow-y: auto;
background-color: #000000;
-webkit-overflow-scrolling: touch;
}
.lyrics-display {
text-align: center;
font-size: 24px;
line-height: 1.45;
white-space: pre-wrap;
word-wrap: break-word;
max-width: 100%;
width: 100%;
padding-bottom: 20px;
color: #ffffff;
}
.status-message {
color: #aaa;
font-size: 20px;
}
/* ovijalec tipkovnice */
.keypad-wrapper {
flex-shrink: 0;
background-color: #111111;
border-top: 1px solid #222;
}
.keypad-wrapper.hidden {
display: none;
}
/* numerična tipkovnica */
.keypad {
background-color: #111111;
padding: 12px;
padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: var(--keypad-gap);
width: 100%;
}
/* osnovni videz gumbov */
.keypad button {
min-height: 58px;
border: none;
border-radius: 10px;
cursor: pointer;
font-family: Arial, sans-serif;
font-size: 28px;
font-weight: bold;
transition: transform 0.05s ease, filter 0.2s ease, opacity 0.2s ease, box-shadow 0.05s ease;
-webkit-tap-highlight-color: transparent;
box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.keypad button:active {
transform: scale(0.80);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.keypad button:disabled {
opacity: 0.45;
cursor: not-allowed;
}
/* številke */
.btn-key {
background-color: #f2f2f2;
color: #111111;
}
/* Zastri / Nazaj */
.btn-action {
background-color: #c28b24;
color: #ffffff;
font-size: 20px;
}
/* AAaa */
.btn-dark {
background-color: #8b4513;
color: #ffffff;
font-size: 20px;
}
.btn-dark.active {
outline: 2px solid #ffffff;
outline-offset: -2px;
}
/* C */
.btn-clear {
background-color: #555555;
color: #ffffff;
font-size: 20px;
}
/* Enter čez dve vrstici */
.btn-enter {
background-color: #1f8a46;
color: #ffffff;
grid-row: span 2;
font-size: 24px;
}
/* hover samo za naprave z miško */
@media (hover: hover) and (pointer: fine) {
.btn-key:hover {
filter: brightness(0.92);
}
.btn-action:hover,
.btn-dark:hover,
.btn-clear:hover,
.btn-enter:hover,
.toggle-keypad-btn:hover {
filter: brightness(1.08);
}
}
/* tablica / manjši laptop */
@media (max-width: 900px) {
.lyrics-display {
font-size: 22px;
}
.page-info {
font-size: 18px;
}
.keypad button {
min-height: 54px;
font-size: 24px;
}
}
/* telefon */
@media (max-width: 600px) {
.content {
padding: 14px 10px;
}
.lyrics-display {
font-size: 20px;
line-height: 1.4;
}
.status-message {
font-size: 18px;
}
.page-info {
font-size: 18px;
}
.keypad {
gap: 8px;
padding: 10px;
padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.keypad button {
min-height: 52px;
font-size: 22px;
border-radius: 9px;
}
}
/* zelo majhen telefon */
@media (max-width: 400px) {
.lyrics-display {
font-size: 18px;
}
.page-info {
font-size: 16px;
}
.keypad button {
min-height: 48px;
font-size: 20px;
}
}
/* veliki ekrani */
@media (min-width: 901px) {
.toggle-keypad-btn {
display: inline-block;
}
.keypad {
width: fit-content;
margin: 0 auto;
grid-template-columns: repeat(4, 120px);
gap: 10px;
}
.keypad button {
height: 80px;
min-height: 80px;
font-size: 22px;
}
.btn-action,
.btn-dark,
.btn-clear {
font-size: 18px;
}
.btn-enter {
font-size: 22px;
height: auto;
}
}