More work on polls and themes

This commit is contained in:
Daisuke 2020-04-21 17:42:31 -05:00
parent d34a7c7ced
commit f59049c3c2
18 changed files with 281 additions and 103 deletions

View File

@ -41,7 +41,7 @@ if (isset($_GET['action']) && $_GET['action'] == "settings"){
$user_settings['replies'] = ($value == "on" ? "on" : "off");
break;
case "setreblog":
case "reblog":
$user_settings['reblog'] = ($value == "on" ? "on" : "off");
break;

View File

@ -18,21 +18,7 @@ label {
textarea,input[type="text"]{
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1);
border-radius: 5px;
}
.polloption{
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1);
border-radius: 5px;
display:block;
margin:5px;
padding:5px;
background-color: #ddd;
}
.polloption:hover{
background-color: #305792;
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
color: white;
border:0px;
}
input[type="radio"]:checked+label,select {
@ -124,7 +110,7 @@ input[type="checkbox"]:checked+label {
background-color:white;
}
#send {
input[type="submit"] {
background-color:#305792;
border: 1px solid #305792;
color:white;
@ -243,6 +229,22 @@ input[type="checkbox"]:checked+label {
color:white;
}
.polloption{
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1);
border-radius: 5px;
display:block;
margin:5px;
padding:5px;
background-color: #ddd;
}
.polloption:hover{
background-color: #305792;
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
color: white;
cursor: pointer;
}
.post_footer {
background-color: #eee;
}

View File

@ -67,6 +67,7 @@ function emojify($string, $emojis, $size = 40) {
function emoji_list($val){
$emojilist = api_get("/custom_emojis");
$c = 0;
$return = "";
foreach ($emojilist as $emoji){
if (starts_with($emoji['shortcode'],$val) && $c < 50){
$return .= "<img style='margin:1px;' src='".$emoji['static_url']."' class='emoji' title='".$emoji['shortcode']."' height=40>";
@ -283,7 +284,7 @@ function render_reply($item) {
$unlisted = "&#xe816;";
$direct = "&#xf0e0;";
$reply['date'] = "<a style='text-decoration:none;color:darkgray;' target='_blank' href='" . $item['url'] . "'><span class='fontello'>&#xe817;</span></a> - <a class='ldr' style='text-decoration:none;color:darkgray;' target='_blank' href='?thread=" . $item['id'] . "&instance=$srv" . "'>" . date("d/m/y H:i", strtotime($item['created_at'])) . "</a> - <span class='fontello' style='color:darkgray;'>" . $$item['visibility'] . "</span>";
$reply['date'] = "<a class='ldr' style='text-decoration:none;' target='_blank' href='?thread=" . $item['id'] . "&instance=$srv" . "'>" . time_elapsed_string($item['created_at']) . "</a> - <span class='fontello'>" . $$item['visibility'] . "</span>";
$reply['media'] = "";
if (!empty($item['media_attachments'])) {
@ -720,23 +721,23 @@ function timeline($query) {
switch ($query['mode']) {
case "home":
$array = api_get("timelines/home?limit=25{$media}{$next}");
$array = api_get("timelines/home?limit=30{$media}{$next}");
break;
case "federated":
$array = api_get("timelines/public?limit=25{$media}{$next}");
$array = api_get("timelines/public?limit=30{$media}{$next}");
break;
case "tag":
$array = api_get("timelines/tag/" . $query['tag'] . "?limit=25{$media}{$next}");
$array = api_get("timelines/tag/" . $query['tag'] . "?limit=30{$media}{$next}");
break;
case "local":
$array = api_get("timelines/public?limit=25&local=true{$media}{$next}");
$array = api_get("timelines/public?limit=30&local=true{$media}{$next}");
break;
case "user":
$array = api_get("accounts/" . $query['user'] . "/statuses?limit=25{$media}{$next}");
$array = api_get("accounts/" . $query['user'] . "/statuses?limit=30{$media}{$next}");
break;
case "thread":
@ -746,19 +747,19 @@ function timeline($query) {
break;
case "favourites":
$array = api_get("favourites?limit=25{$media}{$next}");
$array = api_get("favourites?limit=30{$media}{$next}");
break;
case "direct":
$array = api_get("timelines/direct?limit=25{$next}");
$array = api_get("timelines/direct?limit=30{$next}");
break;
case "list":
$array = api_get("timelines/list/" . $query['list'] . "?limit=25{$next}");
$array = api_get("timelines/list/" . $query['list'] . "?limit=30{$next}");
break;
case "bookmarks":
$array = api_get("bookmarks?limit=25{$next}");
$array = api_get("bookmarks?limit=30{$next}");
break;
case "search":
@ -767,11 +768,11 @@ function timeline($query) {
case "account":
$info = api_get("accounts/verify_credentials");
$array = api_get("accounts/" . $info['id'] . "/statuses?limit=25{$media}{$next}");
$array = api_get("accounts/" . $info['id'] . "/statuses?limit=30{$media}{$next}");
break;
default:
$array = api_get("timelines/public?limit=25{$media}{$next}");
$array = api_get("timelines/public?limit=30{$media}{$next}");
break;
}
@ -781,7 +782,7 @@ function timeline($query) {
$next = end($array) ['id'];
$thread = array();
/*
foreach ($array as $elem) {
if ($query['replies'] == "on" || $query['mode'] == "thread") {
$thread[] = $elem;
@ -792,12 +793,26 @@ function timeline($query) {
}
}
}*/
foreach ($array as $elem) {
if ($query['replies'] == "on" || $query['mode'] == "thread") {
$thread[] = $elem;
}
else {
if ($elem['in_reply_to_id'] == null) {
$thread[] = $elem;
} else {
$rel = api_get("accounts/relationships?id=" . $elem['in_reply_to_account_id']);
if ($rel[0]['following']){
$thread[] = $elem;
}
}
}
}
return array(
$thread,
$next
);
return $thread;
}
/* this function takes in a whole post entity and spits out the HTMLfied text of the post
@ -896,3 +911,32 @@ function themes($mode,$name = false){
}
}
}
function time_elapsed_string($datetime, $full = false) {
$now = new DateTime;
$ago = new DateTime($datetime);
$diff = $now->diff($ago);
$diff->w = floor($diff->d / 7);
$diff->d -= $diff->w * 7;
$string = array(
'y' => 'year',
'm' => 'month',
'w' => 'week',
'd' => 'day',
'h' => 'hour',
'i' => 'minute',
's' => 'second',
);
foreach ($string as $k => &$v) {
if ($diff->$k) {
$v = $diff->$k . ' ' . $v . ($diff->$k > 1 ? 's' : '');
} else {
unset($string[$k]);
}
}
if (!$full) $string = array_slice($string, 0, 1);
return $string ? implode(', ', $string) . ' ago' : 'just now';
}

View File

@ -431,7 +431,7 @@ $('body').on('click', '#settings #send', function() {
$('#settings #send').after('<img id="loading" src="img/loading.gif">');
var attach = $('#settings input[name=attach]:checked').val();
var explicit = $('#settings input[name=explicit]:checked').val();
var replies = $('#settings input[name=replies]:checked').val();
var replies = $('#settings input[name=replies]').val();
var reblog = $('#settings input[name=reblog]:checked').val();
var text = $('#settings input[name=text]:checked').val();
var videoloop = $('#settings input[name=videoloop]:checked').val();
@ -464,7 +464,7 @@ $('body').on('click', '#settings #send', function() {
$('#settings #loading').remove();
$('#settings #send').after('<b id="saved">Settings Saved</b>');
$('#settings #saved').delay(1000).fadeOut("slow");
window.location.reload(true);
window.location.reload(true);
});
});

View File

@ -2,11 +2,11 @@
<head>
<title><?php echo $setting['appname']; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" media='screen and (min-width: 801px)' href='<?php echo themes("file","css/style.css")?>?id=<?php echo mt_rand(1000, 2500); ?>' />
<link rel="stylesheet" media='screen and (max-width: 800px)' href='<?php echo themes("file","css/mobile.css")?>?id=<?php echo mt_rand(1000, 2500); ?>' />
<link rel="stylesheet" href='<?php echo ($user_settings['theme'] == "custom" ? themes("file","css/color.php") : themes("file","css/color.css"))?>?id=<?php echo mt_rand(1000, 2500); ?>' />
<link rel="stylesheet" href="css/animation.css"><!--[if IE 7]><link rel="stylesheet" href="css/" + font.fontname + "-ie7.css"><![endif]-->
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" media='screen and (min-width: 801px)' href='./<?php echo themes("file","css/style.css")?>?id=<?php echo mt_rand(1000, 2500); ?>' />
<link rel="stylesheet" media='screen and (max-width: 800px)' href='./<?php echo themes("file","css/mobile.css")?>?id=<?php echo mt_rand(1000, 2500); ?>' />
<link rel="stylesheet" href='./<?php echo ($user_settings['theme'] == "custom" ? themes("file","css/color.php") : themes("file","css/color.css"))?>?id=<?php echo mt_rand(1000, 2500); ?>' />
<link rel="stylesheet" href="./css/animation.css"><!--[if IE 7]><link rel="stylesheet" href="css/" + font.fontname + "-ie7.css"><![endif]-->
<link rel="stylesheet" href="./css/animate.css">
<style type="text/css">
@font-face {
font-family: 'fontello';
@ -207,7 +207,9 @@ endif; ?>
<div style='display:none; clear:both; width:100%; text-align:left;' class='picker'><input type='text' id='emojisearch' placeholder="Type to Search"><span class='close' style='cursor:pointer;'> X </span><div class='emojilist' style='max-height:100px; overflow:auto;'></div></div>
<div class="buttons">
<span style='float:left;'>
<input type='submit' value='Send' id='send' onClick='return false'>
<div style='position:relative;border: 0px; float:left;'>
<input type='submit' value='Send' id='send' onClick='return false'>
</div>
<div class='formbtn fontello' style='position:relative;'>
&#xe818;
<input style='opacity:0; position:absolute; left:0px; top:5px; background-color:yellow;' type='file' id="files_input_field" name='file[]' multiple onchange="upload_files();">

View File

@ -10,12 +10,12 @@
<legend>Timeline</legend>
<h2>Show replies</h2>
<div class='setting'>
<input type='radio' name='replies' id='repliesOn' value='on' style='display:none;' <?php echo ($user_settings['replies'] == 'on' ? "checked" : ""); ?>>
<label for='repliesOn'>Yes</label>
<input type='radio' name='replies' id='repliesOff' value='off' style='display:none;' <?php echo ($user_settings['replies'] == 'off' ? "checked" : ""); ?>>
<label for='repliesOff'>No</label>
<select name="replies">
<option value="on" <?php echo ($user_settings['replies'] == 'on' ? "selected" : ""); ?>>All</option>
<option value="off" <?php echo ($user_settings['replies'] == 'off' ? "selected" : ""); ?>>Only to people i follow</option>
</select>
</div>
<br><br>
<h2>Show text-only posts</h2>
<div class='setting'>
<input type='radio' name='text' id='textOn' value='on' style='display:none;' <?php echo ($user_settings['text'] == 'on' ? "checked" : ""); ?>>
@ -26,9 +26,9 @@
<br><br>
<h2>Show reblogs</h2>
<div class='setting'>
<input type='radio' name='setreblog' id='reblogOn' value='on' style='display:none;' <?php echo ($user_settings['reblog'] == 'on' ? "checked" : ""); ?>>
<input type='radio' name='reblog' id='reblogOn' value='on' style='display:none;' <?php echo ($user_settings['reblog'] == 'on' ? "checked" : ""); ?>>
<label for='reblogOn'>Yes</label>
<input type='radio' name='setreblog' id='reblogOff' value='off' style='display:none;' <?php echo ($user_settings['reblog'] == 'off' ? "checked" : ""); ?>>
<input type='radio' name='reblog' id='reblogOff' value='off' style='display:none;' <?php echo ($user_settings['reblog'] == 'off' ? "checked" : ""); ?>>
<label for='reblogOff'>No</label>
</div>
</fieldset>

View File

@ -5,7 +5,7 @@
a "timeline" may be something like TWKN or just a single post
*/
list($thread, $next) = timeline(array_merge($tl, $user_settings));
$thread = timeline(array_merge($tl, $user_settings));
/*
if the timeline requested is the first part of an user profile it will render first
@ -134,6 +134,11 @@ if ((!isset($thread[0]['id']) && !empty($thread)) || !is_array($thread)) {
from the "reblog" key
*/
if ($elem['reblog'] != null) {
if ($user_settings['reblog'] == 'off'){
continue;
}
$post['name'] = "<b><span id='" . $elem['reblog']['account']['id'] . "' class='user'><a class='link ldr' href='?user=" . $elem['reblog']['account']['id'] . "'>" . emojify($elem['reblog']['account']['display_name'], $elem['reblog']['account']['emojis'], 15) . "</a></span></b>";
$post['replyto'] = "<span>" . ($elem['reblog']['in_reply_to_id'] ? " <a class='fontello link preview ldr' target='_blank' id='" . $elem['reblog']['in_reply_to_id'] . "' href='?thread=" . $elem['reblog']['in_reply_to_id'] . "'>&#xf112;</a>" : "") . "</span>";
$post['rt'] = "<span>[ <span style='font-family:fontello'> &#xe826; </span> by <img src='" . $elem['account']['avatar'] . "' width=30 style='vertical-align:middle; border-radius:30px;'> <a class='link ldr user' id='" . $elem['account']['id'] . "' href='?user=" . $elem['account']['id'] . "'><span class='desktop'>" . emojify($elem['account']['display_name'], $elem['account']['emojis'], 15) . "</span><span class='mobile'>@" . explode("@", $elem['account']['acct']) [0] . "</span></a> ]</span>";
@ -286,8 +291,8 @@ if ((!isset($thread[0]['id']) && !empty($thread)) || !is_array($thread)) {
$direct = "&#xf0e0;";
/* the code of the post footer (date, visibility and like/reblog buttons */
$post['footer'] = "<div style='float:left; color:darkgray;'>
<a style='text-decoration:none;color:darkgray;' class='ldr' target='_blank' href='?thread=" . $elem['id'] . "&instance=$srv" . "'>" . date("d/m/y H:i", strtotime($elem['created_at'])) . "</a> - <span class='fontello'>" . $$elem['visibility'] . " </span>
$post['footer'] = "<div style='float:left;'>
<a style='text-decoration:none;' class='ldr' target='_blank' href='?thread=" . $elem['id'] . "&instance=$srv" . "' title='".gmdate("d/m/y H:i", strtotime($elem['created_at']))."'>" .time_elapsed_string($elem['created_at']) . "</a> - <span class='fontello'>" . $$elem['visibility'] . " </span>
</div>
<div class='post_buttons' id='" . $elem['id'] . "'>
" . ($logedin ? "<div class='felem'><a onClick='return false' class='replyform' href='?thread=" . $elem['id'] . "' style='font-family:fontello; vertical-align:middle;' alt='reply'>&#xf112;</a></div>" : "") . "
@ -346,6 +351,7 @@ if ((!isset($thread[0]['id']) && !empty($thread)) || !is_array($thread)) {
echo $post['template'];
unset($post);
$e++;
$next = $elem['id'];
}
if ((!isset($_GET['next']) || (isset($_GET['next']) && !isset($_GET['ajax']))) && !isset($_GET['since']) && !isset($_GET['thread'])) {
$query = http_build_query(array_filter(array(

View File

@ -1,7 +1,7 @@
<?php
//name of your particular DashboardFE instance, give it any name.
$setting['appname'] = "DASHBAORD FE";
$setting['appname'] = "Dashboard FE";
//url of your DashboardFE instance without trailing slash
$setting['url'] = "https://your.url/dir";

View File

@ -11,8 +11,10 @@
</div>
<div style='display:none; clear:both; width:100%; text-align:left;' class='picker'><input type='text' id='emojisearch' placeholder="Type to Search"><span class='close' style='cursor:pointer;'> X </span><div class='emojilist' style='max-height:100px; overflow:auto;'></div></div>
<div class="buttons">
<span style='float:left;'>
<input type='submit' value='Send' id='send' onClick='return false'>
<div style='float:left;'>
<div style='position:relative;border: 0px; float:left;'>
<input type='submit' value='Send' id='send' onClick='return false'>
</div>
<div class='formbtn fontello' style='position:relative;'>
&#xe818;
<input style='opacity:0; position:absolute; left:0px; top:5px; background-color:yellow;' type='file' id="files_input_field" name='file[]' multiple onchange="upload_files_reply();">
@ -24,7 +26,7 @@
<div class='formbtn fontello' id="emoji" style='position:relative; cursor:pointer;'>
&#128540;
</div>
</span>
</div>
<span style='float:left; margin-left:10px;' class='status'>
</span>

View File

@ -28,6 +28,15 @@ label {
color: #425f99;
}
input[type="submit"] {
background-color: #b967ff;
border-top:2px solid #ffffff;
border-left:2px solid #ffffff;
border-bottom:2px solid #828282;
border-right:2px solid #828282;
color:white;
}
textarea,input[type="text"],.notifpic{
background-color:#c8f7f5;
border-bottom:2px solid #ffffff !important;
@ -146,15 +155,6 @@ input[type="checkbox"]:checked+label {
background-color:white;
}
#send {
background-color: #b967ff;
border-top:2px solid #ffffff;
border-left:2px solid #ffffff;
border-bottom:2px solid #828282;
border-right:2px solid #828282;
color:white;
}
.formbtn {
color:black;
}
@ -327,6 +327,25 @@ input[type="checkbox"]:checked+label {
color:white;
}
.polloption{
background-color: #efd7f3;
border-top:2px solid #ffffff;
border-left:2px solid #ffffff;
border-bottom:2px solid #828282;
border-right:2px solid #828282;
display:block;
margin:5px;
padding:5px;
}
.polloption:hover{
border-bottom:2px solid #ffffff;
border-right:2px solid #ffffff;
border-top:2px solid #828282;
border-left:2px solid #828282;
cursor: pointer;
}
.post_footer {
border-bottom:2px solid #ffffff;
border-right:2px solid #ffffff;

View File

@ -84,14 +84,6 @@ input[type="checkbox"]:checked+label {
text-decoration:blue !important;
}
#quicksend {
background-color: #c3c3c3;
border-top:2px solid #ffffff;
border-left:2px solid #ffffff;
border-bottom:2px solid #828282;
border-right:2px solid #828282;
}
.new {
background-color:#c3c3c3;
}
@ -126,7 +118,7 @@ input[type="checkbox"]:checked+label {
background-color:white;
}
#send {
input[type="submit"] {
background-color: #c3c3c3;
border-top:2px solid #ffffff;
border-left:2px solid #ffffff;
@ -306,17 +298,23 @@ input[type="checkbox"]:checked+label {
background-color:black;
}
.polloption {
.polloption{
display:block;
box-shadow: inset 0 1px 10px rgba(0, 0, 0, 0.5), 0 1px rgba(255, 255, 255, 0.1);
border-bottom:2px solid #6a6a82;
border-right:2px solid #6a6a82;
border-top:2px solid #26263c;
border-left:2px solid #26263c;
background-color: #04e703;
color:black !important;
margin-bottom:2px;
padding:5px;
background-color: black;
color:#04e703 !important;
}
.polloption:hover {
background-color: #04e703;
color:black !important;
cursor:pointer;
}
.post_footer .post_buttons a, .post_footer span{

View File

@ -23,6 +23,10 @@ input[type="checkbox"]:checked+label {
color: red;
}
input[type="text"] {
border:0px;
}
.topbar {
background-color: #373737;
}
@ -76,6 +80,24 @@ input[type="checkbox"]:checked+label {
color: #373737;
}
.polloption{
display:block;
margin:5px;
padding:5px;
background-color: white;
border:2px solid #7dbcda;
border-radius:15px;
color:#7dbcda;
font-weight:bold;
}
.polloption:hover{
cursor: pointer;
border:2px solid #7dbcda;
background-color: #7dbcda;
color:white;
}
.new {
background-color:white;
}
@ -106,7 +128,7 @@ input[type="checkbox"]:checked+label {
background-color:white;
}
#quicksend,#send {
input[type="submit"] {
background-color:#04a0c6;
border: 1px solid #04a0c6;
color:white;

View File

@ -23,6 +23,10 @@ input[type="checkbox"]:checked+label {
color: red;
}
input[type="text"]{
border:0px;
}
.topbar {
background-color: #3b5998;
border-bottom: 2px solid #14468d;
@ -109,7 +113,7 @@ input[type="checkbox"]:checked+label {
background-color:white;
}
#send {
input[type="submit"] {
background-color:#4267b2;
border: 1px solid #425f99;
color:white;
@ -223,6 +227,22 @@ input[type="checkbox"]:checked+label {
color: white;
}
.polloption{
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1);
border-radius: 5px;
display:block;
margin:5px;
padding:5px;
background-color: #ddd;
}
.polloption:hover{
background-color: #3b5998;
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
color: white;
cursor: pointer;
}
.icon {
background-color: black;
}

View File

@ -82,14 +82,6 @@ input[type="checkbox"]:checked+label {
text-decoration:underline !important;
}
#quicksend {
background-color: #c3c3c3;
border-top:2px solid #ffffff;
border-left:2px solid #ffffff;
border-bottom:2px solid #828282;
border-right:2px solid #828282;
}
.new {
background-color:#c3c3c3;
}
@ -124,7 +116,7 @@ input[type="checkbox"]:checked+label {
background-color:white;
}
#send {
input[type="submit"] {
background-color: #c3c3c3;
border-top:2px solid #ffffff;
border-left:2px solid #ffffff;
@ -293,6 +285,26 @@ input[type="checkbox"]:checked+label {
color:white;
}
.polloption{
display:block;
margin:5px;
padding:5px;
background-color: #c3c3c3;
border-top:2px solid #ffffff;
border-left:2px solid #ffffff;
border-bottom:2px solid #828282;
border-right:2px solid #828282;
color:black;
}
.polloption:hover{
cursor: pointer;
border-bottom:2px solid #ffffff ;
border-right:2px solid #ffffff;
border-top:2px solid #828282;
border-left:2px solid #828282;
}
.post_footer {
border-bottom:2px solid #ffffff;
border-right:2px solid #ffffff;

View File

@ -21,6 +21,7 @@ label {
textarea,input[type="text"]{
background-color:white;
border:0px;
}
input[type="radio"]:checked+label {
@ -71,12 +72,6 @@ input[type="checkbox"]:checked+label {
-webkit-box-shadow: inset -6px 73px 100px -117px rgba(238,170,136,0.5);-moz-box-shadow: inset -6px 73px 100px -117px rgba(238,170,136,0.5);box-shadow: inset -6px 73px 100px -117px rgba(238,170,136,0.5);
}
#quicksend {
background-color: #305792;
border: 1px solid darkgray;
color: white;
}
.new {
background-color:#fff1d8;
}
@ -125,7 +120,7 @@ input[type="checkbox"]:checked+label {
background-color:white;
}
#send {
input[type="submit"] {
background-color:#800;
border: 1px solid #800;
color:white;
@ -219,6 +214,24 @@ input[type="checkbox"]:checked+label {
color:white;
}
.polloption{
display:block;
margin:5px;
padding:5px;
background-color: white;
border:2px solid #800;
border-radius:15px;
color:#800;
font-weight:bold;
}
.polloption:hover{
cursor: pointer;
border:2px solid #800;
background-color: #800;
color:white;
}
.post_footer {
background-color: #FFF;
border-top:2px solid #eeaa88;

View File

@ -75,6 +75,7 @@ a, .link {
textarea,input[type="text"],select{
background-color: <?php echo ($foregroundL < 50 ? $foregroundLight : $foregroundDark) ?>;
color:<?php echo $text; ?>;
border:0px;
}
body {
@ -114,6 +115,20 @@ input[type="checkbox"]:checked+label {
color: <?php echo $foreground; ?>;
}
.polloption{
display:block;
margin:5px;
padding:5px;
background-color: <?php echo $foregroundLighter; ?>;
color: <?php echo $link; ?>;
}
.polloption:hover{
cursor: pointer;
background-color: <?php echo $foregroundDarker; ?>;
color: white;
}
.tiselected {
border-bottom: 2px solid <?php echo $foreground; ?>;
}
@ -141,7 +156,7 @@ input[type="checkbox"]:checked+label {
color:<?php echo $text; ?> !important;
}
#quicksend,#send {
input[type="submit"] {
background-color: <?php echo $link; ?>;
color: <?php echo $foreground; ?>;
border:0px;

View File

@ -113,7 +113,7 @@ input[type="checkbox"]:checked+label {
background-color:white;
}
#send, #quicksend {
input[type="submit"] {
background-color:#182230;
border: 1px solid #464e59;
color:white;
@ -212,6 +212,20 @@ input[type="checkbox"]:checked+label {
color: #121a24;
}
.polloption{
display:block;
margin:5px;
padding:5px;
background-color: #d8a070;
color:black;
}
.polloption:hover{
cursor: pointer;
background-color:white;
color:black;
}
.post {
border-top: 2px solid #1c2737;
}

View File

@ -66,11 +66,6 @@ input[type="checkbox"]:checked+label {
background-color:#1b1b1b;
}
#quicksend {
background-color: #101010;
color: white;
}
.new {
background-color:#2f2f2f;
}
@ -102,7 +97,7 @@ input[type="checkbox"]:checked+label {
background-color:white;
}
#send {
input[type="submit"] {
background-color:#ff9900;
border: 0px;
color:white;
@ -223,6 +218,20 @@ textarea,input[type="text"]{
border-top:2px solid #2f2f2f;
}
.polloption{
display:block;
margin:5px;
padding:5px;
background-color: white;
color:black;
}
.polloption:hover{
cursor: pointer;
background-color: #ff8706;;
color:black;
}
.post_buttons {
color: #1b1b1b;
}