0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-29 20:20:29 +01:00
discourse-custom-wizard/assets/stylesheets/wizard/wizard_custom.scss
2020-05-04 18:09:18 +10:00

523 Zeilen
7,9 KiB
SCSS

@import 'wizard_variables';
.no-access-gutter {
margin-top: 10px;
display: flex;
justify-content: flex-end;
}
.custom-wizard {
background-color: initial;
font-size: 1.1em;
.wizard-step-contents {
position: relative;
display: flex;
flex-direction: column;
width: 100%;
min-height: initial;
height: initial;
margin-bottom: 10px;
}
img.emoji {
width: 20px;
height: 20px;
vertical-align: middle;
}
.wizard-step-title {
flex: 0;
p {
margin: 0 0 0.5em 0;
}
}
.wizard-step-description {
flex: 0;
margin-bottom: 0;
p {
line-height: 1.7;
img {
@extend img.emoji;
}
}
i {
margin-right: 7px;
}
ul li {
margin: 10px 0;
}
.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;
}
}
.wizard-step-banner {
width: initial;
margin-bottom: 1em;
img {
max-height: 300px;
}
}
.wizard-step-form {
flex: auto;
display: flex;
flex-direction: column;
max-height: initial;
width: 100%;
}
.wizard-field {
margin-bottom: 1em;
.field-label {
font-weight: 800;
}
.field-image {
margin-bottom: 0.5em;
img {
max-width: 100%;
max-height: 150px;
}
}
.field-description {
flex: 1;
color: #333;
margin-top: 0;
p {
margin: 0.3em 0;
line-height: 1.3em;
}
img {
height: 15px;
width: 15px;
margin: 0 5px;
}
}
}
.checkbox-field {
display: flex;
align-items: center;
&> .input-area {
order: 0;
margin: 15px 20px !important;
input {
cursor: pointer;
transform: scale(1.3);
}
}
&> label.field-label {
order: 1;
font-weight: 400;
}
&> .field-description {
margin-top: 0;
order: 2;
}
}
.url-field input {
width: 100%;
font-size: 1.1487em;
padding: 6px;
border: 1px solid #ccc;
transition: border-color 0.5s;
}
.control-group {
display: inline-block;
vertical-align: top;
margin-right: 10px;
margin-bottom: 20px;
.controls {
margin: 5px 0;
}
input {
width: 200px;
line-height: 24px;
}
input[disabled] {
background-color: #e9e9e9;
border: #e9e9e9;
}
ul {
padding: 0;
}
.select-kit {
min-width: 200px;
}
}
.wizard-step-form .wizard-btn {
display: block;
margin: 20px 0;
}
.wizard-image-row {
.wizard-btn-upload {
margin: 0;
}
}
.wizard-image-preview {
margin-top: 10px;
max-width: 500px;
max-height: 500px;
overflow: hidden;
display: block;
border: none;
padding: 0;
img {
max-width: 100%;
max-height: 100%;
}
}
.wizard-select-value img {
vertical-align: middle;
}
.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;
}
}
.wizard-column {
.wizard-field .input-area {
margin: 0.5em 0;
}
.wizard-column-contents h1 {
margin: 0
}
}
.combo-box {
ul {
padding: 0;
}
p {
margin: 0;
}
}
.wizard-buttons > a, .wizard-buttons > button, .spinner {
display: inline-block;
vertical-align: middle;
}
.spinner.small {
margin-right: 10px;
}
}
.step-message {
text-align: center;
transition: all .2s;
z-index: 2;
padding: 20px;
&.success {
background-color: #009900;
color: #ffffff;
}
&.error {
background-color: #e45735;
color: #ffffff;
}
&.not-permitted {
background-color: #e45735;
color: #ffffff;
}
.text {
display: inline-block;
}
.reset-wizard {
margin-top: 20px;
text-decoration: underline;
cursor: pointer;
}
}
.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;
}
}
.wizard-field {
&.invalid{
textarea, input[type=text], input[type=checkbox], .select-kit {
padding: 3px;
border: 4px solid red;
}
}
}
@keyframes rotate-forever {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* IE11 hacks */
@media all and (-ms-high-contrast:none)
{
.custom-wizard {
div.wizard-step-contents {
display: block;
}
div.wizard-progress {
visibility: hidden;
}
}
}
// 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;
}
}
}
.select-kit.combo-box.group-dropdown {
min-width: 220px;
}