first (mostly) working version of full elections.
[selectricity-live] / public / stylesheets / main.css
index ca71d76539e0de25d42cb1abc9c5f00e0885a1d9..97c684858052b9f400493531ca63a5997c4cc797 100644 (file)
@@ -1,4 +1,5 @@
 @charset "utf-8";
+
 /* CSS Document */
 
 /****************************************************************
@@ -24,6 +25,17 @@ h3 {
        margin: 0 0 1em 0 !important;
 }
 
+.special {
+       background-color: #999999;
+       color: white;
+       text-align: center;
+       pading: 0 1em 0 1em;
+}
+
+label {
+    font-weight: bold;
+}
+
 
 /* Left column. Includes logo, poll information, and graph. */
  
@@ -59,15 +71,9 @@ h3 {
        color: #666666;
 }
 
-/* #graph {
-       margin-top: 50px;
-       background: url(/images/graph.jpg) top left no-repeat;
-       height: 0px;
-       overflow: hidden;
-       padding-top: 243px;
-} */
-
-
+.graph {
+  text-align: center;
+}
 
 /* Right column. Includes top-bar and main-box. */
 
@@ -140,76 +146,96 @@ h5 {
        overflow: hidden;
 }
 
+#title-header {
+    margin: -20px -20px 14px -20px;
+    height: 34px;
+       background-color: #e5e5e5;
+}
+
+.normal-header {
+    margin: 1.3em -20px 1.3em -20px;
+    height: 34px;
+       background-color: #e5e5e5;
+}
+
+.header {
+    display: block;
+    font-family: verdana,arial,helvetica,sans-serif;
+    font-size: 30px;
+    text-transform: uppercase;
+    text-align: center;
+    color: white;
+    background-color: #999999;
+    height: 34px;
+    float: left;
+    padding: 0px .75em 0px .75em;
+}
 
+.subheader {
+    float: left;
+    font-family: verdana,arial,helvetica,sans-serif;
+    font-size: 18px;
+    color: #666666;
+       background-color: #e5e5e5;
+    /* height: 26px; */
+    padding: 6px 0px 0px 10px;
+    margin-bottom: 14px;
+} 
 
 #main-box {
        float: right;
-       width: 611px;
-       padding: 0;
+       width: 571px;
+       padding: 20px;
        background: #f9f9f9;
        border: 1px solid #b3b3b3;
 }
 
-#main-box h1 {
-  
+#main-box p, #main-box blockquote, #main-box ul {
+    margin-bottom: 1em;
 }
 
-#main-box p {
-       margin-bottom: 1.75em;
-       padding: 0 1.7em 0 1.7em;
-       line-height: 1.8em;
-       color: #454545;
+blockquote {
+    margin-left: 3em;
 }
 
 
-#ErrorExplanation {
-  width: 400px;
-  border: 2px solid 'red';
-  padding: 7px;
-  padding-bottom: 12px;
+/* css related to error in forms */
+
+#errorExplanation {
+  border: 2px solid #C00;
+  width: 260px;
   margin-bottom: 20px;
   background-color: #f0f0f0;
 }
 
-#ErrorExplanation h2 {
+#errorExplanation h2 {
+  font-size: 1em !important;
   text-align: left;
   font-weight: bold;
-  padding: 5px 5px 5px 15px;
-  font-size: 12px;
-  margin: -7px;
+  padding: 5px 5px 5px 5px;
   background-color: #c00;
   color: #fff;
 }
 
-#ErrorExplanation p {
+#errorExplanation p {
+  font-size: 1em;
   color: #333;
   margin-bottom: 0;
   padding: 5px;
 }
 
-#ErrorExplanation ul li {
-  font-size: 12px;
+#errorExplanation ul li {
+  font-size: 1em;
   list-style: square;
 }
 
-.ListLine0 {
-       background:  #e0f8f8;
-       
+.fieldWithErrors {
+    display: inline;
 }
-.ListLine1 {
-       background: #cccccc;
-       
+.fieldWithErrors input, .fieldWithErrors select, .fieldWithErrors textarea {
+    background-color: #FFFBB3; 
 }
 
-#notice { background: #FFFBB3; 
-                       text-align: left;
-                       font-weight: bold;
-                       border: 2px dotted 'red';
-                       margin-top: 10px;
-                       margin-left: 50px;
-                       padding: 5px 5px 5px 15px;
-                       width: 400px; }
-
 #status {
   width: 400px;
   border: 1px solid #0000FF;
@@ -220,93 +246,39 @@ h5 {
   background-color: #f0f0f0;
 }
 
-.fieldWithErrors {
-    display: inline;
-}
-.fieldWithErrors input, .fieldWithErrors select {
-    background-color: #ffdfdf;
+.result_table {
+ text-align: center;
+ margin-bottom: 1em;
 }
-
-#xxErrorExplanation h2 {
-  text-align: left;
-  font-weight: bold;
-  padding: 5px 5px 5px 15px;
-  font-size: 12px;
-  margin: -7px;
-  background-color: #c00;
-  color: #fff;
-}
-
-#xxErrorExplanation p {
-  color: #333;
-  margin-bottom: 0;
-  padding: 5px;
-}
-
-#xxErrorExplanation ul li {
-  font-size: 12px;
-  list-style: square;
-}
-
-.mainresultbox {
-  text-align: center;
-  width: 850px;
-  border-width: 2px;
-  border-style: solid;
-  border-color: #4D801A;
-  padding: 7px;
-  margin-right: 30px;
-  margin-bottom: 30px;
+.preftable {
+       font-family: verdana,arial,helvetica,sans-serif;
+       border-spacing: 0px;
+       border-width: 2px;
+       border-color: #999999;
+       border-style: solid;
+       caption-side: top;
 }
 
-.mainresultbox h3 {
-  text-align: center;
-  font-weight: bold;
-  padding: 5px 5px 5px 15px;
-  margin: -7px;
-  background-color: #73BF26;
-  color: #fff;
-  border-bottom: 0px;
+.preftable th {
+       font-family: verdana,arial,helvetica,sans-serif;
+       border-width: 2px;
+       border-color: #999999;
+       border-style: solid;
+       text-align: center;
+       font-weight: bold;
+       padding: 5px 5px 5px 5px;
+       background-color: #999999;
+       color: #FFFFFF;
 }
 
-.resultbox {
-  text-align: center;
-  width: 400px;
-  float: left;
-  border-width: 2px;
+.preftable td {
+  border-collapse: collapse;
+  border-width: 1px;
+  border-color: #999999;
   border-style: solid;
-  border-color: #4D801A;
-  padding: 7px;
-  margin-right: 30px;
-  margin-bottom: 30px;
-}
-
-.resultbox h3 {
-  text-align: center;
-  font-weight: bold;
-  padding: 5px 5px 5px 15px;
-  margin: -7px;
-  background-color: #73BF26;
-  color: #fff;
-  border-bottom: 0px;
-}
-.clearbox {
-   clear: both;
-   margin: 30px;
-}
-
-li.moveable {
-  background-color: #E5FFCC;
-  border:1px solid #4D801A;
-  cursor: move;
-  padding: 4px;
-  margin: 4px;
-}
-
-#sortable_list {
-  font-size: 24pt;
-  display: float;
-  float: left;
+  text-align: right;
+  padding-right: 5px;
+  padding-left: 5px;
 }
 
 .voterbox {
@@ -338,6 +310,16 @@ li.moveable {
   padding-left: 5px;
 }
 
+/* voterbox#election is used on user summary page */
+.voterbox#election { border-color: #990d13; }
+
+.voterbox#election th {
+        background-color: #dc0d13;
+        border-color: #dc0d13; 
+}
+       
+.voterbox#election td { border-color: #990d13;}
+
 .rbmoreinfo hr {
   width: 100%;
   height: 10px;
@@ -361,7 +343,7 @@ li.moveable {
   width: 400px;
   border-width: 2px;
   border-style: solid;
-  border-color: #73BF26;
+  border-color: #999999;
   padding: 7px;
   padding-bottom: 12px;
   margin-bottom: 20px;
@@ -374,7 +356,7 @@ li.moveable {
   padding: 5px 5px 5px 15px;
   font-size: 12px;
   margin: -7px;
-  background-color: #73BF26;
+  background-color: #999999;
   color: #fff;
   border-bottom: 0px;
 }
@@ -389,7 +371,7 @@ li.moveable {
   width: 400px;
   border-width: 2px;
   border-style: solid;
-  border-color: #4D801A;
+  border-color: #dc0d13;
   padding: 7px;
   padding-bottom: 12px;
   margin-bottom: 20px;
@@ -404,7 +386,7 @@ li.moveable {
   padding: 5px 5px 5px 15px;
   font-size: 12px;
   margin: -7px;
-  background-color: #4D801A;
+  background-color: #dc0d13;
   color: #fff;
   border-bottom: 0px;
 }
@@ -414,60 +396,88 @@ li.moveable {
   padding: 5px;
 }
 
-#election_creation_progress_bar ul li {
-  display: inline;
+#progress_bar ul li {
+  display: block;
   list-style: default;
 }
 
-#election_creation_progress_bar ul li:after {
-  font-weight: normal;
-  color: #000;
-  content: " || ";
-}
-
-#election_creation_progress_bar ul li.last:after {
-  content: "";
+#progress_bar li.step_selected {
+  font-weight: bold;
 }
 
-#election_creation_progress_bar li.step_selected {
+#progress_bar li.step_unselected {
+  color: #CCCCCC;
   font-weight: bold;
 }
 
-#election_creation_progress_bar li.step_unselected {
+#progress_bar li.step_unselected {
   color: #CCCCCC;
   font-weight: bold;
 }
 
-/*
-#plurality h4 {
-       background: url(/images/voting_plurality.png);
-       width: 217px;
+#progress_bar li.step_unselected a {
+  text-decoration: none;
 }
 
-#schulze h4 {
      background: url(/images/voting_schulze_quickvote.png);
      width: 183px;
+div.photo {
text-align: center;
margin-bottom: 1.5em;
 }
 
-#approval h4 {
-       background: url(/images/voting_approval.png);
-       width: 208px;
+div.photo img {
+ border: 1px black solid;
 }
 
-#borda h4 {
-       background: url(/images/voting_borda.png);
-       width: 147px;
+.winner_text {
+ text-align: center;
 }
 
-#condorcet h4 {
-       background: url(/images/voting_condorcet.png);
-       width: 240px;
+#winner_box {
+ border: 3px white solid;
+ background-color: #666666;
+ color: white; 
+ margin: 0.5em 0 1em 0;
+}
+
+.winner_text {
+ font-size: 1.2em;
+}
+#winner_box .winner_text {
+ font-size: 2em;
 }
 
-#irv h4 {
      background: url(/images/voting_irv.png);
      width: 86px;
+#winner_box p {
margin: 0;
padding: 0;
 }
-*/
 
+/* main election candidate stylesheet information */
 
+.candidate_box {
+}
+.candidate_box_name {
+ float: left;
+ font-size: 1.3em;
+ font-weight: bold;
+}
+.candidate_box_menu {
+ text-align: right;
+ float: right;
+ font-size: 0.8em;
+ font-weight: bold;
+}
+.candidate_box_info {
+ margin: 0.5em 0 0.5em 3em;
+}
+/*.candidate_box_picture {
+ width: 100px;
+ float: left;
+ margin: 0 0.8em 0.5em 0;
+}*/
+.candidate_box_picture img {
+ width: 100px;
+ border: 1px solid black;
+}
+.candidate_box_description {
+ display: inline;
+}

Benjamin Mako Hill || Want to submit a patch?