Added game rules
This commit is contained in:
parent
36bb93279a
commit
e3689bff5c
@ -12,7 +12,7 @@ body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
main {
|
||||
#main {
|
||||
display: grid;
|
||||
grid-template-columns: 80% 20%;
|
||||
height: calc(100% - 3em - 10px);
|
||||
@ -33,3 +33,60 @@ main {
|
||||
-webkit-font-feature-settings: "liga";
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
|
||||
#modal {
|
||||
display: none;
|
||||
position: fixed;
|
||||
z-index: 100000;
|
||||
padding-top: 50px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
background-color: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
#content {
|
||||
background-color: #fefefe;
|
||||
margin: auto;
|
||||
padding: 20px;
|
||||
border: 1px solid #888;
|
||||
width: 90%;
|
||||
height: calc(100% - 142px);
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.divider {
|
||||
background: #585858;
|
||||
height: 0.1em;
|
||||
margin: 0.5em 0 0.5em;
|
||||
}
|
||||
|
||||
#modal_header {
|
||||
display: grid;
|
||||
grid-template-columns: 90% 10%;
|
||||
}
|
||||
|
||||
#modal_header #modal_title {
|
||||
grid-column: 1;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#modal_header > span {
|
||||
grid-column: 2;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#modal_header span i {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#spielanleitung {
|
||||
background-color: #fefefe;
|
||||
width: 100%;
|
||||
height: calc(100% - 50px);
|
||||
}
|
@ -12,6 +12,21 @@ header {
|
||||
grid-template-columns: 25% 40% 25%;
|
||||
}
|
||||
|
||||
.spielanleitung {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 1.5em;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.spielanleitung span {
|
||||
background: #404040;
|
||||
border: 1px solid #000000;
|
||||
padding: 5px;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.title {
|
||||
text-align: center;
|
||||
display: flex;
|
||||
|
BIN
public/data/Spielanleitung.pdf
Normal file
BIN
public/data/Spielanleitung.pdf
Normal file
Binary file not shown.
@ -16,12 +16,14 @@
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div></div>
|
||||
<div class="spielanleitung"><span
|
||||
onclick="document.getElementById('modal').style.display = 'block';">Spielanleitung</span></div>
|
||||
<div class="title">PM-Game</div>
|
||||
<div class="build"><span>DATE_TO_BE_REPLACED</span><span><a href="COMMIT_LINK_TO_BE_REPLACED" target="_blank">COMMIT_TO_BE_REPLACED</a></span>
|
||||
</div>
|
||||
</header>
|
||||
<main>
|
||||
<div id="main">
|
||||
<div id="login">
|
||||
<form>
|
||||
<h2 id="error"></h2>
|
||||
@ -48,6 +50,22 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="modal">
|
||||
<div id="content">
|
||||
<div id="modal_header">
|
||||
<h3 id="modal_title">Spielanleitung</h3>
|
||||
<span><i class="material-icon"
|
||||
onclick="document.getElementById('modal').style.display = 'none';">close</i></span>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
<iframe height="678"
|
||||
id="spielanleitung"
|
||||
src="data/Spielanleitung.pdf"
|
||||
width="500">
|
||||
</iframe>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user