Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust Input and Set anchor tags for editor and showcase in side-bar to target blank #1177

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions offline-reference/extra/css/all.css
Original file line number Diff line number Diff line change
@@ -2946,6 +2946,17 @@ footer {
width: 1px;
}

.small-search {
size: 20;
}


@media (min-width: 780px) {
.small-search {
transform: scale(0.8);
}
}

/*
* Extends the .visuallyhidden class to allow the element to be focusable
* when navigated to via the keyboard: h5bp.com/p
8 changes: 8 additions & 0 deletions src/assets/css/main.css
Original file line number Diff line number Diff line change
@@ -2204,7 +2204,15 @@ footer {
/*
* Hide only visually, but have it available for screenreaders: h5bp.com/v
*/
.small-search {
size: 20
}

@media (min-width: 780px) {
.small-search {
transform: scale(0.8);
}
}
.sr-only {
border: 0;
clip: rect(0 0 0 0);
2 changes: 1 addition & 1 deletion src/templates/pages/index.hbs
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ slug: /
<form id="search" method="get" action="https://www.google.com/search">
<input type="hidden" name="as_sitesearch" value="p5js.org">
<input id="search_button" type="submit" aria-label="Search" class='sr-only'>
<input tabindex="2" id='search_field' type="text" size="20" placeholder="Search p5js.org" name="q">
<input tabindex="2" id='search_field' type="text" class='small-search' placeholder="Search p5js.org" name="q">
<label class="sr-only" for="search_field">Search p5js.org</label>
</form>

4 changes: 2 additions & 2 deletions src/templates/partials/sidebar.hbs
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ slug: sidebar
<label class="sidebar-menu-icon" for="sidebar-menu-btn"><span class="sidebar-nav-icon"></span></label>
<ul id="menu" class="sidebar-menu" aria-labelledby="menu-title">
<li><a href="{{root}}/">{{#i18n "Home"}}{{/i18n}}</a></li>
<li><a href="https://editor.p5js.org">{{#i18n "Editor"}}{{/i18n}}</a></li>
<li><a href="https://editor.p5js.org" target=_blank class="other-link">{{#i18n "Editor"}}{{/i18n}}</a></li>
<li><a href="{{root}}/download/">{{#i18n "Download"}}{{/i18n}}</a></li>
<li><a href="{{root}}/download/support.html">{{#i18n "Donate"}}{{/i18n}}</a></li>
<li><a href="{{root}}/get-started/">{{#i18n "Start"}}{{/i18n}}</a></li>
@@ -20,7 +20,7 @@ slug: sidebar
<li><a href="{{root}}/examples/">{{#i18n "Examples"}}{{/i18n}}</a></li>
<li><a href="{{root}}/books/">{{#i18n "Books"}}{{/i18n}}</a></li>
<li><a href="{{root}}/community/">{{#i18n "Community"}}{{/i18n}}</a></li>
<li><a href="https://showcase.p5js.org">{{#i18n "Showcase"}}{{/i18n}}</a></li>
<li><a href="https://showcase.p5js.org" target=_blank class="other-link">{{#i18n "Showcase"}}{{/i18n}}</a></li>
<li><a href="https://discourse.processing.org/c/p5js" target=_blank class="other-link">{{#i18n "Forum"}}{{/i18n}}</a></li>
<li><a href="http://github.com/processing/p5.js" target=_blank class="other-link">GitHub</a></li>
<li><a href="http://twitter.com/p5xjs" target=_blank class="other-link">Twitter</a></li>