aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/ui/ContextNavBar.css
blob: ae79f602242e8df05bb3951a1bc9d6f1593a7252 (plain)
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
95
96
97
98
99
/*
 * SonarQube
 * Copyright (C) 2009-2023 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
.navbar-context,
.navbar-context .navbar-inner {
  background-color: #fff;
  z-index: var(--contextbarZIndex);
}

.navbar-context .navbar-inner {
  padding-top: var(--gridSize);
  border-bottom: 1px solid var(--barBorderColor);
}

.navbar-context .navbar-inner-with-notif {
  border-bottom: none;
}

.navbar-context-justified {
  display: flex;
  justify-content: space-between;
}

/* use `min-width: 0` to cut breadcrumb links (to end with "...") */
/* https://stackoverflow.com/questions/38223879/white-space-nowrap-breaks-flexbox-layout */
.navbar-context-header {
  display: flex;
  align-items: center;
  min-width: 0;
  height: calc(4 * var(--gridSize));
  font-size: var(--bigFontSize);
}

/* disallow icons and slash separators to shrink */
.navbar-context-header > *:not(.navbar-context-header-breadcrumb-link) {
  flex-shrink: 0;
}

.navbar-context-header-breadcrumb-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-context-header .slash-separator {
  margin-left: var(--gridSize);
  margin-right: var(--gridSize);
  font-size: 24px;
}

.navbar-context-header .slash-separator::after {
  color: rgba(68, 68, 68, 0.2);
}

/* set `min-width: 0` to allow flexbox item to shrink */
/* https://stackoverflow.com/questions/38223879/white-space-nowrap-breaks-flexbox-layout */
.navbar-context-meta {
  display: flex;
  align-items: center;
  height: calc(4 * var(--gridSize));
  padding-left: 20px;
  color: var(--secondFontColor);
  font-size: var(--smallFontSize);
  text-align: right;
}

.navbar-context-meta-secondary {
  position: absolute;
  top: 34px;
  right: 0;
  padding: 0 20px;
  white-space: nowrap;
}

.navbar-context-description {
  display: inline-block;
  line-height: var(--controlHeight);
  margin-left: var(--gridSize);
  padding-top: 4px;
  color: var(--secondFontColor);
  font-size: var(--smallFontSize);
}