Repository navigation
Expand file tree
/
Copy pathcommit-detail.less
More file actions
94 lines (82 loc) · 2.09 KB
/
Copy pathcommit-detail.less
File metadata and controls
94 lines (82 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
@import "variables";
@default-padding: @component-padding;
@avatar-dimensions: 16px;
.github-CommitDetailView {
display: flex;
flex-direction: column;
height: 100%;
&-header {
flex: 0;
border-bottom: 1px solid @pane-item-border-color;
background-color: @pane-item-background-color;
}
&-commit {
padding: @default-padding*2;
padding-bottom: 0;
}
&-title {
margin: 0 0 .25em 0;
font-size: 1.4em;
line-height: 1.3;
color: @text-color-highlight;
}
&-avatar {
border-radius: @component-border-radius;
height: @avatar-dimensions;
margin-right: .4em;
width: @avatar-dimensions;
}
&-meta {
display: flex;
align-items: center;
margin: @default-padding/2 0 @default-padding*2 0;
}
&-metaText {
flex: 1;
margin-left: @avatar-dimensions * 1.4; // leave some space for the avatars
line-height: @avatar-dimensions;
color: @text-color-subtle;
}
&-moreButton {
position: absolute;
left: 50%;
transform: translate(-50%, -50%);
padding: 0em .4em;
color: @text-color-subtle;
font-style: italic;
border: 1px solid @button-border-color;
border-radius: @component-border-radius;
background-color: @button-background-color;
&:hover {
background-color: @button-background-color-hover
}
}
&-moreText {
padding: @default-padding*2 0;
font-size: inherit;
font-family: var(--editor-font-family);
word-wrap: initial;
word-break: break-word;
white-space: pre-wrap;
border-top: 1px solid @pane-item-border-color;
background-color: transparent;
// in the case of loonnng commit message bodies, we want to cap the height so that
// the content beneath will remain visible / scrollable.
max-height: 55vh;
&:empty {
display: none;
}
}
&-sha {
flex: 0 0 7ch; // Limit to 7 characters
margin-left: @default-padding*2;
line-height: @avatar-dimensions;
color: @text-color-subtle;
font-family: var(--editor-font-family);
white-space: nowrap;
overflow: hidden;
a {
color: @text-color-info;
}
}
}