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

524 Zeilen
7,9 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;
2019-04-12 11:42:59 +02:00
height: initial;
2019-07-31 04:53:42 +02:00
margin-bottom: 10px;
2017-11-22 10:34:21 +01:00
}
img.emoji {
width: 20px;
height: 20px;
vertical-align: middle;
}
.wizard-step-title {
flex: 0;
2019-07-31 04:53:42 +02:00
p {
2020-03-30 01:53:28 +02:00
margin: 0 0 0.5em 0;
2019-07-31 04:53:42 +02:00
}
}
2017-10-13 15:02:34 +02:00
.wizard-step-description {
flex: 0;
2019-04-26 03:25:36 +02:00
margin-bottom: 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;
2019-01-22 00:35:23 +01:00
max-height: initial;
width: 100%;
}
.wizard-field {
2019-07-31 04:31:15 +02:00
margin-bottom: 1em;
2020-03-30 01:53:28 +02:00
.field-label {
font-weight: 800;
}
2020-03-30 01:53:28 +02:00
.field-image {
margin-bottom: 0.5em;
img {
max-width: 100%;
max-height: 150px;
}
2020-03-30 01:53:28 +02:00
}
2017-11-22 10:34:21 +01:00
2020-03-30 01:53:28 +02:00
.field-description {
flex: 1;
color: #333;
margin-top: 0;
2020-03-30 01:53:28 +02:00
p {
margin: 0.3em 0;
line-height: 1.3em;
}
2020-03-30 01:53:28 +02:00
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
2020-04-30 11:31:48 +02:00
&> label.field-label {
2018-04-05 07:49:39 +02:00
order: 1;
2020-04-30 11:31:48 +02:00
font-weight: 400;
2018-04-05 07:49:39 +02:00
}
&> .field-description {
margin-top: 0;
order: 2;
}
2017-10-13 15:02:34 +02:00
}
.url-field input {
width: 100%;
font-size: 1.1487em;
padding: 6px;
border: 1px solid #ccc;
transition: border-color 0.5s;
}
2017-10-13 15:02:34 +02:00
.control-group {
display: inline-block;
vertical-align: top;
2019-01-18 01:34:52 +01:00
margin-right: 10px;
margin-bottom: 20px;
2017-10-13 15:02:34 +02:00
.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;
}
2019-01-18 01:34:52 +01:00
.select-kit {
min-width: 200px;
}
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
}
.wizard-image-row {
.wizard-btn-upload {
margin: 0;
}
}
.wizard-image-preview {
2020-05-04 10:09:18 +02:00
margin-top: 10px;
max-width: 500px;
max-height: 500px;
overflow: hidden;
2020-05-04 10:09:18 +02:00
display: block;
border: none;
padding: 0;
img {
2020-05-04 10:09:18 +02:00
max-width: 100%;
max-height: 100%;
}
}
.wizard-select-value img {
vertical-align: middle;
2018-04-05 07:49:39 +02:00
}
.wizard-field-upload {
.wizard-btn-upload-file {
display: inline-block;
position: relative;
cursor: pointer;
input {
left: 0;
right: 0;
top: 0;
bottom: 0;
}
}
.filename {
margin-left: 10px;
}
}
2019-08-27 01:34:48 +02:00
.wizard-column {
.wizard-field .input-area {
margin: 0.5em 0;
}
.wizard-column-contents h1 {
margin: 0
}
2017-10-13 15:02:34 +02:00
}
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 {
text-align: center;
transition: all .2s;
2017-11-22 10:34:21 +01:00
z-index: 2;
2019-07-27 09:01:29 +02:00
padding: 20px;
2017-10-17 09:18:53 +02:00
&.success {
background-color: #009900;
color: #ffffff;
}
&.error {
background-color: #e45735;
color: #ffffff;
}
&.not-permitted {
background-color: #e45735;
color: #ffffff;
}
2019-07-27 09:01:29 +02:00
.text {
display: inline-block;
}
.reset-wizard {
margin-top: 20px;
text-decoration: underline;
cursor: pointer;
}
2017-10-17 09:18:53 +02:00
}
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;
}
}
2019-07-31 09:42:50 +02:00
.wizard-field {
&.invalid{
textarea, input[type=text], input[type=checkbox], .select-kit {
padding: 3px;
border: 4px solid red;
}
}
2018-02-04 10:23:28 +01:00
}
2017-10-25 03:23:51 +02:00
@keyframes rotate-forever {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* IE11 hacks */
2020-04-03 10:49:36 +02:00
@media all and (-ms-high-contrast:none)
{
.custom-wizard {
div.wizard-step-contents {
display: block;
}
div.wizard-progress {
visibility: hidden;
}
}
2019-01-18 01:34:52 +01:00
}
2019-07-31 08:25:19 +02:00
// Badges
@import 'wizard_variables';
.badge-wrapper {
font-size: $font-down-1;
font-weight: bold;
white-space: nowrap;
position: relative;
display: inline-flex;
align-items: baseline;
.badge-category {
display: inline-flex;
align-items: baseline;
.category-name {
text-overflow: ellipsis;
overflow: hidden;
}
.d-icon {
margin-right: 3px;
width: 0.74em;
height: 0.74em;
color: inherit;
}
}
&.bullet {
margin-right: 12px;
span.badge-category {
color: $primary-high;
overflow: hidden;
text-overflow: ellipsis;
.extra-info-wrapper & {
color: $header-primary;
}
}
.badge-category-parent-bg,
.badge-category-bg {
flex: 0 0 auto;
width: 9px;
height: 9px;
margin-right: 5px;
display: inline-block;
}
.badge-category-parent-bg {
width: 5px;
margin-right: 0;
+ .badge-category-bg {
width: 5px;
}
}
.d-icon {
color: $primary-medium;
}
}
&.box {
margin-right: 5px;
padding: 2px 4px 2px 4px;
display: inline-flex;
span {
overflow: hidden;
text-overflow: ellipsis;
&.badge-category-bg,
&.badge-category-parent-bg {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
&.badge-category-parent-bg {
width: calc(100% - 5px);
& + .badge-category-bg {
left: 5px;
width: calc(100% - 5px);
& + .badge-category {
margin-left: 5px;
}
}
}
&.badge-category {
position: relative;
}
}
+ .topic-header-extra {
padding: 2px 4px 2px 4px;
}
}
&.bar {
margin-right: 5px;
span.badge-category {
color: $primary-high;
padding: 1px 3px;
overflow: hidden;
text-overflow: ellipsis;
.extra-info-wrapper & {
color: $header-primary;
}
}
.badge-category-parent-bg,
.badge-category-bg {
display: inline-block;
padding: 0 1px;
&:before {
content: "\a0";
}
}
}
&.none {
color: $primary-high;
margin-right: 5px;
}
}
.list-controls {
.category-breadcrumb {
a.badge-category {
display: inline-block;
padding: 6px 8px;
line-height: $line-height-medium;
}
}
}
2020-03-21 18:30:11 +01:00
.select-kit.combo-box.group-dropdown {
min-width: 220px;
}