debian-mirror-gitlab/app/assets/stylesheets/pages/notes.scss

257 lines
4.1 KiB
SCSS
Raw Normal View History

2015-04-26 12:48:37 +05:30
/**
* Notes
*/
@-webkit-keyframes targe3-note {
from { background:#fffff0; }
50% { background:#ffffd3; }
to { background:#fffff0; }
}
ul.notes {
display: block;
list-style: none;
margin: 0px;
padding: 0px;
2015-09-25 12:07:36 +05:30
.system-note {
font-size: 14px;
padding-top: 10px;
padding-bottom: 10px;
2015-10-24 18:46:33 +05:30
background: #FDFDFD;
2015-09-25 12:07:36 +05:30
.timeline-icon {
.avatar {
visibility: hidden;
}
}
}
2015-04-26 12:48:37 +05:30
.discussion-header,
.note-header {
@extend .cgray;
a:hover {
text-decoration: none;
}
.avatar {
float: left;
margin-right: 10px;
}
.discussion-last-update,
.note-last-update {
&:before {
content: "\00b7";
}
2015-09-11 14:41:01 +05:30
a {
2015-09-25 12:07:36 +05:30
color: $gl-gray;
2015-09-11 14:41:01 +05:30
&:hover {
text-decoration: underline;
}
}
2015-04-26 12:48:37 +05:30
}
.author {
2015-09-25 12:07:36 +05:30
color: #4c4e54;
margin-right: 3px;
2015-04-26 12:48:37 +05:30
&:hover {
color: $gl-link-color;
}
}
.author-username {
}
2015-09-11 14:41:01 +05:30
.note-role {
float: right;
margin-top: 1px;
border: 1px solid #bbb;
background-color: transparent;
2015-09-25 12:07:36 +05:30
color: $gl-gray;
2015-09-11 14:41:01 +05:30
}
2015-04-26 12:48:37 +05:30
}
2015-10-24 18:46:33 +05:30
.discussion-body {
padding-top: 15px;
}
2015-04-26 12:48:37 +05:30
.discussion {
overflow: hidden;
display: block;
position:relative;
}
.note {
display: block;
position:relative;
2015-09-11 14:41:01 +05:30
2015-04-26 12:48:37 +05:30
.note-body {
overflow: auto;
2015-09-11 14:41:01 +05:30
2015-04-26 12:48:37 +05:30
.note-text {
overflow: auto;
word-wrap: break-word;
@include md-typography;
2015-09-11 14:41:01 +05:30
// Reset ul style types since we're nested inside a ul already
& > ul {
list-style-type: disc;
ul {
list-style-type: circle;
ul {
list-style-type: square;
}
}
}
// Reduce left padding of first task list ul element
ul.task-list:first-child {
padding-left: 10px;
// sub-tasks should be padded normally
ul {
padding-left: 20px;
}
}
2015-04-26 12:48:37 +05:30
hr {
2015-09-11 14:41:01 +05:30
// Darken 'whitesmoke' a bit to make it more visible in note bodies
border-color: darken(#F5F5F5, 8%);
2015-04-26 12:48:37 +05:30
margin: 10px 0;
}
}
}
2015-09-11 14:41:01 +05:30
2015-04-26 12:48:37 +05:30
.note-header {
padding-bottom: 3px;
}
&:last-child {
border-bottom: none;
}
}
}
// Diff code in discussion view
.discussion-body .diff-file {
.diff-header > span {
margin-right: 10px;
}
.line_content {
white-space: pre-wrap;
}
}
.diff-file .notes_holder {
font-family: $regular_font;
td {
border: 1px solid #ddd;
border-left: none;
&.notes_line {
text-align: center;
padding: 10px 0;
background: #FFF;
}
&.notes_line2 {
text-align: center;
padding: 10px 0;
border-left: 1px solid #ddd !important;
}
&.notes_content {
background-color: #fff;
border-width: 1px 0;
padding-top: 0;
vertical-align: top;
&.parallel{
border-width: 1px;
}
}
}
}
/**
* Actions for Discussions/Notes
*/
.discussion,
.note {
.discussion-actions,
.note-actions {
float: right;
2015-09-11 14:41:01 +05:30
margin-left: 10px;
2015-04-26 12:48:37 +05:30
a {
2015-09-11 14:41:01 +05:30
margin-left: 5px;
2015-09-25 12:07:36 +05:30
color: $gl-gray;
2015-09-11 14:41:01 +05:30
i.fa {
font-size: 16px;
line-height: 16px;
}
2015-04-26 12:48:37 +05:30
&:hover {
2015-09-11 14:41:01 +05:30
@extend .cgray;
2015-04-26 12:48:37 +05:30
&.danger { @extend .cred; }
}
}
}
}
.diff-file .note .note-actions {
right: 0;
top: 0;
}
/**
* Line note button on the side of diffs
*/
.diff-file tr.line_holder {
@mixin show-add-diff-note {
filter: alpha(opacity=100);
opacity: 1.0;
}
.add-diff-note {
margin-top: -4px;
@include border-radius(40px);
background: #FFF;
padding: 4px;
font-size: 16px;
color: $gl-link-color;
margin-left: -60px;
position: absolute;
z-index: 10;
width: 32px;
transition: all 0.2s ease;
// "hide" it by default
opacity: 0.0;
filter: alpha(opacity=0);
&:hover {
background: $gl-info;
color: #FFF;
@include show-add-diff-note;
}
}
// "show" the icon also if we just hover somewhere over the line
&:hover > td {
background: $hover !important;
.add-diff-note {
@include show-add-diff-note;
}
}
}