-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed comment page issues and simplified code
- Loading branch information
Showing
5 changed files
with
125 additions
and
68 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,116 @@ | ||
.termComments { | ||
background: #fff; | ||
text-align: center; | ||
margin: 15px; | ||
box-shadow: 0 1px 1px rgba(0,0,0,0.3); | ||
width: 100%; | ||
} | ||
|
||
.termComments h3 { | ||
background: linear-gradient(57deg, #77c9d4, #57bc90); | ||
color: #015249; | ||
font-size: 1.7rem; | ||
font-weight: 600; | ||
line-height: 1.8; | ||
font-family: 'Roboto Mono', monospace; | ||
margin-bottom: 30px; | ||
} | ||
|
||
.commentContainer { | ||
display: block; | ||
text-align: left; | ||
min-height: 35px; | ||
padding: 15px; | ||
} | ||
|
||
.addComment { | ||
text-align: left; | ||
} | ||
|
||
.commenting{ | ||
text-align: right; | ||
} | ||
|
||
.commentAuthor { | ||
display: inline-block; | ||
vertical-align: top; | ||
background-color: #015249; | ||
-webkit-border-radius: 15px; | ||
-moz-border-radius: 15px; | ||
border-radius: 15px; | ||
padding: 20px 10px; | ||
margin-right: 20px; | ||
color: white; | ||
font-size: 1.7rem; | ||
line-height: 1.5; | ||
text-align: center; | ||
} | ||
|
||
.editBox { | ||
width: 60%; | ||
min-height: 100px; | ||
height: auto; | ||
white-space: pre-wrap; | ||
background-color: #fff; | ||
-webkit-border-radius: 15px; | ||
-moz-border-radius: 15px; | ||
border-radius: 15px; | ||
border: transparent; | ||
padding: 20px 10px 20px 10px; | ||
box-shadow: 1px 1px 1px 1px rgba(0,0,0,0.3); | ||
} | ||
|
||
.commentIcon { | ||
width: 25px; | ||
margin-left: 10px; | ||
} | ||
|
||
.termComments button { | ||
text-align: center; | ||
.commentBody { | ||
display:inline-block; | ||
white-space: pre-wrap; | ||
background-color: #f5f5f5; | ||
-webkit-border-radius: 15px; | ||
-moz-border-radius: 15px; | ||
border-radius: 15px; | ||
padding: 20px 10px 20px 10px; | ||
box-shadow: 0 1px 1px rgba(0,0,0,0.3); | ||
width: 60%; | ||
height: auto; | ||
} | ||
|
||
.termComments .commentContainer { | ||
margin: 15px; | ||
text-align: left; | ||
.commentBar { | ||
font-size: 0.7rem; | ||
text-align: right; | ||
padding-bottom: 10px; | ||
} | ||
|
||
.deleteComment { | ||
margin-top: 5px; | ||
margin-left: 75%; | ||
background-color: #015249; | ||
color: white; | ||
border: none; | ||
padding: 10px; | ||
} | ||
|
||
.termComments:hover { | ||
transition: all .3s ease-out; | ||
transform: scale(1.02); | ||
box-shadow: -2px 8px 22px 0 rgba(0,0,0,.15); | ||
} | ||
|
||
@media only screen and (min-width: 700px) { | ||
|
||
.termComments { | ||
box-shadow: 0 1px 1px rgba(0,0,0,0.3); | ||
.commentAuthor { | ||
padding: 20px 15px; | ||
} | ||
|
||
.commentBody { | ||
width: 80%; | ||
padding: 10px 15px 20px 15px; | ||
} | ||
|
||
.editBox { | ||
width: 80%; | ||
padding: 10px 15px 20px 15px; | ||
} | ||
|
||
.deleteComment { | ||
margin-left: 85%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters