1
0
Fork 0
discourse-custom-wizard-unl.../assets/stylesheets/wizard/wizard_custom.scss

498 Zeilen
7,4 KiB
SCSS

2018-02-08 05:30:55 +01:00
@import 'wizard_variables';
.no-access-gutter {
margin-top: 10px;
display: flex;
justify-content: flex-end;
}
2017-10-13 15:02:34 +02:00
.custom-wizard {
background-color: initial;
font-size: 1.1em;
2017-10-13 15:02:34 +02:00
2017-11-22 10:34:21 +01:00
.wizard-step-contents {
position: relative;
display: flex;
flex-direction: column;
2017-11-29 10:48:49 +01:00
width: 100%;
min-height: initial;
2017-11-22 10:34:21 +01:00
}
img.emoji {
width: 20px;
height: 20px;
vertical-align: middle;
}
.wizard-step-title {
flex: 0;
}
2017-10-13 15:02:34 +02:00
.wizard-step-description {
flex: 0;
2017-10-17 09:18:53 +02:00
p {
line-height: 1.7;
img {
@extend img.emoji;
}
}
2017-10-17 09:18:53 +02:00
i {
margin-right: 7px;
}
2017-11-06 10:06:53 +01:00
2018-04-15 04:49:12 +02:00
ul li {
margin: 10px 0;
}
.image-container {
2017-11-29 10:48:49 +01:00
padding: 0 20px;
2017-12-05 02:42:34 +01:00
margin: 50px 0;
2017-11-22 10:34:21 +01:00
display: flex;
justify-content: space-between;
flex-wrap: wrap;
2018-01-19 12:50:34 +01:00
a {
cursor: pointer;
}
span {
display: block;
text-align: center;
max-width: 140px;
2018-01-26 04:02:05 +01:00
color: #333;
2018-01-19 12:50:34 +01:00
}
2017-11-22 10:34:21 +01:00
&.group {
padding: 0;
margin: 0;
width: 130px;
height: 130px;
2017-11-22 10:34:21 +01:00
}
}
2017-11-06 10:06:53 +01:00
img.large {
2017-12-11 03:05:50 +01:00
width: 150;
2017-11-06 10:06:53 +01:00
padding: 25px;;
}
img.small {
width: 100;
2018-01-12 07:21:08 +01:00
padding: 15px;
2017-11-06 10:06:53 +01:00
}
2017-11-22 10:34:21 +01:00
img.x-small {
2017-12-11 03:05:50 +01:00
width: 50px;
height: 50px;
2017-11-22 10:34:21 +01:00
padding: 3px;
}
label {
display: block;
text-align: center;
}
.inline-list > * {
display: inline-block;
}
}
.wizard-step-banner {
width: initial;
margin-bottom: 1em;
img {
max-height: 300px;
}
}
.wizard-step-form {
flex: auto;
display: flex;
flex-direction: column;
width: 100%;
}
.wizard-field {
&.tip {
margin-top: auto;
}
label {
display: flex;
flex-flow: wrap;
align-items: center;
2018-05-13 07:46:02 +02:00
.label-value {
width: 100%;
2018-05-13 07:46:02 +02:00
p {
margin: 0;
}
}
2017-11-22 10:34:21 +01:00
.field-image {
margin-right: 10px;
img {
width: 30px;
height: 30px;
}
}
.field-description {
flex: 1;
color: #333;
margin-top: 0;
p {
margin: 0;
line-height: 1.3em;
}
img {
height: 15px;
width: 15px;
margin: 0 5px;
}
2017-11-22 10:34:21 +01:00
}
}
2017-10-13 15:02:34 +02:00
}
.checkbox-field {
display: flex;
align-items: center;
2018-02-10 08:12:33 +01:00
&> .input-area {
order: 0;
margin: 15px 20px !important;
input {
cursor: pointer;
transform: scale(1.3);
}
2018-02-10 08:12:33 +01:00
}
2018-04-05 07:49:39 +02:00
&> label {
order: 1;
}
&> .field-description {
margin-top: 0;
order: 2;
}
2017-10-13 15:02:34 +02:00
}
.control-group {
display: inline-block;
vertical-align: top;
margin-right: 20px;
.controls {
margin: 5px 0;
}
input {
width: 200px;
line-height: 24px;
}
2017-10-22 05:37:58 +02:00
2018-06-14 01:59:58 +02:00
input[disabled] {
background-color: #e9e9e9;
border: #e9e9e9;
}
2017-10-22 05:37:58 +02:00
ul {
padding: 0;
}
2017-10-13 15:02:34 +02:00
}
.wizard-step-form .wizard-btn {
display: block;
2017-11-29 10:48:49 +01:00
margin: 20px 0;
2017-10-13 15:02:34 +02:00
}
2018-04-05 07:49:39 +02:00
.wizard-image-row .wizard-btn-upload {
margin: 0;
}
2017-10-13 15:02:34 +02:00
.wizard-column .wizard-field .input-area {
margin: 0.5em 0;
}
2017-11-02 03:22:13 +01:00
2018-05-16 09:19:03 +02:00
.combo-box {
ul {
padding: 0;
}
2018-05-13 07:39:28 +02:00
2018-05-16 09:19:03 +02:00
p {
2018-05-13 07:39:28 +02:00
margin: 0;
}
2017-11-08 09:52:50 +01:00
}
2017-11-09 03:50:48 +01:00
.wizard-buttons > a, .wizard-buttons > button, .spinner {
2017-11-09 03:50:48 +01:00
display: inline-block;
vertical-align: middle;
}
2017-12-13 06:31:31 +01:00
.spinner.small {
margin-right: 10px;
2017-11-09 03:50:48 +01:00
}
2017-10-13 15:02:34 +02:00
}
2017-10-17 09:18:53 +02:00
.step-message {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 0;
line-height: 0;
text-align: center;
transition: all .2s;
2017-11-22 10:34:21 +01:00
z-index: 2;
2017-10-17 09:18:53 +02:00
&.success {
height: 60px;
line-height: 60px;
background-color: #009900;
color: #ffffff;
}
&.error {
height: 60px;
line-height: 60px;
background-color: #e45735;
color: #ffffff;
}
}
2017-10-13 15:02:34 +02:00
.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;
2018-08-19 02:34:28 +02:00
height: 200px;
2017-10-13 15:02:34 +02:00
overflow: scroll;
}
li {
padding: 6px 12px;
cursor: pointer;
background-color: #fff;
2017-10-25 03:23:51 +02:00
display: flex;
2018-08-19 02:34:28 +02:00
border-top: 1px solid #e9e9e9;
border-bottom: 1px solid #e9e9e9;
2017-10-13 15:02:34 +02:00
&:hover, &.selected {
background-color: #eee;
}
2017-10-25 03:23:51 +02:00
label {
flex: 1 1 auto;
cursor: pointer;
}
2017-10-13 15:02:34 +02:00
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;
}
}
2017-10-25 03:23:51 +02:00
.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;
}
}
}
}
}
2018-02-04 10:23:28 +01:00
.checkbox-field.invalid .input-area {
padding: 3px;
border: 4px solid red;
}
2017-10-25 03:23:51 +02:00
@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);
}
}