Skip to content

Commit

Permalink
converted styling to be responsive using vh units
Browse files Browse the repository at this point in the history
  • Loading branch information
psnider committed Apr 5, 2022
1 parent 6833a63 commit 1501b7b
Show file tree
Hide file tree
Showing 51 changed files with 357 additions and 279 deletions.
1 change: 1 addition & 0 deletions dist/app.3ad30c1f00b93badac68.bundle.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/app.8290711458d178b14ff3.bundle.js

This file was deleted.

2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html style="height:100%;width:100%;"><head><meta charset="utf-8"><title>License Plate Game</title><meta name="viewport" content="width=device-width,initial-scale=1"><base href="/"><link rel="icon" href="favicon.ico"><script defer="defer" src="/runtime~app.450b9e5fc6deafa566fa.bundle.js"></script><script defer="defer" src="/vendors-7e9c6a9f.1adc9f385b3ac86c2788.bundle.js"></script><script defer="defer" src="/vendors-319a6989.a80424c5fae4edbd79e3.bundle.js"></script><script defer="defer" src="/vendors-4e64aa37.9e9c6bc89f49649635e3.bundle.js"></script><script defer="defer" src="/vendors-3ce50090.b281a0f6725a5f032f6a.bundle.js"></script><script defer="defer" src="/vendors-fcadf5bb.99541182c2a6c79ed0a2.bundle.js"></script><script defer="defer" src="/vendors-cdd60c62.abf102d6ed9d6bb32f06.bundle.js"></script><script defer="defer" src="/app.8290711458d178b14ff3.bundle.js"></script></head><body aurelia-app="main"></body></html>
<!doctype html><html style="height:100%;width:100%;"><head><meta charset="utf-8"><title>License Plate Game</title><meta name="viewport" content="width=device-width,initial-scale=1"><base href="/"><link rel="icon" href="favicon.ico"><script defer="defer" src="/runtime~app.db86ed36783b23daf9c9.bundle.js"></script><script defer="defer" src="/vendors-7e9c6a9f.bd6bb235580d84aaea0a.bundle.js"></script><script defer="defer" src="/vendors-319a6989.2937262129926ffa8773.bundle.js"></script><script defer="defer" src="/vendors-4e64aa37.7ffc9e9adc57bd13ba64.bundle.js"></script><script defer="defer" src="/vendors-3ce50090.febe1f6e5cab24309b9e.bundle.js"></script><script defer="defer" src="/vendors-fcadf5bb.1e5c46f11392095855ca.bundle.js"></script><script defer="defer" src="/vendors-cdd60c62.2d3305a14ba97e76c0fa.bundle.js"></script><script defer="defer" src="/app.3ad30c1f00b93badac68.bundle.js"></script></head><body aurelia-app="main"></body></html>
2 changes: 2 additions & 0 deletions dist/vendors-319a6989.2937262129926ffa8773.bundle.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions dist/vendors-319a6989.a80424c5fae4edbd79e3.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/vendors-3ce50090.b281a0f6725a5f032f6a.bundle.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/vendors-3ce50090.febe1f6e5cab24309b9e.bundle.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/vendors-fcadf5bb.1e5c46f11392095855ca.bundle.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions dist/vendors-fcadf5bb.1e5c46f11392095855ca.bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
1 change: 0 additions & 1 deletion dist/vendors-fcadf5bb.99541182c2a6c79ed0a2.bundle.js

This file was deleted.

10 changes: 6 additions & 4 deletions src/AnswerDifficulty.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
width: max-content;
font-family: Spinnaker, Arial, sans-serif;
color: black;
background-color: #76a76c;
border: 1px solid #374b33;
opacity: 1;
background-color: rgb(118, 167, 108);
border: thin solid #374b33;
}
.word_set_size_span_tag {
width: max-content;
font-family: Spinnaker, Arial, sans-serif;
color: black;
background-color: #aed66c;
border: 1px solid #4c5e2f;
opacity: 1;
background-color: rgb(174, 214, 108);
border: thin solid #4c5e2f;
}
35 changes: 13 additions & 22 deletions src/AnswerRow.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,35 @@

.answer-title-element {
background-color: rgba(235, 243, 250, 0.4);
border: 1px solid grey;
border: thin solid grey;
border-radius: 0.2vw;
display: flex;
align-items: center;
justify-content: center;

text-shadow: -1px 1px 1px #ffffff,
1px 1px 1px #ffffff,
1px -1px 1px #ffffff,
-1px -1px 1px #ffffff;
}

.answer-text-element {
background-color: rgba(236, 244, 250, 0.4);
border: 1px solid black;
border-radius: 3px;
border: thin solid black;
border-radius: 0.2vw;
display: flex;
align-items: center;
justify-content: center;

text-shadow: -1px 1px 1px #ffffff,
1px 1px 1px #ffffff,
1px -1px 1px #ffffff,
-1px -1px 1px #ffffff;
}

.answer-container-element {
background-color: rgba(236, 244, 250, 0.4);
border: 1px solid black;
border-radius: 3px;
padding: 2px;
border: thin solid black;
border-radius: 0.2vw;
padding: 0.2vw;
}

.score_tile {
font-size: 1em;
border-radius: 4px;
height: 20px;
padding: 2px;
margin: 2px;
/* border is set by the specific tile type class */
border-radius: 0.2vw;
height: 1.3vw;
padding: 0.1vw;
margin: 0.1vw;
display: inline-flex;
align-items: center;
justify-content: center;
Expand All @@ -55,6 +46,6 @@
font-family: Spinnaker, Arial, sans-serif;
color: black;
background-color: #d6c66c;
border: 1px solid #807642;
border: thin solid #807642;
}

12 changes: 6 additions & 6 deletions src/AnswerScores.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
.not_a_word_tile {
font-size: 1em;
font-size: 1.5vw; /* formerly 1em; */
}
.boggle_score_tile {
width: 20px;
width: 1.3vw;
font-family: Arial, Helvetica, sans-serif;
color: rgb(21, 98, 241);
background-color: rgb(231, 247, 248);
border: 1px solid darkblue;
border: thin solid darkblue;
}
.scrabble_score_tile {
width: 20px;
width: 1.3vw;
font-family: Spinnaker, Arial, sans-serif;
color: #2A1F1B;
background-color: #ce9f73;
border: 1px solid rgb(139, 107, 0);
background-color: rgb(206, 159, 115, 1);
border: thin solid rgb(139, 107, 0);
}
42 changes: 36 additions & 6 deletions src/AnswersPanel.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,49 @@
.answers-panel {
height: 100%;
width: 100%;
.answers-container {
display: grid;
grid-template-rows: 3fr 3fr 3fr;
grid-gap: 0px;
row-gap: 0px;
padding: 0px;
margin: 0px;
height: 34vw;

font-size: 1.5vw;
text-shadow: -1px 1px 1px #ffffff,
1px 1px 1px #ffffff,
1px -1px 1px #ffffff,
-1px -1px 1px #ffffff;
}

.answers-panel-header-container {
height: 10%;
}

.answers-panel-list-container {
height: 80%;
}

.answers-panel-answers {
height: 100%;
width: 100%;
margin: 5px;
padding: 5px;
margin: 0.2vw;
padding: 0.2vw;
}



.text-over-license-plate {
background-color: rgba(236, 244, 250, 0.4);
}

.no-answers {
margin: 0 auto;
}

.no-answers-container {
display: flex;
align-items: center;
justify-content: center;
height: 34vw;

text-shadow: -1px 1px 1px #ffffff,
1px 1px 1px #ffffff,
1px -1px 1px #ffffff,
Expand Down
17 changes: 10 additions & 7 deletions src/AnswersPanel.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
<template>
<require from="./css/general.css"></require>
<require from="./AnswersPanel.css"></require>
<require from="./AnswersTable"></require>

<div class="answers-panel">
<div if.bind="puzzle_answers.length > 0" >
<div style="height:10%;">
<div if.bind="puzzle_answers.length > 0" >
<div class="answers-container" >
<div class="answers-panel-header-container" >
<div class="text-over-license-plate" >${answers_counts_text}</div>
<div class="text-over-license-plate" >...for a total score of ${total_answers_score} points.</div>
</div>
<div style="height:440px;">
<div class="answers-panel-list-container">
<answers-table puzzle_answers.bind="puzzle_answers" ></answers-table>
</div>
</div>
</div>
<div if.bind="puzzle_answers.length == 0" >
<h3 class="text-over-license-plate" >You haven't asked to score any answers to the puzzle yet...</h3>
</div>
<div if.bind="puzzle_answers.length == 0" >
<div class="no-answers-container" >
<h4 class="text-over-license-plate" >You haven't asked to score any answers to the puzzle yet...</h3>
</div>
</div>

Expand Down
6 changes: 5 additions & 1 deletion src/AnswersTable.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.scroll-vertically {
overflow-y: scroll;
}
}

.answers-table-size {
height: 30vw;
}
3 changes: 1 addition & 2 deletions src/AnswersTable.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
<require from="./AnswerRow"></require>

<answers-title-row ></answers-title-row>
<div style="height:5px;" ></div>
<div ref="data_rows_element" style="height:350px;" class="scroll-vertically" >
<div ref="data_rows_element" class="answers-table-size scroll-vertically" >
<div repeat.for="puzzle_answer of puzzle_answers">
<answer-row puzzle_answer.bind="puzzle_answer" ></answer-row>
</div>
Expand Down
3 changes: 3 additions & 0 deletions src/AnswersTitleRow.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.answers-title-row {
margin-bottom: 0.3vw;
}
2 changes: 1 addition & 1 deletion src/AnswersTitleRow.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<require from="./AnswerRow.css"></require>
<require from="./AnswersTitleRow.css"></require>

<div class='answer-row-grid'>
<div class='answer-row-grid answers-title-row'>
<div class='answer-title-element'>
#
</div>
Expand Down
7 changes: 6 additions & 1 deletion src/Banner.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@

/* page title */
.banner-header {
font-size: 2em;
font-size: 3vw; /* formerly 2em; */
}

.banner-icon {
width: 2.5vw;
height: 2.5vw;
}

2 changes: 1 addition & 1 deletion src/Banner.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<hamburger-menu></hamburger-menu>
</div>
<div class="banner-container">
<div class="banner-header" title="built with Aurelia!">Make a Word from a License Plate <img src="../static/aurelia-logo.svg" width="25" height="25" /><img src="../static/Typescript_logo_2020.svg" width="25" height="25" /></div>
<div class="banner-header" title="built with Aurelia!">Make a Word from a License Plate <img class="banner-icon" src="../static/aurelia-logo.svg" /><img class="banner-icon" src="../static/Typescript_logo_2020.svg" /></div>
<system-messages-signboard ></system-messages-signboard>
</div>
<div ></div>
Expand Down
64 changes: 42 additions & 22 deletions src/CurrentGameControls.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,55 @@
.current-game-controls-button {
border-radius: 4px;
font-size: 1.0em;
border-radius: 0.4vw;
font-size: 1.8vw; /* formerly 1em; */
}
.current-game-controls {
.current-game-controls-container {
display: grid;
grid-template-columns: 38fr 62fr;
grid-gap: 0px;

/* width: 95%; */
/* height: 15%; */
margin: 0 auto;
/* padding: 1vw; */
}
.current-game-controls-container-child {
margin: 0.3vw;
padding: 0.3vw;
display: flex;
flex-direction: row;
align-items: center;
width: 95%;
height: 15%;
margin: 0 auto;
justify-content: center;
flex-flow: row nowrap;
padding: 10px;
column-gap: 10px;
font-size: 1.5em;
/* border: 1px solid grey; */
/* margin: 0 auto; */
}
/*
.current-game-controls-time-container {
/ * padding: 0.5vw; * /
font-size: 1.8vw;
margin: 0 auto;
}
*/
.current-game-controls-time {
flex: 0 0 25%;
padding: 5px;
/* border: 1px solid grey; */
/* flex: 0 0 25%; */
/* padding: 0.5vw; */
display: inline-block;
font-size: 1.8vw;
margin: 0 auto;
}

.current-game-controls-button {
font-size: 1.8vw;
}
/*
.current-game-controls-buttons {
flex: 0 0 34%;
padding: 5px;
/ * flex: 0 0 34%; * /
/ * padding: 0.5vw; * /
}
.current-game-controls-hint {
flex: 0 0 41%;
padding: 5px;
/ * flex: 0 0 41%; * /
/ * padding: 0.5vw; * /
}

.reset-icon-color {
color: red;
*/
.reset-icon {
/* color: red; */
height: 1.8vw;
width: 1.8vw;
}
35 changes: 19 additions & 16 deletions src/CurrentGameControls.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,29 @@
<require from="./InProcessIndicator"></require>

<div>
<div class="current-game-controls" >
<div class="current-game-controls-time">
<span>Time Elapsed: </span><span >${hours_minutes_seconds}</span>
<div class="current-game-controls-container" >
<div class="current-game-controls-container-child">
<div class="current-game-controls-time">
<span>Time Elapsed: </span><span >${hours_minutes_seconds}</span>
</div>
</div>

<div if.bind="request_in_progress_count === 0" >
<div class="current-game-controls-buttons" if.bind="!answers_panel_is_open" >
<button type="button" title="or ENTER" class="current-game-controls-button" click.delegate="userRequestedCheckAnswer()" >Score Word</button>
<button type="button" class="current-game-controls-button" click.delegate="userRequestedHint()" >Get a Hint</button>
<button type="button" title="reset text, also by ESC key" class="current-game-controls-button reset-icon-color" click.delegate="resetText()" >🔄</button>
<button type="button" class="current-game-controls-button" click.delegate="showAnswersPanel()" >Show Scores...</button>
</div>
<div class="current-game-controls-buttons" if.bind="answers_panel_is_open" >
<button type="button" class="current-game-controls-button" click.delegate="hideAnswersPanel()" >Back to word entry...</button>
<div class="current-game-controls-container-child">
<div if.bind="request_in_progress_count === 0" >
<div if.bind="!answers_panel_is_open" >
<button class="current-game-controls-button" type="button" title="or ENTER" click.delegate="userRequestedCheckAnswer()" >Score Word</button>
<button class="current-game-controls-button" type="button" click.delegate="userRequestedHint()" >Get a Hint</button>
<button class="current-game-controls-button" type="button" title="reset text, also by ESC key" class="reset-icon" click.delegate="resetText()" >🔄</button>
<button class="current-game-controls-button" type="button" click.delegate="showAnswersPanel()" >Show Scores...</button>
</div>
<div if.bind="answers_panel_is_open" >
<button class="current-game-controls-button" type="button" click.delegate="hideAnswersPanel()" >Back to word entry...</button>
</div>
</div>

</div>

<div if.bind="request_in_progress_count > 0" >
<in-process-indicator></in-process-indicator>
<div if.bind="request_in_progress_count > 0" >
<in-process-indicator></in-process-indicator>
</div>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 1501b7b

Please sign in to comment.