Prechádzať zdrojové kódy

Reasonable design ...

[skip c]
Oz N Tiram 8 rokov pred
rodič
commit
5d903176fe

+ 31 - 3
pwman/ui/templates/index.tpl

@@ -5,10 +5,38 @@
         <title>Pwman3 Web</title>
         <meta name="description" content="">
         <meta name="viewport" content="width=device-width, initial-scale=1">
+        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
         <link rel="stylesheet" href="/static/css/milligram.css">
+	<link rel="stylesheet" href="/static/css/style.css">
     </head>
-<body>
 
-  <h1>Hello Miligram</h1>
-</body>
+
+<main class="wrapper">
+  <nav class="navigation">
+  <section class="container">
+    <a class="navigation-title" href="https://pwman3.github.io/">
+    <img class="img" src="https://openclipart.org/download/190821/Cles-de-serrure-lock-keys.svg" height="30" alt="pwman3" title="pwman3">
+    <h1 class="title">Pwman3</h1>
+    </a>
+    <span class="auth">
+    <form class="auth-form">
+      <button id="auth-btn" class="button">Auth</button>
+      <input id="pwd-input" class="navigation-button" type="password" name="auth-pwd" placeholder="Password" style="display: none;" >
+      <input id="show" class="button-primary navigation-button" style="display:none;" value="Submit" type="submit">
+    </form>
+    </span>
+  </section>
+  </nav>
+</main>
+
+<script type="text/javascript">
+$("#auth-btn").click(function () {
+   $("#pwd-input").show('fast');
+   $("#show").show('fast');
+});
+
+$("#auth-btn").click(function () {
+   $("#auth-btn").hide(1000);
+});
+</script>
 </html>

+ 388 - 0
pwman/ui/templates/static/css/style.css

@@ -0,0 +1,388 @@
+/* Base */
+img {
+	max-width: 100%;
+}
+.wrapper {
+	position: relative;
+	display: block;
+	width: 100%;
+	overflow: hidden;
+}
+
+
+/* Sections */
+
+.container {
+	/*border-top: .1rem solid #d1d1d1;*/
+	padding-top: 7.5rem;
+	padding-bottom: 7.5rem;
+	margin-bottom: 0;
+	max-width: 80.0rem;
+}
+.example .row, .example.row, .example form {
+	margin-bottom: 0;
+}
+.example h1, .example h2, .example h3, .example h4, .example h5, .example h6 {
+	margin-bottom: 1rem;
+}
+
+
+/* Footer */
+
+.footer .container {
+	padding-bottom: 0;
+	padding-top: 0;
+}
+
+
+/* Header */
+
+.header {
+	background-color: #f4f5f6;
+	padding-top: 1rem;
+}
+@media (min-width: 40.0rem) {
+	.header {
+		padding-top: 5rem;
+	}
+}
+.header .container {
+	position: relative;
+	border-top: 0;
+	text-align: center;
+}
+.header .title {
+	font-family: 'Gotham Rounded A', 'Gotham Rounded B', 'Helvetica Neue', Arial, sans-serif;
+}
+.header .img {
+	height: 15.0rem;
+	margin-bottom: 2rem;
+}
+.header + section {
+	border-top: 0;
+}
+.header .button {
+	margin-top: 2rem;
+	margin-bottom: 4rem;
+}
+@media (min-width: 40.0rem) {
+	.header .button {
+		margin-top: 2rem;
+		margin-bottom: 4rem;
+	}
+}
+
+
+
+/* Typography
+*/
+
+.heading-font-size {
+	font-size: 1.2rem;
+	color: #999;
+	letter-spacing: normal;
+}
+
+
+/* Form */
+
+.example-send-yourself-copy {
+	float: right;
+	margin-top: 1.2rem;
+}
+
+
+/* Tips */
+.button-black {
+	background-color: black;
+	border-color: black;
+}
+.button-black.button-outline {
+	color: black;
+}
+.button-black.button-clear {
+	color: black;
+}
+
+.button-large {
+	font-size: 1.4rem;
+	height: 4.5rem;
+	line-height: 4.5rem;
+	padding: 0 2rem;
+}
+
+.button-small {
+	font-size: .8rem;
+	height: 2.8rem;
+	line-height: 2.8rem;
+	padding: 0 1.5rem;
+}
+
+
+/* Snippets, Exemples */
+.example {
+	position: relative;
+	margin-top: 4rem;
+}
+.example-header {
+	font-weight: 600;
+	margin-top: 1.5rem;
+	margin-bottom: .5rem;
+}
+.example-description {
+	margin-bottom: 1.5rem;
+}
+.example-screenshot-wrapper {
+	display: block;
+	position: relative;
+	overflow: hidden;
+	border-radius: .6rem;
+	border: .1rem solid #d1d1d1;
+	height: 25.0rem;
+}
+.example-screenshot {
+	width: 100%;
+	height: auto;
+}
+.example-screenshot.coming-soon {
+	width: auto;
+	position: absolute;
+	background: #d1d1d1;
+	top: .5rem;
+	right: .5rem;
+	bottom: .5rem;
+	left: .5rem;
+}
+.example-screenshot-wrapper {
+	position: absolute;
+	width: 48%;
+	height: 100%;
+	left: 0;
+	max-height: none;
+}
+
+
+/* Navbar */
+.navigation {
+	left: 0;
+	max-width: 100%;
+	position: fixed;
+	right: 0;
+	top: 0;
+	max-width: 100vw;
+	z-index: 99;
+}
+/* Re-overiding the width 100% declaration to match size of% based container */
+.navigation .container {
+	padding-top: 0;
+	padding-bottom: 0;
+}
+.navigation {
+	background: #f4f5f6;
+	border-bottom: .1rem solid #d1d1d1;
+	display: inline-block;
+	height: 5.2rem;
+	width: 100%;
+}
+
+.auth {
+  display: inline-block;
+  position: relative;
+  float: right;
+}
+
+.auth .button {
+  display: inline-block;
+  float: right;
+  vertical-align: middle;
+  margin-top: 0.8rem;
+}
+
+.auth .navigation-button {
+  display: inline-block;
+  width: 25%;
+  vertical-align: middle;
+  float: left;
+  margin-left: 10px;
+}
+
+
+.auth input[type="password"] {
+   width: 55%;
+   display: inline-block;
+   margin-left: 10px;
+   float: left;
+   text-align: left;
+   vertical-align: middle;
+}
+
+@media (min-width: 80.0rem) {
+	.navigation-list {
+		margin-right: 0;
+	}
+}
+.navigation-item {
+	float: left;
+	margin-bottom: 0;
+	margin-left: 2.5rem;
+	position: relative;
+}
+.navigation .img {
+	position: relative;
+	top: .3rem;
+	height: 2.0rem;
+}
+
+.navigation .title,
+.navigation-title {
+	color: #606c76;
+	display: inline;
+	font-family: 'Gotham Rounded A', 'Gotham Rounded B', 'Helvetica Neue', Arial, sans-serif;
+	line-height: 5.2rem;
+	font-size: 1.6rem;
+	padding: 0;
+	position: relative;
+	text-decoration: none;
+}
+
+.navigation-button {
+	font-familiy: "Roboto";
+  display: inline-block;
+	position: relative;
+	font-size: 1.6rem;
+  padding: 0px 1.3rem;
+  margin-top: 1rem;
+
+}
+.navigation-link {
+	display: inline;
+	line-height: 5.2rem;
+	font-size: 1.6rem;
+	padding: 0;
+	text-decoration: none;
+}
+.navigation-link.active {
+	color: #606c76;
+}
+
+@-webkit-keyframes octocat-wave {
+	0% , 50% {
+		-webkit-transform: rotate(0);
+		-moz-transform: rotate(0);
+		-ms-transform: rotate(0);
+		-o-transform: rotate(0);
+		transform: rotate(0);
+	}
+	25% , 75% {
+		-webkit-transform: rotate(-25deg);
+		-moz-transform: rotate(-25deg);
+		-ms-transform: rotate(-25deg);
+		-o-transform: rotate(-25deg);
+		transform: rotate(-25deg);
+	}
+}
+@-moz-keyframes octocat-wave {
+	0% , 50% {
+		-webkit-transform: rotate(0);
+		-moz-transform: rotate(0);
+		-ms-transform: rotate(0);
+		-o-transform: rotate(0);
+		transform: rotate(0);
+	}
+	25% , 75% {
+		-webkit-transform: rotate(-25deg);
+		-moz-transform: rotate(-25deg);
+		-ms-transform: rotate(-25deg);
+		-o-transform: rotate(-25deg);
+		transform: rotate(-25deg);
+	}
+}
+@-ms-keyframes octocat-wave {
+	0% , 50% {
+		-webkit-transform: rotate(0);
+		-moz-transform: rotate(0);
+		-ms-transform: rotate(0);
+		-o-transform: rotate(0);
+		transform: rotate(0);
+	}
+	25% , 75% {
+		-webkit-transform: rotate(-25deg);
+		-moz-transform: rotate(-25deg);
+		-ms-transform: rotate(-25deg);
+		-o-transform: rotate(-25deg);
+		transform: rotate(-25deg);
+	}
+}
+@-o-keyframes octocat-wave {
+	0% , 50% {
+		-webkit-transform: rotate(0);
+		-moz-transform: rotate(0);
+		-ms-transform: rotate(0);
+		-o-transform: rotate(0);
+		transform: rotate(0);
+	}
+	25% , 75% {
+		-webkit-transform: rotate(-25deg);
+		-moz-transform: rotate(-25deg);
+		-ms-transform: rotate(-25deg);
+		-o-transform: rotate(-25deg);
+		transform: rotate(-25deg);
+	}
+}
+@keyframes octocat-wave {
+	0% , 50% {
+		-webkit-transform: rotate(0);
+		transform: rotate(0);
+	}
+	25% , 75% {
+		-webkit-transform: rotate(-25deg);
+		transform: rotate(-25deg);
+	}
+}
+
+
+@media (min-width: 40.0rem) {
+	.only-mobile {
+		display: none;
+	}
+}
+
+
+/* Prettify
+*/
+
+pre.prettyprint {
+	border: 0 !important;
+	border-left: .3rem solid #9b4dca !important;
+	color: #655d5d;
+}
+/* string content */
+pre.prettyprint .str { color: #4b8b8b; }
+/* a keyword */
+pre.prettyprint .kwd { color: #8464c4; }
+/* a comment */
+pre.prettyprint .com { color: #adadad; }
+/* a type name */
+pre.prettyprint .typ { color: #7272ca; }
+/* a literal value */
+pre.prettyprint .lit { color: #9b4dca; }
+/* punctuation */
+pre.prettyprint .pun { color: #5485b6; }
+/* lisp open bracket */
+pre.prettyprint .opn { color: #f4ecec; }
+/* lisp close bracket */
+pre.prettyprint .clo { color: #f4ecec; }
+/* a markup tag name */
+pre.prettyprint .tag { color: #9b4dca; }
+/* a markup attribute name */
+pre.prettyprint .atn { color: #9b4dca; }
+/* a markup attribute value */
+pre.prettyprint .atv { color: #5485b6; }
+/* a declaration */
+pre.prettyprint .dec { color: #b45a3c; }
+/* a variable name */
+pre.prettyprint .var { color: #ca4949; }
+/* a function name */
+pre.prettyprint .fun { color: #7272ca; }
+/* markdown content */
+pre.prettyprint.lang-md * { color: #655d5d !important; }