From 5bc6a8c614d371529972183fc75531cbeaa25585 Mon Sep 17 00:00:00 2001 From: Samantha Doherty Date: Tue, 5 Apr 2011 12:38:15 -0400 Subject: [PATCH] Style changes for privacy selectors and markers. --- lib/toselector.php | 4 +- theme/neo/README | 4 ++ theme/neo/css/display.css | 71 ++++++++++++++++++++++++++++++++- theme/neo/images/lock.png | Bin 0 -> 749 bytes theme/neo/images/lock_open.png | Bin 0 -> 727 bytes 5 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 theme/neo/images/lock.png create mode 100644 theme/neo/images/lock_open.png diff --git a/lib/toselector.php b/lib/toselector.php index 7234a603d8..bcbfe86ec9 100644 --- a/lib/toselector.php +++ b/lib/toselector.php @@ -118,10 +118,12 @@ class ToSelector extends Widget false, $default); + $this->out->elementStart('span', 'checkbox-wrapper'); $this->out->checkbox('notice_private', // TRANS: Checkbox label in widget for selecting potential addressees to mark the notice private. - _('Private'), + _('Private?'), $this->private); + $this->out->elementEnd('span'); } static function fillOptions($action, &$options) diff --git a/theme/neo/README b/theme/neo/README index 39d9e0f060..42e1b4763c 100644 --- a/theme/neo/README +++ b/theme/neo/README @@ -1,2 +1,6 @@ Default avatars are modified from an image by Francesco 'Architetto' Rollandin. http://www.openclipart.org/detail/34957 + +Icons by Mark James +http://www.famfamfam.com/lab/icons/silk/ +http://creativecommons.org/licenses/by/2.5/ Creative Commons Attribution 2.5 License diff --git a/theme/neo/css/display.css b/theme/neo/css/display.css index 5659ca3ae1..61258bfab6 100644 --- a/theme/neo/css/display.css +++ b/theme/neo/css/display.css @@ -286,7 +286,7 @@ address { padding-bottom: 15px; } -#input_form_status { +#input_form_status, #input_form_direct { padding-bottom: 45px; } @@ -333,6 +333,10 @@ address { font-size: 1.2em; } +#form_notice-direct.form_notice textarea { + width: 498px; +} + .form_notice label.notice_data-attach { top: 0px; right: 0px; @@ -355,6 +359,11 @@ address { z-index: 99; } +#form_notice-direct.form_notice .count { + top: 80px; + right: 10px; +} + .form_notice #notice_action-submit { position: absolute; top: 100%; @@ -397,6 +406,52 @@ address { margin-bottom: 10px !important; } +.to-selector { + padding-top: 15px; + z-index: 99; +} + +.form_settings label[for=notice_to] { + margin-left: 100px; + margin-right: 5px; +} + +.checkbox-wrapper { + padding: 2px; + clear: left; + display: block; + margin-left: 26%; +} + +.form_notice .checkbox-wrapper { + display: inline; + margin-left: 10px; +} + +.form_settings .checkbox-wrapper label.checkbox { + margin-left: 0px; + margin-top: 6px; + line-height: 1.2em; + left: -3px; +} + +.checkbox-wrapper #notice_private { + display:none; +} + +.checkbox-wrapper.unchecked label.checkbox { + padding-left: 20px; + background: url(../images/lock_open.png) no-repeat 0px 0px; + opacity: 0.6; +} + +.checkbox-wrapper.checked label.checkbox { + padding-left: 20px; + background: url(../images/lock.png) no-repeat 0px 0px; + color: red; + opacity: 1; +} + #aside_primary { width: 218px; float: left; @@ -1246,6 +1301,20 @@ table.profile_list tr.alt { filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FB6104', endColorstr='#fc8035',GradientType=0 ); } +/* Limited-scope specific styles */ + +.limited-scope .entry-content .timestamp { + padding-left: 20px; + position: relative; +} + +.limited-scope .entry-content .timestamp:before { + content: url(../images/lock.png); + position: absolute; + top: -2px; + left: 0px; +} + /* QnA specific styles */ #content .question .entry-title, #content .qna-full-question .entry-title { diff --git a/theme/neo/images/lock.png b/theme/neo/images/lock.png new file mode 100644 index 0000000000000000000000000000000000000000..2ebc4f6f9663e32cad77d67ef93ab8843dfea3c0 GIT binary patch literal 749 zcmVe|tv9>?g+k#9o0pTxd@;_sq{kwlU;^VvV*?BV8P@}BoaZTQUROpWV6|-M`|^n&)=+8tHo3*<<$NU zU`%V~ZF;?hBSYsjJ6%JzV}E(D{pOLqQklliUf9um_tGl-wty`y*p?eYNW56P>X@1s zZs7KrRZKtmV7Lqj^5Fgr7_`LjhdJK@ltF&O`j7?*NUM$KvmNGz)3WjM?V$vHlPT0AFyF?kLE<#HZabCSW3-oa*6;Z zrXD`Ulwd<^2glP%1Y1Kc1Ij%DU^=ME(jKf6APNlA$Uu;J4bVilQHSWX5uJ$9Zsp4M z0%!@LvyTxz=Z6stxlichODIY+yNGt%RM;m`>H4LOKLFs9Y%b5aUN|2|{0Zw|<_~i} fmXz*V19AKYarLKlJyH=-*k3W|aiVYC~e{STzB+=%NyKm^5w z3m4+bm8cXnzG}0Gw2c^Ol0K$0_ity0#@^}dhsl97GUJu9lkxh`Okt_0|=(|h`!tol*)tahk*i! zgS8GLCq{|Gd7N1T=a4u`0gM4BU}M^~w|L$b3WtyL{rO$Q?PPfL6z$J7;&2In&vryC zqT@6`g9u_Zg@Xt1vO7RIY-D-g8eo{1!oIz%ujUZ52IBq#JOI%e5ertc^kIf}?KOA? zx9*6-2qdQcN5WDRs@&WP6I?Nxm{No*quRTbIBKa{opLb zA%3`w)e+)sGB0CNfH