Skip to content

Commit

Permalink
[REM] support for small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Brito committed Aug 18, 2023
1 parent 8375d62 commit 3a8595b
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 314 deletions.
13 changes: 7 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="styles.css" />
<link rel="stylesheet" type="text/css" href="on-off-switch-button.css" />
<!-- Media-specific CSS files -->
<link rel="stylesheet" media="(max-width: 768px)" href="styles-small.css">
<link rel="stylesheet" media="(min-width: 769px) and (max-width: 1024px)" href="styles-medium.css">
<link rel="stylesheet" media="(min-width: 1025px)" href="styles-large.css">
<link
rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons"
Expand Down Expand Up @@ -45,8 +41,13 @@ <h2 style="color: white">Select icon</h2>

<div id="board-div" class="board center-div display-none">
<div
id="winner-canvas-div" class="center-div-non-solid display-none canvas-container">
<canvas id="canvas" class="canvas"></canvas>
id="winner-canvas-div" class="center-div-non-solid display-none">
<canvas
id="canvas"
width="550px"
height="550px"
style="background-color: transparent"
></canvas>
</div>

<div id="board-inner-div" class="board-inner">
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ function setClassToLink(index, iconClass) {
}

// Draw winners rows
function drawFirstRowWinner() {
function drawFirstRowWinner() {
showWinnerCanvas();
drawHorizontalWinnerGreenLine(1, context, width, height);
completeDraw();
}
function drawSecondRowWinner() {
function drawSecondRowWinner() {
showWinnerCanvas();
drawHorizontalWinnerGreenLine(2, context, width, height);
completeDraw();
Expand Down
97 changes: 0 additions & 97 deletions styles-large.css

This file was deleted.

97 changes: 0 additions & 97 deletions styles-medium.css

This file was deleted.

111 changes: 0 additions & 111 deletions styles-small.css

This file was deleted.

Loading

0 comments on commit 3a8595b

Please sign in to comment.