1
0
Fork 0
discourse-custom-wizard-unl.../assets/stylesheets/wizard/wizard_custom.scss
2018-02-08 17:42:10 +08:00

438 Zeilen
6,6 KiB
SCSS

@import 'wizard_variables';
.custom-wizard {
background-color: initial;
.wizard-step-contents {
position: relative;
display: inline-block;
width: 100%;
}
.wizard-step-description {
line-height: 1.7;
margin: 1em 0;
i {
margin-right: 7px;
}
.image-container {
padding: 0 20px;
margin: 50px 0;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
a {
cursor: pointer;
}
span {
display: block;
text-align: center;
max-width: 140px;
color: #333;
}
&.group {
padding: 0;
margin: 0;
width: 130px;
height: 130px;
}
}
img.large {
width: 150;
padding: 25px;;
}
img.small {
width: 100;
padding: 15px;
}
img.x-small {
width: 50px;
height: 50px;
padding: 3px;
}
label {
display: block;
text-align: center;
}
.inline-list > * {
display: inline-block;
}
.tip {
position: absolute;
bottom: 0;
font-style: italic;
margin-bottom: 20px;
img {
width: 30px;
height: 30px;
vertical-align: middle;
padding-bottom: 5px;
}
}
}
.wizard-column .wizard-step-banner {
width: initial;
max-width: 660px;
max-height: 300px;
margin-bottom: 0;
}
.control-group {
display: inline-block;
vertical-align: top;
margin-right: 20px;
.controls {
margin: 5px 0;
}
input {
width: 200px;
line-height: 24px;
}
ul {
padding: 0;
}
}
.wizard-step-form .wizard-btn {
display: block;
margin: 20px 0;
}
.wizard-column .wizard-field .input-area {
margin: 0.5em 0;
}
img.emoji {
width: 20px;
height: 20px;
vertical-align: middle;
}
.combo-box ul {
padding: 0;
}
.wizard-buttons > a, .wizard-buttons > button, .spinner {
display: inline-block;
vertical-align: middle;
}
.spinner.small {
margin-right: 10px;
}
}
.step-message {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 0;
line-height: 0;
text-align: center;
transition: all .2s;
z-index: 2;
&.success {
height: 60px;
line-height: 60px;
background-color: #009900;
color: #ffffff;
}
&.error {
height: 60px;
line-height: 60px;
background-color: #e45735;
color: #ffffff;
}
}
.p-list-box {
max-width: 550px;
position: relative;
margin: 10px 0;
.spinner {
position: absolute;
right: 50%;
top: 50%;
}
.p-text {
margin-bottom: 5px;
}
ul {
border: 1px solid #e9e9e9;
padding: 0;
margin: 0;
list-style: none;
height: 95px;
overflow: scroll;
}
li {
padding: 6px 12px;
cursor: pointer;
background-color: #fff;
display: flex;
&:hover, &.selected {
background-color: #eee;
}
label {
flex: 1 1 auto;
cursor: pointer;
}
i {
margin-right: 5px;
}
}
.no-results {
padding: 15px;
}
.default {
margin: 0 auto;
top: 50%;
transform: translateY(-50%);
position: absolute;
width: 100%;
text-align: center;
color: #919191;
}
}
.spinner {
margin: 20px auto 20px auto;
position: relative;
-webkit-animation: rotate-forever 1s infinite linear;
animation: rotate-forever 1s infinite linear;
height: 30px;
width: 30px;
border: 4px solid #ccc;
border-right-color: transparent;
border-radius: 50%;
&.small {
width: 10px;
height: 10px;
margin: 0;
display: inline-block;
}
}
.user-selector-field.wizard-field {
div.ac-wrap div.item a.remove, .remove-link {
margin-left: 4px;
font-size: 11px;
line-height: 10px;
padding: 1.5px 1.5px 1.5px 2.5px;
border-radius: 12px;
width: 10px;
display: inline-block;
border: 1px solid #e9e9e9;
&:hover {
background-color: #f2ab9a;
border: 1px solid #ec8972;
text-decoration: none;
color: #e45735;
}
}
div.ac-wrap {
width: 98.5% !important;
overflow: auto;
max-height: 150px;
background-color: white;
border: 1px solid #e9e9e9;
padding: 5px 4px 1px 4px;
div.item {
float: left;
margin-bottom: 4px;
margin-right: 10px;
span {
height: 24px;
display: inline-block;
line-height: 20px;
}
}
.ac-collapsed-button {
float: left;
border-radius: 20px;
position: relative;
top: -2px;
margin-right: 10px;
}
input[type="text"] {
float: left;
margin-bottom: 4px;
height: 24px;
display: block;
border: 0;
padding: 0;
box-shadow: none;
}
}
}
img.avatar {
border-radius: 50%;
vertical-align: middle;
}
.autocomplete {
z-index: 999999;
position: absolute;
width: 240px;
background-color: white;
border: 1px solid #e9e9e9;
ul {
list-style: none;
padding: 0;
margin: 0;
li {
.d-users {
color: #333;
padding: 0 2px;
}
border-bottom: 1px solid #e9e9e9;
a {
padding: 5px;
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 14px;
text-decoration: none;
img {
margin-right: 5px;
}
span.username {
color: #000;
vertical-align: middle;
}
span.name {
font-size: 11px;
vertical-align: middle;
}
&.selected {
background-color: #d1f0ff;
}
&:hover {
background-color: #ffffa6;
text-decoration: none;
}
}
}
}
}
.wizard-column .checkbox-field {
float: left;
&> label {
float: right;
}
&> .input-area {
float: left;
margin: 15px 20px !important;
input {
cursor: pointer;
transform: scale(1.3);
}
}
}
.wizard-column .wizard-field {
clear: both;
margin-bottom: 1em;
.field-label {
font-weight: 400;
}
.field-description {
color: #333;
img {
width: 40px;
height: 40px;
vertical-align: middle;
padding-bottom: 5px;
margin-right: 10px;
}
input {
margin: 0 5px;
}
}
}
.checkbox-field.invalid .input-area {
padding: 3px;
border: 4px solid red;
}
@keyframes rotate-forever {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.p-text {
&.bronze {
color: #cd7f32;
}
&.silver {
color: #c0c0c0;
}
&.gold {
color: rgb(231, 195, 0);
}
}
.textarea-field textarea {
height: 19em;
}