apache-ignite
374 строки · 8.5 Кб
1// Licensed to the Apache Software Foundation (ASF) under one or more
2// contributor license agreements. See the NOTICE file distributed with
3// this work for additional information regarding copyright ownership.
4// The ASF licenses this file to You under the Apache License, Version 2.0
5// (the "License"); you may not use this file except in compliance with
6// the License. You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15header {
16
17min-height: var(--header-height);
18background: white;
19display: grid;
20grid-template-columns: auto auto 1fr auto auto auto;
21grid-template-areas: 'left-toggle home nav search gh gg';
22grid-template-rows: 40px;
23flex-direction: row;
24align-items: center;
25justify-content: flex-start;
26padding: 12px 20px;
27box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);
28z-index: 1;
29
30a:hover, button:hover {
31opacity: 0.85;
32}
33
34li:hover .dropdown, a:focus + .dropdown {
35display: block;
36}
37
38.dropdown-arrow {
39margin-left: 5px;
40margin-bottom: 3px;
41
42width: 8px;
43height: 4px;
44}
45
46.dropdown {
47display: none;
48position: fixed;
49top: calc(var(--header-height) - 12px);
50width: max-content;
51background: white;
52box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);
53border-radius: 4px;
54padding-top: 10px;
55padding-bottom: 12px;
56z-index: 2;
57
58li {
59display: flex;
60}
61
62a {
63color: grey !important;
64font-size: 16px;
65padding-top: 5px;
66padding-bottom: 4px;
67&:hover {
68color: var(--gg-orange) !important;
69}
70}
71}
72
73.menu {
74border: none;
75background: none;
76width: 40px;
77height: 40px;
78margin-right: 12px;
79cursor: pointer;
80grid-area: left-toggle;
81
82img {
83width: 18px;
84height: 12px;
85}
86}
87
88.search-toggle, .top-nav-toggle, .github, .search-close {
89background: none;
90border: none;
91padding: 0;
92width: 36px;
93height: 36px;
94display: inline-flex;
95align-items: center;
96justify-content: center;
97color: var(--gg-dark-gray);
98font-size: 26px;
99}
100.search-toggle {
101grid-area: search;
102}
103.top-nav-toggle {
104grid-area: top-toggle;
105}
106
107.home {
108
109grid-area: home;
110margin-right: auto;
111img {
112height: 36px;
113}
114}
115
116
117.search {
118margin-left: auto;
119margin-right: 20px;
120grid-area: search;
121
122input[type='search'] {
123color: var(--gg-dark-gray);
124
125background: rgba(255, 255, 255, 0.8);
126border: 1px solid #cccccc;
127padding: 10px 15px;
128font-family: inherit;
129max-width: 148px;
130height: 37px;
131font-size: 14px;
132-webkit-appearance: unset;
133appearance: unset;
134
135&[disabled] {
136opacity: 0.5;
137cursor: not-allowed;
138}
139}
140
141}
142
143
144
145
146
147&>nav {
148grid-area: nav;
149font-size: 18px;
150display: flex;
151flex-direction: row;
152margin: 0 20px;
153
154li {
155list-style: none;
156margin-right: 0.5em;
157display: flex;
158}
159
160a {
161padding: 9px 14px;
162color: var(--gg-dark-gray) !important;
163text-decoration: none;
164white-space: nowrap;
165
166&.active {
167border-radius: 3px;
168background-color: #f0f0f0;
169}
170}
171}
172
173.github {
174grid-area: gh;
175}
176
177
178.search-close {
179margin-right: 10px;
180}
181
182
183@media (max-width: 900px) {
184grid-template-columns: auto auto 1fr auto auto auto;
185grid-template-areas:
186'left-toggle home spacer top-toggle search gh gg'
187'nav nav nav nav nav nav nav';
188
189nav {
190justify-content: center;
191margin: 20px 0 10px;
192}
193
194& > nav > li {
195position: relative;
196}
197
198.dropdown {
199
200top: calc(var(--header-height) + 25px);
201}
202}
203
204@media (max-width: 600px) {
205.search {
206margin-right: 5px;
207input[type='search'] {
208max-width: 110px;
209}
210}
211}
212
213&:not(.narrow-header) {
214.search-toggle, .top-nav-toggle, .search-close {
215display: none;
216}
217}
218&.narrow-header {
219a.home {
220top: 0;
221}
222&:not(.show-nav) {
223nav {
224display: none;
225}
226}
227&.show-search {
228.search-toggle, .home, .top-nav-toggle, .github, .menu {
229display: none;
230}
231.search {
232grid-column-start: home;
233grid-column-end: github;
234width: 100%;
235display: flex;
236
237input {
238max-width: initial;
239width: 100%;
240}
241}
242}
243&:not(.show-search) {
244.search {
245display: none;
246}
247}
248nav {
249flex-direction: column;
250justify-content: stretch;
251
252li {
253display: flex;
254}
255
256a {
257width: 100%;
258}
259}
260}
261}
262.swiftype-widget {
263
264.autocomplete {
265background-color: white;
266display: block;
267list-style-type: none;
268margin: 0;
269padding: 0;
270box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.37);
271position: absolute;
272border-radius: 3px;
273text-align: left;
274right: 75px !important;
275min-width: 350px;
276
277ul {
278
279background-color: white;
280display: block;
281list-style-type: none;
282margin: 0;
283padding: 0;
284border-radius: 3px;
285text-align: left;
286max-height: 70vh;
287overflow: auto;
288
289li {
290border-top: 1px solid #e5e5e5;
291border-bottom: 1px solid #fff;
292cursor: pointer;
293padding: 10px 8px;
294font-size: 13px;
295list-style-type: none;
296background-image: none;
297margin: 0;
298}
299
300li.active {
301border-top: 1px solid #cccccc;
302border-bottom: 1px solid #cccccc;
303background-color: #f0f0f0;
304}
305
306p {
307font-size: 13px;
308line-height: 16px;
309margin: 0;
310padding: 0;
311
312&.url {
313font-size: 11px;
314color: #999;
315}
316}
317
318a {
319font-size: 15px;
320}
321em {
322font-weight: bold
323}
324}
325}
326}
327section.hero {
328background-image: url(../images/dev-internal-bg.jpg);
329background-position: center;
330background-position-x: left;
331background-repeat: no-repeat;
332background-size: cover;
333display: grid;
334grid-template-columns: 1fr auto;
335grid-template-areas: 'title versions';
336grid-template-rows: 60px;
337align-items: center;
338padding: 5px 30px;
339flex: unset;
340
341
342.title {
343color: #f3f3f3;
344text-transform: uppercase;
345font-size: 22px;
346}
347
348select {
349list-style: none;
350
351line-height: 28px;
352border-radius: 3px;
353
354
355color: #333333;
356line-height: 24px;
357padding: 5px 10px;
358white-space: nowrap;
359font-size: 14px;
360background: #f0f0f0 url("/assets/images/arrow-down.svg") no-repeat center right 5px;
361}
362}
363
364@media (max-width: 450px) {
365section.hero {
366grid-template-rows: auto;
367padding: 15px;
368
369.title {
370font-size: 18px;
371}
372}
373
374}
375