Merge pull request #5735 from svbergerem/improve-bootstrap-stream-style

Improve Bootstrap stream style
This commit is contained in:
Jonne Haß 2015-03-06 23:40:24 +01:00
commit 2dafe8554c
15 changed files with 26 additions and 47 deletions

View file

@ -3,9 +3,9 @@
@import 'perfect-scrollbar'; @import 'perfect-scrollbar';
@import "colors"; @import "colors";
@import 'sizes';
@import 'mixins'; @import 'mixins';
@import 'new_styles/new_mixins'; @import 'new_styles/new_mixins';
@import 'new_styles/variables';
/* core */ /* core */
@import 'flash_messages'; @import 'flash_messages';

View file

@ -8,14 +8,14 @@
} }
.media { margin-top: 10px; } .media { margin-top: 10px; }
} }
.comments > .comment { .comments > .comment, .comment.new_comment_form_wrapper {
.avatar { .avatar {
margin-top: 5px;
height: 30px; height: 30px;
width: 30px; width: 30px;
} }
margin: 0; margin: 0;
border-top: 1px dotted $border-grey; border-top: 1px dotted $border-grey;
&.no-border { border: none; }
padding: 10px 0; padding: 10px 0;
.comment-content p:last-of-type { margin-bottom: 0; } .comment-content p:last-of-type { margin-bottom: 0; }

View file

@ -101,7 +101,7 @@
.img { line-height: 15px; } .img { line-height: 15px; }
.subject { .subject {
font-size: 14px; font-size: $font-size-text;
> * { > * {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;

View file

@ -7,7 +7,7 @@
#invitationsModal { #invitationsModal {
.modal-header, .modal-body { .modal-header, .modal-body {
color: $text; color: $text;
font-size: 14px; font-size: $font-size-text;
text-align: initial; text-align: initial;
} }
#paste_link { font-weight: 700; } #paste_link { font-weight: 700; }

View file

@ -7,6 +7,7 @@ body {
body { body {
margin-top: 40px; margin-top: 40px;
padding : none; padding : none;
font-size: $font-size-text;
&.lock { &.lock {
overflow: hidden; overflow: hidden;

View file

@ -40,7 +40,7 @@
font-size: 16px; font-size: 16px;
height: 40px; height: 40px;
padding: 10px 10px 10px 130px; padding: 10px 10px 10px 130px;
line-height: 20px; line-height: $line-height;
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
border-bottom: 1px solid $border-grey; border-bottom: 1px solid $border-grey;

View file

@ -1,11 +0,0 @@
$container-width : 1170;
$margin-between-columns : 30;
$column-width : 295 - $margin-between-columns;
$raw-two-column-width : ($column-width * 2) + ($margin-between-columns * 2) ;
$two-column-width : $raw-two-column-width - 30; //simply subtract an arbitrary ammount :)
$margin-between-rows : 20;
$row-height : $column-width;
$two-row-height : $raw-two-column-width - 20;

View file

@ -8,7 +8,7 @@
display: block; display: block;
font-size: 13px; font-size: 13px;
font-weight: normal; font-weight: normal;
line-height: 20px; line-height: $line-height;
padding-left: 20px; padding-left: 20px;
input[type=radio] { input[type=radio] {

View file

@ -38,7 +38,7 @@
margin-bottom: 20px; margin-bottom: 20px;
.tag { .tag {
background-color: transparent; background-color: transparent;
font-size: 14px; font-size: $font-size-text;
} }
.tag:not(.entypo) { .tag:not(.entypo) {
font-weight: 700; font-weight: 700;

View file

@ -78,7 +78,7 @@
} }
.mentions-input-box .mentions { .mentions-input-box .mentions {
line-height: 20px !important; line-height: $line-height !important;
} }
&.with_attachments .row-fluid#photodropzone_container { &.with_attachments .row-fluid#photodropzone_container {

View file

@ -17,7 +17,7 @@
.post_scope { margin-right: 5px; } .post_scope { margin-right: 5px; }
.status-message-location { .status-message-location {
padding-top: 2px; padding-top: 2px;
line-height: 14px; line-height: $font-size-text;
} }
} }
.avatar.medium { .avatar.medium {
@ -106,7 +106,7 @@
} }
} }
a.post_report > i { a.post_report > i {
font-size: 14px; font-size: $font-size-text;
} }
i.cross { i.cross {
font-size: 20px; font-size: 20px;
@ -162,24 +162,10 @@
margin-left: 0; margin-left: 0;
padding-left: 15px; padding-left: 15px;
.comments .comment { .comment.media .img {
border-top: none; margin-left: 5px;
border-bottom: solid 1px #cccccc;
padding-top: 10px;
padding-bottom: 10px;
margin: 10px;
p {
margin: 0 0 1em 0;
word-wrap: break-word;
&:last-child {
margin-bottom: 0;
}
}
.avatar {
height: 35px;
width: 35px;
}
} }
.no_comments { .no_comments {
padding-top: 10px; padding-top: 10px;
padding-bottom: 10px; padding-bottom: 10px;
@ -189,9 +175,6 @@
margin-bottom: 30px; margin-bottom: 30px;
} }
.new_comment_form_wrapper {
border-bottom: none;
}
a { a {
color: $blue; color: $blue;
} }

View file

@ -0,0 +1,2 @@
$font-size-text: 13px;
$line-height: 20px;

View file

@ -1,7 +1,7 @@
#selected_aspect_contacts .avatar { #selected_aspect_contacts .avatar {
height: 32px; height: 32px;
width: 32px; width: 32px;
margin-bottom: -2px; margin-bottom: 2px;
} }
.stream-faces a:hover { text-decoration: none; } .stream-faces a:hover { text-decoration: none; }

View file

@ -46,10 +46,13 @@
border-bottom: 1px solid $border-grey; border-bottom: 1px solid $border-grey;
padding: 10px; padding: 10px;
& > .media { & > .media {
& > .img > .avatar.small { & > .img > .avatar {
margin-top: 5px;
&.small {
height: 50px; height: 50px;
width: 50px; width: 50px;
} }
}
.author { .author {
font-weight: bold; font-weight: bold;
margin-bottom: 4px; margin-bottom: 4px;
@ -122,6 +125,7 @@
margin-top: 3px; margin-top: 3px;
& > .media .avatar { & > .media .avatar {
margin-top: 5px;
height: 30px; height: 30px;
width: 30px; width: 30px;
} }

View file

@ -11,7 +11,7 @@
<div class="comments"> </div> <div class="comments"> </div>
{{#if loggedIn}} {{#if loggedIn}}
<div class="comment no-border media new_comment_form_wrapper {{#unless commentsCount}} hidden {{/unless}}"> <div class="comment media new_comment_form_wrapper {{#unless commentsCount}} hidden {{/unless}}">
{{#with current_user}} {{#with current_user}}
<a href="/people/{{guid}}" class="img"> <a href="/people/{{guid}}" class="img">
{{{personImage this}}} {{{personImage this}}}