Commit 170a3930 by Tom Giannattasio Committed by Matthew Mongeau

restyled inline new post form

parent c6a91e33
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
height: 35px; height: 35px;
padding: 0 15px; padding: 0 15px;
border-radius: 3px; border-radius: 3px;
border: 1px solid #444; border: 1px solid #aaa;
@include linear-gradient(top, #eee, #ccc); @include linear-gradient(top, #eee, #ccc);
font-size: 13px; font-size: 13px;
font-weight: 700; font-weight: 700;
...@@ -310,6 +310,7 @@ body.discussion { ...@@ -310,6 +310,7 @@ body.discussion {
@include white-button; @include white-button;
height: 40px; height: 40px;
margin-top: 15px; margin-top: 15px;
border-color: #444;
line-height: 36px; line-height: 36px;
.drop-arrow { .drop-arrow {
...@@ -507,6 +508,7 @@ body.discussion { ...@@ -507,6 +508,7 @@ body.discussion {
.new-post-cancel { .new-post-cancel {
@include white-button; @include white-button;
bordre-color: #444;
float: left; float: left;
margin: 10px 0 0 15px; margin: 10px 0 0 15px;
} }
...@@ -1560,6 +1562,15 @@ body.discussion { ...@@ -1560,6 +1562,15 @@ body.discussion {
.discussion-module { .discussion-module {
@extend .discussion-body; @extend .discussion-body;
.discussion-show {
@include white-button;
display: inline-block;
}
.new-post-btn {
display: inline-block;
}
section.discussion { section.discussion {
/* Course content p has a default margin-bottom of 1.416em, this is just to reset that */ /* Course content p has a default margin-bottom of 1.416em, this is just to reset that */
.discussion-thread { .discussion-thread {
...@@ -1631,11 +1642,13 @@ body.discussion { ...@@ -1631,11 +1642,13 @@ body.discussion {
.new-post-form { .new-post-form {
width: 100%; width: 100%;
margin-bottom: 20px; margin-bottom: 20px;
padding: 30px;
border-radius: 3px; border-radius: 3px;
background: rgba(0, 0, 0, .55); background: rgba(0, 0, 0, .55);
color: #fff; color: #fff;
box-shadow: 0 1px 2px rgba(0, 0, 0, .5) inset, 0 1px 0 rgba(255, 255, 255, .5); box-shadow: none;
@include clearfix; @include clearfix;
@include box-sizing(border-box);
.form-row { .form-row {
margin-bottom: 20px; margin-bottom: 20px;
...@@ -1700,6 +1713,22 @@ body.discussion { ...@@ -1700,6 +1713,22 @@ body.discussion {
font-weight: 700; font-weight: 700;
} }
.tagsinput {
padding: 10px;
box-sizing: border-box;
border: 1px solid #333;
border-radius: 3px;
background: #fff;
font-family: 'Monaco', monospace;
font-size: 13px;
line-height: 1.6;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
span.tag {
margin-bottom: 0;
}
}
.submit { .submit {
@include blue-button; @include blue-button;
float: left; float: left;
...@@ -1717,10 +1746,11 @@ body.discussion { ...@@ -1717,10 +1746,11 @@ body.discussion {
@include white-button; @include white-button;
float: left; float: left;
margin: 10px 0 0 15px; margin: 10px 0 0 15px;
border-color: #444;
} }
.options { .options {
margin-top: 40px; margin-top: 5px;
label { label {
display: inline; display: inline;
...@@ -1763,6 +1793,7 @@ body.discussion { ...@@ -1763,6 +1793,7 @@ body.discussion {
.new-post-btn { .new-post-btn {
@include blue-button; @include blue-button;
display: inline-block;
font-size: 13px; font-size: 13px;
margin-right: 4px; margin-right: 4px;
} }
...@@ -1783,7 +1814,7 @@ body.discussion { ...@@ -1783,7 +1814,7 @@ body.discussion {
display: inline-block; display: inline-block;
padding-right: 0.5em; padding-right: 0.5em;
a { a {
@include white-button @include white-button;
} }
} }
...@@ -1800,3 +1831,6 @@ body.discussion { ...@@ -1800,3 +1831,6 @@ body.discussion {
} }
} }
} }
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
<div class="new-post-form-errors"> <div class="new-post-form-errors">
</div> </div>
<form class="new-post-form"> <form class="new-post-form">
<div class="right-column">
<div class="form-row"> <div class="form-row">
<input type="text" class="new-post-title" name="title" placeholder="Title"> <input type="text" class="new-post-title" name="title" placeholder="Title">
</div> </div>
...@@ -25,7 +24,6 @@ ...@@ -25,7 +24,6 @@
<br> <br>
<input type="checkbox" name="anonymous" class="discussion-anonymous" id="new-post-anonymous"><label for="new-post-anonymous">post anonymously</label> <input type="checkbox" name="anonymous" class="discussion-anonymous" id="new-post-anonymous"><label for="new-post-anonymous">post anonymously</label>
</div> </div>
</div>
</form> </form>
</div> </div>
</article> </article>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment