From e2afca803df2de87fd242d6462938e7a29716a17 Mon Sep 17 00:00:00 2001 From: sarven Date: Fri, 23 Jan 2009 04:54:54 +0000 Subject: [PATCH 1/4] Cleanup --- theme/base/css/display.css | 237 +++++---------------------------- theme/identica/css/display.css | 36 ++--- 2 files changed, 47 insertions(+), 226 deletions(-) diff --git a/theme/base/css/display.css b/theme/base/css/display.css index dd0b332f59..d5532a5c9b 100644 --- a/theme/base/css/display.css +++ b/theme/base/css/display.css @@ -1,4 +1,12 @@ -/* theme: base */ +/** theme: base + * + * @package Laconica + * @author Sarven Capadisli + * @copyright 2009 Control Yourself, Inc. + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 + * @link http://laconi.ca/ + */ + * { margin:0; padding:0; } img { display:block; border:0; } a abbr { cursor: pointer; border-bottom:0; } @@ -13,7 +21,6 @@ font-size:1em; line-height:1.65; position:relative; margin:0 auto; -width:1004px; width:71.714em; } h1,h2,h3,h4,h5,h6 { @@ -34,7 +41,6 @@ h6 { font-size:0.9em; } caption { font-weight:bold; } - legend { font-weight:bold; font-size:1.3em; @@ -59,8 +65,6 @@ font-weight:bold; textarea { overflow:auto; } -select { -} option { padding-bottom:0; } @@ -74,7 +78,6 @@ margin:0 0 18px 0; } form label { font-weight:bold; -/*margin:0 0 11px 0;*/ } input.checkbox { position:relative; @@ -104,16 +107,10 @@ margin-bottom:29px; .form_settings input.remove { margin-left:11px; } - -.form_guide { -font-style:italic; -} - .form_settings .form_data li { width:100%; float:left; } - .form_settings .form_data label { float:left; } @@ -123,7 +120,6 @@ float:left; margin-left:11px; float:left; } - .form_settings label { margin-top:2px; width:152px; @@ -132,6 +128,9 @@ width:152px; .form_actions label { display:none; } +.form_guide { +font-style:italic; +} .form_settings #settings_autosubscribe label { display:inline; @@ -185,7 +184,6 @@ padding:0 7px; } - address { float:left; margin-bottom:18px; @@ -291,12 +289,7 @@ width:100%; #site_nav_global_secondary dt { display:none; } -/* -#site_nav_global_primary .current a { -font-weight:bold; -border-style:solid; -} -*/ + #site_nav_global_secondary { margin-bottom:11px; } @@ -350,10 +343,9 @@ margin-right:4px; } #wrap { - float:left; - margin:0 auto; - width:1004px; - width:71.714em; +float:left; +margin:0 auto; +width:71.714em; } #core { @@ -489,9 +481,9 @@ margin-top:11px; #notice_to select { float:left; } - /*end FORM NOTICE*/ + /* entity_profile */ .entity_profile { position:relative; @@ -559,9 +551,9 @@ display:none; .entity_profile h2 { display:none; } - /* entity_profile */ + /*entity_actions*/ .entity_actions { float:right; @@ -642,11 +634,6 @@ display:inline; content: ":"; } -#user_subscriptions, -#user_subscribers, -#user_groups, { - -} .section ul.entities { width:220px; float:left; @@ -721,9 +708,6 @@ margin-right:11px; } - - - /* NOTICE */ .notice, .profile { @@ -735,11 +719,9 @@ float:left; width:100%; border-top-width:1px; border-top-style:dashed; -/*-moz-border-radius:7px;*/ } .notices li { list-style-type:none; -/*margin-bottom:11px;*/ } .notices li.hover { border-radius:4px; @@ -767,11 +749,6 @@ padding-left:28px; .notice .author { margin-right:11px; } -.notice .author a { -} -.notice .author:after { -/*content:":";*/ -} .notice .author .fn { font-weight:bold; @@ -795,29 +772,20 @@ text-decoration:underline; } .vcard .fn { font-style:italic; -} -.vcard .fn:hover { - } .notice .entry-title { float:left; width:100%; } +#shownotice .notice .entry-title { +font-size:2.2em; +} + .notice p.entry-content { display:inline; } -.notice_video p.entry-content, -.notice_audio p.entry-content, -.notice_image p.entry-content, -.notice_location p.entry-content, -.notice_event p.entry-content, -.notice_document p.entry-content { -} -#laconicat .notice p.entry-content { -/*margin-left:199px;*/ -} #content .notice p.entry-content a:visited { border-radius:4px; -moz-border-radius:4px; @@ -932,10 +900,6 @@ text-decoration:none; padding-left:16px; } -.notice-options .notice_delete { - -} - .notice-options form input.submit { cursor:pointer; width:16px; @@ -953,9 +917,19 @@ display:none; border:0; padding:0; } - /*END: NOTICES */ + + +#groups p { +margin-bottom:18px; +} +#groups #new_group a { +padding-left:20px; +} + + + .pagination dt { font-weight:bold; display:none; @@ -995,10 +969,9 @@ border-left:0; padding-right:20px; border-right:0; } - /* END: NOTICE */ -/*If there is hentry on #content_inner, then this doesn't need to be specific to #doc or any other section */ + .hentry .entry-content p { margin-bottom:18px; } @@ -1013,67 +986,10 @@ margin-bottom:18px; margin-left:18px; } -/*START: LOAD ALONG WITH JS*/ -.notice .in-reply-to { - width:98%; - margin-left:2%; -} -.notice .in-reply-to li { -background-color:#F7F9FB; -} -.notice .in-reply-to li .in-reply-to li { -background-color:#E4E9F0; -} -.notice .in-reply-to li .in-reply-to li .in-reply-to li { -background-color:#D1D9E4; -} -.entity_actions #user_subscribe .form_note, -.entity_actions #user_subscribe .form_data, -.entity_actions #user_subscribe .form_actions label { -display:none; -} -#form_user-relationship .form_note, -#form_user-relationship .form_data, -#form_user-relationship .form_actions label { -display:block; -} -.entity_actions #user-relationship_submit { -margin-bottom:0; -} -#form_user-relationship .form_data li label { -margin-right:11px; -} - -#user_relationship_xfn { -/*z-index:1000; -position:absolute; -width:521px; -height:322px;*/ -display:none; -} -#user_relationship_xfn fieldset { -background-color:#fff; -} - -/*END: LOAD ALONG WITH JS*/ /* TOP_POSTERS */ -#top_posters caption { -text-align:left; -text-transform:uppercase; -} -#top_posters thead { -display:none; -} -#top_poster_user { -width:199px; -} -#top_poster_number-of-notices { -width:123px; -} - .section tbody td { padding-right:11px; padding-bottom:11px; @@ -1086,7 +1002,6 @@ margin-bottom:0; .section .notice { padding-top:11px; padding-bottom:11px; - } .section .notice:first-child { @@ -1095,19 +1010,14 @@ border-top:0; } - - - /* tagcloud */ .tag-cloud { list-style-type:none; text-align:center; } - .aside .tag-cloud { font-size:0.8em; } - .tag-cloud li { display:inline; margin-right:7px; @@ -1181,82 +1091,3 @@ clear:both; #form_settings_avatar .form_actions { margin-bottom:0; } - -#groups_related ul, -#users_featured ul { -list-style-type:none; -} -#groups_related li, -#users_featured li { -margin-top:11px; -float:left; -width:100%; -} -#groups_related li:first-child, -#users_featured li:first-child { -margin-top:0; -} - -#groups_related .vcard, -#users_featured .vcard { -float:left; -margin-bottom:-23px; -} - -#groups_related dl, -#users_featured dl { -float:left; -margin-left:63px; -clear:left; -} -#groups_related dt, -#users_featured dt { -display:none; -font-weight:bold; -} - -#home.logged_out h1 { -display:none; -} - -#home #intro { -margin-bottom:29px; -float:left; -width:100%; -} - -#home #intro p { -margin-bottom:18px; -font-size:1.8em; -} - -#home #intro #guide_steps { -list-style-type:none; -} -#home #intro #guide_steps li { -float:left; -margin-left:18px; -} -#home #intro #guide_steps li:first-child { -margin-left:0; -} -#home #intro #guide_steps li a { -display:block; -float:left; -width:185px; -height:109px; -border-width:1px; -border-style:dotted; -text-decoration:none; -border-radius:7px; --moz-border-radius:7px; --webkit-border-radius:7px; -padding:7px; -font-size:1.6em; -font-weight:bold; -text-align:center; -} - -#testimonials { -clear:both; -} diff --git a/theme/identica/css/display.css b/theme/identica/css/display.css index f41a325087..17e2aee9ef 100644 --- a/theme/identica/css/display.css +++ b/theme/identica/css/display.css @@ -1,4 +1,12 @@ -/* theme: identica */ +/** theme: identica + * + * @package Laconica + * @author Sarven Capadisli + * @copyright 2009 Control Yourself, Inc. + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 + * @link http://laconi.ca/ + */ + html, body, a:active { @@ -151,12 +159,6 @@ background-image:url(../../base/images/icons/icon_vcard.gif); } -/*user_actions*/ -#user_actions li { -/*border-top-color:#eee;*/ -} - - #entity_send-a-message a, .form_user_nudge input.submit, .form_user_block input.submit, @@ -259,6 +261,10 @@ background-color:#fcfcfc; /*END: NOTICES */ +#groups #new_group a { +background:transparent url(../images/icons/twotone/green/news.gif) no-repeat 0 45%; +} + .pagination .nav_prev a, .pagination .nav_next a { @@ -272,19 +278,3 @@ background-position:0 45%; background-image:url(../images/icons/twotone/green/arrow-right.gif); background-position:100% 45%; } - - - -#home #intro #guide_steps li a { -border-color:#ccc; -color:#fff; -} -#home #intro #step_join-now a { -background-color:#f00; -} -#home #intro #step_start-a-group a { -background-color:#0f0; -} -#home #intro #step_create-a-community a { -background-color:#00f; -} From c628bbb1928308fe1e20f00eccfdc2a1b2c9105e Mon Sep 17 00:00:00 2001 From: Robin Millette Date: Fri, 23 Jan 2009 05:11:04 +0000 Subject: [PATCH 2/4] make avatar bigger on single notice pages --- actions/shownotice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/shownotice.php b/actions/shownotice.php index beae478ba8..d5f35cd84b 100644 --- a/actions/shownotice.php +++ b/actions/shownotice.php @@ -95,7 +95,7 @@ class ShownoticeAction extends Action return false; } - $this->avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE); + $this->avatar = $this->profile->getAvatar(AVATAR_PROFILE_SIZE); return true; } From 500ed2f5eb752a1a1e82d83c8c8b1c58897789b8 Mon Sep 17 00:00:00 2001 From: sarven Date: Fri, 23 Jan 2009 05:23:28 +0000 Subject: [PATCH 3/4] Cleanup --- actions/remotesubscribe.php | 16 ++++++++++++++-- actions/showstream.php | 2 +- theme/base/css/display.css | 16 ++++++++++++++-- theme/identica/css/display.css | 13 +++++++------ 4 files changed, 36 insertions(+), 11 deletions(-) diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php index 3c8346fbed..f727a63b82 100644 --- a/actions/remotesubscribe.php +++ b/actions/remotesubscribe.php @@ -92,14 +92,26 @@ class RemotesubscribeAction extends Action { # id = remotesubscribe conflicts with the # button on profile page - $this->elementStart('form', array('id' => 'remsub', 'method' => 'post', - 'action' => common_local_url('remotesubscribe'))); + $this->elementStart('form', array('id' => 'form_remote_subscribe', + 'method' => 'post', + 'class' => 'form_settings', + 'action' => common_local_url('remotesubscribe'))); + $this->elementStart('fieldset'); + $this->element('legend', 'Subscribe to a remote user'); $this->hidden('token', common_session_token()); + + $this->elementStart('ul', 'form_data'); + $this->elementStart('li'); $this->input('nickname', _('User nickname'), $this->nickname, _('Nickname of the user you want to follow')); + $this->elementEnd('li'); + $this->elementStart('li'); $this->input('profile_url', _('Profile URL'), $this->profile_url, _('URL of your profile on another compatible microblogging service')); + $this->elementEnd('li'); + $this->elementEnd('ul'); $this->submit('submit', _('Subscribe')); + $this->elementEnd('fieldset'); $this->elementEnd('form'); } diff --git a/actions/showstream.php b/actions/showstream.php index 157ccdd0c0..2fd56ad2ea 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -367,7 +367,7 @@ class ShowstreamAction extends Action $url = common_local_url('remotesubscribe', array('nickname' => $this->profile->nickname)); $this->element('a', array('href' => $url, - 'id' => 'entity_subscribe_remote'), + 'class' => 'entity_remote_subscribe'), _('Subscribe')); } diff --git a/theme/base/css/display.css b/theme/base/css/display.css index d5532a5c9b..b4f3ffd54a 100644 --- a/theme/base/css/display.css +++ b/theme/base/css/display.css @@ -144,7 +144,8 @@ font-weight:bold; #form_settings_avatar legend, #newgroup legend, #editgroup legend, -#form_tag_user legend { +#form_tag_user legend, +#form_remote_subscribe legend { display:none; } @@ -586,7 +587,8 @@ cursor:pointer; width:100%; } .entity_actions a, -#entity_nudge p { +#entity_nudge p, +.entity_remote_subscribe { text-decoration:none; font-weight:bold; display:block; @@ -606,6 +608,16 @@ padding-left:20px; padding:4px 4px 4px 23px; } +.entity_remote_subscribe { +padding:4px; +border-width:2px; +border-style:solid; +border-radius:4px; +-moz-border-radius:4px; +-webkit-border-radius:4px; +} + + .entity_tags ul { list-style-type:none; } diff --git a/theme/identica/css/display.css b/theme/identica/css/display.css index 17e2aee9ef..f61d063b69 100644 --- a/theme/identica/css/display.css +++ b/theme/identica/css/display.css @@ -26,7 +26,8 @@ display:none; input, textarea, select, option { font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; } -input, textarea, select { +input, textarea, select, +.entity_remote_subscribe { border-color:#aaa; } @@ -34,7 +35,8 @@ border-color:#aaa; input.submit, #form_notice.warning #notice_text-count, #nav_register a, -.form_settings .form_note { +.form_settings .form_note, +.entity_remote_subscribe { background-color:#A9BF4F; } @@ -43,7 +45,8 @@ input:focus, textarea:focus, select:focus, border-color:#A9BF4F; } input.submit, -#nav_register a { +#nav_register a, +.entity_remote_subscribe { color:#fff; } @@ -74,9 +77,7 @@ background-color:#fcfcfc; background-color:#fcfffc; } -#aside_primary, -#entity_subscribe a, -#TB_window input.submit { +#aside_primary { background-color:#CEE1E9; } From 240231a8bd7f6b0753070c630ff6b9169e28afe0 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Fri, 23 Jan 2009 05:37:21 +0000 Subject: [PATCH 4/4] trac750 linked in stylesheets for login and permissions prompt screens --- actions/facebookhome.php | 5 +++++ lib/facebookaction.php | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/actions/facebookhome.php b/actions/facebookhome.php index ea56ec0710..b05e51b911 100644 --- a/actions/facebookhome.php +++ b/actions/facebookhome.php @@ -91,6 +91,9 @@ class FacebookhomeAction extends FacebookAction function login() { + + $this->showStylesheets(); + $nickname = common_canonical_nickname($this->trimmed('nickname')); $password = $this->arg('password'); @@ -185,6 +188,8 @@ class FacebookhomeAction extends FacebookAction function getUpdatePermission() { + $this->showStylesheets(); + $this->elementStart('div', array('class' => 'content')); $instructions = sprintf(_('If you would like the %s app to automatically update ' . diff --git a/lib/facebookaction.php b/lib/facebookaction.php index 528b581541..a20e618d3a 100644 --- a/lib/facebookaction.php +++ b/lib/facebookaction.php @@ -73,9 +73,7 @@ class FacebookAction extends Action function prepare($argarray) { parent::prepare($argarray); - - common_debug("Facebookaction::prepare"); - + $this->facebook = getFacebook(); $this->fbuid = $this->facebook->require_login(); @@ -261,7 +259,6 @@ class FacebookAction extends Action function showInstructions() { - global $xw; $this->elementStart('dl', array('class' => 'system_notice')); $this->element('dt', null, 'Page Notice');