hubl/src/styles/layout/polls/polls.scss

550 lines
19 KiB
SCSS
Raw Normal View History

2020-09-11 12:06:01 +00:00
solid-poll > div {
max-width: 1400px;
margin: auto;
}
2020-08-19 23:59:24 +00:00
#polls,
#circle-polls {
h2 {
text-transform: inherit;
}
/*style of poll listing*/
#default-pollListing, #circles-pollListing {
margin: auto;
2020-08-19 23:59:24 +00:00
.headline {
h2 {
font-family: "RefrigeratorDelxW01Bold";
font-size: 2.4rem;
2020-10-12 22:34:43 +00:00
color: var(--color-primary);
2020-10-13 22:28:16 +00:00
float: left;
margin-top: 5px;
2020-08-19 23:59:24 +00:00
}
2020-10-13 22:28:16 +00:00
solid-link {
display:flex;
justify-content: end;
margin-top: 30px;
margin-right: 70px;
z-index: 1;
position: relative;
.add-poll {
background-color: var(--color-add-button-background);
color: var(--color-add-button);
2020-08-19 23:59:24 +00:00
box-shadow: 0px 0px 4px 1px #CACACA;
text-transform: uppercase;
font-weight: 700;
line-height: 20px;
&::before {
font-family: "material-design-icons";
content: "\F419";
width: 1em;
display: inline-block;
margin: 0 5px 0 10px;
font-size: 2rem;
vertical-align: middle;
font-weight: 400;
}
}
}
}
.all-polls {
2020-08-19 23:59:24 +00:00
solid-form {
display: block;
border-bottom: solid 1px #cacaca;
height: 90px;
2020-10-13 22:57:24 +00:00
margin: 30px 25px 25px;
2020-08-19 23:59:24 +00:00
max-width: 85%;
2020-10-13 22:57:24 +00:00
solid-form-dropdown-label label {
font-size: 1.4rem;
font-family: "Facit";
}
2020-08-19 23:59:24 +00:00
solid-form-placeholder-text {
margin-left: 15px;
input {
border-radius: 4px;
}
}
}
2020-09-08 22:17:26 +00:00
> div {
2020-08-19 23:59:24 +00:00
display: flex;
flex-wrap: wrap;
justify-content: left;
height: 100%;
max-width: 1100px;
margin: auto;
2020-10-14 18:16:01 +00:00
> solid-display {
2020-08-19 23:59:24 +00:00
width: 320px;
height: 550px;
margin: 0 0 20px 40px;
>div:first-of-type {
2020-08-19 23:59:24 +00:00
background-color: #fff;
2020-09-08 22:17:26 +00:00
height: 100%;
2020-08-19 23:59:24 +00:00
-webkit-box-shadow: 0px 0px 4px 1px #CACACA;
box-shadow: 0px 0px 4px 1px #CACACA;
*[name="body"] {
/*size of tags of poll card*/
2020-09-27 22:50:58 +00:00
poll-display-votetags {
>div {
width: 64px;
height: 24px;
p {
font-size: 11px;
}
}
}
}
2020-08-19 23:59:24 +00:00
img {
width: 320px;
height: 230px;
object-fit: cover;
}
[name="title"] {
font-family: "RefrigeratorDelxW01Bold";
2020-10-12 22:34:43 +00:00
color: var(--color-primary);
2020-08-19 23:59:24 +00:00
font-size: 1.8rem;
font-weight: 600;
text-transform: uppercase;
height: 30px;
width: 100%;
display: inline-block;
}
[name="hostingOrganisation"],
[name="endDate"] {
2020-10-12 21:43:28 +00:00
color: var(--highlight-font-color);
2020-08-19 23:59:24 +00:00
font-family: Facit;
font-size: 14px;
letter-spacing: 0;
line-height: 22px;
}
[name="hostingOrganisation"] {
&::before {
content: '\e037';
font-family: 'simple-line-icons';
2020-10-12 22:34:43 +00:00
color: var(--color-secondary);
2020-08-19 23:59:24 +00:00
height: 22px;
width: 24px;
font-size: 16px;
letter-spacing: 0;
line-height: 22px;
display: inline-block;
text-align: center;
}
}
2020-09-10 16:06:25 +00:00
[name="dateLine"] {
display: flex;
flex-direction: row;
margin-top: 10px;
2020-09-27 22:50:58 +00:00
div [name="dateImage"]::before {
2020-08-19 23:59:24 +00:00
display: inline-block;
font: normal normal normal 24px/1 "Material Design Icons";
content: "\F6AF";
2020-10-12 22:34:43 +00:00
color: var(--color-secondary);
2020-08-19 23:59:24 +00:00
height: 22px;
width: 24px;
font-size: 20px;
line-height: 22px;
text-align: center;
}
}
[name="shortDescription"] {
2020-10-12 22:48:02 +00:00
color: var(--color-main-text);
2020-08-19 23:59:24 +00:00
font-family: Facit;
font-size: 14px;
letter-spacing: 0;
line-height: 22px;
text-align: center;
2020-09-08 22:17:26 +00:00
max-height: 100%;
2020-08-19 23:59:24 +00:00
}
}
}
}
}
}
/*personnalise css on poll page*/
#default-pollPage, #circles-pollPage {
2020-09-10 12:51:44 +00:00
width: 90%;
max-width: 1110px;
margin: auto;
2020-09-09 22:20:49 +00:00
h1,
h2 {
font-family: "RefrigeratorDelxW01Bold";;
}
h1 {
font-size: 3.2rem;
line-height: 3.8rem;
2020-09-28 18:19:40 +00:00
margin: 20px auto;
2020-09-09 22:20:49 +00:00
}
h2 {
font-size: 26px;
line-height: 31px;
}
.vote-debate-content .active-tab,
.vote-debate-content .border-content {
background-color: white;
}
solid-display.topline {
>div:first-of-type {
*[name="right"] {
2020-09-27 22:50:58 +00:00
poll-display-votetags {
>div {
width: 64px;
height: 24px;
p {
font-size: 11px;
}
}
}
}
2020-08-08 12:46:31 +00:00
}
}
2020-09-09 22:20:49 +00:00
[name="hostingOrganisation"],
[name="dateLine"] {
2020-10-12 21:43:28 +00:00
color: var(--highlight-font-color);
2020-09-09 22:20:49 +00:00
font-family: Facit;
font-size: 16px;
font-weight: bold;
}
2020-09-28 18:19:40 +00:00
[name="dateLine"] solid-set-default {
2020-09-10 16:06:25 +00:00
display: flex;
margin-top: 7px;
2020-09-28 18:19:40 +00:00
solid-display-value, solid-display-date-value {
2020-09-10 16:06:25 +00:00
margin-left: 7px;
}
}
2020-09-09 22:20:49 +00:00
[name="hostingOrganisation"] {
margin-left: 0;
[name="hostingOrganisation"]::before {
content: '\e037';
2020-09-28 18:19:40 +00:00
font-family: "simple-line-icons";
2020-09-09 22:20:49 +00:00
font-weight: 400;
2020-10-12 22:34:43 +00:00
color: var(--color-secondary);
2020-09-09 22:20:49 +00:00
margin-right: 10px;
font-size: 16px;
}
}
2020-09-27 22:50:58 +00:00
div [name="dateImage"]::before {
2020-09-09 22:20:49 +00:00
font-family: "Material Design Icons";
font-weight: 400;
content: "\F6AF";
2020-10-12 22:34:43 +00:00
color: var(--color-secondary);
2020-09-09 22:20:49 +00:00
font-size: 20px;
}
[name="shortDescription"],
[name="longDescription"] {
margin: 20px 0;
2020-10-12 22:48:02 +00:00
color: var(--color-main-text);
2020-09-09 22:20:49 +00:00
font-family: Facit;
}
[name="shortDescription"] {
margin: 20px 0;
font-size: 18px;
line-height: 28px;
}
[name="longDescription"] {
font-size: 16px;
line-height: 26px;
}
2020-09-10 12:51:44 +00:00
.vote-section,
.share-vote {
2020-09-09 22:20:49 +00:00
font-family: Facit;
2020-09-11 12:06:01 +00:00
padding: 15px 25px;
2020-09-09 22:20:49 +00:00
}
.vote-tab-content h3::before {
font-family: "Material Design Icons";
font-weight: 400;
font-size: 20px;
margin-right: 10px;
2020-10-12 21:43:28 +00:00
color: var(--highlight-font-color);
2020-09-09 22:20:49 +00:00
}
.vote-section > h3::before {
content:"\F004";
}
#totalVotesDisplay::before,
.share-vote h3::before {
content: "\F00E";
}
.vote-section > h3 {
margin-top: 15px;
}
#poll-votes-values solid-display > div > solid-set-default,
[name="chosenOption"] label {
margin-top: 10px;
}
#poll-votes-values solid-display > div [name="progressBar"] {
margin-top: 5px;
}
div[name="progressBar"] > div,
div[name="progressBar"] div .progressBarValue {
margin: 0;
}
2020-09-23 04:49:56 +00:00
.poll-votes-form input[type="submit"] {
2020-09-09 22:20:49 +00:00
height: 38px;
border-radius: 19px;
box-shadow: 0 0 7px 0 rgba(0,0,0,0.15);
}
2020-09-23 04:49:56 +00:00
.poll-votes-form input[type="submit"]:disabled {
2020-09-10 16:06:25 +00:00
opacity: 0.3;
}
2020-09-23 04:49:56 +00:00
.unavailablePoll {
2020-09-10 16:06:25 +00:00
font-style: italic;
}
2020-09-11 12:06:01 +00:00
.progressBarValue {
height: 25px;
line-height: 25px;
padding-left: 5px;
}
2020-09-10 16:06:25 +00:00
.send-share,
.back-to-list {
2020-10-12 21:43:28 +00:00
background-color: var(--highlight-font-color);
2020-09-10 16:06:25 +00:00
padding: 5px 25px;
font-size: 1.4rem;
&::before {
font-family: "Material Design Icons";
font-weight: 400;
font-size: 20px;
vertical-align: middle;
color: white;
}
}
.send-share {
a {
font-size: 1.4rem;
line-height: 23px;
margin-left: 5px;
}
&::before {
content: "\F48A";
}
}
2020-09-11 12:06:01 +00:00
.vote-debate-content .border-content.padded {
padding: 0;
.debate-tab-content sib-conversation {
width: 100%;
.sib-conversation {
.conversation-item {
position: relative;
[name="conversation-subhead"] {
position: absolute;
top: 4px;
left: 200px;
font-size: 1.3rem;
color: #aaa;
}
[name="conversation-author"] {
font-size: 1.3rem;
}
}
.conversation-form {
border-top: 1px solid #ddd !important;
textarea {
background-color: transparent;
border: none;
font-size: 1.4rem;
}
}
input[type="submit"] {
text-indent: -999px;
width: 30px;
background: url(../images/send.png) no-repeat center;
background-size: auto;
background-size: contain;
border: none;
position: absolute;
right: 15px;
top: calc(50% - 11px);
}
}
}
}
2020-09-10 16:06:25 +00:00
.poll-footer {
padding: 20px 0 40px;
.back-to-list {
margin-left: 10%;
&::before {
content: "\F04D";
}
}
.share-poll {
visibility: hidden;
}
}
2020-08-08 12:46:31 +00:00
}
2020-08-19 23:59:24 +00:00
}
#polls, #default-polls, #circles-polls {
2020-09-08 22:17:26 +00:00
.views-container {
background-color: #f0f3f6;;
}
#circles-add-survey, #default-add-survey {
2020-09-29 19:23:26 +00:00
background-color: white;
padding: 50px 0;
margin: -20px auto;
2020-09-08 22:17:26 +00:00
h2 {
font-family: "RefrigeratorDelxW01Bold";
font-size: 3.2rem;
line-height: 3.8rem;
color: var(--title-font-color);
margin-bottom: 0;
}
p {
margin-top: 10px;
2020-10-12 22:48:02 +00:00
color: var(--color-main-text);
2020-09-08 22:17:26 +00:00
font-family: Facit;
font-size: 16px;
}
form {
padding: 25px 0;
width: 1000px;
max-width: 90%;
display: block;
input {
height: 3rem;
}
textarea {
height: 110px;
}
solid-form-label-text,
2020-10-13 19:13:47 +00:00
solid-form-textarea,
solid-form-label-textarea,
solid-form-textarea-label {
2020-09-08 22:17:26 +00:00
display: block;
margin: 15px 0;
padding: 0;
}
2020-09-27 22:50:58 +00:00
label > div, solid-form-file-image > div label, solid-form-dropdown-autocompletion[name="tags"] > label::before {
2020-09-08 22:17:26 +00:00
margin-bottom: 5px;
margin-top: 20px;
color: var(--form-title);
font-size: 13px;
font-weight: 600;
text-transform: uppercase;
}
solid-form-file-image > div {
margin-bottom: 15px;
button {
width: 20px;
}
input {
align-self: center;
}
label {
margin-bottom: 15px;
}
img {
margin-right: 10px;
max-width: 250px;
}
}
solid-form-label-text[name="title"] {
margin-bottom: 5px;
}
.form-tips {
font-family: Facit;
}
.h3-like {
font-family: "RefrigeratorDelxW01Bold";
}
solid-multiple-form[name="pollOptions"] {
div {
margin-bottom: 10px;
div {
display: flex;
width: 100%;
justify-content: space-between;
2020-09-27 22:50:58 +00:00
poll-custom-choice {
2020-09-08 22:17:26 +00:00
width: calc(100% - 45px);
solid-form-label-text[name="name"] {
margin-bottom: 0;
}
}
button {
2020-10-12 22:34:43 +00:00
border: 1px solid var(--color-primary);
2020-09-08 22:17:26 +00:00
background-color: transparent;
border-radius: 15px;
font-size: 24px;
2020-10-12 22:34:43 +00:00
color: var(--color-primary);
2020-09-08 22:17:26 +00:00
padding: 0;
height: 30px;
width: 30px;
align-self: flex-end;
margin-bottom: 5px;
}
}
}
> button {
height: 28px;
line-height: 14px;
text-transform: uppercase;
font-family: Facit;
padding: 0 30px;
font-weight: bold;
font-size: 13px;
margin: 10px 0;
2020-10-12 22:34:43 +00:00
color: var(--color-primary);
2020-09-08 22:17:26 +00:00
&::before {
content: "\F419";
font-family: Material Design Icons;
margin-right: 7px;
font-size: 2rem;
vertical-align: middle;
text-decoration: none;
}
}
}
.ss-main {
margin-top: 10px;
.ss-multi-selected .ss-values .ss-value {
border-radius: 14px;
2020-10-12 22:34:43 +00:00
background-color: var(--color-secondary);
2020-09-08 22:17:26 +00:00
padding: 5px 10px;
font-size: 11px;
}
}
input[type="submit"] {
font-size: 1.4rem;
margin: 25px 0;
float: right;
width: max-content;
padding: 5px 20px;
display: block;
text-transform: uppercase;
}
}
2020-09-29 19:23:26 +00:00
.poll-footer {
.back-to-list {
2020-10-12 21:43:28 +00:00
background-color: var(--highlight-font-color);
2020-09-29 19:23:26 +00:00
padding: 5px 25px;
font-size: 1.4rem;
margin-left: 10%;
border-radius: 15px;
color: white;
&::before {
font-family: "Material Design Icons";
font-weight: 400;
font-size: 20px;
vertical-align: middle;
color: white;
content: "\F04D";
}
}
}
2020-09-08 22:17:26 +00:00
}
2020-08-19 23:59:24 +00:00
}
#circle-polls #circles-pollListing .all-polls solid-form solid-form-placeholder-text input {
2020-08-19 23:59:24 +00:00
background-color: #f0f3f6;
}
.with-sidebar nav>solid-router>ul [name="circle-polls"] {
li::before {
content: '';
height: 40px;
width: 40px;
mask: url('/images/vote.svg') center no-repeat;
mask-size: contain;
-webkit-mask: url('/images/vote.svg') center no-repeat;
-webkit-mask-size: contain;
background-color: var(--color-right-menu-text);
}
&[active] li::before {
background-color: var(--color-right-menu-active-text);
}
}