mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
Merge branch 'master' of github.com:designcreateplay/NodeBB
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -10,6 +10,7 @@ public/config.json
|
||||
public/css/*.css
|
||||
public/themes/*
|
||||
!/public/themes/vanilla
|
||||
!/public/themes/cerulean
|
||||
*.sublime-project
|
||||
*.sublime-workspace
|
||||
plugins/*
|
||||
|
||||
@@ -1 +1 @@
|
||||
@import "../themes/vanilla/vanilla.less";
|
||||
@import "../themes/cerulean/cerulean.less";
|
||||
@@ -119,7 +119,7 @@ $(document).ready(function() {
|
||||
gravatarPicture = data.gravatarpicture;
|
||||
}
|
||||
} else {
|
||||
app.alertError('There was an error updating your profile!');
|
||||
app.alertError('There was an error updating your profile! ' + err.error);
|
||||
}
|
||||
});
|
||||
return false;
|
||||
@@ -222,50 +222,59 @@ $(document).ready(function() {
|
||||
|
||||
function onPasswordChanged() {
|
||||
passwordvalid = utils.isPasswordValid(password.val());
|
||||
if (password.val().length < 6) {
|
||||
if (password.val().length < config.minimumPasswordLength) {
|
||||
password_notify.html('Password too short');
|
||||
password_notify.attr('class', 'label label-danger');
|
||||
password_notify.attr('class', 'alert alert-danger');
|
||||
password_notify.removeClass('hide');
|
||||
} else if(!passwordvalid) {
|
||||
password_notify.html('Invalid password');
|
||||
password_notify.attr('class', 'label label-danger');
|
||||
password_notify.attr('class', 'alert alert-danger');
|
||||
password_notify.removeClass('hide');
|
||||
} else {
|
||||
password_notify.html('OK!');
|
||||
password_notify.attr('class', 'label label-success');
|
||||
password_notify.attr('class', 'alert alert-success');
|
||||
password_notify.removeClass('hide');
|
||||
}
|
||||
|
||||
onPasswordConfirmChanged();
|
||||
}
|
||||
|
||||
function onPasswordConfirmChanged() {
|
||||
if(password_notify.hasClass('alert-danger') || !password_confirm.val()) {
|
||||
password_confirm_notify.addClass('hide');
|
||||
return;
|
||||
}
|
||||
if(password.val() !== password_confirm.val()) {
|
||||
password_confirm_notify.html('Passwords must match!');
|
||||
password_confirm_notify.attr('class', 'label label-danger');
|
||||
password_confirm_notify.attr('class', 'alert alert-danger');
|
||||
password_confirm_notify.removeClass('hide');
|
||||
passwordsmatch = false;
|
||||
} else {
|
||||
password_confirm_notify.html('OK!');
|
||||
password_confirm_notify.attr('class', 'label label-success');
|
||||
password_confirm_notify.attr('class', 'alert alert-success');
|
||||
password_confirm_notify.removeClass('hide');
|
||||
passwordsmatch = true;
|
||||
}
|
||||
}
|
||||
|
||||
password.on('keyup', onPasswordChanged);
|
||||
password_confirm.on('keyup', onPasswordConfirmChanged);
|
||||
password.on('blur', onPasswordChanged);
|
||||
password_confirm.on('blur', onPasswordConfirmChanged);
|
||||
|
||||
$('#changePasswordBtn').on('click', function() {
|
||||
|
||||
if(passwordvalid && passwordsmatch && currentPassword.val()) {
|
||||
socket.emit('api:user.changePassword', {'currentPassword': currentPassword.val(),'newPassword': password.val() }, function(data) {
|
||||
socket.emit('api:user.changePassword', {'currentPassword': currentPassword.val(),'newPassword': password.val() }, function(err) {
|
||||
|
||||
currentPassword.val('');
|
||||
password.val('');
|
||||
password_confirm.val('');
|
||||
password_notify.html('');
|
||||
password_confirm_notify.html('');
|
||||
password_notify.addClass('hide');
|
||||
password_confirm_notify.addClass('hide');
|
||||
passwordsmatch = false;
|
||||
passwordvalid = false;
|
||||
|
||||
if(data.err) {
|
||||
app.alertError(data.err);
|
||||
if(err) {
|
||||
app.alertError(err.error);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -611,7 +611,7 @@
|
||||
|
||||
|
||||
|
||||
var postAuthorImage, postAuthorInfo, pagination;
|
||||
var postAuthorImage, mobileAuthorOverlay, pagination;
|
||||
var postcount = templates.get('postcount');
|
||||
|
||||
function updateHeader() {
|
||||
@@ -624,9 +624,9 @@
|
||||
});
|
||||
}
|
||||
|
||||
jQuery('.post-author-info').css('bottom', '0px');
|
||||
postAuthorImage = postAuthorImage || document.getElementById('post-author-image');
|
||||
postAuthorInfo = postAuthorInfo || document.getElementById('post-author-info');
|
||||
jQuery('.mobile-author-overlay').css('bottom', '0px');
|
||||
postAuthorImage = postAuthorImage || document.getElementById('mobile-author-image');
|
||||
mobileAuthorOverlay = mobileAuthorOverlay || document.getElementById('mobile-author-overlay');
|
||||
pagination = pagination || document.getElementById('pagination');
|
||||
|
||||
pagination.parentNode.style.display = 'block';
|
||||
@@ -637,7 +637,7 @@
|
||||
|
||||
if (scrollTop < 50 && postcount > 1) {
|
||||
postAuthorImage.src = (jQuery('.main-avatar img').attr('src'));
|
||||
postAuthorInfo.innerHTML = 'Posted by ' + jQuery('.main-post').attr('data-username') + ', ' + jQuery('.main-post').find('.relativeTimeAgo').html();
|
||||
mobileAuthorOverlay.innerHTML = 'Posted by ' + jQuery('.main-post').attr('data-username') + ', ' + jQuery('.main-post').find('.relativeTimeAgo').html();
|
||||
pagination.innerHTML = '0 out of ' + postcount;
|
||||
return;
|
||||
}
|
||||
@@ -662,7 +662,7 @@
|
||||
if (inView) {
|
||||
pagination.innerHTML = this.postnumber + ' out of ' + postcount;
|
||||
postAuthorImage.src = (jQuery(this).find('.profile-image-block img').attr('src'));
|
||||
postAuthorInfo.innerHTML = 'Posted by ' + jQuery(this).attr('data-username') + ', ' + jQuery(this).find('.relativeTimeAgo').html();
|
||||
mobileAuthorOverlay.innerHTML = 'Posted by ' + jQuery(this).attr('data-username') + ', ' + jQuery(this).find('.relativeTimeAgo').html();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -149,17 +149,19 @@
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputNewPassword">Password</label>
|
||||
<div class="controls">
|
||||
<input class="form-control" type="password" id="inputNewPassword" placeholder="New Password" value=""><span id="password-notify" class="label label-danger"></span>
|
||||
<input class="form-control" type="password" id="inputNewPassword" placeholder="New Password" value="">
|
||||
<div id="password-notify" class="alert alert-danger hide"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputNewPasswordAgain">Confirm Password</label>
|
||||
<div class="controls">
|
||||
<input class="form-control" type="password" id="inputNewPasswordAgain" placeholder="Confirm Password" value=""><br/><span id="password-confirm-notify" class="label label-danger"></span>
|
||||
<input class="form-control" type="password" id="inputNewPasswordAgain" placeholder="Confirm Password" value="">
|
||||
<div id="password-confirm-notify" class="alert alert-danger hide"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div class="form-actions">
|
||||
<a id="changePasswordBtn" href="#" class="btn btn-primary">Change Password</a>
|
||||
</div>
|
||||
|
||||
@@ -31,12 +31,6 @@
|
||||
<!-- BEGIN topics -->
|
||||
<a href="../../topic/{topics.slug}"><li class="category-item {topics.deleted-class}">
|
||||
<div class="row">
|
||||
<!-- <div class="span1 thread-rating hidden-xs hidden-sm">
|
||||
<span>
|
||||
<i class="icon-star icon-3x"></i><br />
|
||||
38
|
||||
</span>
|
||||
</div> -->
|
||||
<div class="col-md-12 topic-row">
|
||||
<div class="latest-post visible-lg visible-md">
|
||||
<div class="pull-right">
|
||||
|
||||
@@ -41,8 +41,8 @@
|
||||
<div id="alert_window"></div>
|
||||
|
||||
|
||||
<div id="footer" class="container footer-stats">
|
||||
<div class="row">
|
||||
<footer id="footer" class="container footer">
|
||||
<div class="row footer-stats">
|
||||
<div class="col-md-3 col-xs-6">
|
||||
<div class="stats-card well">
|
||||
<h2><span id="stats_online"></span><br /><small>Online</small></h2>
|
||||
@@ -65,8 +65,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="footer">Copyright © 2013 <a target="_blank" href="http://www.nodebb.org">NodeBB</a> by <a target="_blank" href="https://github.com/psychobunny">psychobunny</a>, <a href="https://github.com/julianlam" target="_blank">julianlam</a>, <a href="https://github.com/barisusakli" target="_blank">barisusakli</a> from <a target="_blank" href="http://www.designcreateplay.com">designcreateplay</a></footer>
|
||||
</div>
|
||||
<div class="copyright">Copyright © 2013 <a target="_blank" href="http://www.nodebb.org">NodeBB</a> by <a target="_blank" href="https://github.com/psychobunny">psychobunny</a>, <a href="https://github.com/julianlam" target="_blank">julianlam</a>, <a href="https://github.com/barisusakli" target="_blank">barisusakli</a> from <a target="_blank" href="http://www.designcreateplay.com">designcreateplay</a></div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
$.getScript(RELATIVE_PATH + '/src/forum/footer.js');
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation" id="header-menu">
|
||||
<div class="navbar navbar-inverse navbar-fixed-top header" role="navigation" id="header-menu">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
@@ -93,6 +93,4 @@
|
||||
|
||||
<input id="csrf_token" type="hidden" template-variable="csrf" value="{csrf}" />
|
||||
|
||||
|
||||
<div class="container" id="content">
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{motd}
|
||||
</div>
|
||||
|
||||
<div class="row categories">
|
||||
<div class="row home">
|
||||
<!-- BEGIN categories -->
|
||||
<div class="col-md-3 col-xs-6">
|
||||
<a href="category/{categories.slug}">
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<ol class="breadcrumb">
|
||||
<div class="topic">
|
||||
<ol class="breadcrumb">
|
||||
<li itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
|
||||
<a href="/" itemprop="url"><span itemprop="title">Home</span></a>
|
||||
</li>
|
||||
@@ -8,24 +9,23 @@
|
||||
<li class="active" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
|
||||
<span itemprop="title">{topic_name} <a target="_blank" href="../{topic_id}.rss"><i class="icon-rss-sign"></i></a></span>
|
||||
</li>
|
||||
<div id="thread_active_users" class="hidden-xs"></div>
|
||||
</ol>
|
||||
<div id="thread_active_users" class="active-users pull-right hidden-xs"></div>
|
||||
</ol>
|
||||
|
||||
<ul id="post-container" class="topic container" data-tid="{topic_id}">
|
||||
<ul id="post-container" class="container" data-tid="{topic_id}">
|
||||
<!-- BEGIN main_posts -->
|
||||
<a id="post_anchor_{main_posts.pid}" name="{main_posts.pid}"></a>
|
||||
<li class="row post-row main-post" data-pid="{main_posts.pid}" data-uid="{main_posts.uid}" data-username="{main_posts.username}" data-deleted="{main_posts.deleted}">
|
||||
<div class="col-md-12">
|
||||
<div class="post-block">
|
||||
<div class="main-post-buttons">
|
||||
<a class="main-avatar" href="/users/{main_posts.userslug}">
|
||||
<a class="avatar" href="/users/{main_posts.userslug}">
|
||||
<img src="{main_posts.picture}" align="left" class="img-thumbnail" width=150 height=150 /><br />
|
||||
</a>
|
||||
<h3>
|
||||
<p id="topic_title_{main_posts.pid}" class="topic-title">{topic_name}</p>
|
||||
</h3>
|
||||
|
||||
<div class="topic-buttons" >
|
||||
<div class="topic-buttons">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" type="button" title="Posted by {main_posts.username}">
|
||||
<span class="username-field" href="/users/{main_posts.userslug}">{main_posts.username} </span>
|
||||
@@ -54,8 +54,6 @@
|
||||
<button class="btn btn-sm btn-default delete {main_posts.display_moderator_tools}" type="button" title="Delete"><i class="icon-trash"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear:both; margin-bottom: 10px;"></div>
|
||||
</div>
|
||||
|
||||
<div id="content_{main_posts.pid}" class="post-content">{main_posts.content}</div>
|
||||
<div id="images_{main_posts.pid}" class="post-images">
|
||||
@@ -83,15 +81,10 @@
|
||||
<a href="/users/{posts.userslug}">
|
||||
<img src="{posts.picture}" align="left" class="img-thumbnail" />
|
||||
</a>
|
||||
<!--<div class="stats">
|
||||
<i class="icon-star"></i><span class="user_rep_{posts.uid} formatted-number">{posts.user_rep}</span>
|
||||
<div class="chat hidden-xs" title="Chat"><i class="icon-comment"></i></div>
|
||||
</div>-->
|
||||
<span class="label label-danger {posts.show_banned}">banned</span>
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
<div class="post-block speech-bubble">
|
||||
<div class="post-buttons">
|
||||
<div class="post-block">
|
||||
<div class="topic-buttons">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" type="button" title="Posted by {posts.username}">
|
||||
@@ -121,8 +114,6 @@
|
||||
<button class="btn btn-sm btn-default delete {posts.display_moderator_tools}" type="button" title="Delete"><i class="icon-trash"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear:both; margin-bottom: 7px;"></div>
|
||||
</div>
|
||||
|
||||
<div id="content_{posts.pid}" class="post-content">{posts.content}</div>
|
||||
<div id="images_{posts.pid}" class="post-images">
|
||||
@@ -137,18 +128,20 @@
|
||||
<span class="{posts.edited-class}">| last edited by <strong><a href="/users/{posts.editorslug}">{posts.editorname}</a></strong> {posts.relativeEditTime} ago</span>
|
||||
</span>
|
||||
<div style="clear:both;"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<!-- END posts -->
|
||||
</ul>
|
||||
<div id="loading-indicator" style="text-align:center;" class="hide" done="0">
|
||||
</ul>
|
||||
|
||||
<div id="loading-indicator" style="text-align:center;" class="hide" done="0">
|
||||
<i class="icon-spinner icon-spin icon-large"></i>
|
||||
</div>
|
||||
<hr />
|
||||
<div class="topic-main-buttons">
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="topic-main-buttons">
|
||||
<button id="post_reply" class="btn btn-primary btn-lg post_reply" type="button">Reply</button>
|
||||
<div class="btn-group pull-right" id="thread-tools" style="visibility: hidden;">
|
||||
<button class="btn btn-default btn-lg dropdown-toggle" data-toggle="dropdown" type="button">Thread Tools <span class="caret"></span></button>
|
||||
@@ -161,22 +154,20 @@
|
||||
<li><a href="#" id="delete_thread"><span class="text-error"><i class="icon-trash"></i> Delete Thread</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="post-author-info">
|
||||
<div class="mobile-author-overlay">
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
<img id="post-author-image" src="" width=50 height=50 />
|
||||
<img id="mobile-author-image" src="" width=50 height=50 />
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
<h4><div id="post-author-info"></div></h4>
|
||||
<h4><div id="mobile-author-overlay"></div></h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="move_thread_modal" class="modal" tabindex="-1" role="dialog" aria-labelledby="Chat" aria-hidden="true">
|
||||
<div id="move_thread_modal" class="modal" tabindex="-1" role="dialog" aria-labelledby="Chat" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
@@ -197,6 +188,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<input type="hidden" template-variable="expose_tools" value="{expose_tools}" />
|
||||
|
||||
@@ -1,22 +1,21 @@
|
||||
<ol class="breadcrumb">
|
||||
<div class="unread">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li class="active">{category_name}</li>
|
||||
<div id="category_active_users"></div>
|
||||
</ol>
|
||||
</ol>
|
||||
|
||||
<a href="/unread">
|
||||
<a href="/unread">
|
||||
<div class="alert hide" id="new-topics-alert"></div>
|
||||
</a>
|
||||
</a>
|
||||
|
||||
<div class="alert alert-warning {no_topics_message}" id="category-no-topics">
|
||||
<div class="alert alert-warning {no_topics_message}" id="category-no-topics">
|
||||
<strong>There are no unread topics.</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<button id="mark-allread-btn" class="btn btn-primary {show_markallread_button}">Mark all as Read</button>
|
||||
</div>
|
||||
|
||||
<div class="category row">
|
||||
<div class="category row">
|
||||
<div class="{topic_row_size}">
|
||||
<ul id="topics-container" data-next-start="{nextStart}">
|
||||
<!-- BEGIN topics -->
|
||||
@@ -47,6 +46,7 @@
|
||||
</ul>
|
||||
<button id="load-more-btn" class="btn btn-primary hide">Load More</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="{relative_path}/src/forum/unread.js"></script>
|
||||
@@ -1,5 +1,4 @@
|
||||
<div>
|
||||
|
||||
<div class="users">
|
||||
<ul class="nav nav-pills">
|
||||
<li class=''><a href='/users-latest'>Latest Users</a></li>
|
||||
<li class=''><a href='/users-sort-posts'>Top Posters</a></li>
|
||||
@@ -18,7 +17,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul id="users-container" class="users">
|
||||
<ul id="users-container" class="users-container">
|
||||
<!-- BEGIN users -->
|
||||
<div class="users-box">
|
||||
<a href="/users/{users.userslug}">
|
||||
@@ -38,10 +37,10 @@
|
||||
</div>
|
||||
<!-- END users -->
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="text-center {loadmore_display}">
|
||||
<div class="text-center {loadmore_display}">
|
||||
<button id="load-more-users-btn" class="btn btn-primary">Load More</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="{relative_path}/src/forum/users.js"></script>
|
||||
1
public/themes/cerulean/account.less
Normal file
1
public/themes/cerulean/account.less
Normal file
@@ -0,0 +1 @@
|
||||
@import "../vanilla/account";
|
||||
1
public/themes/cerulean/admin.less
Normal file
1
public/themes/cerulean/admin.less
Normal file
@@ -0,0 +1 @@
|
||||
@import "../vanilla/admin";
|
||||
1
public/themes/cerulean/category.less
Normal file
1
public/themes/cerulean/category.less
Normal file
@@ -0,0 +1 @@
|
||||
@import "../vanilla/category";
|
||||
16
public/themes/cerulean/cerulean.less
Normal file
16
public/themes/cerulean/cerulean.less
Normal file
@@ -0,0 +1,16 @@
|
||||
@import "../vanilla/mixins";
|
||||
|
||||
@import "style";
|
||||
@import "topic";
|
||||
@import "category";
|
||||
@import "noscript";
|
||||
@import "home";
|
||||
@import "header";
|
||||
@import "account";
|
||||
@import "search";
|
||||
@import "unread";
|
||||
@import "admin";
|
||||
@import "users";
|
||||
@import "footer";
|
||||
|
||||
@import "../vanilla/modules.less";
|
||||
9
public/themes/cerulean/footer.less
Normal file
9
public/themes/cerulean/footer.less
Normal file
@@ -0,0 +1,9 @@
|
||||
@import "../vanilla/footer";
|
||||
|
||||
.footer {
|
||||
color: #555;
|
||||
|
||||
a {
|
||||
color: #222;
|
||||
}
|
||||
}
|
||||
28
public/themes/cerulean/header.less
Normal file
28
public/themes/cerulean/header.less
Normal file
@@ -0,0 +1,28 @@
|
||||
@import "../vanilla/header";
|
||||
|
||||
.header {
|
||||
//glowing animation for active state
|
||||
.dropdown-toggle {
|
||||
i {
|
||||
@-webkit-keyframes glow
|
||||
{
|
||||
from {text-shadow: 0 0 5px #aaf, 0 0 5px #aaf, 0 0 5px #aaf;}
|
||||
50% {text-shadow: 0 0 10px #aaf, 0 0 10px #aaf, 0 0 10px #aaf;}
|
||||
to {text-shadow: 0 0 5px #aaf, 0 0 5px #aaf, 0 0 5px #aaf;}
|
||||
}
|
||||
@keyframes glow
|
||||
{
|
||||
from {text-shadow: 0 0 5px #aaf, 0 0 5px #aaf, 0 0 5px #aaf;}
|
||||
50% {text-shadow: 0 0 10px #aaf, 0 0 10px #aaf, 0 0 10px #aaf;}
|
||||
to {text-shadow: 0 0 5px #aaf, 0 0 5px #aaf, 0 0 5px #aaf;}
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: #558;
|
||||
text-shadow: 0 0 1em #aaf, 0 0 1em #aaf, 0 0 1em #aaf;
|
||||
-webkit-animation:glow 1.5s infinite linear;
|
||||
animation:glow 1.5s infinite linear;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
12
public/themes/cerulean/home.less
Normal file
12
public/themes/cerulean/home.less
Normal file
@@ -0,0 +1,12 @@
|
||||
@import "../vanilla/home";
|
||||
|
||||
|
||||
.home {
|
||||
h4 {
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.icon {
|
||||
border-radius: 5px;
|
||||
}
|
||||
}
|
||||
1
public/themes/cerulean/noscript.less
Normal file
1
public/themes/cerulean/noscript.less
Normal file
@@ -0,0 +1 @@
|
||||
@import "../vanilla/noscript";
|
||||
1
public/themes/cerulean/search.less
Normal file
1
public/themes/cerulean/search.less
Normal file
@@ -0,0 +1 @@
|
||||
@import "../vanilla/search";
|
||||
39
public/themes/cerulean/style.less
Normal file
39
public/themes/cerulean/style.less
Normal file
@@ -0,0 +1,39 @@
|
||||
@import "../vanilla/style";
|
||||
|
||||
body {
|
||||
background: #fdfdfd;
|
||||
}
|
||||
|
||||
.jumbotron {
|
||||
background: #56BCDA;
|
||||
color: white;
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
.alt-logins {
|
||||
li {
|
||||
i {
|
||||
-webkit-transition: color 100ms linear;
|
||||
-moz-transition: color 100ms linear;
|
||||
-ms-transition: color 100ms linear;
|
||||
-o-transition: color 100ms linear;
|
||||
transition: color 100ms linear;
|
||||
|
||||
&.icon-twitter-sign:hover {
|
||||
color: #4099FF;
|
||||
}
|
||||
|
||||
&.icon-facebook-sign:hover {
|
||||
color: #3b5999;
|
||||
}
|
||||
|
||||
&.icon-google-plus-sign:hover {
|
||||
color: #d34836;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#search-form .btn-link {
|
||||
color: white;
|
||||
}
|
||||
51
public/themes/cerulean/topic.less
Normal file
51
public/themes/cerulean/topic.less
Normal file
@@ -0,0 +1,51 @@
|
||||
@import "../vanilla/topic";
|
||||
|
||||
|
||||
.topic {
|
||||
.sub-posts {
|
||||
/* speech bubbles for child posts */
|
||||
@media (min-width: 979px) {
|
||||
.post-block:after
|
||||
{
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
left: -7px;
|
||||
border-style: solid;
|
||||
border-width: 7px 7px 7px 0;
|
||||
border-color: transparent rgb(250,250,250);
|
||||
display: block;
|
||||
width: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.post-block:before
|
||||
{
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
left: -8px;
|
||||
border-style: solid;
|
||||
border-width: 7px 7px 7px 0;
|
||||
border-color: transparent rgba(0, 0, 0, 0.125);
|
||||
display: block;
|
||||
width: 0;
|
||||
z-index: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.profile-block {
|
||||
background: rgba(0, 0, 0, 0.02);
|
||||
margin: 15px -11px -11px -11px;
|
||||
border-radius: 0 0 5px 5px;
|
||||
font-size: 10px;
|
||||
line-height: 15px;
|
||||
padding: 5px 8px 5px 5px;
|
||||
color: #777;
|
||||
}
|
||||
|
||||
.active-users {
|
||||
color: rgb(153,153,153);
|
||||
}
|
||||
}
|
||||
1
public/themes/cerulean/unread.less
Normal file
1
public/themes/cerulean/unread.less
Normal file
@@ -0,0 +1 @@
|
||||
@import "../vanilla/unread";
|
||||
1
public/themes/cerulean/users.less
Normal file
1
public/themes/cerulean/users.less
Normal file
@@ -0,0 +1 @@
|
||||
@import "../vanilla/users";
|
||||
@@ -1,3 +1,4 @@
|
||||
// TODO: Needs to be cleaned up - do not child theme or you will lose your work.
|
||||
|
||||
.account {
|
||||
.topic-row {
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
a {
|
||||
li {
|
||||
list-style: none;
|
||||
//border-bottom: 1px solid #eee;
|
||||
padding-bottom: 10px;
|
||||
|
||||
&.deleted {
|
||||
@@ -28,26 +27,6 @@
|
||||
margin-left: -25px;
|
||||
}
|
||||
|
||||
.thread-rating {
|
||||
color: #444;
|
||||
text-align: center;
|
||||
margin-top: 7px;
|
||||
|
||||
span {
|
||||
display: inline-block; margin-left: 5px;
|
||||
i {
|
||||
padding-left: 2.4px;
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 1200px)
|
||||
{
|
||||
margin-left: -1px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.topic-row {
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
.footer-stats {
|
||||
.footer {
|
||||
text-align: center;
|
||||
|
||||
&.footer-stats {
|
||||
display: none;
|
||||
|
||||
.stats-card {
|
||||
@@ -9,12 +12,12 @@
|
||||
line-height: 25px;
|
||||
}
|
||||
|
||||
|
||||
.pointer;
|
||||
}
|
||||
padding-top: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
.copyright {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,18 @@
|
||||
.header {
|
||||
.dropdown-toggle {
|
||||
i {
|
||||
&.active {
|
||||
color: #558;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#user_label { //belongs in header.less
|
||||
#user_label {
|
||||
img {
|
||||
border: 1px solid #454;
|
||||
margin-right: 8px;
|
||||
margin-top: -2px;
|
||||
float: left;
|
||||
width:24px;
|
||||
height:24px;
|
||||
margin: -2px 8px 0 0;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
span {
|
||||
@@ -14,75 +20,20 @@
|
||||
font-weight: 400;
|
||||
color: #ded;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.pagination-block {
|
||||
.pagination-block {
|
||||
position: absolute;
|
||||
background: rgb(34, 34, 34);
|
||||
right: 0px;
|
||||
top: 50px;
|
||||
color: white;
|
||||
padding: 10px;
|
||||
padding-bottom: 5px;
|
||||
padding-top: 5px;
|
||||
padding: 5px 10px 5px 10px;
|
||||
font-size: 15px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.taskbar {
|
||||
display: none;
|
||||
-moz-opacity: 0.5;
|
||||
opacity: 0.5;
|
||||
margin-top: 0;
|
||||
-webkit-transition: opacity 250ms ease-in;
|
||||
-moz-transition: opacity 250ms ease-in;
|
||||
-ms-transition: opacity 250ms ease-in;
|
||||
-o-transition: opacity 250ms ease-in;
|
||||
transition: opacity 250ms ease-in;
|
||||
|
||||
&[data-active="1"] {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
-moz-opacity: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
li {
|
||||
float: left;
|
||||
|
||||
a > span {
|
||||
.inline-block;
|
||||
max-width: 200px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 24px;
|
||||
max-height: 24px;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
&.pulse {
|
||||
-webkit-animation: pulsate 2500ms linear;
|
||||
-webkit-animation-iteration-count: infinite;
|
||||
}
|
||||
|
||||
@-webkit-keyframes pulsate {
|
||||
0% { background: none; }
|
||||
50% { background: #e5e5e5; }
|
||||
100% { background: none; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#notif-list {
|
||||
#notif-list {
|
||||
li {
|
||||
font-size: 12px;
|
||||
width: 300px;
|
||||
@@ -96,35 +47,15 @@
|
||||
background: #eceff5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.dropdown-toggle {
|
||||
i {
|
||||
font-size: 12px;
|
||||
|
||||
@-webkit-keyframes glow
|
||||
{
|
||||
from {text-shadow: 0 0 5px #aaf, 0 0 5px #aaf, 0 0 5px #aaf;}
|
||||
50% {text-shadow: 0 0 10px #aaf, 0 0 10px #aaf, 0 0 10px #aaf;}
|
||||
to {text-shadow: 0 0 5px #aaf, 0 0 5px #aaf, 0 0 5px #aaf;}
|
||||
}
|
||||
@keyframes glow
|
||||
{
|
||||
from {text-shadow: 0 0 5px #aaf, 0 0 5px #aaf, 0 0 5px #aaf;}
|
||||
50% {text-shadow: 0 0 10px #aaf, 0 0 10px #aaf, 0 0 10px #aaf;}
|
||||
to {text-shadow: 0 0 5px #aaf, 0 0 5px #aaf, 0 0 5px #aaf;}
|
||||
}
|
||||
|
||||
|
||||
&.active {
|
||||
color: #558;
|
||||
|
||||
text-shadow: 0 0 1em #aaf, 0 0 1em #aaf, 0 0 1em #aaf;
|
||||
-webkit-animation:glow 1.5s infinite linear;
|
||||
animation:glow 1.5s infinite linear;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.breadcrumb {
|
||||
li {
|
||||
max-width: 35%;
|
||||
white-space: nowrap;
|
||||
text-overflow:ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,33 +1,45 @@
|
||||
.categories {
|
||||
.home {
|
||||
padding-top: 10px;
|
||||
|
||||
h4 {
|
||||
font-weight: 700;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
/*color: #555;*/ // NOTE: color for cat/topic header links should be grey in the default theme when we get around to it.
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: 100%;
|
||||
height: 110px;
|
||||
text-align: center;
|
||||
border-radius: 0px;
|
||||
margin: 0;
|
||||
padding-top:25px;
|
||||
.pointer;
|
||||
margin-bottom: 20px;
|
||||
border-radius: 5px;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// TODO EVERYTHING BELOW: Please Remove! -- colors & animations should not go here
|
||||
.category-purple {
|
||||
@color: #ab1290;
|
||||
background: @color;
|
||||
|
||||
2
public/themes/vanilla/modules.less
Normal file
2
public/themes/vanilla/modules.less
Normal file
@@ -0,0 +1,2 @@
|
||||
@import "modules/postWindow";
|
||||
@import "modules/taskbar";
|
||||
107
public/themes/vanilla/modules/postWindow.less
Normal file
107
public/themes/vanilla/modules/postWindow.less
Normal file
@@ -0,0 +1,107 @@
|
||||
.post-window {
|
||||
position: fixed;
|
||||
display: none;
|
||||
height: 350px;
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
|
||||
> div {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
background: rgba(64, 64, 64, 0.6);
|
||||
visibility: visible;
|
||||
|
||||
.btn-toolbar {
|
||||
&.formatting-bar {
|
||||
.no-select;
|
||||
|
||||
width: 90%;
|
||||
margin: 0 auto 8px auto;
|
||||
|
||||
span {
|
||||
color: white;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
span:focus {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.action-bar {
|
||||
width: 90%;
|
||||
margin: 8px auto 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
width: 98%;
|
||||
text-align: center;
|
||||
border: none;
|
||||
padding: 0.5em 0;
|
||||
-webkit-border-radius: 0px;
|
||||
-moz-border-radius: 0px;
|
||||
border-radius: 0px;
|
||||
margin: 5px auto 10px auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
textarea {
|
||||
background: rgba(64, 64, 64, 0.95);
|
||||
border: none;
|
||||
padding: 0.5em;
|
||||
display: block;
|
||||
width: 90%;
|
||||
margin: 0em auto;
|
||||
resize: none;
|
||||
color: white;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.imagedrop {
|
||||
text-align: center;
|
||||
color: white;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
height: 214px;
|
||||
line-height: 214px;
|
||||
font-size: 20px;
|
||||
vertical-align: middle;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.imagelist {
|
||||
position: absolute;
|
||||
bottom: 50px;
|
||||
left: 5%;
|
||||
|
||||
div {
|
||||
margin-right:5px;
|
||||
}
|
||||
|
||||
span {
|
||||
line-height:20px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
button {
|
||||
padding-left:5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 979px) {
|
||||
position: relative;
|
||||
bottom: 0px !important;
|
||||
|
||||
> div {
|
||||
position: static;
|
||||
width: 100% !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
49
public/themes/vanilla/modules/taskbar.less
Normal file
49
public/themes/vanilla/modules/taskbar.less
Normal file
@@ -0,0 +1,49 @@
|
||||
.taskbar {
|
||||
display: none;
|
||||
-moz-opacity: 0.5;
|
||||
opacity: 0.5;
|
||||
margin-top: 0;
|
||||
-webkit-transition: opacity 250ms ease-in;
|
||||
-moz-transition: opacity 250ms ease-in;
|
||||
-ms-transition: opacity 250ms ease-in;
|
||||
-o-transition: opacity 250ms ease-in;
|
||||
transition: opacity 250ms ease-in;
|
||||
|
||||
&[data-active="1"] {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
-moz-opacity: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
li {
|
||||
float: left;
|
||||
|
||||
a > span {
|
||||
.inline-block;
|
||||
max-width: 200px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 24px;
|
||||
max-height: 24px;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
&.pulse {
|
||||
-webkit-animation: pulsate 2500ms linear;
|
||||
-webkit-animation-iteration-count: infinite;
|
||||
}
|
||||
|
||||
@-webkit-keyframes pulsate {
|
||||
0% { background: none; }
|
||||
50% { background: #e5e5e5; }
|
||||
100% { background: none; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,21 +1,8 @@
|
||||
@import "mixins";
|
||||
|
||||
html {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
body {
|
||||
/*background: #fdfdfd;*/ // port to default theme when it is implemented.
|
||||
-webkit-transition: margin-bottom 250ms ease;
|
||||
-moz-transition: margin-bottom 250ms ease;
|
||||
-ms-transition: margin-bottom 250ms ease;
|
||||
-o-transition: margin-bottom 250ms ease;
|
||||
transition: margin-bottom 250ms ease;
|
||||
|
||||
&.composing {
|
||||
margin-bottom: 350px;
|
||||
}
|
||||
|
||||
@media (min-width: 979px)
|
||||
{
|
||||
padding-top: 70px;
|
||||
@@ -49,27 +36,15 @@ a:hover, .btn-link:hover, .btn-link:active, .btn-link:focus {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#alert_window {
|
||||
position: fixed;
|
||||
right: 20px;
|
||||
top: 60px;
|
||||
width: 300px;
|
||||
height: 0px;
|
||||
}
|
||||
|
||||
.toaster-alert {
|
||||
.toaster-alert {
|
||||
.pointer;
|
||||
}
|
||||
|
||||
footer.footer {
|
||||
color: #555;
|
||||
text-align: center;
|
||||
|
||||
a {
|
||||
color: #222;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,55 +62,13 @@ footer.footer {
|
||||
&.active {
|
||||
.inline-block;
|
||||
}
|
||||
|
||||
i {
|
||||
-webkit-transition: color 100ms linear;
|
||||
-moz-transition: color 100ms linear;
|
||||
-ms-transition: color 100ms linear;
|
||||
-o-transition: color 100ms linear;
|
||||
transition: color 100ms linear;
|
||||
|
||||
&.icon-twitter-sign:hover {
|
||||
color: #4099FF;
|
||||
}
|
||||
|
||||
&.icon-facebook-sign:hover {
|
||||
color: #3b5999;
|
||||
}
|
||||
|
||||
&.icon-google-plus-sign:hover {
|
||||
color: #d34836;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.jumbotron {
|
||||
// goes into theme
|
||||
background: #56BCDA;
|
||||
color: white;
|
||||
padding: 30px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.formatting-bar {
|
||||
.no-select;
|
||||
|
||||
span:focus {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.breadcrumb {
|
||||
li {
|
||||
max-width: 35%;
|
||||
white-space: nowrap;
|
||||
text-overflow:ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
#chat-content {
|
||||
height:200px;
|
||||
resize:none;
|
||||
@@ -146,119 +79,6 @@ footer.footer {
|
||||
}
|
||||
|
||||
|
||||
/* START: post-window needs to go in its own plugin area */
|
||||
.post-window {
|
||||
position: fixed;
|
||||
display: none;
|
||||
height: 350px;
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
|
||||
> div {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
background: rgba(64, 64, 64, 0.6);
|
||||
visibility: visible;
|
||||
|
||||
.btn-toolbar {
|
||||
&.formatting-bar {
|
||||
width: 90%;
|
||||
margin: 0 auto 8px auto;
|
||||
|
||||
span {
|
||||
color: white;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.action-bar {
|
||||
width: 90%;
|
||||
margin: 8px auto 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
width: 98%;
|
||||
text-align: center;
|
||||
border: none;
|
||||
padding: 0.5em 0;
|
||||
-webkit-border-radius: 0px;
|
||||
-moz-border-radius: 0px;
|
||||
border-radius: 0px;
|
||||
margin: 5px auto 10px auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
textarea {
|
||||
background: rgba(64, 64, 64, 0.95);
|
||||
border: none;
|
||||
padding: 0.5em;
|
||||
display: block;
|
||||
width: 90%;
|
||||
margin: 0em auto;
|
||||
resize: none;
|
||||
color: white;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.imagedrop {
|
||||
text-align: center;
|
||||
color: white;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
height: 214px;
|
||||
line-height: 214px;
|
||||
font-size: 20px;
|
||||
vertical-align: middle;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.imagelist {
|
||||
position: absolute;
|
||||
bottom: 50px;
|
||||
left: 5%;
|
||||
|
||||
div {
|
||||
margin-right:5px;
|
||||
}
|
||||
|
||||
span {
|
||||
line-height:20px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
button {
|
||||
padding-left:5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 979px) {
|
||||
.post-window {
|
||||
position: relative;
|
||||
bottom: 0px !important;
|
||||
|
||||
> div {
|
||||
position: static;
|
||||
width: 100% !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* END: post-window needs to go in its own plugin area */
|
||||
|
||||
|
||||
//theme
|
||||
#search-form .btn-link {
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
||||
//START: FIXES FOR BS3, may need to remove these when we get out of the RC releases
|
||||
@media (max-width: 979px) {
|
||||
.hidden-mobile {
|
||||
@@ -281,5 +101,4 @@ footer.footer {
|
||||
.modal {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
//END: FIXES FOR BS3, may need to remove these when we get out of the RC releases
|
||||
@@ -1,48 +1,53 @@
|
||||
|
||||
.topic {
|
||||
&.deleted {
|
||||
-moz-opacity: 0.30;
|
||||
opacity: 0.30;
|
||||
}
|
||||
|
||||
> ul {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
clear: both;
|
||||
|
||||
li.row {
|
||||
> li {
|
||||
padding-bottom: 15px;
|
||||
|
||||
&.deleted {
|
||||
-moz-opacity: 0.30;
|
||||
opacity: 0.30;
|
||||
height:30px;
|
||||
overflow-y:hidden;
|
||||
height: 30px;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
&.deleted-expanded {
|
||||
height:100%;
|
||||
overflow-y:default;
|
||||
height: 100%;
|
||||
overflow-y: default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.chat {
|
||||
display: block;
|
||||
padding: 3px 20px;
|
||||
clear: both;
|
||||
.pointer;
|
||||
}
|
||||
.chat:hover, .chat:focus {
|
||||
color: white;
|
||||
background-color: rgb(66, 139, 202);
|
||||
@media (max-width: 475px) {
|
||||
.post-tools {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.favourite-text {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.topic-main-buttons {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.main-post, .sub-posts {
|
||||
.profile-block, .post-block {
|
||||
position: relative;
|
||||
border: 1px solid rgba(0, 0, 0, 0.06);
|
||||
border-radius: 5px;
|
||||
padding: 10px;
|
||||
|
||||
p {
|
||||
line-height: 1.75em;
|
||||
}
|
||||
}
|
||||
|
||||
.post-signature {
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
@@ -50,35 +55,16 @@
|
||||
display: inline-block;
|
||||
|
||||
img {
|
||||
max-width:200px;
|
||||
max-height:60px;
|
||||
max-width: 200px;
|
||||
max-height: 60px;
|
||||
}
|
||||
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.profile-block {
|
||||
background: rgba(0, 0, 0, 0.02);
|
||||
margin: 15px -11px -11px -11px;
|
||||
border-radius: 0 0 5px 5px;
|
||||
font-size: 10px;
|
||||
line-height: 15px;
|
||||
padding: 5px 8px 5px 5px;
|
||||
color: #777;
|
||||
}
|
||||
|
||||
.post-content {
|
||||
min-height: 50px;
|
||||
padding: 10px 5px 0 5px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.post-images{
|
||||
padding: 2px 5px 0 5px;
|
||||
}
|
||||
|
||||
.post-block {
|
||||
.post-buttons {
|
||||
.topic-buttons {
|
||||
background: rgba(0, 0, 0, 0.02);
|
||||
border: 1px solid rgba(0, 0, 0, 0.06);
|
||||
margin: -5px 0 0 0;
|
||||
@@ -92,71 +78,49 @@
|
||||
padding-left: 9px;
|
||||
}
|
||||
}
|
||||
|
||||
.post-content {
|
||||
padding: 10px 5px 0 5px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
&.deleted {
|
||||
-moz-opacity: 0.30;
|
||||
opacity: 0.30;
|
||||
.post-images{
|
||||
padding: 2px 5px 0 5px;
|
||||
}
|
||||
|
||||
@media (min-width: 979px) {
|
||||
.speech-bubble:after
|
||||
{
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
left: -7px;
|
||||
border-style: solid;
|
||||
border-width: 7px 7px 7px 0;
|
||||
border-color: transparent rgb(250,250,250);
|
||||
display: block;
|
||||
width: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.speech-bubble:before
|
||||
{
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
left: -8px;
|
||||
border-style: solid;
|
||||
border-width: 7px 7px 7px 0;
|
||||
border-color: transparent rgba(0, 0, 0, 0.125);
|
||||
display: block;
|
||||
width: 0;
|
||||
z-index: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.sub-posts {
|
||||
.post-tools {
|
||||
margin-right: 9px;
|
||||
}
|
||||
.post-content {
|
||||
margin-left: 10px;
|
||||
}
|
||||
.post-block {
|
||||
.post-signature {
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
.topic-buttons {
|
||||
margin: -11px -10px 0px -10px;
|
||||
border: 0;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
||||
padding: 8px 9px 7px 23px;
|
||||
}
|
||||
|
||||
.post-content {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.img-thumbnail {
|
||||
padding: 2px;
|
||||
border-radius: 0;
|
||||
margin-left: 16px;
|
||||
}
|
||||
.post-buttons {
|
||||
margin: -11px -10px 0 -10px;
|
||||
border: 0;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
}
|
||||
|
||||
.main-post {
|
||||
.main-post-buttons {
|
||||
h3 {
|
||||
margin: 0;
|
||||
|
||||
.topic-title {
|
||||
line-height: 1.5em;
|
||||
width: auto;
|
||||
overflow: hidden;
|
||||
margin: 0 0 -5px 0;
|
||||
@@ -164,14 +128,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
.main-avatar {
|
||||
.avatar {
|
||||
color: white;
|
||||
position: relative;
|
||||
float: left;
|
||||
margin: 0 10px 0 0;
|
||||
padding-bottom: 0px;
|
||||
text-align: center;
|
||||
width:100px;
|
||||
width: 100px;
|
||||
|
||||
@media (max-width: 767px) {
|
||||
display: none;
|
||||
@@ -182,7 +146,6 @@
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.post-content {
|
||||
min-height: 80px;
|
||||
@@ -193,22 +156,7 @@
|
||||
}
|
||||
|
||||
.post-block {
|
||||
.post-buttons {
|
||||
button.show {
|
||||
display: inline-block!important;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.favourite {
|
||||
.pointer;
|
||||
}
|
||||
.btn {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.topic-buttons { //main-post version is called post-buttons, needs to be consolidated.
|
||||
.topic-buttons {
|
||||
background: rgba(0, 0, 0, 0.02);
|
||||
border: 1px solid rgba(0, 0, 0, 0.06);
|
||||
margin: 0 -11px 0 92px;
|
||||
@@ -224,27 +172,12 @@
|
||||
display: inline-block!important;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.topic-main-buttons {
|
||||
@media (max-width: 767px) {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 475px) {
|
||||
.post-tools {
|
||||
display: none;
|
||||
}
|
||||
.favourite-text {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.post-author-info {
|
||||
.mobile-author-overlay {
|
||||
display: none;
|
||||
z-index: 9999;
|
||||
|
||||
@media (max-width: 767px) {
|
||||
display: block;
|
||||
@@ -271,47 +204,18 @@
|
||||
font-weight: 300;
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.category-list {
|
||||
li {
|
||||
.inline-block;
|
||||
.pointer;
|
||||
padding: 0.5em 0;
|
||||
text-align: center;
|
||||
margin: 0.5em;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
padding: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.username-field {
|
||||
.icon-circle {
|
||||
font-size: 12px;
|
||||
color: green;
|
||||
margin-right:3px;
|
||||
}
|
||||
.icon-circle-blank {
|
||||
font-size: 12px;
|
||||
color: red;
|
||||
margin-right:3px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#thread_active_users {
|
||||
float: right;
|
||||
color: rgb(153,153,153);
|
||||
|
||||
strong {
|
||||
color: rgb(100,100,100);
|
||||
font-weight: 600;
|
||||
// styling the chat button in the dropdown to match. surely there's a better way...
|
||||
.chat {
|
||||
display: block;
|
||||
padding: 3px 20px;
|
||||
clear: both;
|
||||
.pointer;
|
||||
|
||||
&:hover, &:focus {
|
||||
color: white;
|
||||
background-color: rgb(66, 139, 202);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
|
||||
#mark-allread-btn {
|
||||
margin-bottom:15px;
|
||||
.unread {
|
||||
> .btn {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,9 @@
|
||||
|
||||
#users-container {
|
||||
.users {
|
||||
.users-container {
|
||||
padding: 0;
|
||||
}
|
||||
.users-box{
|
||||
}
|
||||
|
||||
.users-box{
|
||||
display: inline-block;
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
@@ -20,4 +21,5 @@
|
||||
a {
|
||||
margin:5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
@import "style";
|
||||
|
||||
@import "topic";
|
||||
@import "category";
|
||||
@import "noscript";
|
||||
@@ -10,3 +11,5 @@
|
||||
@import "admin";
|
||||
@import "users";
|
||||
@import "footer";
|
||||
|
||||
@import "modules";
|
||||
27
src/user.js
27
src/user.js
@@ -37,7 +37,9 @@ var utils = require('./../public/src/utils.js'),
|
||||
},
|
||||
function(next) {
|
||||
if (email !== undefined) {
|
||||
User.isEmailAvailable(email, function(available) {
|
||||
User.isEmailAvailable(email, function(err, available) {
|
||||
if(err)
|
||||
return next(err);
|
||||
next(!available ? new Error('Email taken!') : null);
|
||||
});
|
||||
} else next();
|
||||
@@ -209,7 +211,9 @@ var utils = require('./../public/src/utils.js'),
|
||||
|
||||
User.getUserField(uid, 'email', function(err, email) {
|
||||
if(email !== data['email']) {
|
||||
User.isEmailAvailable(data['email'], function(available) {
|
||||
User.isEmailAvailable(data['email'], function(err, available) {
|
||||
if(err)
|
||||
return next(err, null);
|
||||
if(!available) {
|
||||
next({error:'Email not available!'}, false);
|
||||
} else {
|
||||
@@ -272,38 +276,29 @@ var utils = require('./../public/src/utils.js'),
|
||||
|
||||
User.isEmailAvailable = function(email, callback) {
|
||||
RDB.exists('email:' + email + ':uid' , function(err, exists) {
|
||||
if(!err) {
|
||||
callback(exists !== 1);
|
||||
return;
|
||||
} else {
|
||||
console.log(err);
|
||||
callback(false);
|
||||
}
|
||||
callback(err, !!exists);
|
||||
});
|
||||
}
|
||||
|
||||
User.changePassword = function(uid, data, callback) {
|
||||
if(!utils.isPasswordValid(data.newPassword)) {
|
||||
callback({err:'Invalid password!'});
|
||||
return;
|
||||
return callback({error:'Invalid password!'});
|
||||
}
|
||||
|
||||
User.getUserField(uid, 'password', function(err, user_password) {
|
||||
bcrypt.compare(data.currentPassword, user_password, function(err, res) {
|
||||
if(err) {
|
||||
console.log(err);
|
||||
callback({err:'bcrpyt compare error!'});
|
||||
return;
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
if (res) {
|
||||
User.hashPassword(data.newPassword, function(err, hash) {
|
||||
User.setUserField(uid, 'password', hash);
|
||||
|
||||
callback({err:null});
|
||||
callback(null);
|
||||
});
|
||||
} else {
|
||||
callback({err:'Your current password is not correct!'});
|
||||
callback({error:'Your current password is not correct!'});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user