X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/25bfcc0f6b5344acb4039457f8492df7fbada7fc..c504b0b0ca78ebe19c64c194dda677dae48ab6fb:/public/stylesheets/main.css diff --git a/public/stylesheets/main.css b/public/stylesheets/main.css new file mode 100644 index 0000000..ca71d76 --- /dev/null +++ b/public/stylesheets/main.css @@ -0,0 +1,473 @@ +@charset "utf-8"; +/* CSS Document */ + +/**************************************************************** + Selectricity || selectricity.org + Design by Courtland Allen +*****************************************************************/ + +/* basics */ + +body { + color: black; + background: white; + background: url(/images/bg_main.png) repeat-x top left; +} + +h2 { + font-size: 24px !important; + margin: 0 0 1em 0 !important; +} + +h3 { + font-size: 18px !important; + margin: 0 0 1em 0 !important; +} + + +/* Left column. Includes logo, poll information, and graph. */ + +#left-side { + width: 270px; + float: left; + text-align: left; + margin-top: 33px; + font-size: 13px; +} + +#left-side h1 { + height: 0px; + overflow: hidden; + padding-top: 189px; + background: url(/images/title_main.png) no-repeat top left; +} + + +#left-side-content { + color: #666666; + margin-top: 40px; + text-align: left; +} + +#left-side-content p { + color: #666666; + padding-left: 2em; + margin: 2em 0 2em 0; +} + +#left-side-content ol { + color: #666666; +} + +/* #graph { + margin-top: 50px; + background: url(/images/graph.jpg) top left no-repeat; + height: 0px; + overflow: hidden; + padding-top: 243px; +} */ + + + +/* Right column. Includes top-bar and main-box. */ + +#right-side { + width: 611px; + margin-top: 0px; + float: right; +} + +#top-bar { + float: right; + margin-right: 50px; + width: 231px; + text-align: center; + margin-bottom: 35px; +} + +#top-bar a { + color: #dddddd; + font-size: 11px; +} + +div#bar-left { + background-image: url(/images/top_bar_1.png); + width: 153px; + height: 37px; + padding-top: 8px; + float: left; + clear: left; +} + +div#bar-right { + background-image: url(/images/top_bar_2.png); + width: 78px; + height: 37px; + padding-top: 8px; + float: left; + clear: right; +} + +.green { color: #10a700; } + +.left-aligned h4 { + float: left; + padding-top: 26px; + height: 0px; + overflow: hidden; + background: no-repeat top left; +} + +.right-aligned h4 { + float: right; + padding-top: 26px; + height: 0px; + overflow: hidden; + background: no-repeat top right; +} + +.left-aligned { text-align: left; } + +.right-aligned { text-align: right; } + +h5 { + color: #5c5c5c; + background-color: #d6d6d6; + height: 21px; + font-size: 16px; + padding: 5px 15px 0 15px; + margin-bottom: .75em; + overflow: hidden; +} + + + +#main-box { + float: right; + width: 611px; + padding: 0; + background: #f9f9f9; + border: 1px solid #b3b3b3; +} + +#main-box h1 { + +} + +#main-box p { + margin-bottom: 1.75em; + padding: 0 1.7em 0 1.7em; + line-height: 1.8em; + color: #454545; +} + + +#ErrorExplanation { + width: 400px; + border: 2px solid 'red'; + padding: 7px; + padding-bottom: 12px; + margin-bottom: 20px; + background-color: #f0f0f0; +} + +#ErrorExplanation h2 { + text-align: left; + font-weight: bold; + padding: 5px 5px 5px 15px; + font-size: 12px; + margin: -7px; + background-color: #c00; + color: #fff; +} + +#ErrorExplanation p { + color: #333; + margin-bottom: 0; + padding: 5px; +} + +#ErrorExplanation ul li { + font-size: 12px; + list-style: square; +} + +.ListLine0 { + background: #e0f8f8; + +} +.ListLine1 { + background: #cccccc; + +} + +#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; + border-width: 1px; + padding: 7px; + padding-bottom: 12px; + margin-bottom: 20px; + background-color: #f0f0f0; +} + +.fieldWithErrors { + display: inline; +} +.fieldWithErrors input, .fieldWithErrors select { + background-color: #ffdfdf; +} + +#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; +} + +.mainresultbox h3 { + text-align: center; + font-weight: bold; + padding: 5px 5px 5px 15px; + margin: -7px; + background-color: #73BF26; + color: #fff; + border-bottom: 0px; +} + +.resultbox { + text-align: center; + width: 400px; + float: left; + border-width: 2px; + 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; +} + +.voterbox { + border-spacing: 0px; + border-width: 2px; + border-color: #4D801A; + border-style: solid; +} + +.voterbox th { + border-width: 2px; + border-color: #73BF26; + border-style: solid; + text-align: center; + font-weight: bold; + padding: 5px 5px 5px 15px; + background-color: #73BF26; + color: #fff; +} + +.voterbox td { + border-collapse: collapse; + border-width: 1px; + border-color: #4D801A; + border-style: solid; + + text-align: right; + padding-right: 5px; + padding-left: 5px; +} + +.rbmoreinfo hr { + width: 100%; + height: 10px; + color: #4D801A; +} +.rbmoreinfo h4 { + border: 0px; + font-style: italic; + text-align: center; + font-size: 0.9em; +} + +.rbmoreinfo p { + font-size: 0.8em; + padding-left: 30px; + padding-right: 30px; + text-align: left; +} + +.example { + width: 400px; + border-width: 2px; + border-style: solid; + border-color: #73BF26; + padding: 7px; + padding-bottom: 12px; + margin-bottom: 20px; + background-color: #f0f0f0; +} + +.example h4 { + text-align: center; + font-weight: bold; + padding: 5px 5px 5px 15px; + font-size: 12px; + margin: -7px; + background-color: #73BF26; + color: #fff; + border-bottom: 0px; +} + +.example p { + margin-bottom: 0; + padding: 5px; +} + + +.warning { + width: 400px; + border-width: 2px; + border-style: solid; + border-color: #4D801A; + padding: 7px; + padding-bottom: 12px; + margin-bottom: 20px; + background-color: #f0f0f0; +} + +.warning h4 { + text-align: + center; + font-weight: + bold; + padding: 5px 5px 5px 15px; + font-size: 12px; + margin: -7px; + background-color: #4D801A; + color: #fff; + border-bottom: 0px; +} + +.warning p { + margin-bottom: 0; + padding: 5px; +} + +#election_creation_progress_bar ul li { + display: inline; + 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: ""; +} + +#election_creation_progress_bar li.step_selected { + font-weight: bold; +} + +#election_creation_progress_bar li.step_unselected { + color: #CCCCCC; + font-weight: bold; +} + +/* +#plurality h4 { + background: url(/images/voting_plurality.png); + width: 217px; +} + +#schulze h4 { + background: url(/images/voting_schulze_quickvote.png); + width: 183px; +} + +#approval h4 { + background: url(/images/voting_approval.png); + width: 208px; +} + +#borda h4 { + background: url(/images/voting_borda.png); + width: 147px; +} + +#condorcet h4 { + background: url(/images/voting_condorcet.png); + width: 240px; +} + +#irv h4 { + background: url(/images/voting_irv.png); + width: 86px; +} +*/ + +