Commit e2b4ebe8 by Félicie

optimization

parent 04d321a3
...@@ -755,14 +755,14 @@ function qa_page_q_comment_view($question, $parent, $comment, $usershtml, $formr ...@@ -755,14 +755,14 @@ function qa_page_q_comment_view($question, $parent, $comment, $usershtml, $formr
); );
} }
if ($parent['commentbutton'] && qa_opt('show_c_reply_buttons') && $comment['type'] == 'C') { // if ($parent['commentbutton'] && qa_opt('show_c_reply_buttons') && $comment['type'] == 'C') {
$buttons['comment'] = array( // $buttons['comment'] = array(
'tags' => 'name="' . (($parent['basetype'] == 'Q') ? 'q' : ('a' . qa_html($parent['postid']))) . // 'tags' => 'name="' . (($parent['basetype'] == 'Q') ? 'q' : ('a' . qa_html($parent['postid']))) .
'_docomment" onclick="return qa_toggle_element(\'c' . qa_html($parent['postid']) . '\')"', // '_docomment" onclick="return qa_toggle_element(\'c' . qa_html($parent['postid']) . '\')"',
'label' => qa_lang_html('question/reply_button'), // 'label' => qa_lang_html('question/reply_button'),
'popup' => qa_lang_html('question/reply_c_popup'), // 'popup' => qa_lang_html('question/reply_c_popup'),
); // );
} // }
$c_view['form'] = array( $c_view['form'] = array(
'style' => 'light', 'style' => 'light',
......
...@@ -305,7 +305,7 @@ $lines[] = '<channel>'; ...@@ -305,7 +305,7 @@ $lines[] = '<channel>';
$lines[] = '<title>' . qa_xml($sitetitle . ' - ' . $title) . '</title>'; $lines[] = '<title>' . qa_xml($sitetitle . ' - ' . $title) . '</title>';
$lines[] = '<link>' . qa_xml(qa_path($linkrequest, $linkparams, $siteurl)) . '</link>'; $lines[] = '<link>' . qa_xml(qa_path($linkrequest, $linkparams, $siteurl)) . '</link>';
$lines[] = '<description>owered by Question2Answer</description>'; $lines[] = '<description>Powered by Question2Answer</description>';
foreach ($questions as $question) { foreach ($questions as $question) {
// Determine whether this is a question, answer or comment, and act accordingly // Determine whether this is a question, answer or comment, and act accordingly
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
'claim_a_popup' => 'Assigner cette réponse à votre compte utilisateur', 'claim_a_popup' => 'Assigner cette réponse à votre compte utilisateur',
'claim_c_popup' => 'Assigner ce commentaire à votre compte utilisateur', 'claim_c_popup' => 'Assigner ce commentaire à votre compte utilisateur',
'claim_q_popup' => 'Assigner cette question à votre compte utilisateur', 'claim_q_popup' => 'Assigner cette question à votre compte utilisateur',
'clear_flags_button' => 'Enlever signalements', 'clear_flags_button' => 'enlever les signalements',
'clear_flags_popup' => 'Supprimer les signalements de tous les utilisateurs', 'clear_flags_popup' => 'Supprimer les signalements de tous les utilisateurs',
'close_button' => 'fermer', 'close_button' => 'fermer',
'close_duplicate_error' => 'Le doublon de cette question n\'a pas pu être trouvé - essayez d\'entrer le numéro d\'une question avec une URL différente, par exemple 123.', 'close_duplicate_error' => 'Le doublon de cette question n\'a pas pu être trouvé - essayez d\'entrer le numéro d\'une question avec une URL différente, par exemple 123.',
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
'show_1_previous_comment' => 'Afficher 1 commentaire précédent', 'show_1_previous_comment' => 'Afficher 1 commentaire précédent',
'show_x_comments' => 'Afficher le ^ commentaire', 'show_x_comments' => 'Afficher le ^ commentaire',
'show_x_previous_comments' => 'Afficher les ^ commentaires précédents', 'show_x_previous_comments' => 'Afficher les ^ commentaires précédents',
'unflag_button' => 'Enlever le signalement', 'unflag_button' => 'enlever mon signalement',
'unflag_popup' => 'Supprimer le signalement que vous avez ajouté', 'unflag_popup' => 'Supprimer le signalement que vous avez ajouté',
'unselect_popup' => 'Supprimer la sélection', 'unselect_popup' => 'Supprimer la sélection',
'x_answers_title' => '^ Réponses', 'x_answers_title' => '^ Réponses',
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
body {margin:0; padding:0;} body {margin:0; padding:0;}
body,td,input,textarea {font-size:1.4rem; font-family:"Roboto","Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif; color: #333;} body,td,input,textarea {font-size:1.4rem; font-family:"Roboto","Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif; color: #333;}
a:link,a:active,a:visited {text-decoration:none;} a:link,a:active,a:visited {text-decoration:none;}
a:hover {text-decoration:underline;} a:hover {text-decoration:none;}
p {margin-top:0;} p {margin-top:0;}
.qa-notice {background:#fdd; border-bottom:2px solid #00A473; color:#b00; font-size:18px; padding:.5em 32px; font-weight:bold; position:relative;} .qa-notice {background:#fdd; border-bottom:2px solid #00A473; color:#b00; font-size:18px; padding:.5em 32px; font-weight:bold; position:relative;}
...@@ -134,16 +134,19 @@ h2 {font-size:16px; padding-top:12px; clear:both;} ...@@ -134,16 +134,19 @@ h2 {font-size:16px; padding-top:12px; clear:both;}
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
text-decoration:none; text-decoration:none;
float: left;
display: block; display: block;
list-style:none; list-style:none;
margin:0; margin:0;
padding: 0; padding: 0;
} }
.qa-nav-main-item {float:left;} .qa-nav-main-item a {float:left; color:#333; }
.qa-nav-main-link {color:#333; display:block; padding:1rem 0.5rem; background:#fff;} .qa-nav-main-ask a {
color:#00a473 !important;
}
.qa-nav-main-link {background:#fff; padding:1rem 0.5rem;}
.qa-nav-main-link:hover {background:#E6e9ed; text-decoration:none;} .qa-nav-main-link:hover {background:#E6e9ed; text-decoration:none;}
.qa-nav-main-selected {color:#fff; background:#00a473; text-decoration:none; pointer-events: none;} .qa-nav-main-selected {color:#fff; background:#00a473; text-decoration:none; pointer-events: none;}
.qa-nav-main-hot .qa-nav-main-link {background:#f33;} .qa-nav-main-hot .qa-nav-main-link {background:#f33;}
.qa-nav-main-hot .qa-nav-main-link:hover, .qa-nav-main-hot .qa-nav-main-selected {background:#f66;} .qa-nav-main-hot .qa-nav-main-link:hover, .qa-nav-main-hot .qa-nav-main-selected {background:#f66;}
...@@ -213,6 +216,9 @@ h2 {font-size:16px; padding-top:12px; clear:both;} ...@@ -213,6 +216,9 @@ h2 {font-size:16px; padding-top:12px; clear:both;}
padding:8px; padding:8px;
text-align:center; text-align:center;
} }
.qa-form-tall-text {
font-size: 1rem;
}
.qa-form-tall-buttons input { .qa-form-tall-buttons input {
color:#fff; color:#fff;
...@@ -444,9 +450,9 @@ h2 {font-size:16px; padding-top:12px; clear:both;} ...@@ -444,9 +450,9 @@ h2 {font-size:16px; padding-top:12px; clear:both;}
.qa-a-list-item-hidden .qa-a-item-who-title {color:#999;} .qa-a-list-item-hidden .qa-a-item-who-title {color:#999;}
.qa-a-list-item-hidden .qa-user-link {color:#999;} .qa-a-list-item-hidden .qa-user-link {color:#999;}
.qa-a-item-main {float:left; width:600px; display:inline-block;} /* inline-block for IE */ .qa-a-item-main {float:left; width:55vw; display:inline-block;} /* inline-block for IE */
.qa-a-item-selected {background-color:#d7e3e1; border:1px dashed #486a63; padding:10px; overflow:hidden; zoom:1;} /* zoom for IE */ .qa-a-item-selected {background-color:#d7e3e1; border:1px dashed #486a63; padding:10px; overflow:hidden; zoom:1;} /* zoom for IE */
.qa-a-item-content {font-size:14px; margin-bottom:12px;} .qa-a-item-content {font-size:1rem; margin-bottom:12px;}
.qa-a-item-avatar {display:inline-block; vertical-align:middle; margin-right:8px;} .qa-a-item-avatar {display:inline-block; vertical-align:middle; margin-right:8px;}
.qa-a-item-meta {display:inline-block; vertical-align:middle; font-size:13px;} .qa-a-item-meta {display:inline-block; vertical-align:middle; font-size:13px;}
.qa-a-item-when-data {font-weight:bold;} .qa-a-item-when-data {font-weight:bold;}
...@@ -460,6 +466,14 @@ h2 {font-size:16px; padding-top:12px; clear:both;} ...@@ -460,6 +466,14 @@ h2 {font-size:16px; padding-top:12px; clear:both;}
padding-left: 5rem; padding-left: 5rem;
} }
.qa-form-light-button-answer {
color:#00a473 !important;
}
.qa-form-light-button-comment {
color:#00a473 !important;
}
/* Answer selection */ /* Answer selection */
.qa-a-selection {float:right; width:48px; text-align:center; padding:6px 0;} .qa-a-selection {float:right; width:48px; text-align:center; padding:6px 0;}
...@@ -489,7 +503,13 @@ h2 {font-size:16px; padding-top:12px; clear:both;} ...@@ -489,7 +503,13 @@ h2 {font-size:16px; padding-top:12px; clear:both;}
.qa-c-item-link {display:block; margin-bottom:6px;} .qa-c-item-link {display:block; margin-bottom:6px;}
.qa-c-item-expand {display:block; color:#666; font-style:italic; margin:4px 0;} .qa-c-item-expand {display:block; color:#666; font-style:italic; margin:4px 0;}
.qa-c-item-content {display:block; color:#333; margin-bottom:6px;} .qa-c-item-content {
display:block;
color:#333;
margin-bottom:6px;
font-size: 0.8rem;
font-style:italic;
}
.qa-c-item-footer {position:relative; height:1%;} /* height for IE6 */ .qa-c-item-footer {position:relative; height:1%;} /* height for IE6 */
.qa-c-item-avatar {display:inline-block; vertical-align:middle; margin-right:4px;} .qa-c-item-avatar {display:inline-block; vertical-align:middle; margin-right:4px;}
.qa-c-item-meta {display:inline-block; vertical-align:middle; font-size:10px; color:#666;} .qa-c-item-meta {display:inline-block; vertical-align:middle; font-size:10px; color:#666;}
...@@ -497,6 +517,7 @@ h2 {font-size:16px; padding-top:12px; clear:both;} ...@@ -497,6 +517,7 @@ h2 {font-size:16px; padding-top:12px; clear:both;}
.qa-c-item-who-points {display:none;} .qa-c-item-who-points {display:none;}
.qa-c-item-flags {background:#f00; color:#fff; font-weight:bold; padding:2px 5px; display:inline-block;} .qa-c-item-flags {background:#f00; color:#fff; font-weight:bold; padding:2px 5px; display:inline-block;}
.qa-c-item-buttons {display:block; position:absolute; bottom:0; right:0;} .qa-c-item-buttons {display:block; position:absolute; bottom:0; right:0;}
.qa-c-item-buttons input {font-size: 0.8rem;}
/* Comment voting */ /* Comment voting */
......
qa-theme/Cagette/vote-buttons.gif

1.5 KB | W: | H:

qa-theme/Cagette/vote-buttons.gif

1.66 KB | W: | H:

qa-theme/Cagette/vote-buttons.gif
qa-theme/Cagette/vote-buttons.gif
qa-theme/Cagette/vote-buttons.gif
qa-theme/Cagette/vote-buttons.gif
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment