Skip to content

Commit f26f31a

Browse files
committed
style: Standardize kebab-case for class names
1 parent 2f0f9e5 commit f26f31a

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

public/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
<script src="./main.js" type="module" defer></script> <!-- changeMarker -->
1414
</head>
1515
<body>
16-
<div id="leftSide" class="leftSide">
16+
<div class="left-side" id="leftSide">
1717
<img id="cookie" class="cookie pointer" src="img/cookie.png" alt="cookie" draggable="false">
1818
<div class="cookie-counter-wrapper">
1919
<h3 class="cookie-counter shadow">Cookies: <span id="cookieCount">0</span></h3>
2020
<h4 class="cookies-per-second-counter">Cookies Per Second: <span id="cookiesPerSecondCount">0</span></h4>
2121
</div>
2222
<!-- <h3 class="win shadow" id="win">you win.</h3> -->
2323
<p class="saving-indicator" id="savingIndicator">Saved!</p>
24-
<span class="leftSidePush" id="leftSidePush"></span> <!-- for some reason when you open menus it will change the size of the left side's div and smoosh everything, this prevents that (somehow) -->
24+
<span class="left-side-push" id="leftSidePush"></span> <!-- for some reason when you open menus it will change the size of the left side's div and smoosh everything, this prevents that (somehow) -->
2525
<div class="social-links">
2626
<a href="404.html" target="_blank" id="githubHyperlink"> <!-- this HREF is changed programmatically in main.ts in the event of a fork and a different GitHub repo link. -->
2727
<img class="github" src="img/github-mark.svg" alt="github">
@@ -139,7 +139,7 @@ <h5 class="middle-subtitle">Miscellaneous:</h5>
139139
</div>
140140
</div>
141141
</div> <!-- end middle -->
142-
<div id="rightSide" class="rightSide">
142+
<div class="right-side" id="rightSide">
143143
<h1 class="store-heading shadow">Store</h1>
144144
<h3 class="upgrades-marker shadow">Upgrades</h3>
145145
<div class="upgrades-holder-background">

src/scss/main.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ small {
8686
}
8787

8888
/* important things */
89-
.leftSide {
89+
.left-side {
9090
width: 312px;
9191
height: 100vh;
9292
border-style: solid;
@@ -97,7 +97,7 @@ small {
9797
background-image: url(img/backgrounds/background-blue.png);
9898
}
9999

100-
.rightSide {
100+
.right-side {
101101
width: 338px;
102102
float: right;
103103
height: 100vh;
@@ -434,7 +434,7 @@ small {
434434
text-align: center;
435435
}
436436

437-
.leftSidePush {
437+
.left-side-push {
438438
width: 320px;
439439
}
440440

src/ts/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export class Game implements SaveProvider<GameSaveData> {
248248
mousePos.setAttribute("style","margin-bottom:0px;");
249249
devDiv.appendChild(mousePos);
250250

251-
document.getElementById("leftSide").insertBefore(devDiv, document.getElementById("leftSidePush"));
251+
document.getElementById("leftSide").insertBefore(devDiv, document.querySelector(".left-side-push"));
252252
}
253253

254254
// ------- Event Listeners (very long) -------

0 commit comments

Comments
 (0)