Skip to content

Commit

Permalink
Add box-comment feature
Browse files Browse the repository at this point in the history
  • Loading branch information
almasaeed2010 committed Aug 12, 2015
1 parent af4deaf commit e7653c8
Show file tree
Hide file tree
Showing 5 changed files with 462 additions and 2 deletions.
33 changes: 33 additions & 0 deletions build/less/boxes.less
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,39 @@
}
}

//Comment Box
.box-comments {
background: #f7f7f7;
.box-comment {
.clearfix();
padding: 8px 0;
border-bottom: 1px solid #eee;
&:last-of-type {
border-bottom: 0;
}
&:first-of-type {
padding-top: 0;
}
img {
&:extend(.img-sm);
float: left;
}
}
.comment-text {
margin-left: 40px;
color: #555;
}
.username {
color: #444;
display: block;
font-weight: 600;
}
.text-muted {
font-weight: 400;
font-size: 12px;
}
}

//Widgets
//-----------

Expand Down
136 changes: 136 additions & 0 deletions build/less/miscellaneous.less
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
color: #000;
background-color: @gray!important;
}
.bg-gray-light {
background-color: #f7f7f7;
}
.bg-black {
background-color: @black!important;
}
Expand Down Expand Up @@ -317,6 +320,139 @@
.gradient(@maroon; @maroon; lighten(@maroon, 10%))!important;
color: #fff;
}

//Description Block Extension
.description-block {
.description-icon {
font-size: 16px;
}
}

//Remove top padding
.no-pad-top {
padding-top: 0;
}

//Make position static
.position-static {
position: static!important;
}

//List utility classes
.list-header {
font-size: 15px;
padding: 10px 4px;
font-weight: bold;
color: #666;
}
.list-seperator {
height: 1px;
background: @box-border-color;
margin: 15px 0 9px 0;
}
.list-link {
> a {
padding: 4px;
color: #777;
&:hover {
color: #222;
}
}
}

//Light font weight
.font-light {
font-weight: 300;
}

//User block
.user-block {
img {
width: 40px;
height: 40px;
float: left;
}
.username,
.description,
.comment {
display: block;
margin-left: 50px;
}
.username {
font-size: 16px;
font-weight: 600;
}
.description {
color: #999;
font-size: 13px;
}
&.user-block-sm {
img {
&:extend(.img-sm);
}
.username,
.description,
.comment {
margin-left: 40px;
}
.username {
font-size: 14px;
}
}
}

//Image sizes
.img-sm,
.img-md,
.img-lg {
float: left;
}
.img-sm {
width: 30px!important;
height: 30px!important;
+ .img-push {
margin-left: 40px;
}
}
.img-md {
width: 60px;
height: 60px;
+ .img-push {
margin-left: 70px;
}
}
.img-lg {
width: 100px;
height: 100px;
+ .img-push {
margin-left: 110px;
}
}

//General attachemnt block
.attachment-block {
border: 1px solid @box-border-color;
padding: 5px;
margin-bottom: 10px;
background: #f7f7f7;

.attachemnt-img {
max-width: 100px;
max-height: 100px;
height: auto;
float: left;
}
.attachment-pushed {
margin-left: 110px;
}
.attachment-heading {
margin: 0;
}
.attachment-text {
color: #555;
}
}

.connectedSortable {
min-height: 100px;
}
Expand Down
148 changes: 148 additions & 0 deletions dist/css/AdminLTE.css
Original file line number Diff line number Diff line change
Expand Up @@ -1799,6 +1799,43 @@ a:focus {
margin-right: 10px;
}
}
.box-comments {
background: #f7f7f7;
}
.box-comments .box-comment {
padding: 8px 0;
border-bottom: 1px solid #eee;
}
.box-comments .box-comment:before,
.box-comments .box-comment:after {
content: " ";
display: table;
}
.box-comments .box-comment:after {
clear: both;
}
.box-comments .box-comment:last-of-type {
border-bottom: 0;
}
.box-comments .box-comment:first-of-type {
padding-top: 0;
}
.box-comments .box-comment img {
float: left;
}
.box-comments .comment-text {
margin-left: 40px;
color: #555;
}
.box-comments .username {
color: #444;
display: block;
font-weight: 600;
}
.box-comments .text-muted {
font-weight: 400;
font-size: 12px;
}
/* Widget: TODO LIST */
.todo-list {
margin: 0;
Expand Down Expand Up @@ -4100,6 +4137,9 @@ table.text-center th {
color: #000;
background-color: #d2d6de !important;
}
.bg-gray-light {
background-color: #f7f7f7;
}
.bg-black {
background-color: #111111 !important;
}
Expand Down Expand Up @@ -4402,6 +4442,114 @@ table.text-center th {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e73f7c', endColorstr='#d81b60', GradientType=0) !important;
color: #fff;
}
.description-block .description-icon {
font-size: 16px;
}
.no-pad-top {
padding-top: 0;
}
.position-static {
position: static!important;
}
.list-header {
font-size: 15px;
padding: 10px 4px;
font-weight: bold;
color: #666;
}
.list-seperator {
height: 1px;
background: #f4f4f4;
margin: 15px 0 9px 0;
}
.list-link > a {
padding: 4px;
color: #777;
}
.list-link > a:hover {
color: #222;
}
.font-light {
font-weight: 300;
}
.user-block img {
width: 40px;
height: 40px;
float: left;
}
.user-block .username,
.user-block .description,
.user-block .comment {
display: block;
margin-left: 50px;
}
.user-block .username {
font-size: 16px;
font-weight: 600;
}
.user-block .description {
color: #999;
font-size: 13px;
}
.user-block.user-block-sm .username,
.user-block.user-block-sm .description,
.user-block.user-block-sm .comment {
margin-left: 40px;
}
.user-block.user-block-sm .username {
font-size: 14px;
}
.img-sm,
.img-md,
.img-lg,
.box-comments .box-comment img,
.user-block.user-block-sm img {
float: left;
}
.img-sm,
.box-comments .box-comment img,
.user-block.user-block-sm img {
width: 30px!important;
height: 30px!important;
}
.img-sm + .img-push {
margin-left: 40px;
}
.img-md {
width: 60px;
height: 60px;
}
.img-md + .img-push {
margin-left: 70px;
}
.img-lg {
width: 100px;
height: 100px;
}
.img-lg + .img-push {
margin-left: 110px;
}
.attachment-block {
border: 1px solid #f4f4f4;
padding: 5px;
margin-bottom: 10px;
background: #f7f7f7;
}
.attachment-block .attachemnt-img {
max-width: 100px;
max-height: 100px;
height: auto;
float: left;
}
.attachment-block .attachment-pushed {
margin-left: 110px;
}
.attachment-block .attachment-heading {
margin: 0;
}
.attachment-block .attachment-text {
color: #555;
}
.connectedSortable {
min-height: 100px;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/css/AdminLTE.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit e7653c8

Please sign in to comment.