summaryrefslogtreecommitdiffstats
path: root/toolkit/components/certviewer/content/components/certificate-section.css
blob: 07baa845306f2a6ff9e5b64cc7f0ba940b590b77 (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
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

h1 {
  font-size: 1.5em;
  font-weight: lighter;
  margin: 3em 0 1em;
}

.certificate-tabs {
  display: flex;
  text-align: center;
  border-bottom: 1px solid var(--in-content-border-color);
  box-shadow: var(--card-shadow);
}

.info-groups {
  display: none;
  outline: none;
  background-color: var(--in-content-box-background);
  box-shadow: var(--card-shadow);
  margin-bottom: 2em;
  border-radius: 0 0 4px 4px;
}

.info-groups.selected {
  display: block;
}

.tab {
  margin: 0;
  border-radius: 0;
  padding: 18px;
  padding-bottom: 15px; /* compensate for border-bottom below */
  border: none;
  border-bottom: 3px solid transparent;
  background-color: var(--in-content-box-background);
  color: var(--in-content-text-color);
  flex: 1 1 auto;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 1.1em;
}

/* .tab can be LTR (by `dir="auto"`) for `about:certificate?cert=`
   pages, so set the border-radius according to the parent's direction. */
.certificate-tabs:dir(rtl) > .tab:first-of-type,
.certificate-tabs:dir(ltr) > .tab:last-of-type {
  border-top-right-radius: 4px;
}

.certificate-tabs:dir(ltr) > .tab:first-of-type,
.certificate-tabs:dir(rtl) > .tab:last-of-type {
  border-top-left-radius: 4px;
}

.certificate-tab:focus-visible {
  z-index: 1;
  outline: 2px solid var(--in-content-focus-outline-color);
}

.tab:hover {
  border-bottom-color: var(--in-content-border-color);
}

.tab.selected {
  border-bottom-color: currentColor;
  color: var(--in-content-accent-color);
  text-overflow: unset;
  overflow: visible;
}