Skip to content

Commit

Permalink
Fix minimum height of guide if empty content(#42) : myreaction, creator
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunSangHan committed May 3, 2020
1 parent 6a6d135 commit 5bfc9c1
Show file tree
Hide file tree
Showing 6 changed files with 415 additions and 381 deletions.
17 changes: 17 additions & 0 deletions feedpage/static/feedpage/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ span > a {
color: black;
}

main {
&.mdl-layout__content {
&.white {
padding: 64px 0 50px;
}
&.black {
padding: 0 0 50px;
}
}
}

.hr-scroll {
white-space: nowrap;
overflow: overlay;
Expand Down Expand Up @@ -80,6 +91,12 @@ label > div:hover {
width: 100%;
margin-left: auto;
margin-right: auto;

&.creator {
display: flex;
flex-flow: column;
min-height: calc(100vh - 314px);
}
}

.container-full {
Expand Down
7 changes: 7 additions & 0 deletions feedpage/static/feedpage/partial.css
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@
text-align: center;
}

.contents.my.empty {
display: flex;
min-height: 0;
width: 100%;
padding: 0 0 50px;
}

.page-content-black {
height: 200px;
}
Expand Down
18 changes: 12 additions & 6 deletions feedpage/static/feedpage/responsive.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
}

.contents.my {
padding: 20px 3% 50px;
width: 94%;
flex-grow: 1;
padding: 20px 3% 0;
}

.comments-input-w {
Expand Down Expand Up @@ -76,7 +78,9 @@
}

.contents.my {
padding: 25px 40px 40px;
width: calc(100% - 80px);
flex-grow: 1;
padding: 25px 40px 0;
}

.comments-input-w {
Expand All @@ -86,12 +90,12 @@
padding-bottom: 9px;
}
.contents.noti {
padding-top: 70px !important;
padding: 70px 0 0;
}

.more-info {
position: absolute;
right: calc(50% - 235px);
right: calc(4% + 40px);
top: auto;
margin-top: -26px;
margin-right: 20px;
Expand Down Expand Up @@ -146,7 +150,9 @@
}

.contents.my {
padding: 30px 40px 40px;
width: calc(100% - 80px);
flex-grow: 1;
padding: 30px 40px 0;
}

.comments-input-w {
Expand All @@ -157,7 +163,7 @@
}

.contents.noti {
padding-top: 70px !important;
padding: 70px 0 0;
}

.container {
Expand Down
2 changes: 1 addition & 1 deletion feedpage/templates/base_black.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</form>
</div>
</header>
<main class="mdl-layout__content w-100 mt-16">
<main class="mdl-layout__content black w-100 mt-16">
{% block content %}
{% endblock %}
</main>
Expand Down
4 changes: 2 additions & 2 deletions feedpage/templates/feedpage/creator.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</div>
</div>
<!--피드 나오는 영역-->
<div class="container">
<div class="container creator">
<!--투탭-->
{% if request.user == creator %}
<div class="page-content-two-tabs w-100">
Expand All @@ -78,7 +78,7 @@
{% endif %}
<!--피드 나오는 영역 / 피드 없을 때-->
{% if not has_feeds %}
<div class="m-auto contents my" style="min-height: 40vh; display: flex !important; display: -webkit-flex !important; display: -ms-flexbox !important;">
<div class="m-auto contents my empty">
<div class="contents-margin w-100 h-100 flex-center font-15">
{% if creator == user %}
<div class="text-center">
Expand Down
Loading

0 comments on commit 5bfc9c1

Please sign in to comment.