Skip to content

Commit 74165f7

Browse files
committed
462: Add herodevs support.
1 parent 5a19a9c commit 74165f7

File tree

3 files changed

+36
-12
lines changed

3 files changed

+36
-12
lines changed

themes/jquery/css/base.css

+28-11
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,25 @@ iframe {
881881
margin: 0;
882882
}
883883

884+
/* Support message
885+
========================================================================== */
886+
887+
#support-message {
888+
display: flex;
889+
justify-content: center;
890+
background-color: #dddddd;
891+
padding: 4px 4px;
892+
font-size: 15px;
893+
}
894+
#support-message span {
895+
text-align: center;
896+
padding-left: 20px;
897+
padding-right: 20px;
898+
}
899+
#support-message span a {
900+
color: #222;
901+
}
902+
884903

885904
/* Global Nav
886905
========================================================================== */
@@ -1236,10 +1255,11 @@ nav#main li.current a {
12361255
font-family: "Lucida Grande", Lucida, Verdana, sans-serif;
12371256
}
12381257

1239-
.tsmb-form {
1258+
typesense-minibar {
12401259
--tsmb-size-radius: 5px;
12411260
--tsmb-size-base: 12px;
12421261
--tsmb-size-sm: 0.8rem;
1262+
--tsmb-size-listbox-right: 0;
12431263
--tsmb-color-base-background: var(--tsmb-color-primary50);
12441264
--tsmb-color-base30: #fff;
12451265
--tsmb-color-base50: var(--tsmb-color-primary90);
@@ -1251,32 +1271,29 @@ nav#main li.current a {
12511271
--tsmb-color-primary50: #0769ad; /* jQuery Primary Blue */
12521272
--tsmb-color-primary90: #b4efff; /* oklch(0.92 0.07 228) hue=228 of #7ACEF4 (jQuery Secondary Blue) */
12531273
}
1254-
.jquery-ui .tsmb-form {
1274+
.jquery-ui typesense-minibar {
12551275
--tsmb-color-primary50: #b24926; /* jQuery UI Secondary Orange */
12561276
--tsmb-color-primary90: #ffddb2; /* = #b4efff + oklch(hue=70) of #FAA523 (jQuery UI Primary Orange) */
12571277
}
1258-
.jquery-mobile .tsmb-form {
1278+
.jquery-mobile typesense-minibar {
12591279
--tsmb-color-primary50: #108040; /* jQuery Mobile Secondary Green */
12601280
--tsmb-color-primary90: #c9f2c8; /* = #b4efff + oklch(hue=144) of #3EB249 (jQuery UI Primary Orange) */
12611281
}
1262-
.jquery-foundation .tsmb-form {
1282+
.jquery-foundation typesense-minibar {
12631283
--tsmb-color-primary50: #333; /* jQuery Black */
12641284
--tsmb-color-primary90: #ccc;
12651285
}
1266-
.jquery-learn .tsmb-form {
1286+
.jquery-learn typesense-minibar {
12671287
--tsmb-color-primary50: #222;
12681288
--tsmb-color-primary90: #ccc;
12691289
}
1270-
.tsmb-form:not(:focus-within)::before {
1290+
typesense-minibar form:not(:focus-within)::before {
12711291
filter: invert();
12721292
}
1273-
.tsmb-form input[type=search] {
1293+
typesense-minibar input[type=search] {
12741294
border-width: 0;
12751295
}
1276-
.tsmb-form [role="listbox"] {
1277-
right: 0;
1278-
}
1279-
.tsmb-form [role="option"] mark {
1296+
typesense-minibar[role="option"] mark {
12801297
border-bottom: 2px solid var(--tsmb-color-primary90);
12811298
}
12821299

themes/jquery/header.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
</head>
3535
<body <?php body_class(); ?>>
3636

37+
<div id="support-message" class="support-message">
38+
<span style="">jQuery 4 is currently in beta. Soon jQuery 3 will reach EOL along with versions 1 and 2. Learn more about our&nbsp;<a href="https://jquery.com/support/">Version&nbsp;Support</a>.</span>
39+
</div>
40+
3741
<header>
3842
<section id="global-nav">
3943
<nav>
@@ -93,7 +97,9 @@
9397
</div>
9498

9599
<nav id="main" class="constrain clearfix">
96-
<?php get_template_part('menu', 'header'); ?>
100+
<?php
101+
102+
get_template_part('menu', 'header'); ?>
97103

98104
<?php get_search_form(); ?>
99105
</nav>

themes/jquery/menu-header.php

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function menu_header_jquery_com() {
1313
'https://blog.jquery.com/' => 'Blog',
1414
'https://plugins.jquery.com/' => 'Plugins',
1515
'https://jquery.com/browser-support/' => 'Browser Support',
16+
'https://jquery.com/support/' => 'Version Support',
1617
);
1718
}
1819

0 commit comments

Comments
 (0)