소스 검색

il form iniziale è presentabile

encrypt 6 달 전
부모
커밋
cdf43b0f81
2개의 변경된 파일78개의 추가작업 그리고 12개의 파일을 삭제
  1. 70 0
      static/style.css
  2. 8 12
      templates/index.html

+ 70 - 0
static/style.css

@@ -0,0 +1,70 @@
+body {
+    background: #232323;
+    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;b3
+}
+
+body {
+    margin-top: 30px;
+    color: #ccc;
+    max-width: 80%;
+    margin: 0 auto;
+    margin-top: 30px;
+}
+
+/*
+form > input[type=checkbox] {
+  width: 20px;
+  height: 20px;
+  border-radius: 50%;
+  appearance: none;
+  -webkit-appearance: none;
+  background-color: white;
+  vertical-align: middle;
+  cursor: pointer;
+}
+
+form > input[type=checkbox]:checked {
+  background-color: #ff6e40;
+ 
+}
+*/
+form > input[type=checkbox] {
+  width: 20px;
+  height: 20px;
+  accent-color: #fff;
+  cursor: pointer;
+  border: none;
+}
+
+form > input[type=checkbox]:checked {
+  accent-color: #ff6e40;
+}
+
+form > input[type=submit] {
+    background-color: #ff6e40;
+    border: none;
+    border-radius: 10px;
+    font-size:20px;
+    color: #fff;
+    padding: 5px;
+    white-space: normal;
+}
+
+#template {
+    background-color: #ff6e40;
+    border: none;
+    border-radius: 10px;
+    width: 15%;
+    height: 20pt;
+    font-size: 19px;
+    color: #fff
+}
+
+
+
+label, input {
+    font-size: inherit;
+    padding: 0.2em;
+    margin: 0.1em 0.2em;
+    box-sizing: content-box;
+}

+ 8 - 12
templates/index.html

@@ -1,18 +1,12 @@
 <!doctype html>
-<style media="screen">
-  body {
-    font-size: 18px;
-  }
-  select, label, input {
-    font-size: 20px;
-  }
-  input[type="checkbox"] {
-    width: 18px;
-    height: 18px;
-  }
 </style>
 <title>Generatore di volantini</title>
-<h1>Generatore di volantini per balotta.org</h1>
+<head>
+  <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }} ">
+  <title>gancio flyers</title>
+</head>
+<body>
+<h3> Generatore di volantini per balotta.org</h3>
 <div>
 Scegli gli eventi che vuoi mettere nel volantino e premi genera.
 <br>
@@ -51,3 +45,5 @@ L'attuale layout può contenere fino a <span id="maxEvents"></span> eventi.
   document.querySelector("#template").value = "{{default_template}}"
   templateSelected("{{default_template}}")
 </script>
+</body>
+</html>