summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/certificate_viewer.css
blob: 6c48b0d909a097f2e11bebbbc682e0c8fb56acfd (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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

/* Using 100% width within body should exclude margins. */
html,
body {
  height: 100%;
  width: 100%;
}

body {
  box-sizing: border-box;
  margin: 0;
}

h3 {
  font-size: 100%;
  margin-bottom: 15px;
  margin-top: 17px;
}

#usages-title {
  /* Workaround until webkit bug https://bugs.webkit.org/show_bug.cgi?id=80537
   * is resolved. */
  padding-top: 17px;
}

#tabbox {
  height: 100%;
  width: 100%;
}

#tabpanels {
  overflow: auto;
}

#usages,
#cert-field-value {
  padding-inline-start: 15px;
  white-space: pre-wrap;
}

#general h3 {
  margin-bottom: 16px;
  margin-top: 32px;
}

.groups {
  display: table;
}

.groups > * {
  display: table-row;
}

#usages,
.groups > div > div {
  color: #616161;
  line-height: 18px;
  padding-inline-start: 20px;
}

.attribute {
  display: table-cell;
  white-space: nowrap;
}

.value {
  display: table-cell;
  white-space: pre-wrap;
}

/* Used so that 100% width within tabpanel will correspond to usable space. */
tabpanel {
  position: relative;
}

.vertical-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  width: 100%;
}

/* The minimum heights defined for the three sections are calculated based on
 * the percentage of rendered height at 100% scaling. The dialog height is
 * defined in CertificateViewerDialog::GetDialogSize. */
#hierarchy-section {
  height: 20%;
  min-height: 117px;
  top: 0;
}

#cert-fields-section {
  height: 50%;
  min-height: 294px;
}

#cert-field-value-section {
  bottom: 0;
  height: 30%;
  min-height: 126px;
}

.section-contents {
  background: #fff;
  border: 1px solid #c8c8c8;
  flex: 1 1 auto;
  /* Scrolling should be enabled on all tree views and value field. */
  overflow: auto;
}

.tree-row[selected] {
  background-color: #f0f0f0;
  background-image: none;
}

.tree-item > .tree-row {
  border: 0;
  border-radius: 0;
  line-height: 29px;
}

#export {
  float: right;
  margin-bottom: 20px;
  margin-inline-start: 1px;
  margin-top: 10px;
}