Web

Media queries & breakpoints

Në shqip: Media queries dhe pikat e ndërprerjes

ShpjegimiSQ

@media (min-width: 768px) { ... } zbaton stile vetëm kur ekrani është të paktën aq i gjerë. „Breakpoints“ janë gjerësitë ku ndryshon layout-i (p.sh. 640, 768, 1024 px). Mund të kontrollosh edhe temën e errët ose printimin.

EnglishEN

@media (min-width: 768px) { ... } applies styles only when the screen is at least that wide. “Breakpoints” are the widths where the layout changes (e.g. 640, 768, 1024 px). You can also detect dark mode or printing.

Si ta mendosh

Si rrobat që i ndërron sipas motit.

Lexoje në anglisht

Like clothes you change according to the weather.

Shembull kodicss

@media (prefers-color-scheme: dark) {
  body { background: #111; color: #eee; }
}

Terma të lidhur