mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +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/css/*.css
|
||||||
public/themes/*
|
public/themes/*
|
||||||
!/public/themes/vanilla
|
!/public/themes/vanilla
|
||||||
|
!/public/themes/cerulean
|
||||||
*.sublime-project
|
*.sublime-project
|
||||||
*.sublime-workspace
|
*.sublime-workspace
|
||||||
plugins/*
|
plugins/*
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
@import "../themes/vanilla/vanilla.less";
|
@import "../themes/cerulean/cerulean.less";
|
||||||
@@ -119,7 +119,7 @@ $(document).ready(function() {
|
|||||||
gravatarPicture = data.gravatarpicture;
|
gravatarPicture = data.gravatarpicture;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
app.alertError('There was an error updating your profile!');
|
app.alertError('There was an error updating your profile! ' + err.error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
@@ -222,50 +222,59 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
function onPasswordChanged() {
|
function onPasswordChanged() {
|
||||||
passwordvalid = utils.isPasswordValid(password.val());
|
passwordvalid = utils.isPasswordValid(password.val());
|
||||||
if (password.val().length < 6) {
|
if (password.val().length < config.minimumPasswordLength) {
|
||||||
password_notify.html('Password too short');
|
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) {
|
} else if(!passwordvalid) {
|
||||||
password_notify.html('Invalid password');
|
password_notify.html('Invalid password');
|
||||||
password_notify.attr('class', 'label label-danger');
|
password_notify.attr('class', 'alert alert-danger');
|
||||||
|
password_notify.removeClass('hide');
|
||||||
} else {
|
} else {
|
||||||
password_notify.html('OK!');
|
password_notify.html('OK!');
|
||||||
password_notify.attr('class', 'label label-success');
|
password_notify.attr('class', 'alert alert-success');
|
||||||
|
password_notify.removeClass('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
onPasswordConfirmChanged();
|
onPasswordConfirmChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
function onPasswordConfirmChanged() {
|
function onPasswordConfirmChanged() {
|
||||||
|
if(password_notify.hasClass('alert-danger') || !password_confirm.val()) {
|
||||||
|
password_confirm_notify.addClass('hide');
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(password.val() !== password_confirm.val()) {
|
if(password.val() !== password_confirm.val()) {
|
||||||
password_confirm_notify.html('Passwords must match!');
|
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;
|
passwordsmatch = false;
|
||||||
} else {
|
} else {
|
||||||
password_confirm_notify.html('OK!');
|
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;
|
passwordsmatch = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
password.on('keyup', onPasswordChanged);
|
password.on('blur', onPasswordChanged);
|
||||||
password_confirm.on('keyup', onPasswordConfirmChanged);
|
password_confirm.on('blur', onPasswordConfirmChanged);
|
||||||
|
|
||||||
$('#changePasswordBtn').on('click', function() {
|
$('#changePasswordBtn').on('click', function() {
|
||||||
|
|
||||||
if(passwordvalid && passwordsmatch && currentPassword.val()) {
|
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('');
|
currentPassword.val('');
|
||||||
password.val('');
|
password.val('');
|
||||||
password_confirm.val('');
|
password_confirm.val('');
|
||||||
password_notify.html('');
|
password_notify.addClass('hide');
|
||||||
password_confirm_notify.html('');
|
password_confirm_notify.addClass('hide');
|
||||||
passwordsmatch = false;
|
passwordsmatch = false;
|
||||||
passwordvalid = false;
|
passwordvalid = false;
|
||||||
|
|
||||||
if(data.err) {
|
if(err) {
|
||||||
app.alertError(data.err);
|
app.alertError(err.error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -611,7 +611,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
var postAuthorImage, postAuthorInfo, pagination;
|
var postAuthorImage, mobileAuthorOverlay, pagination;
|
||||||
var postcount = templates.get('postcount');
|
var postcount = templates.get('postcount');
|
||||||
|
|
||||||
function updateHeader() {
|
function updateHeader() {
|
||||||
@@ -624,9 +624,9 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery('.post-author-info').css('bottom', '0px');
|
jQuery('.mobile-author-overlay').css('bottom', '0px');
|
||||||
postAuthorImage = postAuthorImage || document.getElementById('post-author-image');
|
postAuthorImage = postAuthorImage || document.getElementById('mobile-author-image');
|
||||||
postAuthorInfo = postAuthorInfo || document.getElementById('post-author-info');
|
mobileAuthorOverlay = mobileAuthorOverlay || document.getElementById('mobile-author-overlay');
|
||||||
pagination = pagination || document.getElementById('pagination');
|
pagination = pagination || document.getElementById('pagination');
|
||||||
|
|
||||||
pagination.parentNode.style.display = 'block';
|
pagination.parentNode.style.display = 'block';
|
||||||
@@ -637,7 +637,7 @@
|
|||||||
|
|
||||||
if (scrollTop < 50 && postcount > 1) {
|
if (scrollTop < 50 && postcount > 1) {
|
||||||
postAuthorImage.src = (jQuery('.main-avatar img').attr('src'));
|
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;
|
pagination.innerHTML = '0 out of ' + postcount;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -662,7 +662,7 @@
|
|||||||
if (inView) {
|
if (inView) {
|
||||||
pagination.innerHTML = this.postnumber + ' out of ' + postcount;
|
pagination.innerHTML = this.postnumber + ' out of ' + postcount;
|
||||||
postAuthorImage.src = (jQuery(this).find('.profile-image-block img').attr('src'));
|
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">
|
<div class="control-group">
|
||||||
<label class="control-label" for="inputNewPassword">Password</label>
|
<label class="control-label" for="inputNewPassword">Password</label>
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" for="inputNewPasswordAgain">Confirm Password</label>
|
<label class="control-label" for="inputNewPasswordAgain">Confirm Password</label>
|
||||||
<div class="controls">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
<br/>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<a id="changePasswordBtn" href="#" class="btn btn-primary">Change Password</a>
|
<a id="changePasswordBtn" href="#" class="btn btn-primary">Change Password</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -31,12 +31,6 @@
|
|||||||
<!-- BEGIN topics -->
|
<!-- BEGIN topics -->
|
||||||
<a href="../../topic/{topics.slug}"><li class="category-item {topics.deleted-class}">
|
<a href="../../topic/{topics.slug}"><li class="category-item {topics.deleted-class}">
|
||||||
<div class="row">
|
<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="col-md-12 topic-row">
|
||||||
<div class="latest-post visible-lg visible-md">
|
<div class="latest-post visible-lg visible-md">
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|||||||
@@ -41,8 +41,8 @@
|
|||||||
<div id="alert_window"></div>
|
<div id="alert_window"></div>
|
||||||
|
|
||||||
|
|
||||||
<div id="footer" class="container footer-stats">
|
<footer id="footer" class="container footer">
|
||||||
<div class="row">
|
<div class="row footer-stats">
|
||||||
<div class="col-md-3 col-xs-6">
|
<div class="col-md-3 col-xs-6">
|
||||||
<div class="stats-card well">
|
<div class="stats-card well">
|
||||||
<h2><span id="stats_online"></span><br /><small>Online</small></h2>
|
<h2><span id="stats_online"></span><br /><small>Online</small></h2>
|
||||||
@@ -65,8 +65,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</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 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>
|
||||||
</div>
|
</footer>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$.getScript(RELATIVE_PATH + '/src/forum/footer.js');
|
$.getScript(RELATIVE_PATH + '/src/forum/footer.js');
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<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="container">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
<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}" />
|
<input id="csrf_token" type="hidden" template-variable="csrf" value="{csrf}" />
|
||||||
|
|
||||||
|
<div class="container" id="content">
|
||||||
<div class="container" id="content">
|
|
||||||
|
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
{motd}
|
{motd}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row categories">
|
<div class="row home">
|
||||||
<!-- BEGIN categories -->
|
<!-- BEGIN categories -->
|
||||||
<div class="col-md-3 col-xs-6">
|
<div class="col-md-3 col-xs-6">
|
||||||
<a href="category/{categories.slug}">
|
<a href="category/{categories.slug}">
|
||||||
|
|||||||
@@ -1,31 +1,31 @@
|
|||||||
<ol class="breadcrumb">
|
<div class="topic">
|
||||||
<li itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
|
<ol class="breadcrumb">
|
||||||
<a href="/" itemprop="url"><span itemprop="title">Home</span></a>
|
<li itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
|
||||||
</li>
|
<a href="/" itemprop="url"><span itemprop="title">Home</span></a>
|
||||||
<li itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
|
</li>
|
||||||
<a href="/category/{category_slug}" itemprop="url"><span itemprop="title">{category_name}</span></a>
|
<li itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
|
||||||
</li>
|
<a href="/category/{category_slug}" itemprop="url"><span itemprop="title">{category_name}</span></a>
|
||||||
<li class="active" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
|
</li>
|
||||||
<span itemprop="title">{topic_name} <a target="_blank" href="../{topic_id}.rss"><i class="icon-rss-sign"></i></a></span>
|
<li class="active" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
|
||||||
</li>
|
<span itemprop="title">{topic_name} <a target="_blank" href="../{topic_id}.rss"><i class="icon-rss-sign"></i></a></span>
|
||||||
<div id="thread_active_users" class="hidden-xs"></div>
|
</li>
|
||||||
</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 -->
|
<!-- BEGIN main_posts -->
|
||||||
<a id="post_anchor_{main_posts.pid}" name="{main_posts.pid}"></a>
|
<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}">
|
<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="col-md-12">
|
||||||
<div class="post-block">
|
<div class="post-block">
|
||||||
<div class="main-post-buttons">
|
<a class="avatar" href="/users/{main_posts.userslug}">
|
||||||
<a class="main-avatar" href="/users/{main_posts.userslug}">
|
|
||||||
<img src="{main_posts.picture}" align="left" class="img-thumbnail" width=150 height=150 /><br />
|
<img src="{main_posts.picture}" align="left" class="img-thumbnail" width=150 height=150 /><br />
|
||||||
</a>
|
</a>
|
||||||
<h3>
|
<h3>
|
||||||
<p id="topic_title_{main_posts.pid}" class="topic-title">{topic_name}</p>
|
<p id="topic_title_{main_posts.pid}" class="topic-title">{topic_name}</p>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<div class="topic-buttons" >
|
<div class="topic-buttons">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" type="button" title="Posted by {main_posts.username}">
|
<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>
|
<span class="username-field" href="/users/{main_posts.userslug}">{main_posts.username} </span>
|
||||||
@@ -54,44 +54,37 @@
|
|||||||
<button class="btn btn-sm btn-default delete {main_posts.display_moderator_tools}" type="button" title="Delete"><i class="icon-trash"></i></button>
|
<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>
|
</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="content_{main_posts.pid}" class="post-content">{main_posts.content}</div>
|
||||||
<div id="images_{main_posts.pid}" class="post-images">
|
<div id="images_{main_posts.pid}" class="post-images">
|
||||||
<!-- BEGIN uploadedImages -->
|
<!-- BEGIN uploadedImages -->
|
||||||
<i class="icon-picture icon-1"></i><a href="{main_posts.uploadedImages.url}"> {main_posts.uploadedImages.name}</a><br/>
|
<i class="icon-picture icon-1"></i><a href="{main_posts.uploadedImages.url}"> {main_posts.uploadedImages.name}</a><br/>
|
||||||
<!-- END uploadedImages -->
|
<!-- END uploadedImages -->
|
||||||
</div>
|
</div>
|
||||||
<div class="post-signature">{main_posts.signature}</div>
|
<div class="post-signature">{main_posts.signature}</div>
|
||||||
<div class="profile-block">
|
<div class="profile-block">
|
||||||
<span class="pull-right">
|
<span class="pull-right">
|
||||||
posted <span class="relativeTimeAgo">{main_posts.relativeTime} ago</span>
|
posted <span class="relativeTimeAgo">{main_posts.relativeTime} ago</span>
|
||||||
<span class="{main_posts.edited-class}">| last edited by <strong><a href="/users/{main_posts.editorslug}">{main_posts.editorname}</a></strong> {main_posts.relativeEditTime} ago</span>
|
<span class="{main_posts.edited-class}">| last edited by <strong><a href="/users/{main_posts.editorslug}">{main_posts.editorname}</a></strong> {main_posts.relativeEditTime} ago</span>
|
||||||
</span>
|
</span>
|
||||||
<div style="clear:both;"></div>
|
<div style="clear:both;"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</li>
|
||||||
</li>
|
<!-- END main_posts -->
|
||||||
<!-- END main_posts -->
|
|
||||||
|
|
||||||
<!-- BEGIN posts -->
|
<!-- BEGIN posts -->
|
||||||
<a id="post_anchor_{posts.pid}" name="{posts.pid}"></a>
|
<a id="post_anchor_{posts.pid}" name="{posts.pid}"></a>
|
||||||
<li class="row post-row sub-posts" data-pid="{posts.pid}" data-uid="{posts.uid}" data-username="{posts.username}" data-deleted="{posts.deleted}">
|
<li class="row post-row sub-posts" data-pid="{posts.pid}" data-uid="{posts.uid}" data-username="{posts.username}" data-deleted="{posts.deleted}">
|
||||||
<div class="col-md-1 profile-image-block hidden-xs hidden-sm">
|
<div class="col-md-1 profile-image-block hidden-xs hidden-sm">
|
||||||
<a href="/users/{posts.userslug}">
|
<a href="/users/{posts.userslug}">
|
||||||
<img src="{posts.picture}" align="left" class="img-thumbnail" />
|
<img src="{posts.picture}" align="left" class="img-thumbnail" />
|
||||||
</a>
|
</a>
|
||||||
<!--<div class="stats">
|
<span class="label label-danger {posts.show_banned}">banned</span>
|
||||||
<i class="icon-star"></i><span class="user_rep_{posts.uid} formatted-number">{posts.user_rep}</span>
|
</div>
|
||||||
<div class="chat hidden-xs" title="Chat"><i class="icon-comment"></i></div>
|
<div class="col-md-11">
|
||||||
</div>-->
|
<div class="post-block">
|
||||||
<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="topic-buttons">
|
<div class="topic-buttons">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" type="button" title="Posted by {posts.username}">
|
<button class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" type="button" title="Posted by {posts.username}">
|
||||||
@@ -121,82 +114,82 @@
|
|||||||
<button class="btn btn-sm btn-default delete {posts.display_moderator_tools}" type="button" title="Delete"><i class="icon-trash"></i></button>
|
<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>
|
</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">
|
|
||||||
<!-- BEGIN uploadedImages -->
|
|
||||||
<i class="icon-picture icon-1"></i><a href="{posts.uploadedImages.url}"> {posts.uploadedImages.name}</a><br/>
|
|
||||||
<!-- END uploadedImages -->
|
|
||||||
</div>
|
|
||||||
<div class="post-signature">{posts.signature}</div>
|
|
||||||
<div class="profile-block">
|
|
||||||
<span class="pull-right">
|
|
||||||
posted <span class="relativeTimeAgo">{posts.relativeTime} ago</span>
|
|
||||||
<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 id="content_{posts.pid}" class="post-content">{posts.content}</div>
|
||||||
|
<div id="images_{posts.pid}" class="post-images">
|
||||||
|
<!-- BEGIN uploadedImages -->
|
||||||
|
<i class="icon-picture icon-1"></i><a href="{posts.uploadedImages.url}"> {posts.uploadedImages.name}</a><br/>
|
||||||
|
<!-- END uploadedImages -->
|
||||||
|
</div>
|
||||||
|
<div class="post-signature">{posts.signature}</div>
|
||||||
|
<div class="profile-block">
|
||||||
|
<span class="pull-right">
|
||||||
|
posted <span class="relativeTimeAgo">{posts.relativeTime} ago</span>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</li>
|
||||||
</li>
|
<!-- END posts -->
|
||||||
<!-- END posts -->
|
</ul>
|
||||||
</ul>
|
|
||||||
<div id="loading-indicator" style="text-align:center;" class="hide" done="0">
|
<div id="loading-indicator" style="text-align:center;" class="hide" done="0">
|
||||||
<i class="icon-spinner icon-spin icon-large"></i>
|
<i class="icon-spinner icon-spin icon-large"></i>
|
||||||
</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>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li><a href="#" id="pin_thread"><i class="icon-pushpin"></i> Pin Thread</a></li>
|
|
||||||
<li><a href="#" id="lock_thread"><i class="icon-lock"></i> Lock Thread</a></li>
|
|
||||||
<li class="divider"></li>
|
|
||||||
<li><a href="#" id="move_thread"><i class="icon-move"></i> Move Thread</a></li>
|
|
||||||
<li class="divider"></li>
|
|
||||||
<li><a href="#" id="delete_thread"><span class="text-error"><i class="icon-trash"></i> Delete Thread</span></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
|
||||||
<div class="post-author-info">
|
<div class="topic-main-buttons">
|
||||||
<div class="row">
|
<button id="post_reply" class="btn btn-primary btn-lg post_reply" type="button">Reply</button>
|
||||||
<div class="col-xs-3">
|
<div class="btn-group pull-right" id="thread-tools" style="visibility: hidden;">
|
||||||
<img id="post-author-image" src="" width=50 height=50 />
|
<button class="btn btn-default btn-lg dropdown-toggle" data-toggle="dropdown" type="button">Thread Tools <span class="caret"></span></button>
|
||||||
</div>
|
<ul class="dropdown-menu">
|
||||||
<div class="col-xs-9">
|
<li><a href="#" id="pin_thread"><i class="icon-pushpin"></i> Pin Thread</a></li>
|
||||||
<h4><div id="post-author-info"></div></h4>
|
<li><a href="#" id="lock_thread"><i class="icon-lock"></i> Lock Thread</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#" id="move_thread"><i class="icon-move"></i> Move Thread</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<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>
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<div class="mobile-author-overlay">
|
||||||
<div id="move_thread_modal" class="modal" tabindex="-1" role="dialog" aria-labelledby="Chat" aria-hidden="true">
|
<div class="row">
|
||||||
<div class="modal-dialog">
|
<div class="col-xs-3">
|
||||||
<div class="modal-content">
|
<img id="mobile-author-image" src="" width=50 height=50 />
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
||||||
<h3>Move Thread</h3>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="col-xs-9">
|
||||||
<p id="categories-loading"><i class="icon-spin icon-refresh"></i> Loading Categories</p>
|
<h4><div id="mobile-author-overlay"></div></h4>
|
||||||
<ul class="category-list"></ul>
|
</div>
|
||||||
<div id="move-confirm" style="display: none;">
|
</div>
|
||||||
<hr />
|
</div>
|
||||||
<div class="alert">This topic will be moved to the category <strong><span id="confirm-category-name"></span></strong></div>
|
|
||||||
|
<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">
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
|
<h3>Move Thread</h3>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<p id="categories-loading"><i class="icon-spin icon-refresh"></i> Loading Categories</p>
|
||||||
|
<ul class="category-list"></ul>
|
||||||
|
<div id="move-confirm" style="display: none;">
|
||||||
|
<hr />
|
||||||
|
<div class="alert">This topic will be moved to the category <strong><span id="confirm-category-name"></span></strong></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-default" data-dismiss="modal" id="move_thread_cancel">Close</a>
|
||||||
|
<button type="button" class="btn btn-primary" id="move_thread_commit" disabled>Move</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal" id="move_thread_cancel">Close</a>
|
|
||||||
<button type="button" class="btn btn-primary" id="move_thread_commit" disabled>Move</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input type="hidden" template-variable="expose_tools" value="{expose_tools}" />
|
<input type="hidden" template-variable="expose_tools" value="{expose_tools}" />
|
||||||
|
|||||||
@@ -1,51 +1,51 @@
|
|||||||
<ol class="breadcrumb">
|
<div class="unread">
|
||||||
<li><a href="/">Home</a></li>
|
<ol class="breadcrumb">
|
||||||
<li class="active">{category_name}</li>
|
<li><a href="/">Home</a></li>
|
||||||
<div id="category_active_users"></div>
|
<li class="active">{category_name}</li>
|
||||||
</ol>
|
<div id="category_active_users"></div>
|
||||||
|
</ol>
|
||||||
|
|
||||||
<a href="/unread">
|
<a href="/unread">
|
||||||
<div class="alert hide" id="new-topics-alert"></div>
|
<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>
|
<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>
|
<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}">
|
<div class="{topic_row_size}">
|
||||||
<ul id="topics-container" data-next-start="{nextStart}">
|
<ul id="topics-container" data-next-start="{nextStart}">
|
||||||
<!-- BEGIN topics -->
|
<!-- BEGIN topics -->
|
||||||
<a href="../../topic/{topics.slug}" id="tid-{topics.tid}">
|
<a href="../../topic/{topics.slug}" id="tid-{topics.tid}">
|
||||||
<li class="category-item {topics.deleted-class}">
|
<li class="category-item {topics.deleted-class}">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12 topic-row img-thumbnail">
|
<div class="col-md-12 topic-row img-thumbnail">
|
||||||
<div class="latest-post visible-lg visible-md">
|
<div class="latest-post visible-lg visible-md">
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<img style="width: 48px; height: 48px; /*temporary*/" src="{topics.teaser_userpicture}" />
|
<img style="width: 48px; height: 48px; /*temporary*/" src="{topics.teaser_userpicture}" />
|
||||||
<p><strong>{topics.teaser_username}</strong>: {topics.teaser_text}</p>
|
<p><strong>{topics.teaser_username}</strong>: {topics.teaser_text}</p>
|
||||||
<span>posted {topics.teaser_timestamp} ago</span>
|
<span>posted {topics.teaser_timestamp} ago</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h3><span class="topic-title"><span class="badge {topics.badgeclass}">{topics.postcount}</span>{topics.title}</span></h3>
|
||||||
|
<small>
|
||||||
|
<strong><i class="{topics.pin-icon}"></i><i class="{topics.lock-icon}"></i></strong>
|
||||||
|
Posted {topics.relativeTime} ago by
|
||||||
|
<strong>{topics.username}</strong>.
|
||||||
|
</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
<h3><span class="topic-title"><span class="badge {topics.badgeclass}">{topics.postcount}</span>{topics.title}</span></h3>
|
|
||||||
<small>
|
|
||||||
<strong><i class="{topics.pin-icon}"></i><i class="{topics.lock-icon}"></i></strong>
|
|
||||||
Posted {topics.relativeTime} ago by
|
|
||||||
<strong>{topics.username}</strong>.
|
|
||||||
</small>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</li>
|
||||||
</li>
|
</a>
|
||||||
</a>
|
<!-- END topics -->
|
||||||
<!-- END topics -->
|
</ul>
|
||||||
</ul>
|
<button id="load-more-btn" class="btn btn-primary hide">Load More</button>
|
||||||
<button id="load-more-btn" class="btn btn-primary hide">Load More</button>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<div>
|
<div class="users">
|
||||||
|
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
<li class=''><a href='/users-latest'>Latest Users</a></li>
|
<li class=''><a href='/users-latest'>Latest Users</a></li>
|
||||||
<li class=''><a href='/users-sort-posts'>Top Posters</a></li>
|
<li class=''><a href='/users-sort-posts'>Top Posters</a></li>
|
||||||
@@ -18,7 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul id="users-container" class="users">
|
<ul id="users-container" class="users-container">
|
||||||
<!-- BEGIN users -->
|
<!-- BEGIN users -->
|
||||||
<div class="users-box">
|
<div class="users-box">
|
||||||
<a href="/users/{users.userslug}">
|
<a href="/users/{users.userslug}">
|
||||||
@@ -38,10 +37,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- END users -->
|
<!-- END users -->
|
||||||
</ul>
|
</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>
|
<button id="load-more-users-btn" class="btn btn-primary">Load More</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript" src="{relative_path}/src/forum/users.js"></script>
|
<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 {
|
.account {
|
||||||
.topic-row {
|
.topic-row {
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
a {
|
a {
|
||||||
li {
|
li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
//border-bottom: 1px solid #eee;
|
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
|
|
||||||
&.deleted {
|
&.deleted {
|
||||||
@@ -28,26 +27,6 @@
|
|||||||
margin-left: -25px;
|
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 {
|
.topic-row {
|
||||||
|
|
||||||
|
|||||||
@@ -1,20 +1,23 @@
|
|||||||
.footer-stats {
|
|
||||||
display: none;
|
|
||||||
|
|
||||||
.stats-card {
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
font-size: 40px;
|
|
||||||
line-height: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.pointer;
|
|
||||||
}
|
|
||||||
padding-top: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
padding-bottom: 10px;
|
text-align: center;
|
||||||
|
|
||||||
|
&.footer-stats {
|
||||||
|
display: none;
|
||||||
|
|
||||||
|
.stats-card {
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 40px;
|
||||||
|
line-height: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pointer;
|
||||||
|
}
|
||||||
|
padding-top: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copyright {
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,130 +1,61 @@
|
|||||||
|
.header {
|
||||||
#user_label { //belongs in header.less
|
.dropdown-toggle {
|
||||||
img {
|
i {
|
||||||
border: 1px solid #454;
|
&.active {
|
||||||
margin-right: 8px;
|
color: #558;
|
||||||
margin-top: -2px;
|
}
|
||||||
float: left;
|
|
||||||
width:24px;
|
|
||||||
height:24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
span {
|
|
||||||
font-size: 14px;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #ded;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.pagination-block {
|
|
||||||
position: absolute;
|
|
||||||
background: rgb(34, 34, 34);
|
|
||||||
right: 0px;
|
|
||||||
top: 50px;
|
|
||||||
color: white;
|
|
||||||
padding: 10px;
|
|
||||||
padding-bottom: 5px;
|
|
||||||
padding-top: 5px;
|
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#user_label {
|
||||||
img {
|
img {
|
||||||
max-width: 24px;
|
border: 1px solid #454;
|
||||||
max-height: 24px;
|
margin: -2px 8px 0 0;
|
||||||
margin-right: 1em;
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.pulse {
|
span {
|
||||||
-webkit-animation: pulsate 2500ms linear;
|
font-size: 14px;
|
||||||
-webkit-animation-iteration-count: infinite;
|
font-weight: 400;
|
||||||
|
color: #ded;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@-webkit-keyframes pulsate {
|
.pagination-block {
|
||||||
0% { background: none; }
|
position: absolute;
|
||||||
50% { background: #e5e5e5; }
|
background: rgb(34, 34, 34);
|
||||||
100% { background: none; }
|
right: 0px;
|
||||||
|
top: 50px;
|
||||||
|
color: white;
|
||||||
|
padding: 5px 10px 5px 10px;
|
||||||
|
font-size: 15px;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#notif-list {
|
||||||
|
li {
|
||||||
|
font-size: 12px;
|
||||||
|
width: 300px;
|
||||||
|
text-align: left;
|
||||||
|
|
||||||
|
a {
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.unread {
|
||||||
|
background: #eceff5;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#notif-list {
|
|
||||||
|
.breadcrumb {
|
||||||
li {
|
li {
|
||||||
font-size: 12px;
|
max-width: 35%;
|
||||||
width: 300px;
|
white-space: nowrap;
|
||||||
text-align: left;
|
text-overflow:ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
a {
|
|
||||||
white-space: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.unread {
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,33 +1,45 @@
|
|||||||
.categories {
|
.home {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
line-height: 20px;
|
||||||
text-align: left;
|
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;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
a {
|
|
||||||
text-decoration: none;
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
.icon {
|
.icon {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 110px;
|
height: 110px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 0px;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding-top:25px;
|
padding-top:25px;
|
||||||
.pointer;
|
.pointer;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
border-radius: 5px;
|
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// TODO EVERYTHING BELOW: Please Remove! -- colors & animations should not go here
|
||||||
.category-purple {
|
.category-purple {
|
||||||
@color: #ab1290;
|
@color: #ab1290;
|
||||||
background: @color;
|
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 {
|
html {
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
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)
|
@media (min-width: 979px)
|
||||||
{
|
{
|
||||||
padding-top: 70px;
|
padding-top: 70px;
|
||||||
@@ -49,27 +36,15 @@ a:hover, .btn-link:hover, .btn-link:active, .btn-link:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#alert_window {
|
#alert_window {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
top: 60px;
|
top: 60px;
|
||||||
width: 300px;
|
width: 300px;
|
||||||
height: 0px;
|
height: 0px;
|
||||||
}
|
|
||||||
|
|
||||||
.toaster-alert {
|
.toaster-alert {
|
||||||
.pointer;
|
.pointer;
|
||||||
}
|
|
||||||
|
|
||||||
footer.footer {
|
|
||||||
color: #555;
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: #222;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,55 +62,13 @@ footer.footer {
|
|||||||
&.active {
|
&.active {
|
||||||
.inline-block;
|
.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 {
|
.jumbotron {
|
||||||
// goes into theme
|
|
||||||
background: #56BCDA;
|
|
||||||
color: white;
|
|
||||||
padding: 30px;
|
|
||||||
word-wrap: break-word;
|
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 {
|
#chat-content {
|
||||||
height:200px;
|
height:200px;
|
||||||
resize:none;
|
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
|
//START: FIXES FOR BS3, may need to remove these when we get out of the RC releases
|
||||||
@media (max-width: 979px) {
|
@media (max-width: 979px) {
|
||||||
.hidden-mobile {
|
.hidden-mobile {
|
||||||
@@ -281,5 +101,4 @@ footer.footer {
|
|||||||
.modal {
|
.modal {
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
//END: FIXES FOR BS3, may need to remove these when we get out of the RC releases
|
//END: FIXES FOR BS3, may need to remove these when we get out of the RC releases
|
||||||
@@ -1,186 +1,149 @@
|
|||||||
|
|
||||||
.topic {
|
.topic {
|
||||||
list-style-type: none;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
clear: both;
|
|
||||||
|
|
||||||
li.row {
|
|
||||||
padding-bottom: 15px;
|
|
||||||
|
|
||||||
&.deleted {
|
|
||||||
-moz-opacity: 0.30;
|
|
||||||
opacity: 0.30;
|
|
||||||
height:30px;
|
|
||||||
overflow-y:hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.deleted-expanded {
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
.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;
|
|
||||||
border-top: 1px solid #ddd;
|
|
||||||
display: inline-block;
|
|
||||||
|
|
||||||
img {
|
|
||||||
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 {
|
|
||||||
background: rgba(0, 0, 0, 0.02);
|
|
||||||
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
||||||
margin: -5px 0 0 0;
|
|
||||||
padding: 8px 0 0 23px;
|
|
||||||
|
|
||||||
button.show {
|
|
||||||
display: inline-block !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
|
||||||
padding-left: 9px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.deleted {
|
&.deleted {
|
||||||
-moz-opacity: 0.30;
|
-moz-opacity: 0.30;
|
||||||
opacity: 0.30;
|
opacity: 0.30;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 979px) {
|
> ul {
|
||||||
.speech-bubble:after
|
list-style-type: none;
|
||||||
{
|
padding: 0;
|
||||||
content: "";
|
|
||||||
position: absolute;
|
> li {
|
||||||
top: 15px;
|
padding-bottom: 15px;
|
||||||
left: -7px;
|
|
||||||
border-style: solid;
|
&.deleted {
|
||||||
border-width: 7px 7px 7px 0;
|
-moz-opacity: 0.30;
|
||||||
border-color: transparent rgb(250,250,250);
|
opacity: 0.30;
|
||||||
display: block;
|
height: 30px;
|
||||||
width: 0;
|
overflow-y: hidden;
|
||||||
z-index: 1;
|
}
|
||||||
|
|
||||||
|
&.deleted-expanded {
|
||||||
|
height: 100%;
|
||||||
|
overflow-y: default;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 475px) {
|
||||||
|
.post-tools {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.speech-bubble:before
|
.favourite-text {
|
||||||
{
|
display: none;
|
||||||
content: "";
|
}
|
||||||
position: absolute;
|
}
|
||||||
top: 15px;
|
|
||||||
left: -8px;
|
@media (max-width: 767px) {
|
||||||
border-style: solid;
|
.topic-main-buttons {
|
||||||
border-width: 7px 7px 7px 0;
|
margin-bottom: 0px;
|
||||||
border-color: transparent rgba(0, 0, 0, 0.125);
|
}
|
||||||
display: block;
|
}
|
||||||
width: 0;
|
|
||||||
z-index: 0;
|
.main-post, .sub-posts {
|
||||||
|
.profile-block, .post-block {
|
||||||
|
position: relative;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 10px;
|
||||||
|
|
||||||
|
.post-signature {
|
||||||
|
color: #666;
|
||||||
|
font-size: 12px;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
display: inline-block;
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 200px;
|
||||||
|
max-height: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-block {
|
||||||
|
.topic-buttons {
|
||||||
|
background: rgba(0, 0, 0, 0.02);
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
||||||
|
margin: -5px 0 0 0;
|
||||||
|
padding: 8px 0 0 23px;
|
||||||
|
|
||||||
|
button.show {
|
||||||
|
display: inline-block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
padding-left: 9px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-content {
|
||||||
|
padding: 10px 5px 0 5px;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-images{
|
||||||
|
padding: 2px 5px 0 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sub-posts {
|
.sub-posts {
|
||||||
.post-tools {
|
.post-block {
|
||||||
margin-right: 9px;
|
.post-signature {
|
||||||
}
|
margin-left: 15px;
|
||||||
.post-content {
|
}
|
||||||
margin-left: 10px;
|
|
||||||
}
|
.topic-buttons {
|
||||||
.post-signature {
|
margin: -11px -10px 0px -10px;
|
||||||
margin-left: 15px;
|
border: 0;
|
||||||
|
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
||||||
|
padding: 8px 9px 7px 23px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-content {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.img-thumbnail {
|
.img-thumbnail {
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
margin-left: 16px;
|
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 {
|
||||||
.main-post-buttons {
|
h3 {
|
||||||
h3 {
|
margin: 0;
|
||||||
margin: 0;
|
|
||||||
|
|
||||||
.topic-title {
|
.topic-title {
|
||||||
width: auto;
|
line-height: 1.5em;
|
||||||
overflow: hidden;
|
width: auto;
|
||||||
margin: 0 0 -5px 0;
|
overflow: hidden;
|
||||||
padding: 0 0 5px 0
|
margin: 0 0 -5px 0;
|
||||||
}
|
padding: 0 0 5px 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.avatar {
|
||||||
|
color: white;
|
||||||
|
position: relative;
|
||||||
|
float: left;
|
||||||
|
margin: 0 10px 0 0;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
text-align: center;
|
||||||
|
width: 100px;
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-avatar {
|
.img-thumbnail {
|
||||||
color: white;
|
padding: 2px;
|
||||||
position: relative;
|
border-radius: 0;
|
||||||
float: left;
|
|
||||||
margin: 0 10px 0 0;
|
|
||||||
padding-bottom: 0px;
|
|
||||||
text-align: center;
|
|
||||||
width:100px;
|
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.img-thumbnail {
|
|
||||||
padding: 2px;
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -193,125 +156,66 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post-block {
|
.post-block {
|
||||||
.post-buttons {
|
.topic-buttons {
|
||||||
|
background: rgba(0, 0, 0, 0.02);
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
||||||
|
margin: 0 -11px 0 92px;
|
||||||
|
padding: 10px;
|
||||||
|
border-right: 0;
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
margin-left: -11px;
|
||||||
|
border-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
button.show {
|
button.show {
|
||||||
display: inline-block!important;
|
display: inline-block!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.favourite {
|
|
||||||
.pointer;
|
|
||||||
}
|
|
||||||
.btn {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.topic-buttons { //main-post version is called post-buttons, needs to be consolidated.
|
|
||||||
background: rgba(0, 0, 0, 0.02);
|
|
||||||
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
||||||
margin: 0 -11px 0 92px;
|
|
||||||
padding: 10px;
|
|
||||||
border-right: 0;
|
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
|
||||||
margin-left: -11px;
|
|
||||||
border-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
button.show {
|
|
||||||
display: inline-block!important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.topic-main-buttons {
|
.mobile-author-overlay {
|
||||||
|
display: none;
|
||||||
|
z-index: 9999;
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
margin-bottom: 0px;
|
display: block;
|
||||||
|
position: fixed;
|
||||||
|
width: 100%;
|
||||||
|
margin-left: -15px;
|
||||||
|
bottom: -50px;
|
||||||
|
height: 50px;
|
||||||
|
background: rgba(0,0,0,0.8);
|
||||||
|
-webkit-transition: bottom 150ms linear;
|
||||||
|
-moz-transition: bottom 150ms linear;
|
||||||
|
-ms-transition: bottom 150ms linear;
|
||||||
|
-o-transition: bottom 150ms linear;
|
||||||
|
transition: bottom 150ms linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
color: white;
|
||||||
|
margin: 16px 0 0 -35px;
|
||||||
|
font-weight: 300;
|
||||||
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 475px) {
|
// styling the chat button in the dropdown to match. surely there's a better way...
|
||||||
.post-tools {
|
.chat {
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.favourite-text {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-author-info {
|
|
||||||
display: none;
|
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
|
||||||
display: block;
|
display: block;
|
||||||
position: fixed;
|
padding: 3px 20px;
|
||||||
width: 100%;
|
clear: both;
|
||||||
margin-left: -15px;
|
|
||||||
bottom: -50px;
|
|
||||||
height: 50px;
|
|
||||||
background: rgba(0,0,0,0.8);
|
|
||||||
-webkit-transition: bottom 150ms linear;
|
|
||||||
-moz-transition: bottom 150ms linear;
|
|
||||||
-ms-transition: bottom 150ms linear;
|
|
||||||
-o-transition: bottom 150ms linear;
|
|
||||||
transition: bottom 150ms linear;
|
|
||||||
}
|
|
||||||
|
|
||||||
img {
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
h4 {
|
|
||||||
color: white;
|
|
||||||
margin: 16px 0 0 -35px;
|
|
||||||
font-weight: 300;
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.category-list {
|
|
||||||
li {
|
|
||||||
.inline-block;
|
|
||||||
.pointer;
|
.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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
&:hover, &:focus {
|
||||||
.username-field {
|
color: white;
|
||||||
.icon-circle {
|
background-color: rgb(66, 139, 202);
|
||||||
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;
|
|
||||||
.pointer;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
|
.unread {
|
||||||
#mark-allread-btn {
|
> .btn {
|
||||||
margin-bottom:15px;
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,23 +1,25 @@
|
|||||||
|
.users {
|
||||||
#users-container {
|
.users-container {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
|
||||||
.users-box{
|
|
||||||
display: inline-block;
|
|
||||||
margin-top: 20px;
|
|
||||||
text-align: center;
|
|
||||||
vertical-align: top;
|
|
||||||
max-width: 104px;
|
|
||||||
white-space: nowrap;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
img {
|
|
||||||
width:80px;
|
|
||||||
height:80px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
.users-box{
|
||||||
margin:5px;
|
display: inline-block;
|
||||||
|
margin-top: 20px;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: top;
|
||||||
|
max-width: 104px;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
img {
|
||||||
|
width:80px;
|
||||||
|
height:80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
margin:5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
@import "style";
|
@import "style";
|
||||||
|
|
||||||
@import "topic";
|
@import "topic";
|
||||||
@import "category";
|
@import "category";
|
||||||
@import "noscript";
|
@import "noscript";
|
||||||
@@ -9,4 +10,6 @@
|
|||||||
@import "unread";
|
@import "unread";
|
||||||
@import "admin";
|
@import "admin";
|
||||||
@import "users";
|
@import "users";
|
||||||
@import "footer";
|
@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) {
|
function(next) {
|
||||||
if (email !== undefined) {
|
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);
|
next(!available ? new Error('Email taken!') : null);
|
||||||
});
|
});
|
||||||
} else next();
|
} else next();
|
||||||
@@ -209,7 +211,9 @@ var utils = require('./../public/src/utils.js'),
|
|||||||
|
|
||||||
User.getUserField(uid, 'email', function(err, email) {
|
User.getUserField(uid, 'email', function(err, email) {
|
||||||
if(email !== data['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) {
|
if(!available) {
|
||||||
next({error:'Email not available!'}, false);
|
next({error:'Email not available!'}, false);
|
||||||
} else {
|
} else {
|
||||||
@@ -272,38 +276,29 @@ var utils = require('./../public/src/utils.js'),
|
|||||||
|
|
||||||
User.isEmailAvailable = function(email, callback) {
|
User.isEmailAvailable = function(email, callback) {
|
||||||
RDB.exists('email:' + email + ':uid' , function(err, exists) {
|
RDB.exists('email:' + email + ':uid' , function(err, exists) {
|
||||||
if(!err) {
|
callback(err, !!exists);
|
||||||
callback(exists !== 1);
|
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
console.log(err);
|
|
||||||
callback(false);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
User.changePassword = function(uid, data, callback) {
|
User.changePassword = function(uid, data, callback) {
|
||||||
if(!utils.isPasswordValid(data.newPassword)) {
|
if(!utils.isPasswordValid(data.newPassword)) {
|
||||||
callback({err:'Invalid password!'});
|
return callback({error:'Invalid password!'});
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
User.getUserField(uid, 'password', function(err, user_password) {
|
User.getUserField(uid, 'password', function(err, user_password) {
|
||||||
bcrypt.compare(data.currentPassword, user_password, function(err, res) {
|
bcrypt.compare(data.currentPassword, user_password, function(err, res) {
|
||||||
if(err) {
|
if(err) {
|
||||||
console.log(err);
|
return callback(err);
|
||||||
callback({err:'bcrpyt compare error!'});
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
User.hashPassword(data.newPassword, function(err, hash) {
|
User.hashPassword(data.newPassword, function(err, hash) {
|
||||||
User.setUserField(uid, 'password', hash);
|
User.setUserField(uid, 'password', hash);
|
||||||
|
|
||||||
callback({err:null});
|
callback(null);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
callback({err:'Your current password is not correct!'});
|
callback({error:'Your current password is not correct!'});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user