jdk
244 строки · 4.6 Кб
1/*
2* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
3* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*
5* This code is free software; you can redistribute it and/or modify it
6* under the terms of the GNU General Public License version 2 only, as
7* published by the Free Software Foundation. Oracle designates this
8* particular file as subject to the "Classpath" exception as provided
9* by Oracle in the LICENSE file that accompanied this code.
10*
11* This code is distributed in the hope that it will be useful, but WITHOUT
12* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14* version 2 for more details (a copy is included in the LICENSE file that
15* accompanied this code).
16*
17* You should have received a copy of the GNU General Public License version
18* 2 along with this work; if not, write to the Free Software Foundation,
19* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20*
21* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22* or visit www.oracle.com if you need additional information or have any
23* questions.
24*/
25
26@import url('../api/resource-files/fonts/dejavu.css');27
28body {29font-family: DejaVu Sans, Bitstream Vera Sans, Luxi Sans, Verdana, Arial, Helvetica, sans-serif;30font-size: 10pt;31margin: 0;32padding: 0;33height: 100%;34width: 100%;35min-width: 100%;36line-height: 1.4;37}
38
39pre, code, tt {40font-family: DejaVu Sans Mono, Bitstream Vera Sans Mono, Luxi Mono, Courier New, monospace;41}
42
43main, footer {44margin: 16px 27px;45}
46
47/* Adjust horizontal margin for content elements outside of main element */
48:is(body, header) > :is(nav, h1, h2, h3, h4, h5, h6, p, .sub-title) {49margin-left: 27px;50margin-right: 27px;51}
52
53blockquote {54margin: 1.5ex 0 1.5ex 2em;55}
56
57p {58margin-top: 1ex;59margin-bottom: 1ex;60}
61
62dd > p:first-child, pre:first-child {63margin-top: 0;64}
65
66h1:first-child, h2:first-child {67margin-top: 0;68}
69
70h1, h2 {71margin-top: 2ex;72margin-bottom: 1ex;73}
74
75h3, h4, h5 {76margin-top: 1.5ex;77margin-bottom: 1ex;78}
79
80h4, h5 {81font-size: 100%;82}
83
84.subtitle {85font-style: italic;86font-weight: bold;87margin-bottom: 1em;88}
89
90h1.title + .subtitle {91margin-top: -1em;92}
93
94a { text-decoration: none }95
96a:link {97color: #4A6782;98}
99
100a:visited {101color: #666666;102}
103
104a[href]:hover {105color: #e76f00;106}
107
108a img {109border-width: 0;110}
111
112img {113background: white;114}
115
116table {117border-collapse: collapse;118margin-left: 15px;119margin-right: 15px;120}
121
122th, td {123padding: 3px;124vertical-align: top;125}
126
127table, th, td {128border: 1px solid black;129}
130
131caption {132text-align: left;133font-style: italic;134text-indent: 15px;135margin-bottom:10px;136}
137
138tr:nth-child(even), tr:nth-child(even) th[scope=row] {139background: #E3E3E3;140}
141
142tr:nth-child(odd), tr:nth-child(odd) th[scope=row] {143background: #FFF;144}
145
146th {147background: #DDF;148}
149
150table.centered {151margin-left: auto;152margin-right: auto;153}
154table.centered td {155text-align: left;156}
157.centered {158text-align: center;159}
160
161.draft-header {162text-align: center;163font-size: 11.2px;164padding: 6px;165line-height: initial;166}
167
168.legal-footer {169font-style: italic;170font-size: 80%;171}
172
173nav#TOC {174border: 1px solid gray;175border-radius: 10px;176padding: 5px 10px;177margin-bottom: 15px;178}
179
180nav#TOC ul ul {181font-size:smaller;182}
183
184nav#TOC ul ul li {185display: inline-block186}
187
188nav#TOC ul ul li::before {189content: " \2022 "190}
191
192/* Rules below replicate sizing of navigation bar in API docs */
193header#title-block-header div.navbar {194padding: 0 20px 0 26px;195margin-bottom: 30px;196background-color: #4D7A97;197color: #FFFFFF;198height: 44px;199overflow: hidden;200font-size: 0.857em;201line-height: initial;202display: flex;203flex-direction: row-reverse;204align-items: center;205}
206
207header#title-block-header div.navbar nav {208flex: 1 1 auto;209font-size: 12px;210white-space: nowrap;211}
212
213header#title-block-header div.navbar div {214flex: 0 0 auto;215font-size: 10.978px;216white-space: nowrap;217}
218
219header#title-block-header ul {220display:block;221margin:0 25px 0 0;222padding:0;223}
224header#title-block-header ul li {225list-style:none;226float:left;227padding: 5px 6px;228text-transform:uppercase;229}
230
231header#title-block-header li.no-link {232background-color:#F8981D;233color:#253441;234margin: auto 5px;235}
236
237header#title-block-header a:link, header#title-block-header a:active, header#title-block-header a:visited {238color:#ffffff;239text-decoration:none;240text-transform:uppercase;241}
242header#title-block-header a:hover {243color:#bb7a2a;244}
245