diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-09-06 22:24:31 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-09-06 22:24:31 +0200 |
commit | b8a261c82933ab6d3c23677f39af2a4300afc8b2 (patch) | |
tree | 4a64f517440fd6997023030bc6e254424fe4fe2b | |
parent | b911c9cc473b680aa51dbca391ba145661efa0bd (diff) | |
parent | 2a666df50044819e7465224a28ea9d81ca4a5d48 (diff) |
Merge branch 'da' into master-damaster-da
-rw-r--r-- | ikiwiki/pagespec/attachment.mdwn | 2 | ||||
-rw-r--r-- | shortcuts.mdwn | 4 | ||||
-rw-r--r-- | style.css | 67 | ||||
-rw-r--r-- | templates.mdwn | 4 | ||||
-rw-r--r-- | templates/note.mdwn | 5 | ||||
-rw-r--r-- | templates/popup.mdwn | 5 | ||||
-rw-r--r-- | wikiicons/email.png | bin | 0 -> 550 bytes | |||
-rw-r--r-- | wikiicons/revert.png | bin | 397 -> 397 bytes |
8 files changed, 68 insertions, 19 deletions
diff --git a/ikiwiki/pagespec/attachment.mdwn b/ikiwiki/pagespec/attachment.mdwn index 302732f..f5724ef 100644 --- a/ikiwiki/pagespec/attachment.mdwn +++ b/ikiwiki/pagespec/attachment.mdwn @@ -12,7 +12,7 @@ billeder op, og intet andet, mens større mp3-filer må lægges op af joey til en bestemt mappe, og alle vedhæftninger checkes for vira, kunne noget i stil med dette bruges: - virusfree() and ((user(joey) and podcast/*.mp3 and mimetype(audio/mpeg) and maxsize(15mb)) or (mimetype(image/*) and maxsize(50kb))) + virusfree() and ((user(joey) and podcast/*.mp3 and mimetype(audio/mpeg) and maxsize(15mb)) or ((mimetype(image/jpeg) or mimetype(image/png)) and maxsize(50kb))) Den normale [[ikiwiki/PageSpec]]-syntaks er udvidet med følgende yderligere tests: diff --git a/shortcuts.mdwn b/shortcuts.mdwn index 166b3eb..b0e9a9f 100644 --- a/shortcuts.mdwn +++ b/shortcuts.mdwn @@ -28,6 +28,8 @@ Denne side styrer hvilke genveje wikien understøtter. * [[!shortcut name=debss url="http://snapshot.debian.org/package/%s/"]] * Brug: `\[[!debss package]]` eller `\[[!debss package/version]]`. Se <http://snapshot.debian.org/> for detaljer. * [[!shortcut name=debwiki url="https://wiki.debian.org/%S"]] +* [[!shortcut name=debcve url="https://security-tracker.debian.org/tracker/%S"]] + * understøtter også Debian fejlnumre, pakker og hvad [sikkerhedssporingen](https://security-tracker.debian.org/tracker/) ellers understøtter. * [[!shortcut name=fdobug url="https://bugs.freedesktop.org/show_bug.cgi?id=%s" desc="freedesktop.org fejl #%s"]] * [[!shortcut name=fdolist url="http://lists.freedesktop.org/mailman/listinfo/%s" desc="%s@lists.freedesktop.org"]] * [[!shortcut name=gnomebug url="https://bugzilla.gnome.org/show_bug.cgi?id=%s" desc="GNOME fejl #%s"]] @@ -44,7 +46,7 @@ Denne side styrer hvilke genveje wikien understøtter. * [[!shortcut name=iki url="http://ikiwiki.info/%S/"]] * [[!shortcut name=ljuser url="http://%s.livejournal.com/"]] * [[!shortcut name=rfc url="https://www.ietf.org/rfc/rfc%s.txt" desc="RFC %s"]] -* [[!shortcut name=c2 url="http://c2.com/cgi/wiki?%s"]] +* [[!shortcut name=c2 url="http://wiki.c2.com/?%s"]] * [[!shortcut name=meatballwiki url="http://www.usemod.com/cgi-bin/mb.pl?%s"]] * [[!shortcut name=emacswiki url="http://www.emacswiki.org/cgi-bin/wiki/%s"]] * [[!shortcut name=haskellwiki url="http://haskell.org/haskellwiki/%s"]] @@ -10,7 +10,7 @@ footer,header,hgroup,menu,nav,section { display: block; } -.header { +div.header, header.header { margin: 0; font-size: 140%; font-weight: bold; @@ -465,40 +465,40 @@ li.L8 { list-style: upper-alpha; } display: none; } -/* openid selector */ -#openid_choice { +/* login selector */ +#login_choice { display: none; } -#openid_input_area { +#login_input_area { clear: both; padding: 10px; } -#openid_btns, #openid_btns br { +#login_btns, #login_btns br { clear: both; } -#openid_highlight { +#login_highlight { background-color: black; float: left; } -.openid_large_btn { +.login_large_btn { padding: 1em 1.5em; border: 1px solid #DDD; margin: 3px; float: left; } -.openid_small_btn { +.login_small_btn { padding: 4px 4px; border: 1px solid #DDD; margin: 3px; float: left; } -a.openid_large_btn:focus { +a.login_large_btn:focus { outline: none; } -a.openid_large_btn:focus { +a.login_large_btn:focus { outline-style: none; } -.openid_selected { +.login_selected { border: 4px solid #DDD; } @@ -548,3 +548,48 @@ a.openid_large_btn:focus { .trailsep { display: none; } + +/* mobile/small-screen-friendly layout */ +@media (max-width: 600px) { + .sidebar { + width: auto; + float: none; + margin-top: 0; + border: none; + } + + /* if the mobile browser is new enough, use flex layout to shuffle + * the sidebar to the end */ + .page { + display: -webkit-box; + display: -webkit-flexbox; + display: -webkit-flex; + display: -moz-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-flex-direction: tb; + -webkit-flex-direction: column; + -webkit-flex-flow: column; + -ms-flex-direction: column; + flex-direction: column; + } + #pageheader { + -webkit-box-ordinal-group: -1; + -webkit-order: -1; + -ms-box-ordinal-group: -1; + -ms-flex-order: -1; + order: -1; + } + .sidebar, #footer { + -webkit-box-ordinal-group: 1; + -webkit-order: 1; + -ms-box-ordinal-group: 1; + -ms-flex-order: 1; + order: 1; + } + + .blogform, #blogform { + padding: 4px 4px; + } +} diff --git a/templates.mdwn b/templates.mdwn index 3aa1ba6..9d3cf80 100644 --- a/templates.mdwn +++ b/templates.mdwn @@ -94,8 +94,8 @@ Her er en komplet oversigt over anvendte skabelonfiler: * `editpage.tmpl`, `editconflict.tmpl`, `editcreationconflict.tmpl`, `editfailedsave.tmpl`, `editpagegone.tmpl`, `pocreatepage.tmpl`, `editcomment.tmpl` `commentmoderation.tmpl`, `renamesummary.tmpl`, - `passwordmail.tmpl`, `openid-selector.tmpl`, `revert.tmpl` - Dele af ikiwiki's - brugerflade; kræver normalt ingen tilretning. + `passwordmail.tmpl`, `emailauth.tmpl`, `login-selector.tmpl`, + `revert.tmpl` - Dele af ikiwiki's brugerflade; kræver normalt ingen tilretning. [[!meta robots="noindex, follow"]] diff --git a/templates/note.mdwn b/templates/note.mdwn index 3a6e9bd..7ba26cb 100644 --- a/templates/note.mdwn +++ b/templates/note.mdwn @@ -1,11 +1,12 @@ +[[!templatebody <<ENDBODY <div class="notebox"> <TMPL_VAR text> </div> -<TMPL_UNLESS text> +ENDBODY]] + Brug denne skabelon til at indsætte en note på en side. Noten vil blive udsmykket til at flyde til højre for den øvrige tekst på siden. Denne skabelon har eet parameter: <ul> <li>`text` - den tekst som vises i noten </ul> -</TMPL_UNLESS> diff --git a/templates/popup.mdwn b/templates/popup.mdwn index e1f30e0..271868a 100644 --- a/templates/popup.mdwn +++ b/templates/popup.mdwn @@ -1,4 +1,3 @@ -<TMPL_UNLESS mouseover> Brug denne skabelon til at lave et popup-vindue som vises når musemarkøren er henover en del af siden. Denne skabelon har to parametre: <ul> @@ -9,7 +8,9 @@ hensyn til brugervenligheden. </ul> Bemærk at browsere som ikke understøtter CSS-koden vil vise popup'en indlejret på siden, med lodrette klammer omkring. -</TMPL_UNLESS> + +[[templatebody <<ENDBODY <span class="popup"><TMPL_VAR mouseover> <span class="paren">[</span><span class="balloon"><TMPL_VAR popup></span><span class="paren">]</span> </span> +ENDBODY]] diff --git a/wikiicons/email.png b/wikiicons/email.png Binary files differnew file mode 100644 index 0000000..3cf8caf --- /dev/null +++ b/wikiicons/email.png diff --git a/wikiicons/revert.png b/wikiicons/revert.png Binary files differindex c39e65c..403c4dd 100644 --- a/wikiicons/revert.png +++ b/wikiicons/revert.png |