Compare commits

...

3 commits

Author SHA1 Message Date
Miroslav Šedivý
c9a78803ef Merge branch 'socialbox' of https://github.com/m1k1o/blog into socialbox 2017-09-29 21:16:22 +02:00
Miroslav Šedivý
ee93b321b9 Social box initial design 2017-09-29 21:10:25 +02:00
Miroslav Šedivý
c74ceed602 Social box initial design 2016-12-29 23:07:22 +01:00
2 changed files with 165 additions and 17 deletions

View file

@ -272,19 +272,51 @@ if(!empty($scripts)){
<!-- Post Row -->
<div class="b_post post_row">
<div class="b_header">
<img src="<?php echo Config::get("pic_small"); ?>" width="40" height="40" class="b_profile">
<div class="b_desc">
<div class="b_sharer">
<span class="b_name"><?php echo Config::get("name"); ?></span><span class="b_options"> - </span><span class="b_feeling"></span><span class="b_with"> <?php echo __("with"); ?> </span><span class="b_persons"></span><span class="b_here"> <?php echo __("here:"); ?> </span><span class="b_location"></span>
<div class="b_inner">
<div class="b_header">
<img src="<?php echo Config::get("pic_small"); ?>" width="40" height="40" class="b_profile">
<div class="b_desc">
<div class="b_sharer">
<span class="b_name"><?php echo Config::get("name"); ?></span><span class="b_options"> - </span><span class="b_feeling"></span><span class="b_with"> <?php echo __("with"); ?> </span><span class="b_persons"></span><span class="b_here"> <?php echo __("here:"); ?> </span><span class="b_location"></span>
</div>
<i class="privacy_icon"></i>
<a class="b_date"></a>
<a class="b_tools"></a>
</div>
<i class="privacy_icon"></i>
<a class="b_date"></a>
<a class="b_tools"></a>
</div>
<div class="b_text"></div>
<div class="b_content"></div>
</div>
<div class="b_socialbox">
<?php /*
<ul class="b_buttons">
<li><a class="active"><i class="like"></i>Like</a></li>
<li><a><i class="comment"></i>Comment</a></li>
</ul>
<div class="b_comments">
<div class="b_comment">
<img src="static/images/profile.jpg" width="32" height="32" class="b_profile" />
<div class="b_c_input">
<textarea placeholder="Write comment ..."></textarea>
</div>
</div>
<ul>
<li class="b_comment">
<img src="static/images/profile.jpg" width="32" height="32" class="b_profile" />
<div class="b_c_content">
<p><span class="b_name">Max Mustermann</span> Sample Text</p>
<a class="b_date">12 Oct 2016 07:59</a>
</div>
<a class="b_tools"></a>
</li>
</ul>
<div class="b_panel">
<a class="btn">Show more comments</a>
<span class="count">2 from 52</span>
</div>
</div>
*/ ?>
</div>
<div class="b_text"></div>
<div class="b_content"></div>
</div>
<!-- Pirvacy Settings -->

View file

@ -135,7 +135,6 @@ body {
border-radius: 3px;
background-color: #fff;
margin-bottom: 10px;
padding: 12px;
position: relative;
}
@ -143,6 +142,10 @@ body {
padding: 0;
}
.b_inner {
padding: 12px;
}
.b_header {
overflow: hidden;
}
@ -429,13 +432,126 @@ body {
max-height: 470px;
}
.b_textarea {
.b_socialbox {
}
.b_buttons {
list-style-type: none;
margin: 0 12px;
padding: 5px 0;
border-top: 1px solid #e5e5e5;
}
.b_buttons li {
display: inline-block;
}
.b_buttons li a {
color: #7f7f7f;
display: inline-block;
font-size: 12px;
font-weight: bold;
line-height: 14px;
margin-right: 20px;
padding: 4px 4px 4px 0;
cursor: pointer;
}
.b_buttons li a:hover {
text-decoration: underline;
}
i.like, i.comment {
background: url(../images/tools.png) no-repeat;
display: inline-block;
height: 14px;
margin: 0 6px -2px 0;
width: 14px;
}
i.like {
background-position: 0px -62px;
}
i.comment {
background-position: 0px -47px
}
.b_buttons li a.active {
color: rgb(88, 144, 255);
}
.b_buttons li a.active i.like {
background-position: 0px -92px;
}
.b_comments {
border-top: 1px solid #e1e2e3;
background-color: #f6f7f9;
border-radius: 0 0 3px 3px;
color: #1d2129;
padding: 7px 0;
}
.b_comments .b_panel {
font-size: 13px;
overflow: hidden;
padding: 5px 12px;
}
.b_comments .b_panel .btn {
color: #365899;
text-decoration: none;
cursor: pointer;
}
.b_comments .b_panel .btn:hover {
text-decoration: underline;
}
.b_comments .b_panel .count {
float: right;
color: #9197a3;
}
.b_comments ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.b_comment {
position: relative;
padding: 5px 12px;
overflow: hidden;
}
.b_comment p {
margin: 0;
}
.b_comment .b_c_content {
font-size: 13px;
margin-left: 37px;
}
.b_comment .b_c_input {
margin-left: 37px;
font-size: 0;
}
.b_comment .b_c_input textarea {
font-size: 13px;
padding: 5px;
background-color: #fff;
box-sizing: border-box;
min-height: 30px;
height: auto;
width: 100%;
max-width: 100%;
min-width: 100%;
height: 200px;
min-height: 200px;
border: 0;
max-width: 100%;
outline: 0;
}
.mask {
@ -663,7 +779,7 @@ body {
}
.t_area .e_text {
white-space: pre;
white-space: pre-wrap;
margin: 0 0 0 10px;
min-height: 88px;
max-width: 100%;