Use very thin page layout
This commit is contained in:
parent
6fe7e610da
commit
1006a852ad
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "doomsday",
|
||||
"version": "1.4.3",
|
||||
"version": "1.4.4",
|
||||
"description": "Test your mastery of Conway's Doomsday rule.",
|
||||
"author": "Florine W. Dekker",
|
||||
"browser": "dist/bundle.js",
|
||||
|
|
|
@ -4,6 +4,17 @@
|
|||
}
|
||||
|
||||
|
||||
/* Very unwide page */
|
||||
.container {
|
||||
max-width: 40rem;
|
||||
}
|
||||
|
||||
.quiz-input {
|
||||
max-width: 15rem;
|
||||
}
|
||||
|
||||
|
||||
/* Common elements */
|
||||
details * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
@ -12,11 +23,8 @@ label, summary b {
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
#day-title-label {
|
||||
margin-left: 17px;
|
||||
}
|
||||
|
||||
|
||||
/* Input validation */
|
||||
.success-message {
|
||||
color: var(--success-color);
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<title>Doomsday | FWDekker</title>
|
||||
|
||||
<link rel="stylesheet" href="https://static.fwdekker.com/fonts/roboto/roboto.css" />
|
||||
<link rel="stylesheet" href="https://static.fwdekker.com/lib/template/2.x.x/template.css" />
|
||||
<link rel="stylesheet" href="https://static.fwdekker.com/lib/template/2.x.x/template.css?v=%%VERSION_NUMBER%%" />
|
||||
<!--suppress HtmlUnknownTarget -->
|
||||
<link rel="stylesheet" href="main.css?v=%%VERSION_NUMBER%%" />
|
||||
<script async src="https://stats.fwdekker.com/count.js"
|
||||
|
@ -33,38 +33,38 @@
|
|||
<div id="header"></div>
|
||||
|
||||
<!-- Input -->
|
||||
<section class="container">
|
||||
<section id="inputs" class="container">
|
||||
<form>
|
||||
<details open id="century-details">
|
||||
<summary><b id="century-title-label">Century</b></summary>
|
||||
<div class="row">
|
||||
<div class="column">
|
||||
<div class="row">
|
||||
<div class="column">
|
||||
<details open id="century-details">
|
||||
<summary><b id="century-title-label">Century</b></summary>
|
||||
<div class="inputWithButton">
|
||||
<!--suppress HtmlFormInputWithoutLabel -->
|
||||
<input type="text" id="century-input" class="quiz-input" autocomplete="off" autofocus />
|
||||
<button type="button" id="century-submit" class="quiz-button">Check</button>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
|
||||
<details open id="year-details">
|
||||
<summary><b id="year-title-label">Year</b></summary>
|
||||
<div class="row">
|
||||
<div class="column">
|
||||
<div class="row">
|
||||
<div class="column">
|
||||
<details open id="year-details">
|
||||
<summary><b id="year-title-label">Year</b></summary>
|
||||
<div class="inputWithButton">
|
||||
<!--suppress HtmlFormInputWithoutLabel -->
|
||||
<input type="text" id="year-input" class="quiz-input" autocomplete="off" />
|
||||
<button type="button" id="year-submit" class="quiz-button">Check</button>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="day-input" id="day-title-label">Day</label>
|
||||
<div class="row">
|
||||
<div class="column">
|
||||
<div class="row">
|
||||
<div class="column">
|
||||
<div>
|
||||
<label for="day-input" id="day-title-label">Day</label>
|
||||
<div class="inputWithButton">
|
||||
<!--suppress HtmlFormInputWithoutLabel -->
|
||||
<input type="text" id="day-input" class="quiz-input" autocomplete="off" />
|
||||
|
@ -87,7 +87,7 @@
|
|||
<div id="footer"></div>
|
||||
</main>
|
||||
|
||||
<script src="https://static.fwdekker.com/lib/template/2.x.x/template.js"></script>
|
||||
<script src="https://static.fwdekker.com/lib/template/2.x.x/template.js?v=%%VERSION_NUMBER%%"></script>
|
||||
<!--suppress HtmlUnknownTarget -->
|
||||
<script src="bundle.js?v=%%VERSION_NUMBER%%"></script>
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue