]> git.plutz.net Git - webpoll/blobdiff - webpoll.css
Improved dialog, improved vidual spacing
[webpoll] / webpoll.css
index c0293a1725f8c6aa3033d2b9ee190b8e4e63d4c4..fafb9f4e5dcf593b4e08b7c3e246c118feb9c618 100644 (file)
@@ -1,3 +1,17 @@
+body {
+  background-size: 4pt 4pt;
+  background-image: /* #6AF #6FF */
+    linear-gradient( 0deg, transparent 25%, rgba(102,170,255,.5) 25% 50%, transparent 50% 75%, rgba(102,255,255,.5) 75%),
+    linear-gradient(90deg, transparent 25%, rgba(102,170,255,.5) 25% 50%, transparent 50% 75%, rgba(102,255,255,.5) 75%);
+}
+
+body > form {
+  background-color: rgba(255,255,255,.75) ;
+  padding: 1em; margin: 1em auto 1em auto;
+  border-radius: .5ex;
+  box-shadow: #000 .125em .125em 1em;
+}
+
 body.home form {
   position: fixed;
   left: 50%; top: 50%;
@@ -6,7 +20,6 @@ body.home form {
 
 body.newdate form {
   text-align: center;
-  margin: auto;
   max-width: 100%;
 }
 body.newdate form fieldset.date,
@@ -17,7 +30,7 @@ body.newdate form fieldset.splittimes {
   margin: .5em 0 1em 0;
 }
 
-body.newdate form { width: 24em; }
+body.newdate form { width: 26em; }
 body.newdate form input[name=title],
 body.newdate form textarea[name=description] {
   width: 100%;
@@ -28,8 +41,8 @@ body.newdate form fieldset.splittimes {
   width: 100%;
 }
 
-@media(min-width: 48em) {
-  body.newdate form { width: 48em; }
+@media(min-width: 50em) {
+  body.newdate form { width: 50em; }
   body.newdate form input[name=title],
   body.newdate form textarea[name=description] {
     width: 100%;
@@ -39,6 +52,9 @@ body.newdate form fieldset.splittimes {
   body.newdate form fieldset.splittimes {
     width: 49.5%; width: calc(50% - .375ex);
   }
+  body.newdate form fieldset.date { padding-right: .75em; }
+  body.newdate form fieldset.timeofday,
+  body.newdate form fieldset.splittimes { padding-left: .75em; }
 }
 
 body.newdate form input[name=title],
@@ -51,35 +67,34 @@ body.newdate form textarea[name=description] {
 }
 
 body.newdate form .date button[name=month] {
-  position: absolute;
   display: inline-block;
-  padding: 0;
-  -height: 3.25em;
+  position: absolute;
+  top: 0;
   height: 2.375em;
   width: 2em; width: calc(50% - 9em);
-  -vertical-align: middle;
+  padding: 0;
   color: transparent;
-  overflow: hidden;
+  background-color: transparent;
   border: none;
+  overflow: hidden;
   z-index: 1;
-  background-color: transparent;
 }
 body.newdate form .date button[name=month]:before {
   display: block;
   content: '<';
   font-size: 1.75em;
   font-weight: bold;
-  -margin-top: .375em;
-  margin-top: .25em;
   color: #666;
+  margin-top: .25em;
 }
-body.newdate form .date table + button[name=month] { right: 0; }
+body.newdate form .date table + button[name=month] { right: .75em; }
 body.newdate form .date table + button[name=month]:before {
   content: '>';
 }
 
 body.newdate form .date table.calendar {
-  font-size: 17.5pt;
+  background-color: #FFF;
+  font-size: 17pt;
   -vertical-align: middle;
 }
 
@@ -90,17 +105,17 @@ body.newdate form .timeofday label.todend {
   font-weight: bold;
   text-align: left;
   font-size: .75em;
-  width: 49%; width: calc(50% - .5ex);
+  width: 49%; width: calc(50% - 2.5pt);
 }
 body.newdate form fieldset > input[name^=todstart],
 body.newdate form fieldset > input[name^=todend] {
   display: inline-block;
   margin: 0;
-  width: 49%; width: calc(50% - .5ex);
+  width: 49%; width: calc(50% - 2.5pt);
   text-align: right;
 }
 body.newdate form fieldset > input[name^=todend] {
-  width: 40%; widtfieldset% - 4.375ex);
+  width: 39%; width: calc( 50% - 4.375ex);
 }
 
 body.newdate form fieldset button[name^=addtime] {
@@ -124,3 +139,4 @@ body.newdate form fieldset input.splittimes + *:before {
 body.newdate form fieldset input.splittimes:checked + *:before { content: '\2713'; background-color: #6AF;}
 body.newdate form .timeofday button[name=splittimes] { margin-top: 1.5em;}
 
+body.newdate form .splittimes p { margin-top: 2em; padding: .5em; background: rgba(255,255,255,.5); }