/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */ /* * What follows is the result of much research on cross-browser styling. * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal, * Kroc Camen, and the H5BP dev community and team. */ /* ========================================================================== Base styles: opinionated defaults ========================================================================== */ html, button, input, select, textarea { color: #222; } html { line-height: 1.4; font: 1em/1.4em "Droid Sans",Helvetica,Arial,sans-serif; } /* * Remove text-shadow in selection highlight: h5bp.com/i * These selection rule sets have to be separate. * Customize the background color to match your design. */ ::-moz-selection { background: #b3d4fc; text-shadow: none; } ::selection { background: #b3d4fc; text-shadow: none; } /* * A better looking default horizontal rule */ hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; } /* * Remove the gap between images, videos, audio and canvas and the bottom of * their containers: h5bp.com/i/440 */ audio, canvas, img, video { vertical-align: middle; } /* * Remove default fieldset styles. */ fieldset { border: 0; margin: 0; padding: 0; } /* * Allow only vertical resizing of textareas. */ textarea { resize: vertical; } /* ========================================================================== Browse Happy prompt ========================================================================== */ .browsehappy { margin: 0.2em 0; background: #ccc; color: #000; padding: 0.2em 0; } /* ========================================================================== Author's custom styles ========================================================================== */ .mt1 {margin-top:1em;} .mr1 {margin-right:1em;} .mb1 {margin-bottom:1em;} .ml1 {margin-left:1em;} .mt2 {margin-top:2em;} .mr2 {margin-right:2em;} .mb2 {margin-bottom:2em;} .ml2 {margin-left:2em;} .pt1 {padding-top:1em;} .pr1 {padding-right:1em;} .pb1 {padding-bottom:1em;} .pl1 {padding-left:1em;} .pt2 {padding-top:2em;} .pr2 {padding-right:2em;} .pb2 {padding-bottom:2em;} .pl2 {padding-left:2em;} .red {color: red; text-align: center;} .bold {font-weight: bold;} .ctr {text-align: center;} input { border: 1px solid #999; -webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3); box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3); width: 1.8em; } input[type=submit] { width:10em; background:#004F9B; color:#fff; height:30px; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; border: 1px solid #999; } #identform input, #checkvoteform input { width:100%;; display:block; height: 1.8em; padding-left: 0.4em; } #identform input[type=submit], #checkvoteform input[type=submit] { width:10em; margin-top: 1em; background:#004F9B; color:#fff; height:30px; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; border: 1px solid #999; } input[type=submit]:hover { background:#fff; color:#004F9B; } header { margin-bottom: 2em; } #top-bg { width: 100%; position: absolute; top: 0; height: 12px; } header h1 { margin-top: 2em; } header h1,header h4 { text-align: center; } section { padding: 0 1em; } #vote legend { font-weight: bold; text-align: center; } #checkvoteform h3, #identform h3 { text-align : center; } #checkvoteform p, #identform p { text-align : justify; } #identform { background-color: #EEEEEE; border-radius: 20px; margin: 30px 0px; padding: 0.5em 1em 2em; box-shadow: 0px 0px 2px; height: auto; min-height: 15em; } #checkvoteform { background-color: #EEEEEE; border-radius: 20px; margin: 30px 0px; padding: 0.5em 1em 2em; box-shadow: 0px 0px 2px; height: auto; min-height: 15em; } #pageexpl { text-align: justify; width: 90%; margin: 0 auto; } .submit-like { width:15em; background:#004F9B; color:#fff; height:30px; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; border: 1px solid #999; text-decoration: none; padding: 0.4em; } .submit-like:hover { background:#fff; color:#004F9B; } #pagevote { text-align: justify; width: 90%; margin: 0 auto; } #pagevote h3, h4, #pagevote input, #pagevote p.formvote { text-align: center; } #pagevote span.candidats { width: 40%; display: inline-block; font-size: 1.2em; font-weight: bold; padding: 0.5em 0; } #pagefinal { text-align: justify; width: 90%; margin: 0 auto; } #pagemerci { text-align: justify; width: 90%; margin: 0 auto; } #pagefinal h3, h4, #pagefinal p.formvote { text-align: center; } #pagefinal input[type="submit"] { margin-top: 1em; } li.parsley-required { color: red; } li.parsley-mincheck { color: red; } footer { text-align: center; margin-top: 2em; border-top: 1px solid #222; } footer a { color: #222 ; text-decoration: none; } #pageresults { text-align: center; width: 90%; margin: 0 auto; } .result_pres { width: 12%; display: inline-block; font-size: 1.2em; font-weight: bold; } #parsley-id-multiple-CS { display:inline-block; } /* ========================================================================== Helper classes ========================================================================== */ /* * Image replacement */ .ir { background-color: transparent; border: 0; overflow: hidden; /* IE 6/7 fallback */ *text-indent: -9999px; } .ir:before { content: ""; display: block; width: 0; height: 150%; } /* * Hide from both screenreaders and browsers: h5bp.com/u */ .hidden { display: none !important; visibility: hidden; } /* * Hide only visually, but have it available for screenreaders: h5bp.com/v */ .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; } /* * Extends the .visuallyhidden class to allow the element to be focusable * when navigated to via the keyboard: h5bp.com/p */ .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; } /* * Hide visually and from screenreaders, but maintain layout */ .invisible { visibility: hidden; } /* * Clearfix: contain floats * * For modern browsers * 1. The space content is one way to avoid an Opera bug when the * `contenteditable` attribute is included anywhere else in the document. * Otherwise it causes space to appear at the top and bottom of elements * that receive the `clearfix` class. * 2. The use of `table` rather than `block` is only necessary if using * `:before` to contain the top-margins of child elements. */ .clearfix:before, .clearfix:after { content: " "; /* 1 */ display: table; /* 2 */ } .clearfix:after { clear: both; } /* * For IE 6/7 only * Include this rule to trigger hasLayout and contain floats. */ .clearfix { *zoom: 1; } /* ========================================================================== EXAMPLE Media Queries for Responsive Design. These examples override the primary ('mobile first') styles. Modify as content requires. ========================================================================== */ @media only screen and (min-width: 832px) { #identform { width: 40%; vertical-align: top; display: inline-block; margin: 0 4%; } #checkvoteform { width: 40%; vertical-align: top; display: inline-block; margin: 0 2%; } #identform input, #checkvoteform input { width: 70% } #pageexpl { width: 50%; } #pagevote { width: 50%; } #pagefinal { width: 50%; } #pagemerci { width: 50%; } } @media print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) { /* Style adjustments for high resolution devices */ } /* ========================================================================== Print styles. Inlined to avoid required HTTP connection: h5bp.com/r ========================================================================== */ @media print { * { background: transparent !important; color: #000 !important; /* Black prints faster: h5bp.com/s */ box-shadow: none !important; text-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } /* * Don't show links for images, or javascript/internal links */ .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; /* h5bp.com/t */ } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } @page { margin: 0.5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } }