gitlabhq/app/assets/stylesheets/sections/notes.scss

234 lines
3.7 KiB
SCSS
Raw Normal View History

2012-02-26 23:41:53 +01:00
/**
* Notes
*
*/
#notes-list,
2012-09-13 19:55:57 +02:00
#new-notes-list {
display: block;
list-style: none;
margin: 0px;
padding: 0px;
2011-11-12 12:04:43 +01:00
}
2012-07-20 02:09:19 +02:00
.issue_notes,
.wiki_notes {
2011-11-12 12:04:43 +01:00
.note_content {
float: left;
width: 400px;
2011-11-12 12:04:43 +01:00
}
}
/* Note textare */
#note_note {
height: 80px;
width: 99%;
font-size: 14px;
2011-11-12 12:04:43 +01:00
}
#new_note {
.attach_holder {
display: none;
2011-11-12 12:04:43 +01:00
}
}
.preview_note {
margin: 2px;
border: 1px solid #ddd;
padding: 10px;
min-height: 60px;
background: #f5f5f5;
}
.note {
padding: 8px 0;
2012-07-29 00:34:51 +02:00
overflow: hidden;
display: block;
position: relative;
2012-07-29 00:34:51 +02:00
img {float: left; margin-right: 10px;}
img.emoji {float: none;margin: 0;}
2012-07-29 00:34:51 +02:00
.note-author cite{font-style: italic;}
p { color: $style_color; }
2012-07-29 00:34:51 +02:00
.note-author { color: $style_color;}
.note-title { margin-left: 45px; padding-top: 5px;}
.avatar {
margin-top: 3px;
2012-07-29 00:34:51 +02:00
}
.delete-note {
display: none;
position: absolute;
right: 0;
top: 0;
2012-07-29 00:34:51 +02:00
}
&:hover {
.delete-note { display: block; }
2012-07-29 00:34:51 +02:00
}
}
#notes-list:not(.reversed) .note,
#new-notes-list:not(.reversed) .note {
border-bottom: 1px solid #eee;
}
#notes-list.reversed .note,
#new-notes-list.reversed .note {
border-top: 1px solid #eee;
}
2011-11-27 14:12:48 +01:00
/* mark vote notes */
.voting_notes .note {
padding: 8px 0;
}
2012-09-13 02:12:44 +02:00
.notes-status {
margin: 18px;
}
2011-12-28 00:29:53 +01:00
p.notify_controls input{
margin: 5px;
}
p.notify_controls span{
font-weight: 700;
}
2012-02-06 01:15:45 +01:00
tr.line_notes_row {
border-bottom: 1px solid #DDD;
2012-07-10 19:15:33 +02:00
border-left: 7px solid #2A79A3;
&.reply {
background: #eee;
2012-07-10 19:15:33 +02:00
border-left: 7px solid #2A79A3;
border-top: 1px solid #ddd;
td {
padding: 7px 10px;
}
a.line_note_reply_link {
border: 1px solid #eaeaea;
@include border-radius(4px);
2012-07-10 19:15:33 +02:00
padding: 3px 10px;
margin-left: 5px;
color: white;
2012-07-10 19:15:33 +02:00
background: #2A79A3;
border-color: #2A79A3;
}
}
ul {
margin: 0;
li {
padding: 0;
border: none;
2012-02-06 01:15:45 +01:00
}
}
}
.line_notes_row, .per_line_form { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.per_line_form {
background: #f5f5f5;
border-top: 1px solid #eee;
form { margin: 0; }
td {
border-bottom: 1px solid #ddd;
}
.note_actions {
margin: 0;
padding-top: 10px;
.buttons {
float: left;
width: 300px;
}
.options {
.labels {
float: left;
padding-left: 10px;
label {
padding: 6px 0;
margin: 0;
width: 120px;
}
}
}
2012-07-10 19:15:33 +02:00
}
}
td .line_note_link {
position: absolute;
margin-left:-70px;
margin-top:-10px;
z-index: 10;
background: url("comment_add.png") no-repeat left 0;
width: 32px;
height: 32px;
opacity: 0.0;
filter: alpha(opacity=0);
&:hover {
opacity: 1.0;
filter: alpha(opacity=100);
}
}
.diff_file_content tr.line_holder:hover > td { background: $hover !important; }
.diff_file_content tr.line_holder:hover > td .line_note_link {
opacity: 1.0;
filter: alpha(opacity=100);
}
2012-06-13 19:02:30 +02:00
.new_note {
.input-file {
font: 500px monospace;
opacity: 0;
2012-06-13 19:02:30 +02:00
filter: alpha(opacity=0);
position: absolute;
z-index: 1;
top: 0;
right: 0;
padding: 0;
2012-06-13 19:02:30 +02:00
margin: 0;
}
.note_advanced_opts {
h6 {
line-height: 32px;
2012-08-09 05:36:55 +02:00
padding-right: 15px;
}
}
2012-08-09 05:36:55 +02:00
.attachments {
position: relative;
2012-06-13 19:02:30 +02:00
width: 350px;
height: 50px;
overflow: hidden;
2012-06-13 19:02:30 +02:00
margin:0 0 5px !important;
2012-08-09 05:36:55 +02:00
.input_file {
2012-08-09 05:36:55 +02:00
.file_upload {
position: absolute;
right: 14px;
top: 7px;
2012-08-09 05:36:55 +02:00
}
.file_name {
line-height: 30px;
width: 240px;
height: 28px;
overflow: hidden;
2012-08-09 05:36:55 +02:00
}
.input-file {
2012-08-09 05:36:55 +02:00
width: 260px;
height: 41px;
float: right;
}
}
2012-06-13 19:02:30 +02:00
}
}
2012-09-01 22:35:04 +02:00
.note-text {
2012-09-01 22:35:04 +02:00
border: 1px solid #aaa;
box-shadow: none;
2012-09-01 22:35:04 +02:00
}