Add markdown support for comments and repo descriptions

This commit is contained in:
Joseph Schorr 2013-09-30 19:08:24 -04:00
parent e4653cd7cf
commit 461f324e09
12 changed files with 3816 additions and 14 deletions

View file

@ -32,10 +32,17 @@
margin-right: 8px;
}
.editable {
position: relative;
}
.editable i {
position: absolute;
top: 0px;
right: -40px;
opacity: 0.2;
font-size: 85%;
margin-left: 10px;
display: inline-block;
transition: opacity 500ms ease-in-out;
@ -244,6 +251,10 @@ p.editable:hover i {
min-width: 300px;
}
.repo .description p {
margin: 0px;
}
.repo thead td {
padding: 4px;
color: #999;
@ -257,6 +268,17 @@ p.editable:hover i {
margin: 10px;
}
.repo .images .image-id {
font-size: 85%;
max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
}
.repo .images p {
margin: 0px;
}
.navbar-nav > li > .user-dropdown {
padding-top: 9px;
padding-bottom: 9px;
@ -348,6 +370,33 @@ p.editable:hover i {
border: inherit;
}
/* Overrides for the markdown editor. */
.wmd-panel .btn-toolbar {
margin-bottom: 10px;
}
.wmd-panel textarea {
outline: none;
}
.wmd-panel.wmd-preview:before {
display: inline-block;
content: "Preview";
background: #eee;
padding: 4px;
position: absolute;
top: 0px;
right: 0px;
}
.wmd-panel.wmd-preview {
position: relative;
border: 1px solid #eee;
margin-top: 10px;
padding: 10px;
}
/* Overrides for typeahead to work with bootstrap 3. */