Merge grane feature/stagger-stranica: stagger kartica profila/podešavanja u main.css
This commit is contained in:
@@ -1003,6 +1003,16 @@ select {
|
|||||||
[class*="-kartice"] > .animiraj:nth-child(4) { animation-delay: 0.22s; }
|
[class*="-kartice"] > .animiraj:nth-child(4) { animation-delay: 0.22s; }
|
||||||
[class*="-kartice"] > .animiraj:nth-child(5) { animation-delay: 0.28s; }
|
[class*="-kartice"] > .animiraj:nth-child(5) { animation-delay: 0.28s; }
|
||||||
|
|
||||||
|
/* Stagger naslaganih .kartica.animiraj na stranicama podešavanja/profila — JEDNO mesto.
|
||||||
|
Descendant selektor (razmak, ne >): nth-child se računa po neposrednom roditelju kao i
|
||||||
|
ranije, a .stranica-stack na wrapperu sprečava da pravilo curi na liste/forme drugih
|
||||||
|
strana. Mora u main.css jer HTMX navigacija odbacuje <head>. Menjaš na JEDNOM mestu. */
|
||||||
|
.stranica-stack .animiraj:nth-child(1) { animation-delay: 0.10s; }
|
||||||
|
.stranica-stack .animiraj:nth-child(2) { animation-delay: 0.16s; }
|
||||||
|
.stranica-stack .animiraj:nth-child(3) { animation-delay: 0.22s; }
|
||||||
|
.stranica-stack .animiraj:nth-child(4) { animation-delay: 0.28s; }
|
||||||
|
.stranica-stack .animiraj:nth-child(5) { animation-delay: 0.34s; }
|
||||||
|
|
||||||
/* Bedž statusa servisnog naloga — JEDNO mesto za izgled i boje statusa (lista i detalji).
|
/* Bedž statusa servisnog naloga — JEDNO mesto za izgled i boje statusa (lista i detalji).
|
||||||
Mora biti u main.css: HTMX navigacija odbacuje <head>, pa page <style> ne bi važio. */
|
Mora biti u main.css: HTMX navigacija odbacuje <head>, pa page <style> ne bi važio. */
|
||||||
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap; }
|
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap; }
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
{{template "base" .}} {{define "naslov"}}Istorija prijava — NTech{{end}} {{define "dodatni-css"}}
|
{{template "base" .}} {{define "naslov"}}Istorija prijava — NTech{{end}} {{define "sadrzaj"}}
|
||||||
<style>
|
<div class="stranica-stack" style="display: flex; flex-direction: column; gap: 16px">
|
||||||
.animiraj:nth-child(1) { animation-delay: 0.1s; }
|
|
||||||
.animiraj:nth-child(2) { animation-delay: 0.16s; }
|
|
||||||
.animiraj:nth-child(3) { animation-delay: 0.22s; }
|
|
||||||
.animiraj:nth-child(4) { animation-delay: 0.28s; }
|
|
||||||
</style>
|
|
||||||
{{end}} {{define "sadrzaj"}}
|
|
||||||
<div style="display: flex; flex-direction: column; gap: 16px">
|
|
||||||
<div style="display: flex; align-items: center; gap: 12px; flex-wrap: wrap">
|
<div style="display: flex; align-items: center; gap: 12px; flex-wrap: wrap">
|
||||||
<a href="/admin/korisnici" class="btn-sekundarno">← Nazad</a>
|
<a href="/admin/korisnici" class="btn-sekundarno">← Nazad</a>
|
||||||
<span style="font-size: 15px; font-weight: 500; color: var(--tekst-glavni)">Istorija prijava — {{.PrikazKorisnik.KorisnickoIme}}</span>
|
<span style="font-size: 15px; font-weight: 500; color: var(--tekst-glavni)">Istorija prijava — {{.PrikazKorisnik.KorisnickoIme}}</span>
|
||||||
|
|||||||
@@ -1,15 +1,6 @@
|
|||||||
{{ template "base" . }} {{ define "naslov" }}Moj profil — NTech{{ end }}
|
{{ template "base" . }} {{ define "naslov" }}Moj profil — NTech{{ end }}
|
||||||
{{ define "dodatni-css" }}
|
|
||||||
<style>
|
|
||||||
.animiraj:nth-child(1) { animation-delay: 0.1s; }
|
|
||||||
.animiraj:nth-child(2) { animation-delay: 0.16s; }
|
|
||||||
.animiraj:nth-child(3) { animation-delay: 0.22s; }
|
|
||||||
.animiraj:nth-child(4) { animation-delay: 0.28s; }
|
|
||||||
.animiraj:nth-child(5) { animation-delay: 0.34s; }
|
|
||||||
</style>
|
|
||||||
{{ end }}
|
|
||||||
{{ define "sadrzaj" }}
|
{{ define "sadrzaj" }}
|
||||||
<div style="display: flex; flex-direction: column; gap: 16px; max-width: 560px">
|
<div class="stranica-stack" style="display: flex; flex-direction: column; gap: 16px; max-width: 560px">
|
||||||
<!-- promena lozinke -->
|
<!-- promena lozinke -->
|
||||||
<div class="kartica animiraj">
|
<div class="kartica animiraj">
|
||||||
<div style="font-size: 15px; font-weight: 500; color: var(--tekst-glavni); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 0.5px solid var(--ivica)">Promena lozinke</div>
|
<div style="font-size: 15px; font-weight: 500; color: var(--tekst-glavni); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 0.5px solid var(--ivica)">Promena lozinke</div>
|
||||||
|
|||||||
@@ -4,10 +4,6 @@
|
|||||||
|
|
||||||
{{define "dodatni-css"}}
|
{{define "dodatni-css"}}
|
||||||
<style>
|
<style>
|
||||||
.animiraj:nth-child(1) { animation-delay: 0.10s; }
|
|
||||||
.animiraj:nth-child(2) { animation-delay: 0.16s; }
|
|
||||||
.animiraj:nth-child(3) { animation-delay: 0.22s; }
|
|
||||||
.animiraj:nth-child(4) { animation-delay: 0.28s; }
|
|
||||||
.custom-file-label { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--pozadina); border: 0.5px solid var(--ivica); border-radius: 8px; font-size: 13px; color: var(--tekst-sporedni); cursor: pointer; transition: border-color 0.2s; min-width: 0; overflow: hidden; }
|
.custom-file-label { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--pozadina); border: 0.5px solid var(--ivica); border-radius: 8px; font-size: 13px; color: var(--tekst-sporedni); cursor: pointer; transition: border-color 0.2s; min-width: 0; overflow: hidden; }
|
||||||
.custom-file-label:hover { border-color: var(--sb-akcent); color: var(--tekst-glavni); }
|
.custom-file-label:hover { border-color: var(--sb-akcent); color: var(--tekst-glavni); }
|
||||||
.custom-file-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
.custom-file-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
@@ -15,7 +11,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "sadrzaj"}}
|
{{define "sadrzaj"}}
|
||||||
<div style="width:100%;max-width:100%;">
|
<div class="stranica-stack" style="width:100%;max-width:100%;">
|
||||||
|
|
||||||
{{if .Sacuvano}}
|
{{if .Sacuvano}}
|
||||||
<div class="poruka-uspeh">Podešavanja su uspešno sačuvana.</div>
|
<div class="poruka-uspeh">Podešavanja su uspešno sačuvana.</div>
|
||||||
|
|||||||
@@ -2,16 +2,8 @@
|
|||||||
|
|
||||||
{{define "naslov"}}Podešavanja — Izgled — NTech{{end}}
|
{{define "naslov"}}Podešavanja — Izgled — NTech{{end}}
|
||||||
|
|
||||||
{{define "dodatni-css"}}
|
|
||||||
<style>
|
|
||||||
.animiraj:nth-child(1) { animation-delay: 0.10s; }
|
|
||||||
.animiraj:nth-child(2) { animation-delay: 0.16s; }
|
|
||||||
.animiraj:nth-child(3) { animation-delay: 0.22s; }
|
|
||||||
</style>
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{define "sadrzaj"}}
|
{{define "sadrzaj"}}
|
||||||
<div style="width:100%;max-width:100%;">
|
<div class="stranica-stack" style="width:100%;max-width:100%;">
|
||||||
|
|
||||||
{{if .Sacuvano}}
|
{{if .Sacuvano}}
|
||||||
<div class="poruka-uspeh">Podešavanja su uspešno sačuvana.</div>
|
<div class="poruka-uspeh">Podešavanja su uspešno sačuvana.</div>
|
||||||
|
|||||||
@@ -2,15 +2,8 @@
|
|||||||
|
|
||||||
{{define "naslov"}}Podešavanja — Opšte — NTech{{end}}
|
{{define "naslov"}}Podešavanja — Opšte — NTech{{end}}
|
||||||
|
|
||||||
{{define "dodatni-css"}}
|
|
||||||
<style>
|
|
||||||
.animiraj:nth-child(1) { animation-delay: 0.10s; }
|
|
||||||
.animiraj:nth-child(2) { animation-delay: 0.16s; }
|
|
||||||
</style>
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{define "sadrzaj"}}
|
{{define "sadrzaj"}}
|
||||||
<div style="width:100%;max-width:100%;">
|
<div class="stranica-stack" style="width:100%;max-width:100%;">
|
||||||
|
|
||||||
{{if .Sacuvano}}
|
{{if .Sacuvano}}
|
||||||
<div class="poruka-uspeh">Podešavanja su uspešno sačuvana.</div>
|
<div class="poruka-uspeh">Podešavanja su uspešno sačuvana.</div>
|
||||||
|
|||||||
@@ -2,14 +2,8 @@
|
|||||||
|
|
||||||
{{define "naslov"}}Podešavanja — Sistem — NTech{{end}}
|
{{define "naslov"}}Podešavanja — Sistem — NTech{{end}}
|
||||||
|
|
||||||
{{define "dodatni-css"}}
|
|
||||||
<style>
|
|
||||||
.animiraj:nth-child(1) { animation-delay: 0.10s; }
|
|
||||||
</style>
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{define "sadrzaj"}}
|
{{define "sadrzaj"}}
|
||||||
<div style="width:100%;max-width:100%;">
|
<div class="stranica-stack" style="width:100%;max-width:100%;">
|
||||||
|
|
||||||
<!-- sistem kartica -->
|
<!-- sistem kartica -->
|
||||||
<div class="kartica animiraj" style="margin-bottom:16px;">
|
<div class="kartica animiraj" style="margin-bottom:16px;">
|
||||||
|
|||||||
@@ -2,16 +2,8 @@
|
|||||||
|
|
||||||
{{define "naslov"}}Moja tema — NTech{{end}}
|
{{define "naslov"}}Moja tema — NTech{{end}}
|
||||||
|
|
||||||
{{define "dodatni-css"}}
|
|
||||||
<style>
|
|
||||||
.animiraj:nth-child(1) { animation-delay: 0.10s; }
|
|
||||||
.animiraj:nth-child(2) { animation-delay: 0.16s; }
|
|
||||||
.animiraj:nth-child(3) { animation-delay: 0.22s; }
|
|
||||||
</style>
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{define "sadrzaj"}}
|
{{define "sadrzaj"}}
|
||||||
<div style="width:100%;max-width:100%;">
|
<div class="stranica-stack" style="width:100%;max-width:100%;">
|
||||||
|
|
||||||
<!-- kartica: moja tema -->
|
<!-- kartica: moja tema -->
|
||||||
<div class="kartica animiraj" x-data="profilTemaOdabir" data-tema="{{if .LokalnaTema}}{{.LokalnaTema}}{{else}}tamna{{end}}" style="margin-bottom:16px;">
|
<div class="kartica animiraj" x-data="profilTemaOdabir" data-tema="{{if .LokalnaTema}}{{.LokalnaTema}}{{else}}tamna{{end}}" style="margin-bottom:16px;">
|
||||||
|
|||||||
Reference in New Issue
Block a user