asiaH7/assets/stylesheets/template/modules/question.scss

360 lines
10 KiB
SCSS

@charset "utf-8";
@import "../initial";
.left-column {
.o-question {
font-size: 0.9375em;
}
.o-question input[type="checkbox"], .o-question input[type="radio"] {
margin: 0 5px 0 0 !important;
}
.o-question textarea {
resize: vertical;
}
.o-question-topic {
color: #666;
font-size: 1.5em;
line-height: normal;
padding: 0;
margin-bottom: 10px;
}
.o-question-description {
font-size: 0.9em;
line-height: 1.5em;
overflow: hidden;
margin-bottom: 10px;
color: #b9141c;
}
.o-question-list {
border: 1px solid #e2e2e2;
border-radius: 3px;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
clear: both;
font-weight: bold;
margin: 0;
padding: 0;
background-color: #f7f7f7;
}
.o-question-list > li {
border-top: 1px solid #e2e2e2;
font-size: 0.8125em;
list-style: outside none none;
margin: 0;
padding: 15px;
position: relative;
&:hover{
background-color: #f5f3e8;
transition: 0.3s;
}
&.question-57f31f091d41c8db3500001d,&.question-57f44e771d41c8d2b300001a,&.question-57f4528e1d41c8d2c400000c,&.question-57f4544b1d41c8d2d1000027,&.question-57f456601d41c8d2d1000045 {
background-color: #f9eadd;
.o-question-title{
color: #940c13;
}
}
}
.o-question-list > li:nth-child(even) {
background: #fbfbfb;
&:hover{
background-color: #f5f3e8;
transition: 0.3s;
}
}
.o-question-list > li .required-star {
position: static;
padding: 0;
vertical-align: top;
line-height: 24px;
color: #666;
}
.o-question-list > li:first-child {
border: 0 none;
}
.required-star +.o-question-title {
margin-right: 10px;
}
.o-question-title {
color: #666;
display: inline-block;
font-size: 0.9375em;
font-weight: normal;
line-height: 24px;
margin: 0 25px 0 0;
vertical-align: top;
width: 94%;
min-width: 4em;
@media (min-width: $screen-md){
width: 26%;
white-space: nowrap;
}
}
.o-question-title + .o-question-description {
background-color: transparent;
font-weight: normal;
margin: 0;
padding: 1px 8px;
background-color: #991c22;
color: #fff;
display: inline;
font-size: 0.8125em;
line-height: 22px;
}
.o-question-title + .o-question-description::before {
border-bottom: 12px solid #f6f6f6;
border-left: 12px solid transparent;
border-right: 12px solid transparent;
content: "";
left: 16px;
position: absolute;
top: -12px;
display: none;
}
.o-question-title + input[type="text"], .o-question-title + textarea, .o-question-title + select, .o-question-description + input[type="text"], .o-question-description + textarea, .o-question-description + select {
display: block;
}
.o-question-title + input[type="text"]{
border: 1px solid #ccc;
display: inline-block;
line-height: 24px;
margin: 0;
padding: 0 5px;
}
.o-question-description + input[type="text"]{
border: 1px solid #ccc;
line-height: 24px;
margin: 5px 0 0 0;
padding: 0 5px;
width: 100%;
@media (min-width: $screen-md){
width: 69%;
}
}
.o-question-title + input[type="text"] {
width: 100%;
@media (min-width: $screen-md){
width: 40%;
}
}
.o-question-title + textarea {
border: 1px solid #ccc;
line-height: 24px;
margin: 5px 0 0 0;
padding: 0 5px;
}
.o-question-title + textarea {
width: 100%;
@media (min-width: $screen-md){
width: 69%;
}
}
.o-question-group {
margin: 20px 0;
padding: 0;
}
.o-question-option {
font-weight: normal;
}
.o-question-group.view-list {
list-style: outside none none;
color: #666;
font-size: 0.9375em;
margin: 5px 0 0 0;
}
.o-question-group.view-list .o-question-option {
}
.o-question-group.view-list > li {
display: inline-block;
margin: 0;
}
.question-57f31f091d41c8db3500001c .o-question-group.view-list > li,.question-57f44e771d41c8d2b3000019 .o-question-group.view-list > li,.question-57f4507d1d41c8d2d100001a .o-question-group.view-list > li,.question-57f4528e1d41c8d2c400001d .o-question-group.view-list > li,.question-57f4544b1d41c8d2d1000038 .o-question-group.view-list > li,.question-57f456601d41c8d2d1000056 .o-question-group.view-list > li{
display: block;
}
.o-question-group.view-list > li:first-child {
margin: 0;
}
.o-question-group.view-list > li > * {
display: inline-block;
margin: 0;
padding: 0;
vertical-align: middle;
}
.o-question-group.view-list > li input + .o-question-option {
line-height: 15px;
margin: 0 12px 0 0;
display: inline;
}
.o-question-group.view-list > li input + .o-question-option + input[type="text"] {
margin: 0 0 0 -15px;
padding: 0 5px;
}
.o-question-group.view-dropdown {
margin: 8px 0 0px 0;
width: 100%;
border: 1px solid #ccc;
@media (min-width: $screen-md){
width: 69%;
}
}
.o-question-group.view-grid {
border-collapse: collapse;
display: inline-block;
margin: 0;
max-width: 100vw;
min-width: 0;
width: 730px;
}
.o-question-group.view-grid th, .o-question-group.view-grid td {
}
.o-question-group.view-grid thead th {
background: #777 none repeat scroll 0 0;
box-sizing: content-box !important;
color: #fff;
text-align: center;
width: 146px;
}
.o-question-group.view-grid tbody th {
}
.o-question-group.view-grid tbody .odd .o-question-title, .o-question-group.view-grid tbody .odd td {
}
.o-question-group.view-grid .o-question-title {
background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
border-bottom: 1px solid #ccc;
box-sizing: content-box;
margin: 0;
width: 146px;
}
.o-question-group.view-grid tbody .odd .o-question-title {
background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
border-bottom: 1px solid #ccc;
width: 146px;
}
.o-question-group.view-grid tbody .odd td {
background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
border-bottom: 1px solid #ccc;
width: 146px;
}
.o-question-group.view-grid tbody tr:hover td {
background: none;
}
.o-question-group.view-grid tbody td {
background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
border-bottom: 1px solid #ccc;
width: 146px;
}
.o-question-group.view-grid tbody td input {
}
.o-question-action {
background-color: #f6f6f6;
padding: 20px;
}
input.survey-submit{
width: 100%;
margin: 0 auto;
display: block;
border: 0;
background-color: #ffffff;
line-height: 40px;
box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
border: 1px solid #e2e2e2;
border-top: 0;
color: #666;
&:hover{
background-color: #dab005;
color: #fff;
}
}
@media (min-width: $screen-lg){
.o-question-title[for="answer_57f31f091d41c8db35000010"] + .o-question-description{
margin-left: -7%;
}
.o-question-title[for="answer_57f31f091d41c8db35000011"] + .o-question-description{
margin-left: -2%;
}
.o-question-title[for="answer_57f31f091d41c8db35000017"] + .o-question-description{
margin-left: -10%;
}
.o-question-title[for="answer_57f31f091d41c8db35000019"] + .o-question-description{
margin-left: -8%;
}
.o-question-title[for="answer_57f31f091d41c8db3500001d"] + .o-question-description{
margin-left: -11%;
}
.o-question-title[for="answer_57f44e771d41c8d2b300000d"] + .o-question-description{
margin-left: -9%;
}
.o-question-title[for="answer_57f44e771d41c8d2b300000e"] + .o-question-description{
margin-left: -2%;
}
.o-question-title[for="answer_57f44e771d41c8d2b3000014"] + .o-question-description{
margin-left: -11%;
}
.o-question-title[for="answer_57f44e771d41c8d2b3000016"] + .o-question-description{
margin-left: -9%;
}
.o-question-title[for="answer_57f4507d1d41c8d2d100000e"] + .o-question-description{
margin-left: -9%;
}
.o-question-title[for="answer_57f4507d1d41c8d2d100000f"] + .o-question-description{
margin-left: -2%;
}
.o-question-title[for="answer_57f4507d1d41c8d2d1000015"] + .o-question-description{
margin-left: -11%;
}
.o-question-title[for="answer_57f4507d1d41c8d2d1000017"] + .o-question-description{
margin-left: -9%;
}
.o-question-title[for="answer_57f4528e1d41c8d2c4000011"] + .o-question-description{
margin-left: -8%;
}
.o-question-title[for="answer_57f4528e1d41c8d2c4000012"] + .o-question-description{
margin-left: -2%;
}
.o-question-title[for="answer_57f4528e1d41c8d2c4000018"] + .o-question-description{
margin-left: -11%;
}
.o-question-title[for="answer_57f4528e1d41c8d2c400001a"] + .o-question-description{
margin-left: -9%;
}
.o-question-title[for="answer_57f4544b1d41c8d2d100002c"] + .o-question-description{
margin-left: -8%;
}
.o-question-title[for="answer_57f4544b1d41c8d2d100002d"] + .o-question-description{
margin-left: -2%;
}
.o-question-title[for="answer_57f4544b1d41c8d2d1000033"] + .o-question-description{
margin-left: -11%;
}
.o-question-title[for="answer_57f4544b1d41c8d2d1000035"] + .o-question-description{
margin-left: -9%;
}
.o-question-title[for="answer_57f456601d41c8d2d100004a"] + .o-question-description{
margin-left: -8%;
}
.o-question-title[for="answer_57f456601d41c8d2d100004b"] + .o-question-description{
margin-left: -2%;
}
.o-question-title[for="answer_57f456601d41c8d2d1000051"] + .o-question-description{
margin-left: -11%;
}
.o-question-title[for="answer_57f456601d41c8d2d1000053"] + .o-question-description{
margin-left: -9%;
}
}
@media (max-width: 480px){
.o-question-title + input[type="text"], .left-column .o-question-title + textarea,.o-question-group.view-dropdown{
display: block;
margin-top: 0.5em;
width: 100%;
}
.o-question-title + textarea{
width: 100%;
}
}
}