forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRepoHeader.scss
88 lines (74 loc) · 1.74 KB
/
RepoHeader.scss
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
@import '../components/Breadcrumb';
@import './actions/CopyLinkAction';
@import './RepositoriesPopover';
@import './RepoHeaderBreadcrumbNavItem';
.repo-header {
flex: none;
padding-top: 0;
padding-bottom: 0;
padding-right: 0;
align-items: stretch;
border-style: solid;
border-width: 0 0 1px;
&__action-list-item {
// Have a small gap between buttons so they are visually distinct when pressed
// stylelint-disable-next-line declaration-property-unit-whitelist
margin-left: 1px;
&:hover {
.theme-dark & {
background: $color-bg-1;
}
.theme-light & {
background: $color-light-bg-2;
}
}
}
&__action-item--pressed {
.theme-dark & {
background-color: $color-bg-2;
color: $color-text-3;
}
.theme-light & {
background-color: $color-light-bg-4;
color: $color-light-text-1;
}
}
.navbar-nav {
white-space: nowrap;
.nav-item {
display: flex;
align-items: stretch;
.nav-link {
user-select: none;
}
}
}
&__repo-basename {
font-weight: bold;
}
&__alert {
margin: 0 0.25rem;
padding: 0.125rem 0.25rem;
cursor: default;
user-select: none;
}
&__icon-chevron {
opacity: 0.6;
margin: auto;
}
.copy-link-action {
opacity: 0;
}
&:hover .copy-link-action {
opacity: 1;
}
&__spacer {
flex: 1 1 0;
}
.theme-dark & {
border-color: #233043;
}
.theme-light & {
border-color: $color-light-border;
}
}