notes.scss 2.83 KB
Newer Older
1 2 3 4
/**
 * Notes
 *
 */
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
5 6
#notes-list, 
#new_notes_list {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
7 8 9 10 11 12
  display:block;
  list-style:none;
  margin:0px;
  padding:0px;
}

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
13 14 15 16
#new_notes_list li:last-child{ 
  border-bottom:1px solid #aaa;
}

Ian Morgan's avatar
Ian Morgan committed
17 18
.issue_notes,
.wiki_notes {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
  .note_content {
    float:left;
    width:400px;
  }
}

/* Note textare */
#note_note {
  height:100px;
  width:97%;
  font-size:14px;
}

#new_note {
  #note_note {
    height:25px;
  }
  .attach_holder {
    display:none;
  }
}

41 42 43 44
.note .delete-note { 
  display:none; 
  float:right;
}
45 46 47 48 49 50 51
.note:hover .delete-note { display:block; }
.note {padding: 10px 0; border-bottom: 1px solid #eee; overflow: hidden; display: block;}
.note img{float: left; margin-right: 10px;}
.note span.note-title{display: block;}
.note span.note-title{margin-bottom: 10px}
.note span.note-author{color: #999; font-weight: normal; font-style: italic;}
.note span.note-author strong{font-weight: bold; font-style: normal;}
52 53
.note p { color:$style_color; }
.note .note-author { color: $style_color;}
54 55

.note .note-title { margin-left:55px; }
56 57 58 59 60 61 62 63

p.notify_controls input{
  margin: 5px;
}

p.notify_controls span{
  font-weight: 700;
}
64 65 66

tr.line_notes_row { 
  border-bottom:1px solid #DDD;
randx's avatar
randx committed
67 68
  border-left: 7px solid #2A79A3;

69 70
  &.reply { 
    background:#eee;
randx's avatar
randx committed
71 72
    border-left: 7px solid #2A79A3;
    border-top:1px solid #ddd;
73 74 75 76 77
    td { 
      padding:7px 10px;
    }
    a.line_note_reply_link { 
      @include round-borders-all(4px);
randx's avatar
randx committed
78 79
      padding: 3px 10px;
      margin-left:5px;
80
      color: white;
randx's avatar
randx committed
81 82
      background: #2A79A3;
      border-color: #2A79A3;
83 84
    }
  }
85 86 87 88 89 90 91 92 93
  ul { 
    margin:0;
    li { 
      padding:0;
      border:none;
    }
  }
}

94 95 96 97
.line_notes_row,  .per_line_form { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }

.per_line_form { 
  background:#f5f5f5;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
98
  border-top:1px solid #eee;
99 100 101 102
  form {  margin: 0; }
  td { 
    border-bottom:1px solid #ddd;
  }
randx's avatar
randx committed
103 104 105
  .actions { 
    margin:0;
  }
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
}

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);
}
randx's avatar
randx committed
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164

.new_note {
  .input-file {
    font: 500px monospace;
    opacity:0;
    filter: alpha(opacity=0);
    position: absolute;
    z-index: 1;
    top:0;
    right:0;
    padding:0;
    margin: 0;
  }

  .file_upload {
    position: absolute;
    right:14px;
    top:7px;
  }

  div.attachments {
    position:relative;
    width: 350px;
    height: 36px;
    overflow:hidden;
    margin:0 0 5px !important;
  }
  .file_name {
    line-height:30px;
    width:240px;
    height:28px;
    overflow:hidden;
  }
}