Standardize code presentation

Fix indentation (4 spaces, no tabs)
Fix indentation in CSS
Fix comment position in CSS file
This commit is contained in:
David Cormier 2014-02-19 10:16:37 -05:00
parent 8e44757e61
commit 51cde96bf6
2 changed files with 37 additions and 39 deletions

View file

@ -19,25 +19,25 @@ body {
height: 25px; height: 25px;
} }
.horizontal-line { .horizontal-line {
-webkit-box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0; -webkit-box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0;
-moz-box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0; -moz-box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0;
box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0; box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0;
border-bottom: 1px solid #121212; border-bottom: 1px solid #121212;
} }
.vertical-line { .vertical-line {
-webkit-box-shadow: rgba(255, 255, 255, 0.07) 1px 0 0; -webkit-box-shadow: rgba(255, 255, 255, 0.07) 1px 0 0;
-moz-box-shadow: rgba(255, 255, 255, 0.07) 1px 0 0; -moz-box-shadow: rgba(255, 255, 255, 0.07) 1px 0 0;
box-shadow: rgba(255, 255, 255, 0.07) 1px 0 0; box-shadow: rgba(255, 255, 255, 0.07) 1px 0 0;
border-right: 1px solid #121212; border-right: 1px solid #121212;
} }
.vertical-line-left { .vertical-line-left {
-webkit-box-shadow: rgba(255, 255, 255, 0.07) -1px 0 0; -webkit-box-shadow: rgba(255, 255, 255, 0.07) -1px 0 0;
-moz-box-shadow: rgba(255, 255, 255, 0.07) -1px 0 0; -moz-box-shadow: rgba(255, 255, 255, 0.07) -1px 0 0;
box-shadow: rgba(255, 255, 255, 0.07) -1px 0 0; box-shadow: rgba(255, 255, 255, 0.07) -1px 0 0;
border-left: 1px solid #121212; border-left: 1px solid #121212;
} }
.panel-group .panel-heading + .panel-collapse .panel-body { .panel-group .panel-heading + .panel-collapse .panel-body {
-webkit-box-shadow: rgba(255, 255, 255, 0.07) 0 -1px 0; -webkit-box-shadow: rgba(255, 255, 255, 0.07) 0 -1px 0;
-moz-box-shadow: rgba(255, 255, 255, 0.07) 0 -1px 0; -moz-box-shadow: rgba(255, 255, 255, 0.07) 0 -1px 0;
box-shadow: rgba(255, 255, 255, 0.07) 0 -1px 0; box-shadow: rgba(255, 255, 255, 0.07) 0 -1px 0;
border-top: 1px solid #121212; border-top: 1px solid #121212;
@ -121,7 +121,7 @@ input[type=text], input[type=password], .badge {
z-index: 2; z-index: 2;
line-height: 35px; line-height: 35px;
white-space: nowrap; white-space: nowrap;
-webkit-box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0; -webkit-box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0;
-moz-box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0; -moz-box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0;
box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0; box-shadow: rgba(255, 255, 255, 0.07) 0 1px 0;
} }
@ -130,15 +130,15 @@ input[type=text], input[type=password], .badge {
height: 35px; height: 35px;
padding-left: 5px; padding-left: 5px;
} }
#topbar .brand img { #topbar .brand img {
height: 32px; height: 32px;
} }
#topbar .brand button { #topbar .brand button {
position: absolute; position: absolute;
line-height: 15px; line-height: 15px;
font-size: 9pt; font-size: 9pt;
margin-left: 10px margin-left: 10px
} }
#topbar .title { #topbar .title {
position: fixed; position: fixed;
left: 145px; /* sidebar */ left: 145px; /* sidebar */
@ -174,7 +174,7 @@ input[type=text], input[type=password], .badge {
overflow-x: hidden; overflow-x: hidden;
margin-top: 35px; /* topbar */ margin-top: 35px; /* topbar */
font-size: smaller; font-size: smaller;
} }
#sidebar form { #sidebar form {
} }
@ -363,8 +363,7 @@ table.notimestamp td.time {
} }
#bufferlines { #bufferlines {
padding-bottom: 38px; padding-bottom: 38px; /* navbar fixed bottom */;
/* navbar fixed bottom */;
} }
.navbar-fixed-bottom { .navbar-fixed-bottom {

View file

@ -620,17 +620,16 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
$scope.noembed = true; $scope.noembed = true;
$scope.notimestamp = true; $scope.notimestamp = true;
} }
// Open and close panels while on mobile devices through swiping // Open and close panels while on mobile devices through swiping
$scope.swipeSidebar = function() { $scope.swipeSidebar = function() {
if (document.body.clientWidth < mobile_cutoff) {
if (document.body.clientWidth < 968) {
$('#sidebar').collapse('toggle'); $('#sidebar').collapse('toggle');
} }
}; };
$scope.openNick = function() { $scope.openNick = function() {
if (document.body.clientWidth < 968) { if (document.body.clientWidth < mobile_cutoff) {
if($scope.nonicklist) { if($scope.nonicklist) {
$scope.nonicklist = false; $scope.nonicklist = false;
} }
@ -638,7 +637,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
}; };
$scope.closeNick = function() { $scope.closeNick = function() {
if (document.body.clientWidth < 968) { if (document.body.clientWidth < mobile_cutoff) {
if(!$scope.nonicklist) { if(!$scope.nonicklist) {
$scope.nonicklist = true; $scope.nonicklist = true;
} }