From 65c6caa13c3dcaa55c08419af5e3b4b96057f0dd Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Mon, 17 Feb 2014 19:50:02 +0100 Subject: [PATCH] Freshened up sidebar --- public_html/media/css/core.css | 1 + public_html/media/css/post-view.css | 56 ++++++-- public_html/media/img/icons.png | Bin 766 -> 1150 bytes public_html/media/js/post-view.js | 4 +- src/Views/post-view.phtml | 216 ++++++++++++++-------------- src/Views/user-view.phtml | 16 +-- 6 files changed, 160 insertions(+), 133 deletions(-) diff --git a/public_html/media/css/core.css b/public_html/media/css/core.css index 434696f7..650874c4 100644 --- a/public_html/media/css/core.css +++ b/public_html/media/css/core.css @@ -156,6 +156,7 @@ footer a { } #sidebar h1 { margin-top: 0; + margin-bottom: 10px; } diff --git a/public_html/media/css/post-view.css b/public_html/media/css/post-view.css index c46c7f80..b449efe0 100644 --- a/public_html/media/css/post-view.css +++ b/public_html/media/css/post-view.css @@ -55,13 +55,24 @@ embed { background-color: silver; } -#sidebar .uploader img { - vertical-align: middle; - margin: 0 0.5em 0 0; - width: 16px; - height: 16px; - background-image: url('http://www.gravatar.com/avatar/0?f=y&d=mm&s=16'); +#sidebar .uploader .date { + font-size: 9pt !important; + color: gray; + display: inline-block; + position: relative; + top: -5px; } +#sidebar .uploader img { + vertical-align: text-top; + float: left; + margin: 3px 8px 0 0; + width: 25px; + height: 25px; + background-image: url('http://www.gravatar.com/avatar/0?f=y&d=mm&s=25'); +} + +#sidebar .unit.details { margin-bottom: 1.5em; } +#sidebar .unit.hl-options { margin-top: 1.5em; } #sidebar .safety-safe { color: #43aa43; @@ -80,17 +91,19 @@ embed { i.icon-prev { background-position: -12px -1px; + margin-left: 8px; } i.icon-next { background-position: -1px -1px; + margin-right: 8px; } i.icon-prev, i.icon-next { - margin: 0 8px; vertical-align: middle; width: 8px; height: 20px; } + i.icon-dl { margin: 0; width: 20px; @@ -98,14 +111,33 @@ i.icon-dl { background-position: -22px -1px; } -.permalink { - margin: 1em 0; +i.icon-edit { + margin: 0; + width: 20px; + height: 20px; + background-position: -43px -22px; } -.permalink .icon-dl { + +i.icon-fav { + margin: 0; + width: 20px; + height: 20px; +} +.add-fav i.icon-fav { + background-position: -1px -22px; +} +.rem-fav i.icon-fav { + background-position: -22px -22px; +} + +.hl-option { + margin: 0.4em 0; +} +.hl-option i[class^='icon'] { vertical-align: middle; - margin-right: 1em; } -.permalink span { +.hl-option span { + padding-left: 0.6em; vertical-align: middle; } .permalink .ext:after { diff --git a/public_html/media/img/icons.png b/public_html/media/img/icons.png index d59b2b1526add485fe30296d530530ec330de32b..77b0801514df67e1c3f96de94f2117deb4ec04ac 100644 GIT binary patch delta 1107 zcmV-Z1g!i11^x(-7YZu~1^@s6kR=^nks&941RzO7K~#9!>{`8U6G0F@N3P)>AQG3B z0{H=A$!Vd$g$p|Dh8B=Qoii;(a7lqK9Yrh|p1?sofK5SdBhuS%aO}cBCY$}4ojd=W zy`MCawLjzA{dRtK?rOO}R1wq!qCLfdrEe(Y2&9SHo2Y#l1#FzC0s8&Y@Ox0;zmF7u z31AQaDpQoh3cDOlut zDp9W3q>EK=(A-W`eO#5S?;k1mg*4!xsE4Hw7Ip@t&4v6#BrfYrYudC`ElB~`Ja?TI zl>h-Q9W@|QuInkxdGKF<3CRI9Rz23lC6hdJ#Hg%59LY8iqfE()E{TvtP1NUqtgq3f zd=l~mS*-~Vg?w;~=|lDwGpwm!(4si5@d6z%8)9&Q(%tn;Ssyox^RdJqLLONxN%s9B zWPRL}+LS`CE9>hzENWyT^PphG!8fkitmPh9-J!=Rz3@EMrt!TJJVvjCcqT3C3*{c= zYgJ{$HS&DJ;xcAj+C*idrFpJ@2I^0Zm){Luc;BM=A3ZO;K4fJK>qs>^;u5Sb)jZz< z^d~_0XxmCi5-)_DQU^0Ef?IGTgT^V^YF&YgB7mH&NRT%Hh$LxN4RSXrhen9m?o`hNx^LGqi7( zKP~Hp;GaTjcolE15>VR_m*P{Icpd$Hy%1N)N)Psoq!Yo5y!4(BinD>J z4U#kkE1H631=qJm^uS8U5KC@AnjBZf_0TYIfoPOqq8tcl{${f zy=7z>HzM@wV4E|6F=J1Eof2I%uB+)^04cXfg7&;}cQf^ZX&ILg`n8u<%baruQHiUZ zL?sEvEm zJo(YhH+D-Oofdr7kTl+j3x+8`GxT&_L0=i)hW=L!ohH}U)+G*qyWslNho5n*3M^!1 z*wdNC+EN(P@YI=`Vk{hh3?~k|NR&jz(2+S_S7esCW7yQ#N2e>@V7d1YU7>>E+_sG``jPYCwvReT^SVD0x$jk2>u0-7YY^#1^@s6D8UIWks&940-#AmK~#9!>{`8U+b|H80?(}ChaW%Q>Fl%uBs+o>kUUcCIog)M1LT;TACvRTq(|pMU6A89%<)CQy$>vZ z_D~3AoN|rF`@o#E<#;Z^KE12-m;j3qp*T0ic2($0u7GRg3eQQ~ZA^icl2he7oZ(y! z8+%rFu>fYs!-~ft>9?r-ky&g6dF&I%q@4)bV~V5|%Pg83TttOND5(HaLGMGTtz*Kr zg7!Pp5Q#o80-Y1VoUR&p#3ma#ZhO~%Bv$1uZF`xrP163-^H~pz~6XmguERn-PE~M-J4R`f18J-}s)t`tV>YEKas1j^@u4U!@iSZi1-aiwDwIS7shHyOkYv1IB1ZV4 zo4^U)GBv?aY*35|^SxEFNr`e>le(#Gp&mLUi>J24l{zM1OftF;B%@n9lCqJ>(7rov z8tVtae}&Zkr+B`OS62h{tq1mqfVBT}%WmMW00RIj=ImF45IAT60000context->transport->post->getUploader()))) + $editPostPrivileges[$privilege] = true; +} +$canEditAnything = count(array_filter($editPostPrivileges)) > 0; ?>