2014-09-04 17:52:18 +02:00
|
|
|
/* This software is governed by the CeCILL-B license. If a copy of this license
|
|
|
|
* is not distributed with this file, you can obtain one at
|
|
|
|
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
|
|
|
*
|
|
|
|
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
|
|
|
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
|
|
|
*
|
|
|
|
* =============================
|
|
|
|
*
|
|
|
|
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
|
|
|
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
|
|
|
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
|
|
|
*
|
|
|
|
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
|
|
|
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
|
|
|
*/
|
2015-03-26 00:00:27 +01:00
|
|
|
@font-face {
|
|
|
|
font-family: "DejaVu Sans";
|
|
|
|
src: url('../fonts/DejaVuSans.ttf');
|
|
|
|
}
|
2014-10-21 01:31:26 +02:00
|
|
|
body {
|
|
|
|
font-family: "DejaVu Sans", Verdana, Geneva, sans-serif;
|
|
|
|
color:#333;
|
|
|
|
background:#eee;
|
2014-09-04 17:52:18 +02:00
|
|
|
}
|
|
|
|
|
2014-10-21 01:31:26 +02:00
|
|
|
.trait { /* hr */
|
|
|
|
background-color: #EEE;
|
2015-04-11 17:56:49 +02:00
|
|
|
height: 5px;
|
|
|
|
margin: 5px 0;
|
|
|
|
border: none;
|
2014-09-04 17:52:18 +02:00
|
|
|
}
|
|
|
|
|
2014-10-21 01:31:26 +02:00
|
|
|
.ombre {
|
|
|
|
background-color: #FFF;
|
|
|
|
box-shadow: -4px 6px 9px rgba(50, 50, 50, 0.5);
|
2015-04-11 17:56:49 +02:00
|
|
|
margin: 15px auto 30px;
|
2014-09-04 17:52:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Commentaires */
|
|
|
|
div.comment{
|
2015-04-11 17:56:49 +02:00
|
|
|
margin-bottom: 10px;
|
2014-09-04 17:52:18 +02:00
|
|
|
border-left: 1px dashed #999;
|
|
|
|
background: #F5F5F5;
|
|
|
|
padding-top: 4px;
|
|
|
|
padding-bottom: 4px;
|
|
|
|
padding-left: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Règles générales */
|
|
|
|
|
|
|
|
a:focus { /* a11y */
|
|
|
|
outline:#000 dotted 1px;
|
|
|
|
}
|
|
|
|
|
2015-04-11 17:56:49 +02:00
|
|
|
header, footer {
|
|
|
|
}
|
|
|
|
main {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
header h1 {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
.container {
|
|
|
|
padding:30px;
|
|
|
|
}
|
|
|
|
.container .jumbotron {
|
|
|
|
padding:20px 20px;
|
|
|
|
border-radius: 2px;
|
2014-09-04 17:52:18 +02:00
|
|
|
}
|
2015-04-11 18:08:18 +02:00
|
|
|
.container .jumbotron p {
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
2014-09-04 17:52:18 +02:00
|
|
|
|
2014-11-06 15:52:59 +01:00
|
|
|
.summary h4 {
|
2014-10-21 01:31:26 +02:00
|
|
|
margin-top:0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.summary {
|
|
|
|
font-weight:bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.summary img {
|
|
|
|
max-width:100px;
|
|
|
|
}
|
|
|
|
|
2015-04-11 17:56:49 +02:00
|
|
|
.alert {
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
|
2015-04-23 23:18:31 +02:00
|
|
|
.very-small {
|
|
|
|
font-size: 70%;
|
|
|
|
}
|
|
|
|
|
2014-09-04 17:52:18 +02:00
|
|
|
/* Effet sur les images en page d'accueil */
|
2014-10-21 01:31:26 +02:00
|
|
|
.opacity img {
|
|
|
|
opacity: 0.8;
|
2014-09-04 17:52:18 +02:00
|
|
|
}
|
|
|
|
|
2014-10-21 01:31:26 +02:00
|
|
|
.opacity:hover img {
|
2014-09-04 17:52:18 +02:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2014-11-14 17:35:22 +01:00
|
|
|
.home-choice {
|
|
|
|
margin-bottom:50px;
|
|
|
|
}
|
|
|
|
|
2014-09-04 17:52:18 +02:00
|
|
|
/* Description du sondage */
|
|
|
|
/* studs.php et adminstuds.php */
|
|
|
|
header .lead {
|
|
|
|
padding:10px 0;
|
|
|
|
margin:0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#admin-link, #public-link {
|
|
|
|
cursor:text;
|
|
|
|
}
|
2014-09-29 16:33:15 +02:00
|
|
|
.admin-link, .public-link,
|
|
|
|
.admin-link:hover, .public-link:hover {
|
|
|
|
color:#333;
|
|
|
|
text-decoration:none;
|
|
|
|
border:none;
|
|
|
|
}
|
2014-09-04 17:52:18 +02:00
|
|
|
|
2014-11-06 15:52:59 +01:00
|
|
|
.jumbotron h3, .jumbotron .js-title {
|
2014-09-04 17:52:18 +02:00
|
|
|
margin-bottom:20px;
|
2015-04-14 22:43:04 +02:00
|
|
|
margin-top:0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.poll-description {
|
|
|
|
font-family: inherit;
|
2015-09-14 23:33:14 +02:00
|
|
|
white-space: pre-wrap;
|
|
|
|
word-break: initial;
|
2014-09-04 17:52:18 +02:00
|
|
|
}
|
|
|
|
|
2014-11-06 15:52:59 +01:00
|
|
|
h4.control-label {
|
2014-09-29 16:33:15 +02:00
|
|
|
display: inline-block;
|
|
|
|
max-width: 100%;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
font-weight: 700;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 1.42857;
|
2014-10-21 01:31:26 +02:00
|
|
|
margin-top:0;
|
2014-09-29 16:33:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
caption {
|
|
|
|
padding: 0 10px 10px;
|
|
|
|
font-weight:bold;
|
|
|
|
}
|
|
|
|
|
2015-04-15 13:43:40 +02:00
|
|
|
.results a.btn-default.btn-sm {
|
|
|
|
padding: 3px 7px;
|
|
|
|
font-size: 0.7em;
|
|
|
|
}
|
|
|
|
|
2014-09-04 17:52:18 +02:00
|
|
|
/* adminstuds.php */
|
2014-11-14 17:35:22 +01:00
|
|
|
#title-form h3 .btn-edit,
|
2014-09-04 17:52:18 +02:00
|
|
|
#email-form .btn-edit,
|
2014-10-21 01:31:26 +02:00
|
|
|
#description-form .btn-edit,
|
2015-01-08 00:27:40 +01:00
|
|
|
#poll-rules-form .btn-edit,
|
2015-04-06 12:39:58 +02:00
|
|
|
#poll-hidden-form .btn-edit,
|
2015-01-08 22:03:44 +01:00
|
|
|
#expiration-form .btn-edit,
|
|
|
|
#name-form .btn-edit {
|
2014-09-04 17:52:18 +02:00
|
|
|
position:absolute;
|
|
|
|
left:-2000px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#title-form .btn-edit:focus,
|
2014-11-06 15:52:59 +01:00
|
|
|
#title-form h3:hover .btn-edit,
|
2014-09-04 17:52:18 +02:00
|
|
|
#email-form .btn-edit:focus,
|
|
|
|
#email-form:hover .btn-edit,
|
|
|
|
#description-form .btn-edit:focus,
|
2014-10-21 01:31:26 +02:00
|
|
|
#description-form:hover .btn-edit,
|
|
|
|
#poll-rules-form .btn-edit:focus,
|
2015-01-08 00:27:40 +01:00
|
|
|
#poll-rules-form:hover .btn-edit,
|
2015-04-06 12:39:58 +02:00
|
|
|
#poll-hidden-form .btn-edit:focus,
|
|
|
|
#poll-hidden-form:hover .btn-edit,
|
2015-01-08 00:27:40 +01:00
|
|
|
#expiration-form .btn-edit:focus,
|
2015-01-08 22:03:44 +01:00
|
|
|
#expiration-form:hover .btn-edit,
|
|
|
|
#name-form .btn-edit:focus,
|
|
|
|
#name-form:hover .btn-edit {
|
2014-09-04 17:52:18 +02:00
|
|
|
position:relative !important;
|
|
|
|
left:0;
|
2015-04-14 22:43:04 +02:00
|
|
|
padding: 0 10px;
|
2014-09-04 17:52:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.js-desc textarea {
|
|
|
|
margin-bottom:5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#author-form .form-control-static {
|
|
|
|
margin-bottom:0;
|
|
|
|
}
|
|
|
|
|
2015-04-06 12:39:58 +02:00
|
|
|
#poll-rules-form p, #poll-hidden-form p,
|
2014-10-21 01:31:26 +02:00
|
|
|
.jumbotron p.well {
|
|
|
|
font-size:16px;
|
|
|
|
}
|
|
|
|
.jumbotron p {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2014-09-04 17:52:18 +02:00
|
|
|
/* Tableau du sondage */
|
|
|
|
#tableContainer {
|
2014-11-18 18:38:00 +01:00
|
|
|
overflow-x:hidden;
|
|
|
|
margin:5px auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
#tableContainer:focus,
|
|
|
|
#tableContainer:hover {
|
2014-09-04 17:52:18 +02:00
|
|
|
overflow-x:auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
table.results {
|
|
|
|
margin:0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
table.results > tbody > tr:hover > td,
|
|
|
|
table.results > tbody > tr:hover > th {
|
|
|
|
opacity:0.85;
|
|
|
|
}
|
|
|
|
|
|
|
|
table.results > tbody > tr#vote-form:hover > td,
|
|
|
|
table.results > tbody > tr#vote-form:hover > th {
|
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
|
|
|
|
table.results tbody td {
|
|
|
|
text-align:center;
|
|
|
|
padding:1px 5px;
|
|
|
|
border-bottom: 2px solid white;
|
|
|
|
border-top: 2px solid white;
|
|
|
|
}
|
|
|
|
|
|
|
|
table.results thead th {
|
|
|
|
text-align:center;
|
|
|
|
border:2px solid white;
|
2014-10-21 01:31:26 +02:00
|
|
|
padding:5px;
|
2014-09-04 17:52:18 +02:00
|
|
|
min-width:40px;
|
2014-10-21 01:31:26 +02:00
|
|
|
font-size:12px;
|
|
|
|
max-width:100px;
|
|
|
|
overflow:hidden;
|
|
|
|
text-overflow:ellipsis;
|
2014-09-04 17:52:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
table.results thead .btn {
|
|
|
|
margin:0 auto;
|
|
|
|
display:block;
|
|
|
|
}
|
|
|
|
|
|
|
|
table.results th.rbd.day,
|
|
|
|
table.results th.rbd.bg-info,
|
|
|
|
table.results td.rbd {
|
|
|
|
border-right: 2px dotted white;
|
|
|
|
}
|
|
|
|
|
|
|
|
table.results th.bg-primary.month,
|
|
|
|
table.results th.day,
|
|
|
|
table.results th.bg-info {
|
|
|
|
border-bottom:none;
|
|
|
|
border-top:none;
|
|
|
|
border-right: 2px dotted white;
|
|
|
|
border-left: 2px dotted white;
|
|
|
|
}
|
|
|
|
|
|
|
|
table.results tbody th.bg-info {
|
|
|
|
border-right: 2px solid white;
|
|
|
|
border-left: 2px solid white;
|
|
|
|
text-align:center;
|
|
|
|
min-width:150px;
|
|
|
|
}
|
|
|
|
|
|
|
|
table.results th.bg-primary.month,
|
|
|
|
table.results th.day {
|
|
|
|
text-align:left;
|
|
|
|
}
|
|
|
|
|
|
|
|
table.results #nom {
|
|
|
|
width:115px;
|
|
|
|
}
|
|
|
|
|
|
|
|
table.results .btn-link.btn-sm {
|
|
|
|
padding:2px;
|
|
|
|
}
|
|
|
|
|
2015-06-17 22:39:14 +02:00
|
|
|
#addition {
|
|
|
|
vertical-align:top;
|
|
|
|
}
|
|
|
|
|
|
|
|
#showChart {
|
|
|
|
margin-top:30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#Chart {
|
|
|
|
padding-right:30px;
|
|
|
|
}
|
|
|
|
|
2014-09-04 17:52:18 +02:00
|
|
|
/* Formulaire de vote */
|
|
|
|
#vote-form td ul, #vote-form td label {
|
|
|
|
margin:0;
|
|
|
|
font-size:12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#vote-form td {
|
|
|
|
border-top:2px solid white;
|
|
|
|
}
|
2015-09-24 17:27:29 +02:00
|
|
|
#vote-form td:first-child {
|
|
|
|
min-width: 180px;
|
|
|
|
}
|
2014-09-04 17:52:18 +02:00
|
|
|
.yes input, .ifneedbe input,.no input {
|
2015-10-26 13:44:23 +01:00
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
padding: 0px;
|
|
|
|
margin: -1px;
|
|
|
|
overflow: hidden;
|
|
|
|
clip: rect(0px, 0px, 0px, 0px);
|
|
|
|
border: 0px none;
|
2014-09-04 17:52:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.choice input:focus + label {
|
|
|
|
outline: 2px dotted #000;
|
|
|
|
outline-offset: -2px;
|
|
|
|
}
|
|
|
|
.choice {
|
|
|
|
width:32px;
|
|
|
|
margin:0 auto !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.choice label {
|
|
|
|
cursor:pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.yes .btn, .ifneedbe .btn, .no .btn {
|
|
|
|
width:32px;
|
|
|
|
color:#555;
|
|
|
|
}
|
|
|
|
|
2015-06-17 23:13:44 +02:00
|
|
|
.yes .btn,.yes .btn:hover {
|
2015-04-11 17:56:49 +02:00
|
|
|
border-bottom-right-radius:0 !important;
|
|
|
|
border-bottom-left-radius:0 !important;
|
2014-09-04 17:52:18 +02:00
|
|
|
margin-bottom:-1px !important;
|
|
|
|
margin-top:4px !important;
|
2015-06-17 23:13:44 +02:00
|
|
|
color: #677835;
|
2014-09-04 17:52:18 +02:00
|
|
|
}
|
|
|
|
|
2015-06-17 23:13:44 +02:00
|
|
|
.ifneedbe .btn,.ifneedbe .btn:hover {
|
2015-04-11 17:56:49 +02:00
|
|
|
border-radius: 0;
|
2015-06-17 23:13:44 +02:00
|
|
|
color: #C48A1B;
|
2014-09-04 17:52:18 +02:00
|
|
|
}
|
|
|
|
|
2015-06-17 23:13:44 +02:00
|
|
|
.no .btn,.no .btn:hover{
|
2015-04-11 17:56:49 +02:00
|
|
|
border-top-right-radius:0 !important;
|
|
|
|
border-top-left-radius:0 !important;
|
2014-09-04 17:52:18 +02:00
|
|
|
margin-bottom:4px !important;
|
|
|
|
margin-top:-1px !important;
|
2015-06-17 23:13:44 +02:00
|
|
|
color: #AD220F;
|
2014-09-04 17:52:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.yes input[type="radio"]:checked + label { /* =.btn-success.active */
|
2014-10-21 01:31:26 +02:00
|
|
|
color: #fff;
|
|
|
|
background-color: #768745;
|
|
|
|
border-color: #67753C;
|
2015-04-14 22:43:04 +02:00
|
|
|
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.125) inset;
|
2014-09-04 17:52:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.ifneedbe input[type="radio"]:checked + label { /* =.btn-warning.active */
|
2014-10-21 01:31:26 +02:00
|
|
|
color: #fff;
|
|
|
|
background-color: #CF9800;
|
|
|
|
border-color: #BD8A00;
|
2015-04-14 22:43:04 +02:00
|
|
|
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.125) inset;
|
2014-09-04 17:52:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.no input[type="radio"]:checked + label { /* =.btn-danger.active */
|
2014-10-21 01:31:26 +02:00
|
|
|
color: #fff;
|
|
|
|
background-color: #BF2511;
|
|
|
|
border-color: #AD220F;
|
2015-04-14 22:43:04 +02:00
|
|
|
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.125) inset;
|
2014-09-04 17:52:18 +02:00
|
|
|
}
|
|
|
|
|
2015-06-17 23:13:44 +02:00
|
|
|
/* Button and results "No" */
|
|
|
|
.no .btn.startunchecked {
|
|
|
|
box-shadow:none !important;
|
|
|
|
color:#AD220F !important;
|
|
|
|
background:#fff !important;
|
|
|
|
border-color:#bdbdbd !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.no .btn.startunchecked:hover {
|
|
|
|
background-color: #E0E0E0 !important;
|
|
|
|
border-color: #949494 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
table.results .bg-danger .glyphicon {
|
|
|
|
opacity:0;
|
|
|
|
|
|
|
|
-moz-animation-name: hideNoIcon;
|
|
|
|
-moz-animation-iteration-count: 1;
|
|
|
|
-moz-animation-timing-function: ease-in;
|
|
|
|
-moz-animation-duration: 2s;
|
|
|
|
|
|
|
|
-webkit-animation-name: hideNoIcon;
|
|
|
|
-webkit-animation-iteration-count: 1;
|
|
|
|
-webkit-animation-timing-function: ease-in;
|
|
|
|
-webkit-animation-duration: 2s;
|
|
|
|
|
|
|
|
animation-name: hideNoIcon;
|
|
|
|
animation-iteration-count: 1;
|
|
|
|
animation-timing-function: ease-in;
|
|
|
|
animation-duration: 2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
@-moz-keyframes hideNoIcon {
|
|
|
|
0% {
|
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity:0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@-webkit-keyframes hideNoIcon {
|
|
|
|
0% {
|
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity:0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@keyframes hideNoIcon {
|
|
|
|
0% {
|
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity:0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
table.results > tbody > tr:hover > td .glyphicon {
|
|
|
|
opacity:1
|
|
|
|
}
|
|
|
|
|
2015-03-29 22:13:22 +02:00
|
|
|
/* create_date_poll.php */
|
2014-09-04 17:52:18 +02:00
|
|
|
#selected-days .form-group {
|
|
|
|
margin-left:0;
|
|
|
|
margin-right:0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#selected-days legend input {
|
|
|
|
box-shadow: none;
|
2015-04-11 17:56:49 +02:00
|
|
|
border-width:0;
|
2014-09-04 17:52:18 +02:00
|
|
|
color: #333;
|
|
|
|
font-size: 21px;
|
|
|
|
border-radius:0;
|
|
|
|
margin-bottom:-1px;
|
|
|
|
background:transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
#selected-days legend input:hover,
|
|
|
|
#selected-days legend input:focus {
|
|
|
|
border-bottom-width:1px;
|
|
|
|
background-color:#E6E6E6;
|
|
|
|
}
|
|
|
|
|
|
|
|
#selected-days legend .input-group-addon {
|
|
|
|
border:none;
|
|
|
|
background:transparent;
|
|
|
|
}
|
2015-03-29 22:13:22 +02:00
|
|
|
/* create_classic_poll.php */
|
2014-10-21 01:31:26 +02:00
|
|
|
.md-a-img {
|
|
|
|
text-decoration:none !important;
|
|
|
|
}
|
2014-09-04 17:52:18 +02:00
|
|
|
|
2014-10-21 01:31:26 +02:00
|
|
|
#md-a-imgModal .form-group {
|
2015-04-14 22:43:04 +02:00
|
|
|
margin:10px 0;
|
2014-10-21 01:31:26 +02:00
|
|
|
}
|
2014-11-14 17:35:22 +01:00
|
|
|
|
|
|
|
#md-a-imgModalLabel {
|
|
|
|
font-size: 24px;
|
|
|
|
}
|
2015-03-27 12:55:32 +01:00
|
|
|
|
|
|
|
/* Admin */
|
|
|
|
#poll_search {
|
|
|
|
cursor: pointer;
|
2015-09-14 23:33:14 +02:00
|
|
|
}
|