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

280 lines
6.6 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;
border: 1px solid #ccc;
line-height: 24px;
margin: 7px 0 0 0;
padding: 0 5px;
width: 100%;
}
.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 #ddd;
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 #ddd;
font-size: 0.9375em;
list-style: inside decimal;
margin: 0;
padding: 15px;
position: relative;
color: #666;
&:hover{
background-color: #fbf3eb;
transition: 0.3s;
}
&.question-item.question-5834144d02dcf03e82000009{padding-bottom: 5px;}
&.question-item.question-5834144d02dcf03e8200000a,&.question-item.question-5834144d02dcf03e8200000b,&.question-item.question-5834144d02dcf03e8200000c{
border-top: 0;
padding: 10px 15px;
list-style: outside none none;
.o-question-title{
display: inline-block;
}
}
&.question-item.question-5834144d02dcf03e8200000c{
padding-bottom: 15px;
}
&:nth-child(even) {
background: #fbfbfb;
&:hover{
background-color: #fbf3eb;
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;
font-size: 0.9375em;
font-weight: normal;
line-height: 24px;
margin: 0 10px 0 0;
min-width: 5em;
}
.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: 31%;
}
}
.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: 10px 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;
}
.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 {}
.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 #ddd;
border-top: 0;
color: #666;
&:hover{
background-color: #c05f11;
color: #fff;
}
}
@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%;
}
}
}