Skip to content

Commit 17bfb5f

Browse files
Dale KunceDale Kunce
authored andcommitted
fix: resolve linting issues across JavaScript and CSS
- Fix ESLint errors in mobile-menu.js: spacing and formatting
1 parent c2ddcf7 commit 17bfb5f

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

app/assets/scripts/mobile-menu.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323
dropdownContent.setAttribute('role', 'menu');
2424

2525
// Update menu button text and ARIA state
26-
function updateMenuState(isOpen) {
26+
function updateMenuState (isOpen) {
2727
const isExpanded = isOpen ? 'true' : 'false';
2828
mobileDropdown.setAttribute('aria-expanded', isExpanded);
29-
29+
3030
if (menuButton) {
3131
menuButton.textContent = isOpen ? 'CLOSE' : 'MENU';
3232
}
3333
}
3434

3535
// Toggle mobile menu
36-
function toggleMenu(e) {
36+
function toggleMenu (e) {
3737
e.preventDefault();
3838
e.stopPropagation();
3939

@@ -49,7 +49,7 @@
4949
}
5050

5151
// Close menu
52-
function closeMenu() {
52+
function closeMenu () {
5353
dropdownContent.classList.remove('show');
5454
updateMenuState(false);
5555
document.body.style.overflow = '';
@@ -93,11 +93,11 @@
9393
// Enhanced touch handling for mobile menu items
9494
const menuItems = dropdownContent.querySelectorAll('.nav-item, .lang');
9595
menuItems.forEach(item => {
96-
item.addEventListener('touchstart', function() {
96+
item.addEventListener('touchstart', function () {
9797
this.style.backgroundColor = 'rgba(255,255,255,0.1)';
9898
});
99-
100-
item.addEventListener('touchend', function() {
99+
100+
item.addEventListener('touchend', function () {
101101
setTimeout(() => {
102102
this.style.backgroundColor = '';
103103
}, 150);

app/assets/styles/_base.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
/*----------------------------------------------*/
2323
/*Variables*/
24-
/*------------------------------------------ color: color.adjust($mmGreen, $lightness: 10%);---*/
24+
/*---------------------------------------------*/
2525

2626
$mmred: #e23d3d;
2727
$mmgreen: #8BBF3F;
@@ -175,19 +175,19 @@ header{
175175
}
176176

177177
.nav-list{
178-
float: right;
179178
position: relative;
180-
display: inline-block;
179+
display: flex;
180+
justify-content: flex-end;
181181
@media screen and (max-width: 650px) {
182182
display: none;
183183
}
184184
}
185185

186186
.nav-input{
187-
float: right;
188187
display: inline-block;
189188
position: relative;
190189
bottom:3px;
190+
margin-left: auto;
191191
padding: 0px 16px 0px 40px;
192192
}
193193

@@ -710,6 +710,7 @@ input[type="text"]{
710710
margin: none;
711711
color: $darkgrey;
712712
-webkit-border-radius: 5px;
713+
border-radius: 5px;
713714
background-color: lighten($lightgrey, 10);
714715
box-shadow: -1px -2px $lightgrey;
715716
padding: 2px 6px 4px 6px;
@@ -916,7 +917,7 @@ input[type="text"]{
916917
color: $darkestgrey;
917918
position: relative;
918919
display: inline-block;
919-
float: right;
920+
margin-left: auto;
920921
}
921922

922923
/*----------------------------------------------*/

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default [
1212
document: 'readonly',
1313
console: 'readonly',
1414
fetch: 'readonly',
15+
setTimeout: 'readonly',
1516

1617
// jQuery
1718
$: 'readonly',

0 commit comments

Comments
 (0)