0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 17:30:29 +01:00

Add style updates

Dieser Commit ist enthalten in:
Angus McLeod 2020-04-03 19:49:36 +11:00
Ursprung 7035c05e37
Commit 610ab8570a
7 geänderte Dateien mit 456 neuen und 1061 gelöschten Zeilen

Datei anzeigen

@ -1 +1,3 @@
{{custom-user-selector usernames=field.value placeholderKey=field.placeholder}}
{{custom-user-selector
usernames=field.value
placeholderKey=field.placeholder}}

Datei anzeigen

@ -0,0 +1,177 @@
@import "wizard_variables";
div.ac-wrap {
overflow: visible;
max-height: 150px;
min-height: 34px;
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"] {
border: 0;
}
.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;
}
}
}
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;
}
}
}
}
}
.ac-wrap {
box-sizing: border-box;
position: relative;
.ac-loading {
position: absolute;
top: 7px;
right: 5px;
}
.item {
line-height: 1.6;
}
.autocomplete {
width: inherit;
left: 0 !important;
width: 100%;
top: 30px !important;
box-sizing: border-box;
li, .no-results {
padding: 10px;
}
ul > label {
color: #919191;
margin: 5px 0;
padding: 0 5px;
font-size: 80%;
line-height: 1.4em;
a {
text-decoration: underline;
}
}
}
}
.ac-form-result {
cursor: pointer;
background-color: $secondary;
display: flex;
&:hover, &.selected {
background-color: $tertiary;
color: white;
label {
color: white;
}
}
label {
flex: 1 1 auto;
margin-bottom: 0;
cursor: pointer;
}
i {
margin-right: 5px;
}
}

Datei-Diff unterdrückt, da er zu groß ist Diff laden

Datei anzeigen

@ -1,7 +1,187 @@
// datepicker
@import "wizard_variables";
// event form
.event-form {
width: 585px;
max-width: 80vw;
.control {
display: inline-flex;
align-items: flex-start;
min-height: 30px;
margin-right: 20px;
> input:first-child {
margin-top: 10px !important;
}
> span:first-child {
margin-top: 5px !important;
}
> input + span {
margin-top: 5px;
}
&:last-of-type {
margin-right: 0;
}
input[type="checkbox"] {
margin: 0 10px 0 0;
}
input[type="number"] {
width: 50px;
margin: 0;
min-height: 34px;
border: 1px solid #e9e9e9;
}
&.full-width {
flex: 1;
}
.select-kit, .ac-wrap {
width: 100% !important;
max-width: 330px;
}
.select-kit-body {
width: 100% !important;
max-width: 330px;
}
}
.event-controls {
margin-bottom: 20px;
display: flex;
align-items: flex-start;
}
.datetime-controls {
display: flex;
margin-bottom: 5px;
.date-time-card {
width: 270px;
display: inline-block;
text-align: left;
}
.start-card {
border-left: 1px solid transparent;
padding-right: 20px;
}
.end-card {
border-left: 1px solid #eee;
padding-left: 20px;
&.disabled {
span, label, .pika-label, .pika-table th, .pika-button, .pika-prev, .pika-next, input, .pika-lendar, .is-selected .pika-button {
color: $primary-low;
background-image: initial;
background: initial;
box-shadow: initial;
cursor: default;
pointer-events: none;
}
input, .pika-lendar {
border: 1px solid $primary-low !important;
}
}
}
.set-all-day {
font-size: 1.2em;
padding-bottom: 13px;
}
.sub-title {
font-size: 1.2em;
font-weight: bold;
padding-bottom: 2px;
padding-right: 10px;
}
.date-time-set {
padding-top: 10px;
display: flex;
flex-direction: row;
.date-area {
order: 1;
}
.time-area {
order: 2;
margin-left: 10px;
.modal-time {
width: 127px;
}
}
input {
padding: 4px 10px;
font-size: 1em;
line-height: 1;
color: $primary;
border: 1px solid $primary-medium;
min-height: 30px;
width: 130px;
margin: 10px 0;
}
}
#date-container-start,
#date-container-end {
height: 250px;
}
.ui-timepicker-input {
width: 105px;
text-align: center;
}
.pika-single {
position: relative !important;
border: none;
z-index: 100;
.pika-lendar {
border: 1px solid $primary-medium;
padding: 14px;
margin: 0;
float: none;
width: auto;
}
}
}
.rsvp-controls {
.rsvp-container {
display: flex;
flex-flow: wrap;
margin-top: 10px;
.control span {
margin-right: 10px;
}
.full-width {
align-items: flex-start;
}
}
}
}
// datepicker
/*!
* Pikaday
* Copyright © 2014 David Bushell | BSD & MIT license | http://dbushell.com/

Datei anzeigen

@ -0,0 +1,89 @@
@import "wizard_variables";
.location-selector-container {
width: 350px;
}
.location-form {
display: flex;
.title {
font-weight: 700;
}
.address {
padding-right: 20px;
}
.coordinates {
.control-group {
display: block;
.controls {
display: flex;
width: 100%;
input {
width: 100px;
}
}
.icon {
margin-left: 10px;
display: inline-block;
}
}
.icon img {
max-width: 30px;
}
}
.address + .coordinates {
border-left: 1px solid #eee;
padding-left: 20px;
}
}
.location-form-instructions {
color: #919191;
margin: 5px 0;
font-size: 80%;
line-height: 1.4em;
a {
text-decoration: underline;
}
}
.location-form, .add-location {
overflow: visible;
.control-group {
display: inline-block;
vertical-align: top;
margin-right: 20px;
margin-top: 10px;
.instructions {
@extend .location-form-instructions;
}
}
.location-search {
display: block;
margin: 15px 0;
}
.geo-map {
height: 400px;
}
}
input.input-location, div.input-location {
max-height: 150px;
background-color: $secondary;
box-shadow: none;
box-sizing: border-box;
margin: 0;
}

Datei anzeigen

@ -23,10 +23,12 @@ if Rails.env.production?
wizard-plugin.js
wizard-custom-start.js
wizard-raw-templates.js.erb
stylesheets/wizard/wizard_autocomplete.scss
stylesheets/wizard/wizard_custom.scss
stylesheets/wizard/wizard_composer.scss
stylesheets/wizard/wizard_variables.scss
stylesheets/wizard/wizard_custom_mobile.scss
stylesheets/wizard/wizard_locations.scss
stylesheets/wizard/wizard_events.scss
}
end

Datei anzeigen

@ -1,10 +1,12 @@
<html>
<head>
<%= discourse_stylesheet_link_tag :wizard, theme_id: nil %>
<%= stylesheet_link_tag "wizard_autocomplete" %>
<%= stylesheet_link_tag "wizard_custom" %>
<%= stylesheet_link_tag "wizard_composer" %>
<%= stylesheet_link_tag "wizard_variables" %>
<%= stylesheet_link_tag "wizard_custom_mobile" %>
<%= stylesheet_link_tag "wizard_locations"%>
<%= stylesheet_link_tag "wizard_events"%>
<%- if theme_ids %>
<%= discourse_stylesheet_link_tag (mobile_view? ? :mobile_theme : :desktop_theme) %>